agentleFS
jnurre64jnurre64/sandbox-pal-action/skills/sp-review/SKILL.md

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.

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
  1. Distinctive:

    Check out the PR branch; fetch first.

    line 19
  2. Very specific:

    Read the ledger at .agent-data/review-ledger.json on the branch ({"cycles":0,"findings":[]} if absent).

    line 21
  3. Very specific:

    Read prompts/post-impl-review.md and follow it, mapping: $AGENT_ISSUE_TITLE/$AGENT_ISSUE_BODY/$AGENT_COMMENTS = issue fields.

    line 24

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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-N or feature/N-…, or Closes #N in the PR body) and fetch its title/body/comments and the <!-- agent-plan --> comment.
  • Read the ledger at .agent-data/review-ledger.json on 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; mark verified_fixed ids fixed; append new findings as F<next> with status open; re-open reopened ids — reopened covers BOTH a demonstrably-wrong rejection AND a claimed-fixed finding the review found not genuinely fixed (per prompts/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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.