haacked/dotfiles/review-fix-cycle
Claude Code and agent skill by haacked/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Run one review-fix iteration — review code, fix findings, simplify, clean comments, and commit.
Install
npx vskill@latest install haacked/dotfiles/review-fix-cycleSKILL.md
Review-Fix Cycle
Run one full review-fix-simplify-commit cycle. Designed to be invoked repeatedly (with fresh context each time) by the review-fix-loop.sh wrapper script, but can also be run standalone.
Arguments:
<review-target>— Anything/review-codeaccepts: PR URL, PR number, branch name, commit, range. If omitted, auto-detects (see Step 1).--iteration N— Iteration number (default 1). Used for logging and status tracking.
Implementation
Step 1: Parse Arguments
Extract from $ARGUMENTS:
--iteration N(default to1)- Everything else is the review target
Determine the review target:
- If an explicit target was provided, use it as-is.
- If no target, auto-detect:
- If a PR number is returned, use that as the target.
- Otherwise, use the current branch name:
git branch --show-current
Save the resolved target as $REVIEW_TARGET.
Set up the notes directory:
Step 2: Run Review
Invoke the review-code skill:
Using --append ensures each iteration builds upon the previous review. The review agents receive the existing review as context and focus only on NEW findings — they skip already-raised issues, update status for resolved ones, and avoid duplicating work.
Wait for the review to complete before proceeding.
Step 3: Locate and Read the Review File
Get the review file path:
Parse the JSON output and extract the file_path field. Then use the Read tool to read the review file contents.
Step 4: Triage Findings
Parse the review markdown for findings from the latest review section only. When --append is used, the file may contain prior review sections separated by ---. Focus on findings after the last separator (or the entire file on the first iteration).
Findings are prefixed with code-formatted severity markers:
- `
blocking` — Must fix. Bugs, security issues, breakage. - `
suggestion` — Worth considering. Author's call. - `
nit` — Minor style/naming. Take it or leave it. - `
question` — Clarification needed. Not necessarily a problem.
Categorize each finding:
Fix (always):
- All
blockingfindings suggestionfindings that fix correctness, security, or clarity issuessuggestionfindings with concrete code improvements that make the code simpler or cleanernitfindings that are clearly correct and easy to apply
Skip (only when):
- The suggestion is factually wrong or based on a misunderstanding of the code
- The suggestion is genuinely ambiguous and could go either way
- The suggestion would make the code worse (more complex, less readable)
questionfindings (these are informational, not actionable)
Count the findings: $TOTAL_FINDINGS, $TO_FIX, $TO_SKIP.
If zero actionable findings: Jump to Step 8 and write the status file with "clean": true, "fixed": 0, "skipped": 0, "committed": false. Skip Steps 5, 6, and 7.
Step 5: Apply Fixes
Process findings in priority order: blocking first, then suggestions, then nits.
For each actionable finding:
- Read the referenced file at the indicated line
- Apply the fix:
- Use the concrete code fix from the review if one is provided (blocking and suggestion findings always include one)
- For nits, use the description to determine the appropriate change
- Verify the fix makes sense in context before writing it
For each skipped finding, note the title, reason, source, and file/line in memory. The skipped log is written after the commit (see Step 7a) to avoid accidentally staging it.
Step 6: Simplify
Invoke the simplify skill to review the changes just made:
Apply any improvements it suggests.
Then clean the comments on the result:
It defaults to the uncommitted diff, so a looped iteration cleans that iteration's fixes rather than re-deciding the whole branch every pass. Carry the items it hands back for the author's call into Step 7a; terminal output does not survive a fresh-context iteration.
Step 7: Commit
Invoke the commit skill with force mode:
Step 7a: Write Skipped Findings Log
After the commit, append any skipped findings to .notes/review-skipped.md. Writing after the commit ensures the log file is never accidentally staged alongside the code changes.
For each skipped finding noted in Step 5, and each comment Step 6 handed back for the author's call, append:
Use append mode (do not overwrite previous iterations).
Step 8: Write Status File
Write the status file to .notes/review-cycle-status.json:
Use the Write tool to create $REPO_ROOT/.notes/review-cycle-status.json:
Where:
cleanistrueif zero actionable findings were foundcommittedistrueif a commit was made (false if clean or all skipped)
Record that the review step finished, so /ran and /go can tell a completed pass from one that was interrupted at the prompt. This run satisfies the review-code step, which is why it records under that name:
Run it whenever the review itself completed, including the clean case. Skip it if you stopped before Step 2's review returned. A non-zero exit is worth one line in the summary and nothing more.
Report the iteration summary to the user:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingai/skills/review-fix-cycle/SKILL.md
Popularity
- Repository stars
- 129
- Repository forks
- 22
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/haacked/dotfiles/review-fix-cycle)