Review-to-fix loop
Take a proposed patch from review to a pull request safely: apply it in a throwaway git worktree, run the tests it reaches, measure the risk delta (graph relationships, contract findings, complexity), approve the exact result by its digest, then commit to a new branch and open the PR with evidence. Use for applying a suggested fix, verifying a patch from review or an assistant, 'is this change safe', or turning a diff into a PR.
At a glance
- Kind
- Skill · Ananke
skill - Reference
neo-pragnya-mcp/review-to-fix-loop·ananke://skill/neo-pragnya-mcp/review-to-fix-loop@1.0.0- Files
- 1 · 1.9 KB
- How it's used
- Skills load on demand: the agent sees this skill's name and description, and opens SKILL.md (and any bundled references or scripts) when a task matches.
Where it fits
- Task
- Work with GitWrite tests
- Lifecycle phase
- TestingVerification
- Role
- QA engineerReviewer
- Domain
- Developer tooling
- Platform
- Ananke PlexusClaude CodeGitHub Copilot
- Needs
- Nothing (text only)
Facets suggested from the item's own text and tags, not yet reviewed. Facets say where an item is relevant, not that it will run in your setup. How facets work
Checked by Dex
Verified, not self-reported: dex-trove 0.3.16 installed this item into each layout and checked that the tool can load it. Dex collects no download or usage data.
- Claude Code ✓ loads
- GitHub Copilot ✓ loads
Documentation
View upstream ↗Uses Ananke Plexus (ananke triage patch) for the checks and the Dex GitHub MCP server (dex mcp serve github)
for the pull request. The working tree you’re in is never touched.
Steps
-
Save the patch as a unified diff:
git diff > fix.patch, or the suggestion from review. -
Evaluate it:
uvx --from ananke-plexus ananke triage patch fix.patch --run-testsIt applies the patch in a throwaway worktree at
--base(defaultHEAD), lists the tests the change reaches and runs them against the patched code, and compares relationships, contract findings and complexity before and after. It prints an approval digest. -
Read the risk list with the person who owns the change. A rise in complexity or a new link between components isn’t a failure, but it should be a decision.
-
When they approve, commit exactly what was evaluated:
ananke triage patch fix.patch --run-tests --approve sha256:… --branch fix/order-totals -m "Fix order totals"A different digest, a patch that changed, or tests that didn’t pass are refused.
-
Open the pull request with the
githubMCP tools:github_pr_preview, thengithub_pr_createwith the approval digest the server asks for, and attach the evaluation JSON as evidence.
Rules
- Never commit a patch whose tests weren’t run; “to run” isn’t “passed”.
- Don’t edit the patch after approval; evaluate it again.