Coding Fox codingfox Want to train your team?
Field Guide · Prompt Library practice reps

Agentic Coding
Prompt Library.

Prompts for Claude Code and Codex that make the agent do the boring useful thing: inspect first, stay scoped, show evidence, and hand off cleanly.

Caveat: prompts are not magic words. Treat each one like a bench tool: pick it for a specific job, use it on real work, mark what proof came back, and tighten the next rep when the agent drifts.
Claude Code + Codex copy buttons included use, mark, repeat scoped work with proof public-facing, no local paths
Use these as starting positions. Replace the bracketed parts, delete what does not apply, then mark the rep: which command, screenshot, review finding, related guide, or dojo exercise proved the work?
0

Start with these three

If you are not sure which prompt to use, start here. These cover the loop most agentic coding work needs: scope the work, review the result, preserve the handoff.

1

Build a Scoped Ticket

Use when the task is real implementation work and you can name what "done" looks like. It tells the agent to inspect before editing, hold the scope boundary, and define done with evidence.

Scoped implementation prompt

Best default for a feature, fix, or cleanup with clear acceptance criteria. Pair it with the Codex or Claude guide when the repo has project-specific commands.

Proof step: after the run, keep the verification line that would convince a reviewer.
You are working in [repo/project]. Build exactly this scoped ticket:

[paste ticket or task]

Acceptance criteria:
- [observable result 1]
- [observable result 2]
- [test, check, screenshot, or command that proves it]

Constraints:
- Do not edit unrelated files.
- Do not change shared behavior unless the acceptance criteria require it.
- Preserve existing patterns and naming unless there is a concrete reason not to.
- If you find unrelated broken code, note it in the final report instead of fixing it.

Workflow:
1. Inspect the relevant files first.
2. State the smallest implementation plan.
3. Make the change.
4. Run the narrowest useful checks, plus broader checks if the touched code is shared.
5. Finish with changed files, verification evidence, and remaining risks.
Practice move

Acceptance criteria should describe user-visible or test-visible outcomes. "Make it better" is not a ticket; it is a weather report. Use this as a Dojo rep when you are learning to turn vague work into proof-backed scope.

2

Adversarial Review

Use when you have a diff, branch, or finished agent pass and want real problems surfaced before merge.

Sharp review prompt

Works well as a fresh Claude Code or Codex pass after another agent made changes. It belongs after implementation, not before the agent has something concrete to inspect.

Proof step: count only findings with file/line evidence, repro steps, or a named missing proof.
Review this work as a skeptical senior engineer. Your job is to find what could break, not to summarize the diff.

Scope:
- Branch/diff: [describe or paste link]
- Intended behavior: [what the change is supposed to do]
- Files or areas most likely affected: [optional]

Prioritize:
- correctness bugs and edge cases
- data loss, privacy, security, or permission mistakes
- broken user flows, mobile behavior, or browser regressions
- missing tests or weak verification
- unnecessary scope creep

Rules:
- Findings first, ordered by severity.
- Use file/line references or concrete evidence.
- Do not invent issues. If you are unsure, say what evidence would confirm it.
- If there are no blocking issues, say that clearly and name the residual risk.
Review standard: a useful review is allowed to be short. One real bug beats ten style preferences dressed up as architecture. For review habits, run this beside the Dojo review exercises.
3

Compare Two Solutions

Use after two agents, two branches, or two possible designs have produced enough evidence to compare. The goal is a decision, not an average.

Judge two options

Good for Claude-vs-Codex builds, competing PRs, or design alternatives. Use the Workforce guide when the options came from parallel streams.

Proof step: save the reason for the choice, not just the winning option.
Compare Solution A and Solution B. Pick the winner, merge the best parts, or reject both.

Problem:
[state the original task]

Solution A:
[paste summary, diff, branch, or notes]

Solution B:
[paste summary, diff, branch, or notes]

Judge by:
- correctness against the acceptance criteria
- maintainability
- smallest safe diff
- fit with existing project patterns
- verification evidence
- risk of hidden follow-up work

Rules:
- Do not compromise by averaging.
- Make a concrete recommendation.
- Explain the decision with evidence.
- End with the next action: choose A, choose B, merge specific parts, or ask for one missing proof.
Better input

Give both options the same original task, acceptance criteria, and verification notes. Otherwise the judge is comparing shadows.

4

Create a Skill

Use when you keep pasting the same workflow or correcting the same agent behavior. A good skill is short, triggered by the right words, and loads detail only when needed.

Skill authoring prompt

For Claude Code skills, Codex skills, or a project-local repeatable procedure. Pair this with the relevant field guide section before promoting a habit into durable instructions.

Proof step: test the trigger in a fresh session before calling the skill reusable.
Create a skill for this repeated workflow:

Workflow name:
[name]

When I want it used:
[phrases I will say, situations, file types, or repo areas]

What the skill should do:
1. [step]
2. [step]
3. [step]

Inputs it may need:
- [argument, file, ticket id, branch, URL, etc.]

