AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Repair Orchestrator

skill-xuanranl-loamwright-seo-skill-repair-orchestrator · by XuanRanL

5-level repair escalation when quality gates fail. Surgical → Section-rewrite → Stage-rewrite → Full-regen → From-scratch. Hard cap 4 rounds total. Use when quality.json reports overall_passed=false OR reviewer rejects. Last line of defense before declaring an article unsalvageable.

No reviews yet
0 installs
24 views
0.0% view→install

Install

$ agentstack add skill-xuanranl-loamwright-seo-skill-repair-orchestrator

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-xuanranl-loamwright-seo-skill-repair-orchestrator)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Repair Orchestrator? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Repair Orchestrator

The escalating repair pipeline. Driven by quality.json findings.

Inputs

  • workspace/{task_id}/quality.json (one or more gates failed)
  • workspace/{task_id}/review.json (if independent-reviewer ran)
  • state.repair_iteration (current attempt count; cap = 4)

5 escalation levels

Level 1 — SURGICAL (cheapest, fastest)
  Edit specific lines indicated by quality.json.repairs[].instruction
  Use Edit tool only (preserve everything else)
  If quality improves ≥3 score → progress; loop back at Level 1 again
  If improvement  3:
            return 3  # Stage-level fix
        return 2  # Try again
    
    # Stage rewrite didn't help → full regen
    if prior_level == 3:
        return 4
    
    # Full regen didn't help → from scratch
    if prior_level == 4:
        return 5

What each level fixes

Level 1: Surgical — best for

  • Banned word hits
  • Em-dash hits
  • Citation marker → APA replacement
  • Minor wording polish

Level 2: Section-rewrite — best for

  • One H2 missing Citation Capsule
  • One section badly off voice
  • Word count outside band in 1-2 sections
  • Format doesn't match for 1-2 sections

Level 3: Stage-rewrite — best for

  • Structural: H2 hierarchy wrong → outline-architect
  • Multiple unverified citations → fact-check-and-citation
  • Voice inconsistent across most sections → humanizer (rewrite mode)

Level 4: Full-regen — best for

  • AI-Slop score consistently high
  • Many sections fail quality
  • Multiple gates failing

Level 5: From-scratch — last resort

  • Article topic just doesn't work in current angle
  • Try alternative title from angle.alternative_titles_considered
  • Completely new outline

Cost

Each level has roughly cumulative cost (worst case 4 rounds):

  • Level 1 × 4 iterations: ~$0.10 (cheap edits)
  • Level 1 + 1 × Level 2: ~$0.25 (one section rewrite)
  • Up to Level 3: ~$0.50 (one stage rerun)
  • Up to Level 4: ~$1.50 (full build rerun)
  • Up to Level 5: ~$2.50 (mostly full pipeline rerun)

Cap is set so total repair never exceeds ~$2.50 over baseline article cost.

Output

After each escalation, write workspace/{task}/repair-log.json (append):

{
  "iterations": [
    {
      "iteration": 1,
      "level": 1,
      "trigger": "AI-Slop score 24 > 20 threshold",
      "actions": [
        {"type": "edit", "line": 47, "before": "crucial", "after": "central"}
      ],
      "score_before": 24, "score_after": 18,
      "duration_seconds": 12,
      "verdict": "improved, but still failing other gates"
    },
    {
      "iteration": 2,
      "level": 1,
      "trigger": "Em-dash count 1 > 0",
      "actions": [...],
      "score_before": 18, "score_after": 16,
      "verdict": "ship"
    }
  ],
  "final_level": 1,
  "total_iterations": 2,
  "outcome": "passed"
}

Handoff

If passed:

  • recommended_next_skill: independent-reviewer (final blessing)
  • phase-publish if reviewer approves

If exhausted (4 rounds done, still failing):

  • completion_status: BLOCKED
  • Return workspace/{task}/repair-log.json + best-of-N draft to user
  • User decides: accept with caveats, abort, or take over manually

See also

  • schemas/quality.schema.json (input format)
  • agents/editor-in-chief.md (reverse-callback for Level 2)
  • agents/writer.md (Level 2 dispatched agent)
  • subskills/build/section-drafter/SKILL.md (Level 3/4 dispatched skill)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.