remediate
Skill5 starsChanged 4 months agoMITView on GitHub
Auto-fixes runtime issues found during visual verification (Stage 6V) using a categorized fix-verify cycle. This skill should be used when the user asks to "run runtime remediation", "fix 6V failures", "run Stage 6R", "auto-fix verification issues", "remediate runtime issues", "fix the verification report failures", or "run the remediation cycle", or when the transmute-pipeline agent reaches Stage 6R of the pipeline.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- Bhenderlong/vallorix-mcp-plugintheir own version, first seen Nov 8, 2026
- muon-m2/magento2-toolstheir own version, first seen Oct 13, 2026
- inkwell-finance/claude-skillstheir own version, first seen Aug 13, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- muon-m2/magento2-tools★ 6same name
- inkwell-finance/claude-skills★ 2same name
- Bhenderlong/vallorix-mcp-plugin★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- audit-a11ySkill
- audit-completenessSkill
- audit-securitySkill
- brdSkill
- docsSkill
- feedbackSkill
- hardenSkill
- implementSkill
- maintainSkill
- optimizeSkill
- polishSkill
- prdSkill
- prelaunchSkill
- redesignSkill
- refactorSkill
- scaffoldSkill
- seed-dataSkill
- smokeSkill
- tech-stackSkill
- user-guideSkill
- validate-specsSkill
- verifySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
34 rules. 0 are common, 25 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
25
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 19
Read the detailed guide at ${CLAUDE_SKILL_DIR}/references/remediate-detailed-guide.md for full fixability taxonomy, teammate prompts, …
- Very specific: line 25
Feature Scenario Matrix must exist: Verify ./plancasting/_audits/visual-verification/feature-scenario-matrix.md exists (generated by Stage …
- Distinctive: line 31
6V FAIL: STOP -- fix critical issues manually first, then re-run 6V.
- Very specific: line 48
Check ./plancasting/tech-stack.md for the Session Language setting.
- Very specific: line 59
Read ./plancasting/_audits/runtime-remediation/loop-count.txt.
- Very specific: line 60
If it contains 1 or 2, previous runs have completed — proceed.
- Very specific: line 61
If it contains 3, 3 runs have already completed — STOP immediately.
- Distinctive: line 70
Early exit: If zero 6V-A and zero 6V-B (all 6V-C): generate report noting no mechanical fixes, skip to 6P/6P-R.
- Distinctive: line 76
Ensure NO two teammates modify the same file.
- Distinctive: line 83
Abort gate: If baseline shows failures unrelated to 6V issues, STOP — pre-existing failures must be resolved before 6R can proceed.
- Distinctive: line 104
Merge and validate: Verify no file conflicts. Run full validation:
- Distinctive: line 110
If any check regresses from baseline, identify the causing fix, revert it, move to 6V-C.
- Distinctive: line 112
Start the dev server: Check if running, start if needed.
- Distinctive: line 145
Verify all modifications saved and committed.
- Very specific: line 146
Increment cycle counter: After all verification is complete, update loop-count.txt.
- Distinctive: line 147
Leave the dev server running if Stage 6P or 6P-R will run immediately.
- Distinctive: line 151
If a runtime issue requires architectural changes beyond this stage's scope:
- Distinctive: line 159
After 3 internal fix-verify cycles within a single 6R run, if 6V-A/6V-B issues persist, remaining 6V-A/B issues auto-escalate to 6V-C:
- Distinctive: line 160
Update escalated issues to 6V-C (human judgment required)
- Distinctive: line 161
Update gate to CONDITIONAL PASS
- Very specific: line 163
Create remaining-blockers.md listing all unresolved issues
- Distinctive: line 165
If 6R gate is FAIL after max cycles, do not re-run 6R — manually fix 6V-C issues first, re-run 6V, then 6R if needed
- Distinctive: line 170
PASS: All 6V-A and 6V-B issues resolved.
- Distinctive: line 182
never make business logic decisions.
- Distinctive: line 183
never weaken security. Adding public routes is fine if PRD says public.
- Distinctive: line 184
always preserve test baseline.
- Distinctive: line 185
always typecheck after EVERY fix, not just at the end.
- Distinctive: line 186
always verify fixes in the running app, not just in code.
- Very specific: line 187
never modify auto-generated files (_generated/, .next/, node_modules/).
- Distinctive: line 188
never create database schema changes.
- Distinctive: line 189
If a 6V-B fix introduces a NEW failure of EQUAL or HIGHER severity, revert and move to 6V-C.
- Distinctive: line 190
always read component/function context before fixing.
- Distinctive: line 193
If 6V report has zero failures, output a clean report and exit.
- Distinctive: line 195
always respect the project's file organization conventions.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Stage 6R: Runtime Remediation
Read the Stage 6V verification report, categorize every failure by fixability, auto-fix all mechanical issues, and produce a human-review TODO list for issues requiring judgment — then re-verify to confirm fixes work. Lead a multi-agent runtime remediation project (teammates are Agent-tool subagents; see the pipeline agent's Execution Model).
Read the detailed guide at ${CLAUDE_SKILL_DIR}/references/remediate-detailed-guide.md for full fixability taxonomy, teammate prompts, safety rules, and report templates.
Prerequisites
- Stage 6V must have produced a report:
./plancasting/_audits/visual-verification/report.mdmust exist. If not, run Stage 6V first. - Feature Scenario Matrix must exist: Verify
./plancasting/_audits/visual-verification/feature-scenario-matrix.mdexists (generated by Stage 6V). - 6V gate decision check:
- 6V PASS: Skip 6R entirely -- proceed to 6P or 6P-R. No failures to remediate.
- 6V CONDITIONAL PASS with 6V-A/6V-B issues: Proceed with 6R.
- 6V CONDITIONAL PASS with ONLY 6V-C issues: Skip 6R -- proceed to 6P or 6P-R. 6R cannot fix 6V-C.
- 6V FAIL: STOP -- fix critical issues manually first, then re-run 6V.
- Create output directory:
mkdir -p ./plancasting/_audits/runtime-remediation
Input
- 6V Verification Report:
./plancasting/_audits/visual-verification/report.md(primary input) - Feature Scenario Matrix:
./plancasting/_audits/visual-verification/feature-scenario-matrix.md - Codebase: Backend and frontend directories
- Tech Stack:
./plancasting/tech-stack.md - Project Rules:
./CLAUDE.md - PRD:
./plancasting/prd/(for understanding intended behavior) - E2E Constants:
./e2e/constants.ts
Check ./plancasting/tech-stack.md for the Session Language setting. Generate all reports in that language. Code and file names remain in English.
Stack Adaptation
Adapt to your plancasting/tech-stack.md: middleware path, route whitelist mechanism, loading state pattern, i18n files, data fetching patterns, backend directory. Replace npm run with your project's package manager per CLAUDE.md.
Phase 1: Lead Analysis & Issue Triage
Complete BEFORE spawning teammates:
- Check cycle counter (prevents infinite remediation cycles):
- Read
./plancasting/_audits/runtime-remediation/loop-count.txt. If absent, this is run 1 — proceed. - If it contains
1or2, previous runs have completed — proceed. - If it contains
3, 3 runs have already completed — STOP immediately. Create./plancasting/_audits/runtime-remediation/remaining-blockers.mdand halt. Do not proceed to 6P or 6P-R. - Counter increment: Do not write to
loop-count.txthere. The counter is incremented at the END of Phase 4 (after verification completes) to ensure it tracks completed runs, not started runs. Important: The 3-cycle counter resets only after a full 6V re-run between 6R sessions — simply re-running 6R without a 6V re-run does not reset it.
- Read
- Read project context:
./CLAUDE.md,./plancasting/tech-stack.md,./plancasting/_audits/visual-verification/report.md Parse and categorize every failure: For each 6V failure, record the reference (SC/US/FEAT/FS/NS/AS/ES/RS-NNN), description, severity, and assign to 6V-A (auto-fix), 6V-B (semi-auto), or 6V-C (human judgment).
Quick triage rule: One-file edit, route addition, or wiring existing function -> 6V-A. Understanding multiple files or pattern-matching -> 6V-B. New business logic, architecture decisions, or trade-offs -> 6V-C.
Early exit: If zero 6V-A and zero 6V-B (all 6V-C): generate report noting no mechanical fixes, skip to 6P/6P-R.
- Group fixes by domain to prevent teammate conflicts:
- Navigation & Routing: middleware, route files, layout components, Link hrefs
- Component & UI: loading states, empty states, event handlers, i18n keys
- Backend & Data: mutations, type mismatches, auth context
- Ensure NO two teammates modify the same file.
- Establish baseline:
Abort gate: If baseline shows failures unrelated to 6V issues, STOP — pre-existing failures must be resolved before 6R can proceed.bun run typecheck > ./plancasting/_audits/runtime-remediation/baseline-typecheck.log 2>&1 bun run test > ./plancasting/_audits/runtime-remediation/baseline-tests.log 2>&1 - Create the remediation plan at
./plancasting/_audits/runtime-remediation/plan.mdwith triage summary, 6V-A/6V-B/6V-C issue tables, teammate assignments, and file->teammate mapping.
Phase 2: Spawn Remediation Teammates
Spawn up to 3 teammates based on triage. Teammates work in parallel on SEPARATE file sets.
Teammate 1: "navigation-routing-fixer"
Fixes: public routes blocked by middleware, dead links, broken hrefs, mobile nav gaps, sub-nav tab 404s, auth redirect issues. never use wildcard middleware whitelists. For public route fixes, verify in a fresh unauthenticated browser session.
Teammate 2: "component-ui-fixer"
Fixes: broken button handlers, missing loading/empty states, missing i18n keys, missing imports, TypeScript runtime errors, missing confirmation dialogs. never change visual design. Verify mutations exist before wiring buttons.
Teammate 3: "backend-data-fixer"
Fixes: wrong response shapes, auth context propagation, empty query results, missing error handling, subscription issues. never create business logic. never modify schema.
Each teammate runs bun run typecheck after EVERY fix. Each reports: fixes applied, files modified, issues escalated to 6V-C.
Phase 3: Integration & Verification
- Merge and validate: Verify no file conflicts. Run full validation:
If any check regresses from baseline, identify the causing fix, revert it, move to 6V-C.bun run typecheck bun run lint bun run test - Start the dev server: Check if running, start if needed. If it fails to start, mark fixes as "unverifiable" and proceed to report (unlike 6V/6P which ABORT, 6R proceeds because fixes are already applied to code).
Targeted re-verification: For each fix, use Playwright browser tools (navigate, screenshot, console check) to verify the issue is resolved. For public route fixes, use
browser_close+ fresh session. Quick regression sweep of ~5-10 key pages. If a fix didn't resolve the issue, revert and move to 6V-C.3-breakpoint verification: For UI fixes, verify at all 3 breakpoints (1440px desktop, 768px tablet, 375px mobile) to ensure responsive behavior is maintained.
Tier-based screenshot handling: For 6V-A fixes, a single screenshot at the primary breakpoint is sufficient. For 6V-B fixes, capture before/after screenshots at all 3 breakpoints. For fixes affecting responsive layout, always verify at mobile (375px).
- Update 6V report: Append remediation results section to
./plancasting/_audits/visual-verification/report.md. Update the## Gate Decisionsection: if all 6V-A/6V-B resolved and zero 6V-C remain, change to PASS. If 6V-C remain, change to CONDITIONAL PASS (6V-C remaining). - Generate remediation report at
./plancasting/_audits/runtime-remediation/report.mdwith summary, triage results, verification status, files modified, remaining issues by severity, cycle tracking, gate decision, rules extracted, and next steps. - Extract verified fix patterns as rules (see CLAUDE.md 'Path-Scoped Rules'):
For each verified 6V-A/6V-B fix, evaluate if the pattern is generalizable:
- Is this a tech-stack gotcha? -> rule candidate
- Is this a recurring pattern (same issue in 3+ routes)? -> rule candidate
- Is this a 6V-C revealing a tech-stack limitation? -> rule candidate
Route by confidence: HIGH (2+ features) ->
.claude/rules/, MEDIUM ->plancasting/_rules-candidates.md. 6R rules are inherently higher confidence than 5B rules (verified working fixes).
- Commit: Identify backend directory from
plancasting/tech-stack.md. Stage specific files (avoidgit add -A):git add src/ <backend-dir>/ plancasting/_audits/runtime-remediation/ plancasting/_audits/visual-verification/report.md .claude/rules/ plancasting/_rules-candidates.md git commit -m "fix: Stage 6R auto-remediation -- [n] issues resolved, [n] rules extracted" - Save commit hash:
git rev-parse HEAD > ./plancasting/_audits/runtime-remediation/last-remediated-commit.txt
Phase 4: Shutdown
- Request shutdown for all teammates.
- Verify all modifications saved and committed.
- Increment cycle counter: After all verification is complete, update
loop-count.txt. If absent, create with1. If exists, increment by 1. Only increment after Phase 3 verification fully completes — interrupted runs do not count. - Leave the dev server running if Stage 6P or 6P-R will run immediately.
Unfixable Violation Protocol
If a runtime issue requires architectural changes beyond this stage's scope:
- Document in
./plancasting/_audits/runtime-remediation/category-c-escalations.md - Mark as 'REQUIRES HUMAN DECISION'
- Include in final report under '6V-C Escalations'
- Continue fixing remaining 6V-A/6V-B issues — do not block the cycle
Post-3-Cycles Escalation
After 3 internal fix-verify cycles within a single 6R run, if 6V-A/6V-B issues persist, remaining 6V-A/B issues auto-escalate to 6V-C:
- Update escalated issues to 6V-C (human judgment required)
- Update gate to CONDITIONAL PASS
- Proceed to 6P/6P-R without further cycle attempts
- Create
remaining-blockers.mdlisting all unresolved issues - Operator must: (a) manually resolve, re-run 6V, then 6R if needed, OR (b) document as known limitations and proceed to 6P
- If 6R gate is FAIL after max cycles, do not re-run 6R — manually fix 6V-C issues first, re-run 6V, then 6R if needed
- Outer cycle tracking: Track outer cycle count by counting 6R report files or noting cycle number in report headers
Gate Decision
- PASS: All 6V-A and 6V-B issues resolved. Remaining 6V-C issues documented with rationale.
- CONDITIONAL PASS: Some 6V-B issues remain with workarounds documented. All 6V-A issues resolved.
- FAIL: 6V-A or 6V-B issues remain unresolved without workarounds.
Next Steps
- PASS: proceed to Stage 6P or 6P-R (Visual Polish or Redesign) -> Deploy -> 7V -> 7D
- CONDITIONAL PASS: human reviews remaining issues. Proceed to Stage 6P or 6P-R (one always runs), then Stage 7 if human accepts remaining issues.
- FAIL: human resolves 6V-C critical issues, then re-run 6V -> 6R
Critical Rules
- never make business logic decisions. Ambiguous fixes go to 6V-C.
- never weaken security. Adding public routes is fine if PRD says public. Removing auth guards is never acceptable.
- always preserve test baseline. Zero test regressions is non-negotiable.
- always typecheck after EVERY fix, not just at the end.
- always verify fixes in the running app, not just in code.
- never modify auto-generated files (
_generated/,.next/,node_modules/). - never create database schema changes.
- If a 6V-B fix introduces a NEW failure of EQUAL or HIGHER severity, revert and move to 6V-C.
- always read component/function context before fixing. Check git blame when a fix seems too simple.
- For i18n fixes: check ALL language files.
- For stub pages: always include auth guards, loading states, and error handling.
- If 6V report has zero failures, output a clean report and exit.
- Maximum 3 internal fix-verify cycles per run (tracked in
loop-count.txt— filename preserved for backward compatibility). - always respect the project's file organization conventions.
Output Specification
| Artifact | Path |
| Remediation Plan | ./plancasting/_audits/runtime-remediation/plan.md |
| Remediation Report | ./plancasting/_audits/runtime-remediation/report.md |
| 6V-C Escalations | ./plancasting/_audits/runtime-remediation/category-c-escalations.md |
| Remaining Blockers (after 3 cycles) | ./plancasting/_audits/runtime-remediation/remaining-blockers.md |
| Cycle Counter | ./plancasting/_audits/runtime-remediation/loop-count.txt |
| Baseline Typecheck Log | ./plancasting/_audits/runtime-remediation/baseline-typecheck.log |
| Baseline Tests Log | ./plancasting/_audits/runtime-remediation/baseline-tests.log |
| Last Remediated Commit | ./plancasting/_audits/runtime-remediation/last-remediated-commit.txt |
| Updated 6V Report | ./plancasting/_audits/visual-verification/report.md (appended) |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