Hard rules:
- [things it must always do]
- [things it must never do]

Output format:
- [report, checklist, patch, PR description, test plan, etc.]

Please produce:
1. A concise skill description that will trigger correctly.
2. A SKILL.md body that stays under 500 lines.
3. Any reference files or scripts that should exist, with filenames and purpose.
4. A quick test plan for validating the skill in a fresh session.
Keep it lean: if the skill becomes a manual, split background material into references. The main file should tell the agent how to work, not warehouse every fact. A good Dojo rep is to run the skill once cold and cut anything the agent did not need.
5

Write or Refine AGENTS.md / CLAUDE.md

Use for durable project instructions after a mistake has repeated or a repo rule is easy to miss. These files should prevent repeat mistakes, not become a junk drawer for everything anyone once said.

Durable instructions prompt

Use when creating or pruning project agent guidance. Keep one hand on the Codex or Claude guide so durable memory, skills, and ordinary docs each do the right job.

Proof step: mark each kept rule with the mistake it prevents.
Help write or refine durable agent instructions for this repo.

Target file:
[AGENTS.md / CLAUDE.md / nested project instruction file]

Project facts that are always true:
- [stack, package manager, framework, deployment target]
- [commands that matter]
- [testing or verification requirements]
- [style or architecture rules that differ from defaults]

Common mistakes agents have made:
- [mistake]
- [mistake]

Rules:
- Keep only instructions that would prevent real mistakes.
- Remove generic advice like "write clean code" or "be careful."
- Put optional procedures in skills or docs instead of this file.
- Keep the wording direct and scoped.
- If a rule only applies to one folder, suggest a nested instruction file.

Deliver:
1. The revised instruction file content.
2. A short explanation of what was kept, cut, or moved.
3. Any follow-up skills or docs that should exist instead of bloating this file.
Cut test

Ask: Would removing this line likely cause a mistake? If not, it probably does not belong in durable memory. If it is a procedure, make it a skill or link it from the guide instead.

6

Create an Automation or Routine

Use for scheduled or recurring agent work when the same inspection keeps needing attention. The important part is not the schedule; it is the artifact the human will actually read.

Automation design prompt

Use before creating a Codex automation, Claude routine, monitor, or recurring check. Start here before wiring the routine into the tools described in the field guides.

Proof step: name the output artifact someone will actually read or act on.
Design an automation/routine for this recurring job:

Goal:
[what should be inspected or produced]

Cadence or trigger:
[daily, weekly, on PR, on CI failure, when file changes, etc.]

Inputs:
- [repo, branch, issue label, dashboard, docs page, logs, etc.]

Expected output artifact:
- [short report, PR comment, issue, checklist, dashboard summary, patch, etc.]

Definition of useful:
- [what would make me actually read or act on the output]

Safety boundaries:
- [read-only vs may edit]
- [approval required before external action]
- [files, branches, environments, or commands off limits]

Design the automation with:
1. Trigger and scope.
2. Exact prompt/instructions.
3. Required tools or integrations.
4. Failure behavior.
5. A sample output format.
6. A deletion rule: when this automation should be retired.
Routine rule: if the output is a transcript nobody reads, delete it. Automation should reduce attention load, not manufacture another inbox. The Dojo version is simple: run it once manually and see whether the artifact earns its place.
7

Recover a Stuck Agent

Use when an agent loops, stalls, keeps testing the wrong thing, or explains the obstacle instead of moving around it. This is a reset prompt, not a pep talk.

Unstick and re-scope prompt

Use in the same session before abandoning the run. It is especially useful when a browser check, test command, or install step keeps failing without new evidence.

Proof step: record the failed path and the different next path before continuing.
You are stuck. Stop trying the same path.

Current goal:
[state the goal]

What has failed so far:
[commands, errors, dead ends, missing context]

Do this now:
1. Summarize the blocker in one paragraph with evidence.
2. List three alternate paths around it.
3. Pick the fastest path that preserves correctness.
4. State the smallest next command or edit.
5. Continue only on that path.

Rules:
- Do not repeat a failed command unless something changed.
- Do not broaden scope.
- Do not ask me to do manual work unless the environment truly blocks you.
- If the correct move is to stop, produce a handoff with exact current state and next required input.
Escalation move

If the same blocker repeats, ask for an evidence packet: last command, exact output, files touched, and one next hypothesis. Save that packet into the handoff if another agent takes over.

8

Summarize a Long Session

Use before compaction, handoff, switching agents, or stepping away. Good summaries preserve state, decisions, evidence, and the next useful move.

Handoff summary prompt

Useful before context compaction or moving work from chat into a ticket. It also works as the bridge between a Dojo exercise and a real repo follow-up.

Proof step: a fresh agent should be able to resume from the next-step list alone.
Summarize this session for a fresh agent who must continue without rereading the whole conversation.

Include:
- Objective and current status.
- Decisions made and why.
- Files changed, with purpose.
- Commands/checks run and their results.
- Bugs, blockers, or failed attempts.
- Open questions and assumptions.
- Exact next steps, in order.
- Things not to touch or revert.

