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

sp-revise

Skill2 starsChanged 3 months agoMITView on GitHub

Interactively run the sandbox-pal FIX phase — address open blocking review-ledger findings on an agent PR (the post-impl-retry prompt), or address human PR review feedback (the review prompt). Fallback/recovery path for headless dispatch.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is 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.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If .agent-data/review-ledger.json on the PR branch has findings with severity: "blocking", status: "open" → ledger mode …

    line 18
  2. Distinctive:

    Check out the PR branch. Fetch the linked issue + plan comment as in sp-review.

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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-revise — interactive fix phase

Addresses findings on an agent PR in THIS session using the same prompt files the headless dispatch uses. Run in a FRESH session.

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. Pick the mode

  • If .agent-data/review-ledger.json on the PR branch has findings with severity: "blocking", status: "open" → ledger mode (prompts/post-impl-retry.md).
  • Else if the PR has human review feedback (changes requested / review comments) → feedback mode (prompts/review.md); set the linked issue's label to agent:revision first.

3. Gather context and execute

Check out the PR branch. Fetch the linked issue + plan comment as in sp-review.

  • Ledger mode: follow prompts/post-impl-retry.md with $AGENT_REVIEW_LEDGER = ledger contents and $AGENT_REVIEW_CONCERNS = the open blocking findings as - F<id>: <description> bullets. Apply the dispositions you produce to the ledger file (set status/justification per finding), commit the ledger, run the project's tests, push.
  • Feedback mode: follow prompts/review.md with $AGENT_REVIEWS/$AGENT_REVIEW_COMMENTS/$AGENT_PR_COMMENTS = the PR's reviews and comments; run tests; push; then restore the issue label to agent:pr-open.

4. Finish

  • Ledger mode: tell the user to run /sp-review <PR> again in a fresh session to verify (the loop's re-review), unless every finding was rejected-with-justification — those go to the human gate.
  • Report what changed, test evidence, and the ledger state.

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.