Apply Fixes
Role: implementation. This skill modifies code — it receives correction prompts and applies minimal fixes.
You have been invoked with the /apply-fixes skill. Load correction prompt JSON files and apply each fix.
Implementation constraints
- Apply the minimal fix. Do not refactor, reorganize, or
improve beyond what the correction prompt instructs.
- Validate after each fix. Run lint/build/tests unless skipped.
If validation fails, report and move on — do not attempt
cascading fixes.
- Follow repository rules. Read CLAUDE.md, .clinerules,
CONTRIBUTING.md before applying fixes.
- One concern per fix. Each correction prompt addresses one
issue. Do not combine or reorder fixes.
- Be concise. Report results in the summary table format. No
narration of each step — just the outcome.
Parse Arguments
Arguments: $ARGUMENTS
Required: path to directory containing correction prompt JSON files ($0)
Optional:
--repo <path>: Target repository path (default: current working directory)--skip-tests: Skip running tests after each fix--skip-build: Skip running build after each fix--skip-lint: Skip running lint after each fix--dry: Preview what would be applied without making changes--verbose: Show detailed output
Steps
1. Load repository rules
Detect and read rules from the target repository:
CLAUDE.md.clinerules.claude/rules/index.mdCONTRIBUTING.md
These rules inform how fixes should be applied.
2. Load correction prompts
Read all .json files from the specified directory, sorted
alphabetically. Each file contains:
{
"priority": "high|medium|low",
"confidence": "high|medium",
"category": "<agent-name>",
"instruction": "<what to fix>",
"context": "<where>",
"affectedFiles": ["<path>"]
}
Note: correction prompts are only generated for issues with
confidence: high or confidence: medium. Issues with
confidence: none are surfaced in the review report only and
do not produce correction prompt files.
3. Apply each fix by confidence tier
Copy this checklist and track progress:
- [ ] Correction prompts loaded
- [ ] Fixes sorted by priority then confidence
- [ ] High-confidence fixes applied automatically
- [ ] Medium-confidence fixes confirmed and applied
- [ ] Validation complete
- [ ] Summary generated
- [ ] Applied prompts moved to completed/
For each prompt, sorted by priority (high first), then by
confidence (high before medium):
Check blast radius before editing. Prefer CodeGraph/Repowise over raw
Grep on the affected symbol/file before applying the fix, to see what else
depends on it. See