Rules:
- Be concrete.
- Do not include chat filler.
- Distinguish facts from guesses.
- Preserve any user constraints verbatim if they affect future work.
- If code changed, include the verification gap that remains.
Good handoff: a fresh agent should know where to start, what not to undo, which guide constraints still apply, and what proof is still missing.
9

Run a Dynamic Workflow

Use this only when the task is big enough for workflow-scale orchestration: independent lanes, clear evidence, and a real reason to spend more usage. /effort ultracode is not "try harder"; it is "let Claude decide whether this deserves a Dynamic Workflow."

Mental model: subagents delegate work. Dynamic Workflows delegate the orchestration itself. If the work is sequential or same-file, do not launch the parade.

Ultracode gate prompt

Use after setting Claude Code to Opus 4.8 and /effort ultracode, or when asking Claude to create a Dynamic Workflow directly. The first job is deciding whether a workflow is justified.

Proof step: require the workflow graph, workers used, changed files, and evidence before accepting the result.
You are running Claude Code with Opus 4.8 and Dynamic Workflows available.

Use ultracode as orchestration, not as "try harder."
Subagents delegate work. Dynamic Workflows delegate the orchestration itself.

First decide whether this task deserves a workflow.

Use a Dynamic Workflow only if the task has:
- 3+ independent lanes
- clear file ownership or no file edits
- useful cross-checking between agents
- evidence each phase can return
- enough value to justify higher usage

Task:
[paste the task]

Acceptance criteria:
- [observable result 1]
- [observable result 2]
- [tests, screenshots, checks, or review evidence required]

Before launching the workflow:
1. State the independent lanes.
2. Name files or directories that must have one owner only.
3. Name anything that must stay serial.
4. Set a max scope and stopping condition.
5. Tell me what evidence will prove the workflow helped.
6. Tell me when you will stop and ask me instead of continuing.

During execution:
- Use subagents only for independent lanes.
- Do not assign two agents to edit the same file.
- Use reviewers or adversarial agents for high-risk findings.
- Stop and ask before deploys, migrations, billing, production data, or external sends.

Final report:
- orchestration graph / lanes used
- agents or workflow stages launched
- changed files and owner per lane
- checks run and results
- findings rejected as false positives
- remaining risks
- whether you would use a workflow again for this class of task
Use sparingly: Dynamic Workflows can run many agents and burn meaningfully more usage than a normal Claude Code session. For small edits, same-file work, or unclear goals, use a normal session, subagent, or worktree split instead.
10

Plan a Worktree Split

Use before parallel agents touch the repo. Worktrees only help when ownership, proof, and merge order are clean.

Parallel worktree planner

Use when two or more agents can work independently. Pair it with the Workforce guide when the split includes different roles or review passes.

Proof step: each stream needs owned files, proof, and merge order.
Plan a worktree split for this project.

Overall objective:
[what we are trying to ship]

Candidate workstreams:
- [stream A]
- [stream B]
- [stream C]

Repo constraints:
- [shared files, generated files, migrations, app shells, routing, design system, etc.]

For each worktree, define:
1. Branch/worktree name.
2. Owner role.
3. Exact files or directories it may edit.
4. Files it must not edit.
5. Acceptance criteria.
6. Verification command or browser evidence.
7. Merge order and conflict risk.

Rules:
- Do not assign two agents to the same file unless one is read-only.
- Keep shared abstractions in their own workstream.
- Identify any workstream that should happen serially instead of in parallel.
- End with the commands or app steps to create the worktrees.
Parallelism test

Independent output, independent files, independent verification. If any of those are false, you may be creating merge debt. Use a Dojo rep here before trying it on a messy production branch.

11

Verify UI with Browser Evidence

Use after frontend changes or content edits that affect layout. A code diff is not proof that the page renders, responds, or fits on mobile.

Browser verification prompt

Use with Codex browser tools, Playwright, Chrome, or any agent that can inspect a rendered page. This is the practical proof step for UI sections in the Codex and Claude guides.

Proof step: keep the viewport, action path, and screenshot or failure evidence together.
Verify this UI change with browser evidence.

Target:
- URL or route: [local URL / deployed preview / route]
- Change to verify: [what should be visible or interactive]

Check:
- Desktop viewport: [size if important]
- Mobile viewport: [size if important]
- Core interaction path: [click/type/scroll/filter/open/submit]
- Console errors.
- Network or asset failures if relevant.
- Text overflow, clipping, overlap, or layout shift.
- Visual state before and after interaction.

Evidence required:
- Screenshot description or screenshot path if the tool captures one.
- Exact browser actions performed.
- Any console/network errors found.
- Pass/fail against each acceptance criterion.

Rules:
- Do not call it verified from code inspection alone.
- If the app cannot run, report the command tried and exact failure.
- If something looks wrong, identify the selector/area and propose the smallest fix.
Browser rule: "tests pass" and "the UI is usable" are different claims. Make the agent prove the one you actually need, then keep the screenshot or failure note with the task.