repair-orchestrator

Solid

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.

AI & Automation 43 stars 13 forks Updated 3 days ago Apache-2.0

Install

View on GitHub

Quality Score: 86/100

Stars 20%
55
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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 → escalate to Level 2 Level 2 — SECTION-REWRITE Identify which section(s) most contribute to failures Spawn writer agent for that section with: - original section spec - failures list as "things to fix" - stronger constraints Re-run quality gates If still failing → escalate to Level 3 Level 3 — STAGE-REWRITE Rerun one whole stage of build phase: - If structural issues: outline-architect (revise outline) - If reference issues: fact-check-and-citation (verify everything again) - If voice issues: humanizer (with stricter settings) Re-run quality gates If still failing → escalate to Level 4 Level 4 — FULL-REGEN Rerun all of Phase Build (preserve research.json + angle.json + outline.json) Re-run quality gates If still failing → escalate to Level 5 Level 5 — FROM-SCRATCH Rerun from Plan phase: - Pick alternative title from angle.alternative_titles_considered - New outli...

Details

Author
XuanRanL
Repository
XuanRanL/loamwright-SEO-Skill
Created
2 weeks ago
Last Updated
3 days ago
Language
Python
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category