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

sp-implement

Skill2 starsChanged 3 months agoMITView on GitHub

Interactively run the sandbox-pal IMPLEMENT phase for an issue with an approved plan. Fallback/recovery path for the headless dispatch — same prompt, same label transitions, human-triggered. Use when headless dispatch is unavailable or a failed implement run needs a manual re-run.

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

    Stop and ask the user if none exists.

    line 19
  2. Very specific:

    Run the project's test command (see the repo's CI or AGENT_TEST_COMMAND in the runner config).

    line 33

≈ “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-implement — interactive implement phase

Runs the implement phase of the sandbox-pal pipeline in THIS session, using the same prompt file the headless dispatch uses. For clean-context discipline, run this in a FRESH session (or dispatch it into a subagent).

Steps

1. Resolve the sandbox-pal install

Prompt files live next to the dispatch scripts. Check in order:

  • $SANDBOX_PAL_HOME/prompts/ if the env var is set
  • ~/agent-infra/prompts/ (runner-style install)
  • A local checkout: ~/repos/sandbox-pal-action/prompts/ Stop and ask the user if none exists.

2. Gather phase context

With <issue-number> (and repo from the argument, else the current directory's origin):

  • gh issue view <N> --repo <REPO> --json title,body,comments,labels
  • The issue must carry agent:plan-approved (or the user explicitly overrides).
  • Extract the plan: the LAST comment containing <!-- agent-plan -->.
  • Extract the branch marker <!-- agent-branch: ... --> from that comment. If present, check out that branch (fetch + pull). If absent, create/checkout agent/issue-<N> off latest main.
  • Set the label: gh issue edit <N> --repo <REPO> --remove-label agent:plan-approved --add-label agent:in-progress

3. Execute the phase

Read prompts/implement.md from the install. Follow it as your instructions, with this mapping for its environment references: $AGENT_ISSUE_TITLE/$AGENT_ISSUE_BODY/$AGENT_COMMENTS = the issue fields you fetched; $AGENT_PLAN_CONTENT = the extracted plan; $AGENT_ISSUE_NUMBER = <N>; attached-data variables = any gists/attachments you download from the issue comments. Follow the project's TDD rules; commit per red-green cycle.

4. Finish

  • Run the project's test command (see the repo's CI or AGENT_TEST_COMMAND in the runner config). All green before proceeding.
  • Push the branch; open a PR titled after the issue with Closes #<N>, or report why not.
  • Label: gh issue edit <N> --repo <REPO> --remove-label agent:in-progress --add-label agent:pr-open
  • The adversarial review phase is separate — run /sp-review <PR> next (in a fresh session).

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.