sp-review
Skill3 starsChanged 3 months agoMITView on GitHub
Interactively run one sandbox-pal ADVERSARIAL REVIEW pass (plus optional fix pass) on an agent PR before merge. Fallback/recovery path for the headless review loop — same prompts, same ledger. Use when headless dispatch is unavailable or a review cycle needs a manual re-run.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- discord-bot/AGENTS.mdAGENTS.md
- prompts/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- slack-bot/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- discord-bot/CLAUDE.mdCLAUDE.md
- prompts/CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- slack-bot/CLAUDE.mdCLAUDE.md
- setupSkill
- sp-post-mergeSkill
- sp-reviseSkill
- sp-statusSkill
- sp-workSkill
- testSkill
- troubleshootSkill
- updateSkill
- sp-cleanupSkill
- sp-implementSkill
- sp-reviseSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Check out the PR branch; fetch first.
- Very specific: line 21
Read the ledger at .agent-data/review-ledger.json on the branch ({"cycles":0,"findings":[]} if absent).
- Very specific: line 24
Read prompts/post-impl-review.md and follow it, mapping: $AGENT_ISSUE_TITLE/$AGENT_ISSUE_BODY/$AGENT_COMMENTS = issue fields.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
sp-review — interactive adversarial review pass
Runs ONE review pass of the sandbox-pal review loop in THIS session using the same prompts/post-impl-review.md the headless loop uses. Review requires independence: run this in a FRESH session that did NOT implement the changes, or dispatch the review into a subagent.
Steps
1. Resolve the sandbox-pal install
Same resolution as sp-implement: $SANDBOX_PAL_HOME/prompts/, ~/agent-infra/prompts/, ~/repos/sandbox-pal-action/prompts/.
2. Gather phase context
gh pr view <PR> --repo <REPO> --json title,body,headRefName,number- Check out the PR branch; fetch first.
- Locate the linked issue (branch name
agent/issue-Norfeature/N-…, orCloses #Nin the PR body) and fetch its title/body/comments and the<!-- agent-plan -->comment. - Read the ledger at
.agent-data/review-ledger.jsonon the branch ({"cycles":0,"findings":[]}if absent).
3. Execute the review pass
Read prompts/post-impl-review.md and follow it, mapping: $AGENT_ISSUE_TITLE/$AGENT_ISSUE_BODY/$AGENT_COMMENTS = issue fields; $AGENT_PLAN_CONTENT = plan comment; $AGENT_REVIEW_LEDGER = ledger contents. Produce the JSON verdict the prompt specifies.
4. Update the ledger and act on the verdict
- Merge your verdict into the ledger exactly as the loop does: bump
cycles; markverified_fixedids fixed; append new findings asF<next>with statusopen; re-openreopenedids —reopenedcovers BOTH a demonstrably-wrong rejection AND a claimed-fixed finding the review found not genuinely fixed (perprompts/post-impl-review.md); a not-genuinely-fixed finding must never be re-reported as a new finding instead. Commit only the ledger file:git add -f .agent-data/review-ledger.json && git commit -m "chore(agent): review ledger — interactive review pass"and push. - No open blocking findings → report "review clean" with the ledger summary; the PR is ready for the human gate.
- Open blocking findings → tell the user to run
/sp-revise <PR>in a fresh session (that skill runs the fix pass against the ledger), or fix here only if the user explicitly waives fresh-context discipline.
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.

