agentleFS
jnurre64jnurre64/sandbox-pal-action/prompts/CLAUDE.md

sandbox-pal-action / prompts

CLAUDE.md3 starsChanged 3 months agoMITView on GitHub

Default agent prompts for each dispatch phase. Each prompt is passed to claude -p via the load_prompt function in scripts/lib/common.sh. Prompts do not read environment variables. The dispatch script writes the issue, plan, PR and review text to .agent-data/context/ before every phase (scripts/lib/phase-context.sh), and prompts name those files for the Read tool. A BATS test fails if a prompt names a file the script does not write, or mentions $AGENT_. Triage and reply prompts MUST output a JSON object (no…

  • Reads credentials

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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:

    Default agent prompts for each dispatch phase.

    line 3

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md 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
CLAUDE.md

Prompts

Default agent prompts for each dispatch phase. Each prompt is passed to claude -p via the load_prompt function in scripts/lib/common.sh.

Prompt-to-Phase Mapping

PromptDispatch PhaseToolsPurpose
triage.mdnew_issueRead-onlyAnalyze issue, output questions or write plan to .agent-data/plan.md
reply.mdissue_replyRead-onlyEvaluate if clarifying questions are answered
implement.mdimplementRead-writeExecute approved plan using TDD
review.mdpr_reviewRead-writeAddress PR review feedback with targeted fixes
validate.mddirect_implementRead-onlyValidate pre-written plan against codebase
adversarial-plan.mdimplement (pre-gate)Read-onlyFresh-session adversarial review of plan vs issue
post-impl-review.mdimplement (post-gate)Read-onlyFresh-session review of diff vs issue/plan
post-impl-retry.mdimplement (retry)Read-writeAddress post-impl review concerns
test-fix.mdimplement (test gate retry)Read-writeFix a failing pre-PR test gate without reverting the implementation

Phase Context

Prompts do not read environment variables. The dispatch script writes the issue, plan, PR and review text to .agent-data/context/ before every phase (scripts/lib/phase-context.sh), and prompts name those files for the Read tool. A BATS test fails if a prompt names a file the script does not write, or mentions $AGENT_.

Output Format Convention

Triage and reply prompts MUST output a JSON object (no markdown, no code fences) with an action field. The dispatch script parses this to determine the next state transition. Implementation and review prompts output plain text summaries.

Custom Prompts

Projects can override any prompt via AGENT_PROMPT_* settings in config.env. Relative paths resolve against the config directory. See docs/customization.md.

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.