Prompt templates
Reusable prompt templates with placeholders, built from prompts you paste or rewrite often.
README.md biomarker-record.md continue.md epic-orchestration.md fix-it.md frontend-design-invoke.md linear-tickets-first.md multi-phase-task-brief.md no-run-no-build.md pasted-plan.md readonly-audit.md research-with-subagents.md similar-to.md slides-combine.md subagent-routing.md thesis-review.md tickets-one-by-one.md what-is-this-app.md why-error.md
README.md ~3,478 tokens · drafts/prompts/README.md
Rendered
Prompt templates
Templates built from the prompts you reuse. Each file has: a one-line purpose, the template with {{placeholders}}, "Why this shape", and one or two real past uses (verbatim, trimmed, with conversation id and date, and whether they worked first try).
All templates are plain text and work in any agent. Tool-specific parts are flagged inside each file (@file is Zed, $skill is Codex, /skill is Claude Code, subagent and worktree features are Claude Code / T3 Code).
Templates
From the prompt groups marked "template" in workflows.json:
| File | Group | Use for |
|---|---|---|
| why-error.md | pg-why-error | Pasted error: diagnose, or diagnose and fix |
| what-is-this-app.md | pg-what-is-this-app | Orient in a repo before real work |
| no-run-no-build.md | pg-no-run-no-build | AGENTS.md block that replaces the per-prompt preamble |
| epic-orchestration.md | pg-orchestration-preamble | Lead agent, subagent per sub-issue, worktrees, PR with evidence |
| continue.md | pg-continue | Resume after a usage limit |
| fix-it.md | pg-fix-it | Go-ahead after a correct diagnosis |
| similar-to.md | pg-similar-to | Copy an existing pattern into a new place |
| biomarker-record.md | pg-biomarker-record | Script prompt: one field of a clinical record, PubMed-grounded |
| slides-combine.md | pg-slides-combine | Merge Slidev slides into one click-driven component |
| frontend-design-invoke.md | pg-frontend-design-invoke | UI work with the skill and a scope |
| pasted-plan.md | pg-pasted-plan | Apply a pasted plan, diff, or reference |
| thesis-review.md | pg-thesis-review | Review or mark one thesis chapter against a rubric |
Found with probe.py (long reused task prompts):
| File | Use for |
|---|---|
| tickets-one-by-one.md | Sequential Linear tickets, one PR each, merged as you go |
| subagent-routing.md | Split many similar units across subagents with named models and a review step |
| research-with-subagents.md | Sourced comparison or survey, one subagent per angle |
| readonly-audit.md | Read-only review or QA with a compact verdict |
| linear-tickets-first.md | Questions first, then tickets with dependencies and acceptance criteria |
| multi-phase-task-brief.md | Large multi-phase job (your own # Task: prompt shape) |
Skill candidates (see workflows.json, not templates): pg-commit-all, pg-do-you-see, pg-do-you-get-what-i-mean, pg-implement-linear-url, pg-check-issues-exist, pg-persona-qa, pg-mcq-slide. readonly-audit.md is the generic form of pg-persona-qa.
What makes my prompts work first time
How this was checked: prompt_advice in workflows.json, plus a comparison with probe.py and analysis/stats/bad_conversations.csv. "First try" below means 1 to 3 of your messages in the conversation, no logged correction or frustration, ended completed. "Heavily corrected" means the conversation is in bad_conversations.csv (many corrections or frustration signals, or very long with corrections). The counts are small samples, not rates.
16 conversations that worked first time
| Conversation | Date | What the opening message had |
|---|---|---|
zed:681cf9dd | 2025-09-11 | Reference table, "exactly the same, only difference would be..." |
zed:f339e0d1 | 2025-09-14 | Four named files, exact lookup order, key prefix |
zed:ee8cbc1a | 2025-10-01 | One file, the exact condition and the route to go to |
zed:37e22a48 | 2025-08-29 | Named file plus the full error with the import trace |
zed:a2021748 | 2025-09-03 | Named file, the reason ("serverless, race conditions"), allowed options |
zed:8ed655b3 | 2025-12-16 | "Fix this error" with the whole type error and code frame |
zed:b631c178 | 2026-05-13 | Same: full type error, one file |
zed:b6465bd9 | 2026-01-24 | "just add the following code ... no need to do anything else" |
zed:fcaa31b8 | 2026-04-01 | Source @ANALYSIS.md, target @slides.md, "make sure it has all of the information" |
opencode:ses_02e656a4 | 2026-08-05 | Exact file, exact command, checklist, "Do not modify files", reply as JSON |
t3:1d8604ee | 2026-10-21 | Ticket URL plus the override ("instead of the cloudflare SDK use the local package") |
t3:224bde6b | 2026-10-06 | "First just make the ticket , with all info and confirm" |
t3:c667bf71 | 2026-10-21 | "First of all confirm if you understand" then "Proceed." and an explicit stop condition |
t3:f5e0e0e4 | 2026-11-21 | Where to find the work, "in parallel", "merge them", "delete their worktrees" |
t3:9e586e93 | 2026-11-19 | Research with the comparison dimensions listed |
t3:075789ca | 2026-11-07 | Research split by area, one subagent each; output location asked in one follow-up |
15 conversations that were heavily corrected
| Conversation | Date | Opening message | What went wrong (from corrections.csv) |
|---|---|---|---|
t3:a5c2935e | 2026-10-30 | "what is this application ? How would you improve this application UI ?" | Two asks in one; agent offered menus of optional changes, then did things not asked. 36 messages. |
t3:df389293 | 2026-09-29 | "put a gradient in the background in all of the screen from top" | No visual target; agent removed a header, changed Settings when you meant Legal. |
t3:48531fe7 | 2026-11-05 | "get familiarized with new biomarker pipeline ... throughly read the code" | No definition of done; agent treated output files as pipeline state; 74 messages. |
t3:48a7366c | 2026-10-24 | "Deploy this application via alchemy" | Open scope; made auth optional instead of removing it, bulk-edited with Python. |
t3:2fe357d0 | 2026-11-04 | "Find out where it is ... confirm you understand. Don't start explaining me it" | Agent mixed engine and pipeline scope; 62 messages. |
t3:74decd69 | 2026-09-04 | "can you check the tasks model" | Open-ended design; weaker model proposed, two datatypes for one thing; 61 messages. |
codex:01a01800 | 2026-08-19 | "read all of the code for status page" | Agent opened a preview before "no run" was stated; invented data sources. |
codex:019fb26f | 2026-07-30 | "in the server can u add it tha the logger should still print all of the logs to console" | Misread "frontend is incorrect" as dropping the server work; ignored apps/web/AGENTS.md. |
t3:5a3764ca | 2026-08-09 | "completely build the frontend ... replica of arxiv. Understood ?" | Built homepage, fake stats and server changes nobody asked for. |
codex:019fb5aa | 2026-07-31 | "create a new endpoint called report ... Understood ?" | Used a Hono route, not tRPC; browsed Mistral docs although the contract was pasted. |
t3:947c4304 | 2026-11-12 | "fully plan to make it a event sourced backend" | Long list of decisions; unverified claims in the plan. 66 messages. |
zed:9eade559 | 2026-04-01 | "after the Blocking and Non blocking section i want a code example" | Said it would edit and did not; weak example. |
t3:370f61a9 | 2026-11-02 | "I'm going to make this repository public , use stuff like gitleaks ... to make sure it's ready" | Open outcome; removed a CI step instead of using your private cache. |
t3:aeed2eb4 | 2026-11-23 | "check whether this is an actual issue or not ..." (a PR link) | Long technical reply; added a new test and kept the obsolete one. |
zed:3fef22c8 | 2026-03-23 | "Add a loading.tsx in protps , according to page.ts" | Created duplicate API routes instead of using existing server functions. |
What the two groups show
- Name the file and the exact change. Every first-try conversation names a file (or a ticket) and says what must happen. The corrected ones often name a topic ("the tasks model", "the pipeline", "this application").
- One ask per message.
t3:a5c2935easked "what is this" and "how would you improve" together. The second ask opened a menu of options and a long session. - Give a finished-state test. "Make it ready to be public", "completely build the frontend", "deploy this" have no end. Say how you will know it is done and what check is allowed.
- A "Understood ?" at the end is not a gate.
t3:5a3764caandcodex:019fb5aaboth end with it. Incodex:019fb5aathe agent replied "Understood: a newreportendpoint ..." and went on to implement it;t3:5a3764cabuilt pages nobody asked for. The gate that worked int3:c667bf71was "confirm if you understand what I meant" followed by your explicit "Proceed." Ask for a restatement and an explicit "do not do" list, then wait. - Paste the exact error, with the command that produced it, and say where it runs (local, production, CI).
- For UI, give a reference, a screenshot or a number.
t3:df389293(gradient), the slide-size loop inslides-combine.md, and the many "increase it slightly more" messages all came from adjectives. - When pasting a reference (HTML, plan, diff), say what to take and what to keep, or say "just add this code, nothing else" (
zed:b6465bd9). - State overrides and exclusions in the first message ("instead of the cloudflare SDK use the local package", "no legacy", "no tests").
t3:1d8604eedid;t3:bb2f089crevealed four constraints one at a time. - Say "answer only" or "diagnose only" when you want no edits. Phrases like "just asking" and "talk first" appear in 174 of your messages (131 conversations). The
pg-do-you-seegroup records the failure: the agent acts on a "just asking" question or asks you to paste code. - Do not resend a message while the agent is busy. It queues duplicates (
prompt_advice). Inclaudehist:3355e598(2026-05-16) one request went in three times within eight minutes. - For libraries newer than the model (Effect v4, Alchemy v2, AI SDK, Expo 57), give the docs URL or paste the section, or say "read the current docs first". Pasting vendor text worked in one message in
zed:5a6a7287(2025-08-29, a better-auth tutorial), butzed:0645a0fa(2025-09-27, a long docs page) needed "still an error" and a correction, so also say which parts of the pasted text to follow.
What should live in AGENTS.md so the prompts are shorter
Standing rules that keep appearing inside prompts. Move them out once; remove the lines from the templates when they are there. Rule ids are in analysis/synthesis/rules.json.
| Part of the reused prompt | Rule | Template that drops it |
|---|---|---|
| "Do not build / run / use Argent or Chromium", "no DB queries" | r-no-run-app-unless-asked, r-no-db-commands | no-run-no-build, slides-combine, frontend-design-invoke, why-error |
| "Just asking / talk first / answer only" | r-question-means-answer-only | why-error, what-is-this-app |
| "Only touch these files, do nothing else" | r-do-only-what-asked, r-protect-user-work | similar-to, pasted-plan, fix-it |
| "Confirm you understand and wait" for work over one file | r-plan-and-confirm-first | epic-orchestration, tickets-one-by-one, linear-tickets-first |
| Worktree per issue, PR with evidence, merge only on acceptance criteria, clean up worktrees and processes | r-orchestrator-delegates, r-pr-linear-flow, r-squash-merge-stacked, r-cleanup-worktrees-processes | epic-orchestration, tickets-one-by-one |
| Which model for which subagent, never switch | r-subagent-model-routing, r-no-subagents-unless-asked | epic-orchestration, subagent-routing |
| "Keep going until everything is done" | r-finish-everything | tickets-one-by-one, continue |
| "No Co-Authored-By", "commit all means all" | r-no-coauthor, r-commit-all-means-all, r-commit-only-when-asked | (commit prompts) |
| Read the named skill or AGENTS.md first | r-read-named-skill, r-read-before-editing | frontend-design-invoke |
| Match sibling components, keep logic, theme tokens, flat UI, loading/error files | r-ui-reuse-siblings, r-preserve-logic-in-redesign, r-theme-tokens-no-green, r-minimal-flat-ui, r-ui-states-separate-files | frontend-design-invoke |
| tRPC for endpoints, Drizzle for DB, Effect style | r-trpc-endpoints, r-drizzle-only, r-effect-native-everything | pasted-plan, new-endpoint prompts |
| Read current docs for changed libraries | r-check-current-docs | pasted-plan, research-with-subagents |
| Real citations, no invented PMIDs, checkpoint and retry in generation scripts | r-real-citations, r-pipeline-checkpoint-retry | biomarker-record, research-with-subagents |
| Thesis style (concise, no repetition) and Slidev rules (magic-move, v-click) | r-thesis-academic-style, r-slidev-magic-move, r-slides-concise-correct | thesis-review, slides-combine (put in the project's AGENTS.md, not global) |
| Linear ticket quality (acceptance criteria, dependencies) | r-linear-ticket-quality | linear-tickets-first |
| Default run and test commands, folder map, product constraints | drafts/context/*.md | what-is-this-app |
What stays in the prompt: the task itself, the target file or ticket, the reference and the list of differences, the exact error and where it runs, the allowed check for this task, the definition of done, and the models for this run if they differ from the default.
Note on enforcement: AGENTS.md is advice. The no-run rule was ignored even when you wrote it in caps (claudehist:690df3c9, 2026-07-22). For that rule, also deny the tool (remove the Argent or browser MCP from config in repos where it should not run, or deny shell commands in the permission settings). That configuration is specific to each tool.
# Prompt templates
Templates built from the prompts you reuse. Each file has: a one-line purpose, the template with `{{placeholders}}`, "Why this shape", and one or two real past uses (verbatim, trimmed, with conversation id and date, and whether they worked first try).
All templates are plain text and work in any agent. Tool-specific parts are flagged inside each file (`@file` is Zed, `[$skill](path)` is Codex, `/skill` is Claude Code, subagent and worktree features are Claude Code / T3 Code).
## Templates
From the prompt groups marked "template" in `workflows.json`:
| File | Group | Use for |
| --- | --- | --- |
| [why-error.md](why-error.md) | `pg-why-error` | Pasted error: diagnose, or diagnose and fix |
| [what-is-this-app.md](what-is-this-app.md) | `pg-what-is-this-app` | Orient in a repo before real work |
| [no-run-no-build.md](no-run-no-build.md) | `pg-no-run-no-build` | AGENTS.md block that replaces the per-prompt preamble |
| [epic-orchestration.md](epic-orchestration.md) | `pg-orchestration-preamble` | Lead agent, subagent per sub-issue, worktrees, PR with evidence |
| [continue.md](continue.md) | `pg-continue` | Resume after a usage limit |
| [fix-it.md](fix-it.md) | `pg-fix-it` | Go-ahead after a correct diagnosis |
| [similar-to.md](similar-to.md) | `pg-similar-to` | Copy an existing pattern into a new place |
| [biomarker-record.md](biomarker-record.md) | `pg-biomarker-record` | Script prompt: one field of a clinical record, PubMed-grounded |
| [slides-combine.md](slides-combine.md) | `pg-slides-combine` | Merge Slidev slides into one click-driven component |
| [frontend-design-invoke.md](frontend-design-invoke.md) | `pg-frontend-design-invoke` | UI work with the skill and a scope |
| [pasted-plan.md](pasted-plan.md) | `pg-pasted-plan` | Apply a pasted plan, diff, or reference |
| [thesis-review.md](thesis-review.md) | `pg-thesis-review` | Review or mark one thesis chapter against a rubric |
Found with `probe.py` (long reused task prompts):
| File | Use for |
| --- | --- |
| [tickets-one-by-one.md](tickets-one-by-one.md) | Sequential Linear tickets, one PR each, merged as you go |
| [subagent-routing.md](subagent-routing.md) | Split many similar units across subagents with named models and a review step |
| [research-with-subagents.md](research-with-subagents.md) | Sourced comparison or survey, one subagent per angle |
| [readonly-audit.md](readonly-audit.md) | Read-only review or QA with a compact verdict |
| [linear-tickets-first.md](linear-tickets-first.md) | Questions first, then tickets with dependencies and acceptance criteria |
| [multi-phase-task-brief.md](multi-phase-task-brief.md) | Large multi-phase job (your own `# Task:` prompt shape) |
Skill candidates (see `workflows.json`, not templates): `pg-commit-all`, `pg-do-you-see`, `pg-do-you-get-what-i-mean`, `pg-implement-linear-url`, `pg-check-issues-exist`, `pg-persona-qa`, `pg-mcq-slide`. `readonly-audit.md` is the generic form of `pg-persona-qa`.
## What makes my prompts work first time
How this was checked: `prompt_advice` in `workflows.json`, plus a comparison with `probe.py` and `analysis/stats/bad_conversations.csv`. "First try" below means 1 to 3 of your messages in the conversation, no logged correction or frustration, ended completed. "Heavily corrected" means the conversation is in `bad_conversations.csv` (many corrections or frustration signals, or very long with corrections). The counts are small samples, not rates.
### 16 conversations that worked first time
| Conversation | Date | What the opening message had |
| --- | --- | --- |
| `zed:681cf9dd` | 2025-09-11 | Reference table, "exactly the same, only difference would be..." |
| `zed:f339e0d1` | 2025-09-14 | Four named files, exact lookup order, key prefix |
| `zed:ee8cbc1a` | 2025-10-01 | One file, the exact condition and the route to go to |
| `zed:37e22a48` | 2025-08-29 | Named file plus the full error with the import trace |
| `zed:a2021748` | 2025-09-03 | Named file, the reason ("serverless, race conditions"), allowed options |
| `zed:8ed655b3` | 2025-12-16 | "Fix this error" with the whole type error and code frame |
| `zed:b631c178` | 2026-05-13 | Same: full type error, one file |
| `zed:b6465bd9` | 2026-01-24 | "just add the following code ... no need to do anything else" |
| `zed:fcaa31b8` | 2026-04-01 | Source `@ANALYSIS.md`, target `@slides.md`, "make sure it has all of the information" |
| `opencode:ses_02e656a4` | 2026-08-05 | Exact file, exact command, checklist, "Do not modify files", reply as JSON |
| `t3:1d8604ee` | 2026-10-21 | Ticket URL plus the override ("instead of the cloudflare SDK use the local package") |
| `t3:224bde6b` | 2026-10-06 | "First just make the ticket , with all info and confirm" |
| `t3:c667bf71` | 2026-10-21 | "First of all confirm if you understand" then "Proceed." and an explicit stop condition |
| `t3:f5e0e0e4` | 2026-11-21 | Where to find the work, "in parallel", "merge them", "delete their worktrees" |
| `t3:9e586e93` | 2026-11-19 | Research with the comparison dimensions listed |
| `t3:075789ca` | 2026-11-07 | Research split by area, one subagent each; output location asked in one follow-up |
### 15 conversations that were heavily corrected
| Conversation | Date | Opening message | What went wrong (from `corrections.csv`) |
| --- | --- | --- | --- |
| `t3:a5c2935e` | 2026-10-30 | "what is this application ? How would you improve this application UI ?" | Two asks in one; agent offered menus of optional changes, then did things not asked. 36 messages. |
| `t3:df389293` | 2026-09-29 | "put a gradient in the background in all of the screen from top" | No visual target; agent removed a header, changed Settings when you meant Legal. |
| `t3:48531fe7` | 2026-11-05 | "get familiarized with new biomarker pipeline ... throughly read the code" | No definition of done; agent treated output files as pipeline state; 74 messages. |
| `t3:48a7366c` | 2026-10-24 | "Deploy this application via alchemy" | Open scope; made auth optional instead of removing it, bulk-edited with Python. |
| `t3:2fe357d0` | 2026-11-04 | "Find out where it is ... confirm you understand. Don't start explaining me it" | Agent mixed engine and pipeline scope; 62 messages. |
| `t3:74decd69` | 2026-09-04 | "can you check the tasks model" | Open-ended design; weaker model proposed, two datatypes for one thing; 61 messages. |
| `codex:01a01800` | 2026-08-19 | "read all of the code for status page" | Agent opened a preview before "no run" was stated; invented data sources. |
| `codex:019fb26f` | 2026-07-30 | "in the server can u add it tha the logger should still print all of the logs to console" | Misread "frontend is incorrect" as dropping the server work; ignored `apps/web/AGENTS.md`. |
| `t3:5a3764ca` | 2026-08-09 | "completely build the frontend ... replica of arxiv. Understood ?" | Built homepage, fake stats and server changes nobody asked for. |
| `codex:019fb5aa` | 2026-07-31 | "create a new endpoint called report ... Understood ?" | Used a Hono route, not tRPC; browsed Mistral docs although the contract was pasted. |
| `t3:947c4304` | 2026-11-12 | "fully plan to make it a event sourced backend" | Long list of decisions; unverified claims in the plan. 66 messages. |
| `zed:9eade559` | 2026-04-01 | "after the Blocking and Non blocking section i want a code example" | Said it would edit and did not; weak example. |
| `t3:370f61a9` | 2026-11-02 | "I'm going to make this repository public , use stuff like gitleaks ... to make sure it's ready" | Open outcome; removed a CI step instead of using your private cache. |
| `t3:aeed2eb4` | 2026-11-23 | "check whether this is an actual issue or not ..." (a PR link) | Long technical reply; added a new test and kept the obsolete one. |
| `zed:3fef22c8` | 2026-03-23 | "Add a loading.tsx in protps , according to page.ts" | Created duplicate API routes instead of using existing server functions. |
### What the two groups show
1. Name the file and the exact change. Every first-try conversation names a file (or a ticket) and says what must happen. The corrected ones often name a topic ("the tasks model", "the pipeline", "this application").
2. One ask per message. `t3:a5c2935e` asked "what is this" and "how would you improve" together. The second ask opened a menu of options and a long session.
3. Give a finished-state test. "Make it ready to be public", "completely build the frontend", "deploy this" have no end. Say how you will know it is done and what check is allowed.
4. A "Understood ?" at the end is not a gate. `t3:5a3764ca` and `codex:019fb5aa` both end with it. In `codex:019fb5aa` the agent replied "Understood: a new `report` endpoint ..." and went on to implement it; `t3:5a3764ca` built pages nobody asked for. The gate that worked in `t3:c667bf71` was "confirm if you understand what I meant" followed by your explicit "Proceed." Ask for a restatement and an explicit "do not do" list, then wait.
5. Paste the exact error, with the command that produced it, and say where it runs (local, production, CI).
6. For UI, give a reference, a screenshot or a number. `t3:df389293` (gradient), the slide-size loop in `slides-combine.md`, and the many "increase it slightly more" messages all came from adjectives.
7. When pasting a reference (HTML, plan, diff), say what to take and what to keep, or say "just add this code, nothing else" (`zed:b6465bd9`).
8. State overrides and exclusions in the first message ("instead of the cloudflare SDK use the local package", "no legacy", "no tests"). `t3:1d8604ee` did; `t3:bb2f089c` revealed four constraints one at a time.
9. Say "answer only" or "diagnose only" when you want no edits. Phrases like "just asking" and "talk first" appear in 174 of your messages (131 conversations). The `pg-do-you-see` group records the failure: the agent acts on a "just asking" question or asks you to paste code.
10. Do not resend a message while the agent is busy. It queues duplicates (`prompt_advice`). In `claudehist:3355e598` (2026-05-16) one request went in three times within eight minutes.
11. For libraries newer than the model (Effect v4, Alchemy v2, AI SDK, Expo 57), give the docs URL or paste the section, or say "read the current docs first". Pasting vendor text worked in one message in `zed:5a6a7287` (2025-08-29, a better-auth tutorial), but `zed:0645a0fa` (2025-09-27, a long docs page) needed "still an error" and a correction, so also say which parts of the pasted text to follow.
### What should live in AGENTS.md so the prompts are shorter
Standing rules that keep appearing inside prompts. Move them out once; remove the lines from the templates when they are there. Rule ids are in `analysis/synthesis/rules.json`.
| Part of the reused prompt | Rule | Template that drops it |
| --- | --- | --- |
| "Do not build / run / use Argent or Chromium", "no DB queries" | `r-no-run-app-unless-asked`, `r-no-db-commands` | no-run-no-build, slides-combine, frontend-design-invoke, why-error |
| "Just asking / talk first / answer only" | `r-question-means-answer-only` | why-error, what-is-this-app |
| "Only touch these files, do nothing else" | `r-do-only-what-asked`, `r-protect-user-work` | similar-to, pasted-plan, fix-it |
| "Confirm you understand and wait" for work over one file | `r-plan-and-confirm-first` | epic-orchestration, tickets-one-by-one, linear-tickets-first |
| Worktree per issue, PR with evidence, merge only on acceptance criteria, clean up worktrees and processes | `r-orchestrator-delegates`, `r-pr-linear-flow`, `r-squash-merge-stacked`, `r-cleanup-worktrees-processes` | epic-orchestration, tickets-one-by-one |
| Which model for which subagent, never switch | `r-subagent-model-routing`, `r-no-subagents-unless-asked` | epic-orchestration, subagent-routing |
| "Keep going until everything is done" | `r-finish-everything` | tickets-one-by-one, continue |
| "No Co-Authored-By", "commit all means all" | `r-no-coauthor`, `r-commit-all-means-all`, `r-commit-only-when-asked` | (commit prompts) |
| Read the named skill or AGENTS.md first | `r-read-named-skill`, `r-read-before-editing` | frontend-design-invoke |
| Match sibling components, keep logic, theme tokens, flat UI, loading/error files | `r-ui-reuse-siblings`, `r-preserve-logic-in-redesign`, `r-theme-tokens-no-green`, `r-minimal-flat-ui`, `r-ui-states-separate-files` | frontend-design-invoke |
| tRPC for endpoints, Drizzle for DB, Effect style | `r-trpc-endpoints`, `r-drizzle-only`, `r-effect-native-everything` | pasted-plan, new-endpoint prompts |
| Read current docs for changed libraries | `r-check-current-docs` | pasted-plan, research-with-subagents |
| Real citations, no invented PMIDs, checkpoint and retry in generation scripts | `r-real-citations`, `r-pipeline-checkpoint-retry` | biomarker-record, research-with-subagents |
| Thesis style (concise, no repetition) and Slidev rules (magic-move, v-click) | `r-thesis-academic-style`, `r-slidev-magic-move`, `r-slides-concise-correct` | thesis-review, slides-combine (put in the project's AGENTS.md, not global) |
| Linear ticket quality (acceptance criteria, dependencies) | `r-linear-ticket-quality` | linear-tickets-first |
| Default run and test commands, folder map, product constraints | `drafts/context/*.md` | what-is-this-app |
What stays in the prompt: the task itself, the target file or ticket, the reference and the list of differences, the exact error and where it runs, the allowed check for this task, the definition of done, and the models for this run if they differ from the default.
Note on enforcement: AGENTS.md is advice. The no-run rule was ignored even when you wrote it in caps (`claudehist:690df3c9`, 2026-07-22). For that rule, also deny the tool (remove the Argent or browser MCP from config in repos where it should not run, or deny shell commands in the permission settings). That configuration is specific to each tool.
biomarker-record.md ~1,009 tokens · drafts/prompts/biomarker-record.md
Rendered
biomarker-record
Purpose: a script-generated prompt that asks an agent for exactly one field of a clinical knowledge-base record, grounded in PubMed. The script fills the placeholders per biomarker and per field. Not typed by hand; this is the shape to keep in the script.
You are compiling a rigorous clinical knowledge-base record for the biomarker "{{biomarker name}}"{{ with exact LOINC code "{{loinc}}"}}.
{{Treat that supplied LOINC code as fixed identity. Verify its official LOINC name, specimen, property, scale, and method before researching, and keep every field specific to that exact measurement. Never infer, replace, or invent the primary LOINC code.}}
Record so far (keep this field consistent):
{{JSON of the fields already generated, only the ones this field depends on}}
Produce ONLY the "{{field name}}" field.
Field intent: {{one sentence: who reads it, what it must contain, what to exclude}}.
{{Array fields: Return [] only when research finds no qualifying items. Do not pad with general advice.}}
{{Do not emit a `{{removed key}}` property; the item schema has no such field.}}
Research first with {{PubMed and Firecrawl}}. Ground factual claims in retrieved sources and never invent PMIDs.
You MUST finish with valid structured output matching the schema: {{schema or file path}}.
Why this shape
- Wording that stays the same across 50+ runs: role, "Produce ONLY the X field", field intent, "Research first ... never invent PMIDs", "MUST finish with valid structured output" (
pg-biomarker-record, items13.re2,12.re2). - The later version (
opencode:ses_095680bd, 2026-07-16) adds the fixed-LOINC paragraph; the earlier one (ses_0a781fb5, 2026-07-12) has none. That paragraph is a response to identity drifting between related tests (BNP vs NT-proBNP are different LOINC codes), so keep it for any biomarker that has near neighbours. - Per-field "Field intent" lines carry the corrections you made over time: "Do not emit a
nutrient_linksproperty" and "do not pad with general healthy-eating advice". Add a line whenever a field type fails. - First-try cannot be read from the prompt text. Each run is one scripted call, logged by the history as "abandoned" with no human follow-up. The failures were in the script: structured output combined with tool calls, timeouts, and batch lines like "failed NT-proBNP (33762-6) with exit code 1" (pasted by you into
codexhist:019f6aae, 2026-07-16, as "why am i geting this erro"). Items12.re2/13.re2say runs were restarted while debugging. Fix the script (checkpoint, retry, per-field timeout; rulesr-pipeline-checkpoint-retry,r-real-citations) rather than rewording the prompt. - Do not switch the model while debugging a failing run (
r-exact-versions-models).
Real uses
opencode:ses_0a781fb54ffeCQB7RV73QshuUk, 2026-07-12 (field 6/31,full_display_name). Single call, no human follow-up; first-try status unknown. > You are compiling a rigorous clinical knowledge-base record for the biomarker "C-Reactive Protein". Record so far (keep this field consistent): { "biomarker": "C-Reactive Protein", "loinc": "1988-5", "category": "inflammation", [...] } Produce ONLY the "full_display_name" field. Field intent: Unambiguous app-facing clinical name. Include a common abbreviation in parentheses only when useful; avoid codes, units, ranges, and marketing language. Research first with PubMed and Firecrawl. Ground factual claims in retrieved sources and never invent PMIDs. You MUST finish with valid structured output.opencode:ses_095680bdaffeFi4UR6dQKboQgW, 2026-07-16 (field 3/18,normal_human_description, BNP). Same script, same day as the failing batch log above (NT-proBNP, the near-neighbour test); first-try status unknown. > You are compiling a rigorous clinical knowledge-base record for the biomarker "BNP" with exact LOINC code "30934-4". Treat that supplied LOINC code as fixed identity. Verify its official LOINC name, specimen, property, scale, and method before researching [...]
# biomarker-record
Purpose: a script-generated prompt that asks an agent for exactly one field of a clinical knowledge-base record, grounded in PubMed. The script fills the placeholders per biomarker and per field. Not typed by hand; this is the shape to keep in the script.
```
You are compiling a rigorous clinical knowledge-base record for the biomarker "{{biomarker name}}"{{ with exact LOINC code "{{loinc}}"}}.
{{Treat that supplied LOINC code as fixed identity. Verify its official LOINC name, specimen, property, scale, and method before researching, and keep every field specific to that exact measurement. Never infer, replace, or invent the primary LOINC code.}}
Record so far (keep this field consistent):
{{JSON of the fields already generated, only the ones this field depends on}}
Produce ONLY the "{{field name}}" field.
Field intent: {{one sentence: who reads it, what it must contain, what to exclude}}.
{{Array fields: Return [] only when research finds no qualifying items. Do not pad with general advice.}}
{{Do not emit a `{{removed key}}` property; the item schema has no such field.}}
Research first with {{PubMed and Firecrawl}}. Ground factual claims in retrieved sources and never invent PMIDs.
You MUST finish with valid structured output matching the schema: {{schema or file path}}.
```
## Why this shape
- Wording that stays the same across 50+ runs: role, "Produce ONLY the X field", field intent, "Research first ... never invent PMIDs", "MUST finish with valid structured output" (`pg-biomarker-record`, items `13.re2`, `12.re2`).
- The later version (`opencode:ses_095680bd`, 2026-07-16) adds the fixed-LOINC paragraph; the earlier one (`ses_0a781fb5`, 2026-07-12) has none. That paragraph is a response to identity drifting between related tests (BNP vs NT-proBNP are different LOINC codes), so keep it for any biomarker that has near neighbours.
- Per-field "Field intent" lines carry the corrections you made over time: "Do not emit a `nutrient_links` property" and "do not pad with general healthy-eating advice". Add a line whenever a field type fails.
- First-try cannot be read from the prompt text. Each run is one scripted call, logged by the history as "abandoned" with no human follow-up. The failures were in the script: structured output combined with tool calls, timeouts, and batch lines like "failed NT-proBNP (33762-6) with exit code 1" (pasted by you into `codexhist:019f6aae`, 2026-07-16, as "why am i geting this erro"). Items `12.re2`/`13.re2` say runs were restarted while debugging. Fix the script (checkpoint, retry, per-field timeout; rules `r-pipeline-checkpoint-retry`, `r-real-citations`) rather than rewording the prompt.
- Do not switch the model while debugging a failing run (`r-exact-versions-models`).
## Real uses
1. `opencode:ses_0a781fb54ffeCQB7RV73QshuUk`, 2026-07-12 (field 6/31, `full_display_name`). Single call, no human follow-up; first-try status unknown.
> You are compiling a rigorous clinical knowledge-base record for the biomarker "C-Reactive Protein". Record so far (keep this field consistent): { "biomarker": "C-Reactive Protein", "loinc": "1988-5", "category": "inflammation", [...] } Produce ONLY the "full_display_name" field. Field intent: Unambiguous app-facing clinical name. Include a common abbreviation in parentheses only when useful; avoid codes, units, ranges, and marketing language. Research first with PubMed and Firecrawl. Ground factual claims in retrieved sources and never invent PMIDs. You MUST finish with valid structured output.
2. `opencode:ses_095680bdaffeFi4UR6dQKboQgW`, 2026-07-16 (field 3/18, `normal_human_description`, BNP). Same script, same day as the failing batch log above (NT-proBNP, the near-neighbour test); first-try status unknown.
> You are compiling a rigorous clinical knowledge-base record for the biomarker "BNP" with exact LOINC code "30934-4". Treat that supplied LOINC code as fixed identity. Verify its official LOINC name, specimen, property, scale, and method before researching [...]
continue.md ~417 tokens · drafts/prompts/continue.md
Rendered
continue
Purpose: resume a task after a usage or session limit, or after an interruption.
Continue where you left off.
Add one line only when something changed while it was paused:
Continue where you left off. Change: {{what is different now, e.g. "use Haiku, not Sonnet" | "main moved, rebase first" | "skip ticket X"}}.
Why this shape
- About 30 uses (items
20.re9,21.re3,22.re5), all after the "You've hit your session limit" interruption. It resumed fine every time; nothing went wrong (pg-continue). - Do not add detail to the plain form. The agent already has the plan in context. Extra text risks restarting the plan.
- Add the "Change:" line when your mind changed while waiting; otherwise the agent resumes the old plan. In
t3:301017feyou sent "Continue where you left off." at 09:40 and then, at 09:45, "i think using haiku would be better. Use Haiku model instaned". One message would have done both. - Do not send it while the agent is still running; it queues duplicates (
prompt_advice). Wait for the limit message. - Tool note: "session limit" and queued messages are Claude Code / T3 Code behaviour. In Codex or opencode, use the tool's own resume/continue command and paste the same sentence.
Real uses
t3:2d08300c-f9cb-4d94-9531-b39bcc67b568, 2026-11-01 (twice: 08:50 and 13:50). Worked first try; the next messages were status questions ("Is everything done or are the models running"). > Continue where you left off.t3:587bc5c7-5aa8-412d-92d1-3a232dd30627, 2026-11-17 00:19. No correction followed; later you added "Next . Don't stop until all todo are done". > Continue where you left off
# continue
Purpose: resume a task after a usage or session limit, or after an interruption.
```
Continue where you left off.
```
Add one line only when something changed while it was paused:
```
Continue where you left off. Change: {{what is different now, e.g. "use Haiku, not Sonnet" | "main moved, rebase first" | "skip ticket X"}}.
```
## Why this shape
- About 30 uses (items `20.re9`, `21.re3`, `22.re5`), all after the "You've hit your session limit" interruption. It resumed fine every time; nothing went wrong (`pg-continue`).
- Do not add detail to the plain form. The agent already has the plan in context. Extra text risks restarting the plan.
- Add the "Change:" line when your mind changed while waiting; otherwise the agent resumes the old plan. In `t3:301017fe` you sent "Continue where you left off." at 09:40 and then, at 09:45, "i think using haiku would be better. Use Haiku model instaned". One message would have done both.
- Do not send it while the agent is still running; it queues duplicates (`prompt_advice`). Wait for the limit message.
- Tool note: "session limit" and queued messages are Claude Code / T3 Code behaviour. In Codex or opencode, use the tool's own resume/continue command and paste the same sentence.
## Real uses
1. `t3:2d08300c-f9cb-4d94-9531-b39bcc67b568`, 2026-11-01 (twice: 08:50 and 13:50). Worked first try; the next messages were status questions ("Is everything done or are the models running").
> Continue where you left off.
2. `t3:587bc5c7-5aa8-412d-92d1-3a232dd30627`, 2026-11-17 00:19. No correction followed; later you added "Next . Don't stop until all todo are done".
> Continue where you left off
epic-orchestration.md ~1,229 tokens · drafts/prompts/epic-orchestration.md
Rendered
epic-orchestration
Purpose: have a lead agent read an epic (Linear parent issue), confirm understanding, then run one subagent per sub-issue in parallel worktrees, verify each PR, and merge only when acceptance criteria are met.
Long form (epic with sub-issues):
First thoroughly understand this application, then start implementing {{linear epic URL}}.
Once you have a complete understanding of the repo, spawn agents using {{allowed agents and models, e.g. "Claude Code with Opus, low effort"}}. Give each agent one whole sub-issue. Do not split a sub-issue across agents or models.
Run the work in parallel, except where sub-issues depend on each other: do a dependency first, wait until it is finished and merged, then start the ones that need it.
Each agent works in its own git worktree, branched from {{base branch}}.
When an agent finishes it opens a PR into {{epic branch}} with: verification details, screenshots, and test results.
You then review every PR yourself: read the diff, check the screenshots, and {{run the app yourself only if allowed: simulator / local dev server | do not run the app}}.
Merge a PR only if it meets every acceptance criterion. For UI issues it must also match {{the existing web design / reference}} as closely as possible.
If you find problems, fix them yourself or send another agent. Repeat until all requirements are met.
If an agent hits a usage or rate limit: reassign the unfinished work to another available agent so it continues from where the first one stopped, or set a timer for when the limit resets and resume then.
When all sub-issues are merged: {{merge the epic branch into main | stop and report}}, delete the worktrees, simulators and background processes you started.
Goal: complete the epic and all its sub-issues.
Before you start: explore the app, read the issues, and tell me whether you understand everything and are ready to start. Wait for my "proceed".
Short form (a handful of independent tickets):
Check Linear for the issues {{project}} has left{{, other than CI}}. Spawn agents to do them in parallel, each in its own worktree. Merge them when all the work is done. Delete the worktrees and any simulators once finished.
{{These agents cannot touch any deployed service; they run the app locally on their own port range and test there.}}
Why this shape
- The confirm gate at the end worked (item
22.re0); keep it ("Explore the app, read the issues, and confirm you understand everything and are ready to start or not"). - Every run still needed follow-ups for facts the prompt did not carry (item
22.re0): start from main not the feature branch, drop Codex, the epic branch scheme, dependency order. Int3:2d08300cyou added "Don't use codex , use Claude Code only for now" and "The 6 that you have running in parallel , they are following the issus dependencies right ? Just asking ?". Int3:3c5ee12byou put the dependency sentence into the prompt itself. The template makes agents, base branch, epic branch and verification explicit. - Operational corrections were repeated across runs: model choice, worktree cleanup, rate-limit waits. Model routing and cleanup are standing rules (
r-subagent-model-routing,r-cleanup-worktrees-processes,r-orchestrator-delegates), so they can move to AGENTS.md and shorten this prompt. - "Fix it in the current branch only" (
t3:3c5ee12b, 2026-11-05) suggests work landed on the wrong branch; the base and epic branch lines address that. - Tool note: spawning agents on different providers and the worktree handling are T3 Code / Claude Code features. In Codex or opencode, replace the first paragraph with that tool's subagent mechanism; the rest is portable.
Real uses
t3:2d08300c-f9cb-4d94-9531-b39bcc67b568, 2026-11-01. Understanding gate worked, then needed follow-ups (not first try): > I want you to first thoroughly understand this application and then start implementing https://linear.app/stvyas-workspace/issue/STV-624/epic-passwordless-identity-with-better-auth-listenerauth-neon-drizzle > Once you have a complete understanding of all the repo, I want you to spawn agents using either Codex or Codex-Work with Sol 6.1 (Low or Medium), or Claude with Opus Low, and assign each agent an entire sub-issue to work on. [...] Explore the app , read the issues , and confirm you understand everything and are ready to start or not.
Follow-up: "Don't use codex , use Claude Code only for now". Finished 2026-11-01 ("ok merge it all into main then.").
t3:f5e0e0e4-d8d7-4fb3-bcf4-527aa94384fc, 2026-11-21. Short form, worked first try (1 message). > I want you to check against linear , about what issues does this project has left other than CI stuff , and then I want you to spawn agents to do them in parallel, and merge them in once done with all of the work . Note to delete there worktrees , etc once their done.
# epic-orchestration
Purpose: have a lead agent read an epic (Linear parent issue), confirm understanding, then run one subagent per sub-issue in parallel worktrees, verify each PR, and merge only when acceptance criteria are met.
Long form (epic with sub-issues):
```
First thoroughly understand this application, then start implementing {{linear epic URL}}.
Once you have a complete understanding of the repo, spawn agents using {{allowed agents and models, e.g. "Claude Code with Opus, low effort"}}. Give each agent one whole sub-issue. Do not split a sub-issue across agents or models.
Run the work in parallel, except where sub-issues depend on each other: do a dependency first, wait until it is finished and merged, then start the ones that need it.
Each agent works in its own git worktree, branched from {{base branch}}.
When an agent finishes it opens a PR into {{epic branch}} with: verification details, screenshots, and test results.
You then review every PR yourself: read the diff, check the screenshots, and {{run the app yourself only if allowed: simulator / local dev server | do not run the app}}.
Merge a PR only if it meets every acceptance criterion. For UI issues it must also match {{the existing web design / reference}} as closely as possible.
If you find problems, fix them yourself or send another agent. Repeat until all requirements are met.
If an agent hits a usage or rate limit: reassign the unfinished work to another available agent so it continues from where the first one stopped, or set a timer for when the limit resets and resume then.
When all sub-issues are merged: {{merge the epic branch into main | stop and report}}, delete the worktrees, simulators and background processes you started.
Goal: complete the epic and all its sub-issues.
Before you start: explore the app, read the issues, and tell me whether you understand everything and are ready to start. Wait for my "proceed".
```
Short form (a handful of independent tickets):
```
Check Linear for the issues {{project}} has left{{, other than CI}}. Spawn agents to do them in parallel, each in its own worktree. Merge them when all the work is done. Delete the worktrees and any simulators once finished.
{{These agents cannot touch any deployed service; they run the app locally on their own port range and test there.}}
```
## Why this shape
- The confirm gate at the end worked (item `22.re0`); keep it ("Explore the app, read the issues, and confirm you understand everything and are ready to start or not").
- Every run still needed follow-ups for facts the prompt did not carry (item `22.re0`): start from main not the feature branch, drop Codex, the epic branch scheme, dependency order. In `t3:2d08300c` you added "Don't use codex , use Claude Code only for now" and "The 6 that you have running in parallel , they are following the issus dependencies right ? Just asking ?". In `t3:3c5ee12b` you put the dependency sentence into the prompt itself. The template makes agents, base branch, epic branch and verification explicit.
- Operational corrections were repeated across runs: model choice, worktree cleanup, rate-limit waits. Model routing and cleanup are standing rules (`r-subagent-model-routing`, `r-cleanup-worktrees-processes`, `r-orchestrator-delegates`), so they can move to AGENTS.md and shorten this prompt.
- "Fix it in the current branch only" (`t3:3c5ee12b`, 2026-11-05) suggests work landed on the wrong branch; the base and epic branch lines address that.
- Tool note: spawning agents on different providers and the worktree handling are T3 Code / Claude Code features. In Codex or opencode, replace the first paragraph with that tool's subagent mechanism; the rest is portable.
## Real uses
1. `t3:2d08300c-f9cb-4d94-9531-b39bcc67b568`, 2026-11-01. Understanding gate worked, then needed follow-ups (not first try):
> I want you to first thoroughly understand this application and then start implementing https://linear.app/stvyas-workspace/issue/STV-624/epic-passwordless-identity-with-better-auth-listenerauth-neon-drizzle
> Once you have a complete understanding of all the repo, I want you to spawn agents using either **Codex or Codex-Work with Sol 6.1 (Low or Medium)**, or **Claude with Opus Low**, and assign each agent an entire sub-issue to work on. [...] Explore the app , read the issues , and confirm you understand everything and are ready to start or not.
Follow-up: "Don't use codex , use Claude Code only for now". Finished 2026-11-01 ("ok merge it all into main then.").
2. `t3:f5e0e0e4-d8d7-4fb3-bcf4-527aa94384fc`, 2026-11-21. Short form, worked first try (1 message).
> I want you to check against linear , about what issues does this project has left other than CI stuff , and then I want you to spawn agents to do them in parallel, and merge them in once done with all of the work . Note to delete there worktrees , etc once their done.
fix-it.md ~452 tokens · drafts/prompts/fix-it.md
Rendered
fix-it
Purpose: give the go-ahead after a diagnosis you agree with. Only use it when the diagnosis was right.
Fix it. Only {{the cause you agreed on}}.
Do not {{touch other files | change behaviour of X | build or run the app}}.
Check with {{tsc --noEmit | the targeted test | nothing}} and tell me the result.
Plain form, when the diagnosis was exactly right and nothing else needs saying:
Fix it
Why this shape
- It is short on purpose (14 uses of the exact group; 280 of your messages begin with "fix it"). It works when the diagnosis in the previous turn was right and escalates into repeated "fix it" when it was wrong (
pg-fix-it, item18.re10). - Check the diagnosis first. If the agent's cause is not what you think, correct it in words ("that is not the cause, the filter excludes...") rather than "fix it".
- The "Only..." and "Do not..." lines stop the fix expanding. Corrections after "fix it" usually say "why did you change X" or "just do what is asked" (
r-do-only-what-asked). - State the allowed check. Otherwise the agent builds or opens a browser to verify (see
no-run-no-build).
Real uses
t3:50ff3733-22c2-46af-bc1e-0e5df3db9115, 2026-09-04. Worked first try. Sequence: you asked to check why two patients did not show under "Awaiting Review" (with "Do not run or preview or build the app"), then: > Can you fix it
Then "commit these change and push", then the next task.
codexhist:019fcb2b-468a-7743-b875-8a60d261bcf1, 2026-08-04. Not first try: the agent used Chromium although you wanted code reading only. > Fix it then !
Followed by "max-width is not consitent with /settings" and "Are you sure ? There is no background color on the inputs !". The go-ahead came before the agent had the constraint "read the code, no browser".
# fix-it
Purpose: give the go-ahead after a diagnosis you agree with. Only use it when the diagnosis was right.
```
Fix it. Only {{the cause you agreed on}}.
Do not {{touch other files | change behaviour of X | build or run the app}}.
Check with {{tsc --noEmit | the targeted test | nothing}} and tell me the result.
```
Plain form, when the diagnosis was exactly right and nothing else needs saying:
```
Fix it
```
## Why this shape
- It is short on purpose (14 uses of the exact group; 280 of your messages begin with "fix it"). It works when the diagnosis in the previous turn was right and escalates into repeated "fix it" when it was wrong (`pg-fix-it`, item `18.re10`).
- Check the diagnosis first. If the agent's cause is not what you think, correct it in words ("that is not the cause, the filter excludes...") rather than "fix it".
- The "Only..." and "Do not..." lines stop the fix expanding. Corrections after "fix it" usually say "why did you change X" or "just do what is asked" (`r-do-only-what-asked`).
- State the allowed check. Otherwise the agent builds or opens a browser to verify (see `no-run-no-build`).
## Real uses
1. `t3:50ff3733-22c2-46af-bc1e-0e5df3db9115`, 2026-09-04. Worked first try. Sequence: you asked to check why two patients did not show under "Awaiting Review" (with "Do not run or preview or build the app"), then:
> Can you fix it
Then "commit these change and push", then the next task.
2. `codexhist:019fcb2b-468a-7743-b875-8a60d261bcf1`, 2026-08-04. Not first try: the agent used Chromium although you wanted code reading only.
> Fix it then !
Followed by "max-width is not consitent with /settings" and "Are you sure ? There is no background color on the inputs !". The go-ahead came before the agent had the constraint "read the code, no browser".
frontend-design-invoke.md ~805 tokens · drafts/prompts/frontend-design-invoke.md
Rendered
frontend-design-invoke
Purpose: ask for a UI improvement with the frontend-design skill, with the scope and the do-not-change list stated in the same message.
Use the frontend-design skill. {{Claude Code: /frontend-design | Codex: [$frontend-design](path/to/SKILL.md) | opencode/Zed: "read the frontend-design skill first"}}
Screen / component: {{exact route or file, e.g. /settings/prompts, @src/.../loading.tsx}}
Problem: {{what is wrong, with a screenshot or a measurable target, e.g. "max-width differs from /settings", "no background on inputs"}}
Reference: {{@sibling component to match | screenshot | exact values (px, hex, token names)}}
Must not change: {{logic, data fetching, routes, copy, other screens, brand colours, the shared component}}
Scope: only {{these files}}. Do not create shared components unless I say so.
Read the code only; do not run the app, Chromium or Argent. Check with {{tsc | none}}.
Why this shape
- Sending only the skill link as its own message, as a nudge after a weak attempt, still needed many corrections (items
07.re6,08.re7:codexhist:01a01257,codexhist:019fcb2b). A skill name does not carry scope. - The corrections that followed were nearly all scope or non-goals: "No shared component. Make it according to each context !" (
codexhist:01a01257, 2026-08-18), "No background change", "Don't rename systems" (item13.re4), "I didn't asked for homepage" (t3:5a3764ca). The Must-not-change and Scope lines are those corrections moved to the front. - Adjectives ("better", "smooth") need a reference or a number. Prompt-advice: give a screenshot, a reference component or exact values.
- In
codexhist:019fcb2bthe agent opened Chromium although you wanted code reading; the last line, or an AGENTS.md rule, prevents that. - Standing rules for AGENTS.md: match sibling components, preserve logic in redesigns, minimal flat UI, theme tokens only, loading/empty/error states as separate files (
r-ui-reuse-siblings,r-preserve-logic-in-redesign,r-minimal-flat-ui,r-theme-tokens-no-green,r-ui-states-separate-files). The skill's own text should not need repeating. - Tool note: invocation syntax differs per tool (listed in the template).
Real uses
codexhist:019fcb2b-468a-7743-b875-8a60d261bcf1, 2026-08-04. Not first try. > Read the /settings/prompts page , is there any issue regaring UI > $frontend-design
Then "Who the fuck asked you to use chromium [...] read the code" (profanity trimmed here), "Fix it then !", "max-width is not consitent with /settings", "Are you sure ? There is no background color on the inputs !".
codexhist:01a01257-c4d3-7d63-9515-33dea82d5ae1, 2026-08-18. Not first try, but it converged: loader first, errors later. > This is very shitty design. Please make it approrpriate and make sure it looks good as a loading state. Do you understand ? > $frontend-design
Later: "No shared component. Make it according to each context !", "Improve upon you error states", and finally "The loading state for HTMl is soo good, whereas it's error state doesn't look good."
# frontend-design-invoke
Purpose: ask for a UI improvement with the frontend-design skill, with the scope and the do-not-change list stated in the same message.
```
Use the frontend-design skill. {{Claude Code: /frontend-design | Codex: [$frontend-design](path/to/SKILL.md) | opencode/Zed: "read the frontend-design skill first"}}
Screen / component: {{exact route or file, e.g. /settings/prompts, @src/.../loading.tsx}}
Problem: {{what is wrong, with a screenshot or a measurable target, e.g. "max-width differs from /settings", "no background on inputs"}}
Reference: {{@sibling component to match | screenshot | exact values (px, hex, token names)}}
Must not change: {{logic, data fetching, routes, copy, other screens, brand colours, the shared component}}
Scope: only {{these files}}. Do not create shared components unless I say so.
Read the code only; do not run the app, Chromium or Argent. Check with {{tsc | none}}.
```
## Why this shape
- Sending only the skill link as its own message, as a nudge after a weak attempt, still needed many corrections (items `07.re6`, `08.re7`: `codexhist:01a01257`, `codexhist:019fcb2b`). A skill name does not carry scope.
- The corrections that followed were nearly all scope or non-goals: "No shared component. Make it according to each context !" (`codexhist:01a01257`, 2026-08-18), "No background change", "Don't rename systems" (item `13.re4`), "I didn't asked for homepage" (`t3:5a3764ca`). The Must-not-change and Scope lines are those corrections moved to the front.
- Adjectives ("better", "smooth") need a reference or a number. Prompt-advice: give a screenshot, a reference component or exact values.
- In `codexhist:019fcb2b` the agent opened Chromium although you wanted code reading; the last line, or an AGENTS.md rule, prevents that.
- Standing rules for AGENTS.md: match sibling components, preserve logic in redesigns, minimal flat UI, theme tokens only, loading/empty/error states as separate files (`r-ui-reuse-siblings`, `r-preserve-logic-in-redesign`, `r-minimal-flat-ui`, `r-theme-tokens-no-green`, `r-ui-states-separate-files`). The skill's own text should not need repeating.
- Tool note: invocation syntax differs per tool (listed in the template).
## Real uses
1. `codexhist:019fcb2b-468a-7743-b875-8a60d261bcf1`, 2026-08-04. Not first try.
> Read the /settings/prompts page , is there any issue regaring UI
> [$frontend-design](/Users/stvya/.agents/skills/frontend-design/SKILL.md)
Then "Who the fuck asked you to use chromium [...] read the code" (profanity trimmed here), "Fix it then !", "max-width is not consitent with /settings", "Are you sure ? There is no background color on the inputs !".
2. `codexhist:01a01257-c4d3-7d63-9515-33dea82d5ae1`, 2026-08-18. Not first try, but it converged: loader first, errors later.
> This is very shitty design. Please make it approrpriate and make sure it looks good as a loading state. Do you understand ?
> [$frontend-design](/Users/stvya/.agents/skills/frontend-design/SKILL.md)
Later: "No shared component. Make it according to each context !", "Improve upon you error states", and finally "The loading state for HTMl is soo good, whereas it's error state doesn't look good."
linear-tickets-first.md ~852 tokens · drafts/prompts/linear-tickets-first.md
Rendered
linear-tickets-first
Purpose: turn a feature idea into Linear tickets (with dependencies, verification and acceptance criteria) before any code is written. The agent asks its questions first, then writes tickets.
{{Read the Linear project "{{project name}}" (description and notes) first.}}
I want {{feature or system, one paragraph}}.
Constraints (tickets must reflect these):
- Stack: {{monorepo tool, frontend, server, native, database access, auth}}
- Architecture: {{package boundaries, what is shared between web and native, what is a separate worker}}
- Not allowed: {{e.g. useState for app state, backend running user shaders, legacy support}}
First ask me any questions you have, in one list, and wait for my answers.
Then create the tickets: one parent issue and sub-issues. Each ticket has: scope, dependencies (which tickets block it), verification steps, acceptance criteria, labels. {{Group related items; avoid duplicate tickets.}}
Do not implement anything. Do not start work on the tickets.
Confirm the ticket list with me before you create more than {{N}} tickets.
Why this shape
- "First just make the ticket , with all info and confirm" was the shape of a clean run (
t3:224bde6b, 2026-10-06, 3 messages, no corrections; follow-ups were "Add all this info in the issue as well"). - The bigger ticket prompt (
t3:bb2f089c, 2026-11-07 11:23) listed the stack in one line, and then needed four constraint messages: "Not that database should be interacted via drizzle", the better-auth adapter, "If that's an issue than separate that worker", "do this check in a separate worker then". The Constraints block collects those up front. This is the "constraints revealed mid-conversation" pattern fromprompt_advice. - "First ask me any question you have" worked and the agent asked useful questions (
t3:bb2f089c; your answers appear as inline comments on its questions). Keep it. - Ticket quality is a standing rule (
r-linear-ticket-quality): acceptance and verification criteria, labels, dependencies, linked sub-issues, no duplicates. Put it in AGENTS.md and the middle line of the template can shrink. - "Do not implement anything" prevents the ADR-document-instead-of-code and implement-too-early failures seen in
pg-implement-linear-url. - Tool note: needs a Linear connector (Linear MCP in Claude Code / T3 Code; check that Codex and opencode have it configured).
Real uses
t3:224bde6b-137e-44f5-8d80-0633b550109f, 2026-10-06. Worked first try. > You can learn all about this project from the Linear project description and notes and description as well. Now what I want is you to create an issue “To implement Mobile Native Client” track it and implant so. You need to add an Expo app similar to Web one with all of the pages and features as the web. [...] First just make the ticket , with all info and confirmt3:bb2f089c-e677-439e-808d-01249df98e37, 2026-11-07. Needed four constraint follow-ups (not first try). > Ok now I want you to make ticket. It should be a bun monorepo with turborepo , it should have alchemy which should have infra , then the frontend needs to be tanstack start , server needs to be worker with Effect.ts Http client with RPC running on it. Native needs to be expo app [...] First ask me any question that you have then make issues with all of the information dependencies, verification , acceptance creteria etc
# linear-tickets-first
Purpose: turn a feature idea into Linear tickets (with dependencies, verification and acceptance criteria) before any code is written. The agent asks its questions first, then writes tickets.
```
{{Read the Linear project "{{project name}}" (description and notes) first.}}
I want {{feature or system, one paragraph}}.
Constraints (tickets must reflect these):
- Stack: {{monorepo tool, frontend, server, native, database access, auth}}
- Architecture: {{package boundaries, what is shared between web and native, what is a separate worker}}
- Not allowed: {{e.g. useState for app state, backend running user shaders, legacy support}}
First ask me any questions you have, in one list, and wait for my answers.
Then create the tickets: one parent issue and sub-issues. Each ticket has: scope, dependencies (which tickets block it), verification steps, acceptance criteria, labels. {{Group related items; avoid duplicate tickets.}}
Do not implement anything. Do not start work on the tickets.
Confirm the ticket list with me before you create more than {{N}} tickets.
```
## Why this shape
- "First just make the ticket , with all info and confirm" was the shape of a clean run (`t3:224bde6b`, 2026-10-06, 3 messages, no corrections; follow-ups were "Add all this info in the issue as well").
- The bigger ticket prompt (`t3:bb2f089c`, 2026-11-07 11:23) listed the stack in one line, and then needed four constraint messages: "Not that database should be interacted via drizzle", the better-auth adapter, "If that's an issue than separate that worker", "do this check in a separate worker then". The Constraints block collects those up front. This is the "constraints revealed mid-conversation" pattern from `prompt_advice`.
- "First ask me any question you have" worked and the agent asked useful questions (`t3:bb2f089c`; your answers appear as inline comments on its questions). Keep it.
- Ticket quality is a standing rule (`r-linear-ticket-quality`): acceptance and verification criteria, labels, dependencies, linked sub-issues, no duplicates. Put it in AGENTS.md and the middle line of the template can shrink.
- "Do not implement anything" prevents the ADR-document-instead-of-code and implement-too-early failures seen in `pg-implement-linear-url`.
- Tool note: needs a Linear connector (Linear MCP in Claude Code / T3 Code; check that Codex and opencode have it configured).
## Real uses
1. `t3:224bde6b-137e-44f5-8d80-0633b550109f`, 2026-10-06. Worked first try.
> You can learn all about this project from the Linear project description and notes and description as well. Now what I want is you to create an issue “To implement Mobile Native Client” track it and implant so. You need to add an Expo app similar to Web one with all of the pages and features as the web. [...] First just make the ticket , with all info and confirm
2. `t3:bb2f089c-e677-439e-808d-01249df98e37`, 2026-11-07. Needed four constraint follow-ups (not first try).
> Ok now I want you to make ticket. It should be a bun monorepo with turborepo , it should have alchemy which should have infra , then the frontend needs to be tanstack start , server needs to be worker with Effect.ts Http client with RPC running on it. Native needs to be expo app [...] First ask me any question that you have then make issues with all of the information dependencies, verification , acceptance creteria etc
multi-phase-task-brief.md ~989 tokens · drafts/prompts/multi-phase-task-brief.md
Rendered
multi-phase-task-brief
Purpose: a prompt template (not a report) for handing an agent a large, multi-phase job (find patterns in data, produce documents) with phases, hard rules and output paths. Based on your long "# Task:" prompt.
# Task: {{one-line goal}}
## Context
{{Who you are, what tools you use, what you keep repeating or what decision this feeds.}}
{{Examples of the kind of finding I mean. These are only examples. Find every pattern, not only these.}}
This is for me only. {{Study it statistically (how often, when, where) and semantically (what I mean, even when worded differently).}}
## Phase 0: Find the inputs yourself
{{Where to look (list the paths), what to look for, how to detect duplicates (e.g. a tool that runs other agents in the background), how to confirm what you found before using it.}}
## Phase 1: Extract the data (with scripts)
{{Write scripts, not manual reading. Output normalised files to {{output}}/data/. Keep raw data out of the final documents.}}
## Phase 2: Work in parallel with subagents
{{One subagent per slice. Each returns {{a defined JSON/Markdown shape}}, with verbatim quotes and ids so claims can be checked.}}
## Phase 3: Combine and rank
{{What to rank and by what: frequency, consistency, cost of mistakes. Buckets: do now / do later / keep manual. Where each rule belongs: global AGENTS.md / project AGENTS.md / skill / hook.}}
## Output
Write only under {{output path}}. Files: {{list with one line each}}.
Hard rules: read-only everywhere else; never copy secrets, tokens or passwords into the output (replace with [REDACTED]); quotes must be verbatim; plain language; works in any agent ({{list tools}}), flag anything tool-specific.
When done, reply with {{one line | a short summary}}.
Why this shape
- This is the structure of your own largest prompt (
t3:f32b9b34, 2026-11-24): context with examples marked "only examples", phases 0 to 3, then output and rules. The "Find every pattern, not just these" line is what stops the agent from handling only your examples. - Phases matter because the work is long. Each phase has one product and the agent knows what to hand over. Large open-ended scope without phases ("build the frontend", "make it ready to be public", "implement everything") is the group that most often needed many corrections (
prompt_advice). Example:t3:370f61a9(2026-11-02), "I'm going to make this repository public , use stuff like gitleaks and other stuff , to make sure it's ready", had 3 corrections and 9 frustration signals. - "Do the work in scripts, subagents return a fixed shape with quotes" keeps results checkable.
- Standing rules for AGENTS.md instead of repeating: do not read or print secrets (
r-no-env-reading), no unrequested docs (r-no-unrequested-docs-tests), answer in plain language (r-concise-direct-answers). - Tool note: phases with parallel subagents assume Claude Code/T3 Code/Codex subagents. In a single-agent tool, run phase 2 as a loop over slices.
Real uses
t3:f32b9b34-4d6f-4c22-ba8a-3dc7c8778e80, 2026-11-24. First-try status: still in progress, cannot be judged from the history. > # Task: Analyse all my conversations with AI agents to find repeated workflows, instructions, preferences and frustrations, and turn them into skills, AGENTS files and context docs ## Context I use several AI coding agents (Claude Code, Codex, T3 Code and possibly others), usually with full approval on. I keep asking for the same workflows and repeating the same instructions and corrections. [...] These are only examples to show the kind of thing I mean. Find every pattern, not just these. Niche, specific preferences are as valuable as broad ones.- Counter-example, same kind of open ask without phases:
t3:370f61a9-b5b7-461a-94e3-d27d63ef0cb5, 2026-11-02, 24 messages, 3 corrections. > I'm going to make this repository public , use stuff like gitleaks and other stuff , to make sure it's ready.
# multi-phase-task-brief
Purpose: a prompt template (not a report) for handing an agent a large, multi-phase job (find patterns in data, produce documents) with phases, hard rules and output paths. Based on your long "# Task:" prompt.
```
# Task: {{one-line goal}}
## Context
{{Who you are, what tools you use, what you keep repeating or what decision this feeds.}}
{{Examples of the kind of finding I mean. These are only examples. Find every pattern, not only these.}}
This is for me only. {{Study it statistically (how often, when, where) and semantically (what I mean, even when worded differently).}}
## Phase 0: Find the inputs yourself
{{Where to look (list the paths), what to look for, how to detect duplicates (e.g. a tool that runs other agents in the background), how to confirm what you found before using it.}}
## Phase 1: Extract the data (with scripts)
{{Write scripts, not manual reading. Output normalised files to {{output}}/data/. Keep raw data out of the final documents.}}
## Phase 2: Work in parallel with subagents
{{One subagent per slice. Each returns {{a defined JSON/Markdown shape}}, with verbatim quotes and ids so claims can be checked.}}
## Phase 3: Combine and rank
{{What to rank and by what: frequency, consistency, cost of mistakes. Buckets: do now / do later / keep manual. Where each rule belongs: global AGENTS.md / project AGENTS.md / skill / hook.}}
## Output
Write only under {{output path}}. Files: {{list with one line each}}.
Hard rules: read-only everywhere else; never copy secrets, tokens or passwords into the output (replace with [REDACTED]); quotes must be verbatim; plain language; works in any agent ({{list tools}}), flag anything tool-specific.
When done, reply with {{one line | a short summary}}.
```
## Why this shape
- This is the structure of your own largest prompt (`t3:f32b9b34`, 2026-11-24): context with examples marked "only examples", phases 0 to 3, then output and rules. The "Find every pattern, not just these" line is what stops the agent from handling only your examples.
- Phases matter because the work is long. Each phase has one product and the agent knows what to hand over. Large open-ended scope without phases ("build the frontend", "make it ready to be public", "implement everything") is the group that most often needed many corrections (`prompt_advice`). Example: `t3:370f61a9` (2026-11-02), "I'm going to make this repository public , use stuff like gitleaks and other stuff , to make sure it's ready", had 3 corrections and 9 frustration signals.
- "Do the work in scripts, subagents return a fixed shape with quotes" keeps results checkable.
- Standing rules for AGENTS.md instead of repeating: do not read or print secrets (`r-no-env-reading`), no unrequested docs (`r-no-unrequested-docs-tests`), answer in plain language (`r-concise-direct-answers`).
- Tool note: phases with parallel subagents assume Claude Code/T3 Code/Codex subagents. In a single-agent tool, run phase 2 as a loop over slices.
## Real uses
1. `t3:f32b9b34-4d6f-4c22-ba8a-3dc7c8778e80`, 2026-11-24. First-try status: still in progress, cannot be judged from the history.
> # Task: Analyse all my conversations with AI agents to find repeated workflows, instructions, preferences and frustrations, and turn them into skills, AGENTS files and context docs ## Context I use several AI coding agents (Claude Code, Codex, T3 Code and possibly others), usually with full approval on. I keep asking for the same workflows and repeating the same instructions and corrections. [...] These are only examples to show the kind of thing I mean. Find every pattern, not just these. Niche, specific preferences are as valuable as broad ones.
2. Counter-example, same kind of open ask without phases: `t3:370f61a9-b5b7-461a-94e3-d27d63ef0cb5`, 2026-11-02, 24 messages, 3 corrections.
> I'm going to make this repository public , use stuff like gitleaks and other stuff , to make sure it's ready.
no-run-no-build.md ~603 tokens · drafts/prompts/no-run-no-build.md
Rendered
no-run-no-build
Purpose: stop the agent building, running, previewing or opening a browser. This should live in AGENTS.md, not in each prompt. The short prompt form is a fallback for repos that do not have it yet.
AGENTS.md block (write once, per repo or globally):
## Do not run the app
- Do not build, run, start, preview or open the app, dev server, browser, Chromium, Argent, or a simulator.
- Do not query databases, run migrations or call deployed services.
- Allowed checks: {{tsc --noEmit | lint | vitest --changed | none}}. Infer behaviour from the source.
- If you think a run is needed, say so and wait. Do not run it.
- This applies to every message in the session, not only the first.
One-line fallback for a prompt:
{{task}}
Rule for this task: do not build, run or preview the app, and do not use Argent or Chromium. Allowed checks: {{tsc only | none}}.
Why this shape
- It was restated 70+ times in 62 conversations ("Do not build the app", "No argent!", "You are not allowed to run or build the app"). The agent did not carry it from message to message, so you re-sent it, then in caps (
pg-no-run-no-build, items06.re0,09.re1,18.re1). - Once the agent had already built or opened Chromium, the correction came too late and the turn went on the correction instead of the task. A standing rule avoids this.
- Naming the allowed checks stops the opposite failure, "I could not verify anything".
- Real evidence the rule is not obeyed:
claudehist:690df3c9(2026-07-22) "You are not allowed to run , use chromimum/argent" after the agent tested anyway. Items06.re0note you finally asked to remove the Argent MCP from config. That is the stronger fix: remove or deny the tool in repos where the rule applies (this is tool-specific: MCP server config in Claude Code, Codex and opencode differs). - Check any global Argent rule file you keep: if it says "use Argent for every UI change", it works against this rule on web repos. Scope it to mobile repos.
Real uses
codexhist:019f87c4-1529-7832-9180-2f9fedebfca9, 2026-07-22. Rule had to be restated mid-task. > proceed . You also need to uupdated related code as well. DO NOT RUN THE APP OR USE THE ARGENT OR CHROMIMUM.codexhist:019f5a1d-a48e-78a0-b7e2-d3f05d65c0cd, 2026-07-13. After "proceed" the agent opened Argent, so: > No argent!
Worked only after the correction (not first try).
# no-run-no-build
Purpose: stop the agent building, running, previewing or opening a browser. This should live in AGENTS.md, not in each prompt. The short prompt form is a fallback for repos that do not have it yet.
AGENTS.md block (write once, per repo or globally):
```
## Do not run the app
- Do not build, run, start, preview or open the app, dev server, browser, Chromium, Argent, or a simulator.
- Do not query databases, run migrations or call deployed services.
- Allowed checks: {{tsc --noEmit | lint | vitest --changed | none}}. Infer behaviour from the source.
- If you think a run is needed, say so and wait. Do not run it.
- This applies to every message in the session, not only the first.
```
One-line fallback for a prompt:
```
{{task}}
Rule for this task: do not build, run or preview the app, and do not use Argent or Chromium. Allowed checks: {{tsc only | none}}.
```
## Why this shape
- It was restated 70+ times in 62 conversations ("Do not build the app", "No argent!", "You are not allowed to run or build the app"). The agent did not carry it from message to message, so you re-sent it, then in caps (`pg-no-run-no-build`, items `06.re0`, `09.re1`, `18.re1`).
- Once the agent had already built or opened Chromium, the correction came too late and the turn went on the correction instead of the task. A standing rule avoids this.
- Naming the allowed checks stops the opposite failure, "I could not verify anything".
- Real evidence the rule is not obeyed: `claudehist:690df3c9` (2026-07-22) "You are not allowed to run , use chromimum/argent" after the agent tested anyway. Items `06.re0` note you finally asked to remove the Argent MCP from config. That is the stronger fix: remove or deny the tool in repos where the rule applies (this is tool-specific: MCP server config in Claude Code, Codex and opencode differs).
- Check any global Argent rule file you keep: if it says "use Argent for every UI change", it works against this rule on web repos. Scope it to mobile repos.
## Real uses
1. `codexhist:019f87c4-1529-7832-9180-2f9fedebfca9`, 2026-07-22. Rule had to be restated mid-task.
> proceed . You also need to uupdated related code as well. DO NOT RUN THE APP OR USE THE ARGENT OR CHROMIMUM.
2. `codexhist:019f5a1d-a48e-78a0-b7e2-d3f05d65c0cd`, 2026-07-13. After "proceed" the agent opened Argent, so:
> No argent!
Worked only after the correction (not first try).
pasted-plan.md ~817 tokens · drafts/prompts/pasted-plan.md
Rendered
pasted-plan
Purpose: apply a plan, diff, reference HTML/CSS, or docs that came from outside (another LLM, a vendor page) without the agent adding extras or copying the wrong parts.
Pick one of the three forms.
A. Apply exact code (no design choices):
Add the following code to this codebase. Do not do anything else: no refactor, no renaming, no extra files.
Target paths: {{path for each snippet, adapted to this repo: app/ not src/, etc.}}
Then run {{tsc | nothing}} and tell me the errors; do not fix them unless they come from this change.
{{paste the code, one block per file, each with its path}}
B. Apply a diff:
Apply the following diff to {{file}}. Only these line changes. Nothing else in the file or elsewhere.
{{diff}}
C. Use a reference (HTML, CSS, a plan, docs) for part of the result:
Use the following as a reference for {{what to take, e.g. "the table structure and columns" | "the hover/shine effect" | "the setup steps"}}.
Keep from this project: {{styling, fonts, colours, tokens, existing logic, file layout}}.
Do not copy: {{palette, fonts, copy, anything not listed above}}.
Files in scope: {{list}}. Nothing else.
Docs for this version of {{library}}: {{URL or pasted section}}. Follow them over your memory.
{{paste}}
Why this shape
- Large pasted plans without a stated scope were the worst-correlated prompt in the pasted-plan group (20 uses, "poor"; items
03.re3,04.re1,07.re1,09.re9). The agent added extras, errored across many files, or copied the reference's palette and fonts instead of the structure. - Form A fixed itself: in
zed:b6465bd9("just add the following code into this codebase, no need to do anything else") the same snippets finished in 1 turn, while ten minutes earlierzed:ccbc611d("Add the following ... Please read all of the files and the app structure first") restarted. - Form B: the same diff was re-sent three times with stricter wording to three models (
zed:49cb6198andzed:4dbb5854on 2026-02-12, andzed:1171aad8). "Only these line changes" belongs in the first message. - Form C:
codex:019fb25a(2026-07-30) pasted a recipe HTML and the agent copied palette and fonts; you had to re-paste and say "same structure for table, no font/colour". Say what to take and what to keep. - Say what differs in this repo before pasting.
zed:ccbc611dhad to state "As I don't have src , but rather app", and the target paths in form A carry that. - Standing rule for AGENTS.md: preserve existing styling and logic when a reference is given (
r-preserve-logic-in-redesign,r-do-only-what-asked,r-check-current-docs).
Real uses
zed:b6465bd9-2da5-443e-9ad4-73b8727e6fa7, 2026-01-24. Worked first try (1 message, form A). > Can you just add the following code into this codebase, no need to do anything else , just add the following code [...] ##app/dialogs/dialog-system.tsx"use client"; import * as React from "react"; [...]codex:019fb25a-e577-7902-adb8-6f07a8769865, 2026-07-30. Not first try (form C; the palette and fonts were copied). > Read the following code first [recipe page HTML:<!DOCTYPE html> ... <title>The Stew ...]
Follow-up in this thread: clarify "same structure for table, no font/colour" (item 07.re1).
# pasted-plan
Purpose: apply a plan, diff, reference HTML/CSS, or docs that came from outside (another LLM, a vendor page) without the agent adding extras or copying the wrong parts.
Pick one of the three forms.
A. Apply exact code (no design choices):
```
Add the following code to this codebase. Do not do anything else: no refactor, no renaming, no extra files.
Target paths: {{path for each snippet, adapted to this repo: app/ not src/, etc.}}
Then run {{tsc | nothing}} and tell me the errors; do not fix them unless they come from this change.
{{paste the code, one block per file, each with its path}}
```
B. Apply a diff:
```
Apply the following diff to {{file}}. Only these line changes. Nothing else in the file or elsewhere.
{{diff}}
```
C. Use a reference (HTML, CSS, a plan, docs) for part of the result:
```
Use the following as a reference for {{what to take, e.g. "the table structure and columns" | "the hover/shine effect" | "the setup steps"}}.
Keep from this project: {{styling, fonts, colours, tokens, existing logic, file layout}}.
Do not copy: {{palette, fonts, copy, anything not listed above}}.
Files in scope: {{list}}. Nothing else.
Docs for this version of {{library}}: {{URL or pasted section}}. Follow them over your memory.
{{paste}}
```
## Why this shape
- Large pasted plans without a stated scope were the worst-correlated prompt in the pasted-plan group (20 uses, "poor"; items `03.re3`, `04.re1`, `07.re1`, `09.re9`). The agent added extras, errored across many files, or copied the reference's palette and fonts instead of the structure.
- Form A fixed itself: in `zed:b6465bd9` ("just add the following code into this codebase, no need to do anything else") the same snippets finished in 1 turn, while ten minutes earlier `zed:ccbc611d` ("Add the following ... Please read all of the files and the app structure first") restarted.
- Form B: the same diff was re-sent three times with stricter wording to three models (`zed:49cb6198` and `zed:4dbb5854` on 2026-02-12, and `zed:1171aad8`). "Only these line changes" belongs in the first message.
- Form C: `codex:019fb25a` (2026-07-30) pasted a recipe HTML and the agent copied palette and fonts; you had to re-paste and say "same structure for table, no font/colour". Say what to take and what to keep.
- Say what differs in this repo before pasting. `zed:ccbc611d` had to state "As I don't have src , but rather app", and the target paths in form A carry that.
- Standing rule for AGENTS.md: preserve existing styling and logic when a reference is given (`r-preserve-logic-in-redesign`, `r-do-only-what-asked`, `r-check-current-docs`).
## Real uses
1. `zed:b6465bd9-2da5-443e-9ad4-73b8727e6fa7`, 2026-01-24. Worked first try (1 message, form A).
> Can you just add the following code into this codebase, no need to do anything else , just add the following code [...] ## `app/dialogs/dialog-system.tsx` "use client"; import * as React from "react"; [...]
2. `codex:019fb25a-e577-7902-adb8-6f07a8769865`, 2026-07-30. Not first try (form C; the palette and fonts were copied).
> Read the following code first [recipe page HTML: `<!DOCTYPE html> ... <title>The Stew ...`]
Follow-up in this thread: clarify "same structure for table, no font/colour" (item `07.re1`).
readonly-audit.md ~969 tokens · drafts/prompts/readonly-audit.md
Rendered
readonly-audit
Purpose: a read-only review or QA of code or generated output, returned as a short structured verdict. Works as a prompt for the main agent or as the brief for a reviewer subagent.
READ-ONLY: do not edit, create, delete or format any file. Do not delegate to other agents.
Audit {{path or file list}}, focusing only on {{areas: safety matching, sequence order, error handling, ...}}.
{{For output QA: Execute `{{command}}` and read its entire output, then check: {{checklist}}.}}
Run {{the targeted tests / small probes}} if useful. Do not build or start the app.
Budget: stop investigating after {{N}} tool calls or when you have enough evidence, then write the report. Do not keep gathering evidence once you can answer.
Report only reproducible defects. For each: severity, file:line, the trigger (input or scenario), and the fix you would make. Treat as defects only {{hard failures: wrong output, crash, violated invariant}}; list subjective or style points under "polish", not in the defects.
If there is no material defect, say so explicitly.
Reply as {{one compact JSON object: {"target":"...","status":"Pass"|"Issues","issues":["..."]} | Markdown under {{800}} words ending with PASS or FAIL}}.
Why this shape
- The cleanest first-try in this group was the persona QA call (
opencode:ses_02e656a4, 2026-08-05): an exact file, an exact command, an explicit checklist, "Do not modify files", and the reply format as JSON. No follow-up message followed. - The longer audits needed a second message to force the report. In
opencode:ses_06e934eb(2026-07-24) the first message said "You MUST provide a final report" and still you had to send "Now provide the complete final validation report from the evidence you already gathered. Do not run more tools".opencode:ses_06e042ebrepeated this ("Stop using tools. Based only on the inspection already completed, output the requested final verdict now in under 800 words"). The Budget line is the fix. - Persona QA was rewritten dozens of times because subjective points counted as defects (
pg-persona-qa). The hard-versus-polish split keeps scores stable. - Read-only is stated twice (top line and in the audit line). In
opencode:ses_03479fb3(2026-08-04) you had to write "NO CODE CHANGE OR ANTYHING ELSE" in the prompt and later repeat that you only wanted what you asked. If the tool supports a read-only or plan mode, use it instead of relying on the sentence. - Persona QA skill candidate: the repeated
bun scripts/_dump-plan.ts <persona>command belongs in a skill (pg-persona-qais "skill" in workflows.json); this template covers the generic case.
Real uses
opencode:ses_02e656a4dffeGAiWv4fmFZ5pOF, 2026-08-05. Worked first try (1 message). > Run QA for exactly tests/fixtures/personas/edge/comorbid-diabetic-osteo-hypertension.json. Execute bun scripts/_dump-plan.ts tests/fixtures/personas/edge/comorbid-diabetic-osteo-hypertension.json and inspect its actual output. To keep output small, you may pipe it to bun -e to summarize goalId, structureId, session counts, session types, violations, relaxedSlots and exercise IDs. Check safety caps, goal fit, coverage, progression and dose. Do not modify files. Equal-to-cap demand is allowed. Reply only one compact JSON object: {"persona":"...","status":"Pass"|"Issues","issues":["..."]}.opencode:ses_06e042eb3ffe8B5k0nb2urfQ1g, 2026-07-24. Needed one forcing message (not first try). > Act as a read-only senior reviewer. Inspect asana-domain.ts, asana-query-engine.ts, and tests/asana-query-engine.enrichment.test.ts. Focus only on personalized recommendation safety and accessibility [...] Do not edit files. Report a concise verdict and only concrete logical defects with severity, exact code location, a reproducible scenario, and a suggested fix. If no material defect exists, explicitly say so.
# readonly-audit
Purpose: a read-only review or QA of code or generated output, returned as a short structured verdict. Works as a prompt for the main agent or as the brief for a reviewer subagent.
```
READ-ONLY: do not edit, create, delete or format any file. Do not delegate to other agents.
Audit {{path or file list}}, focusing only on {{areas: safety matching, sequence order, error handling, ...}}.
{{For output QA: Execute `{{command}}` and read its entire output, then check: {{checklist}}.}}
Run {{the targeted tests / small probes}} if useful. Do not build or start the app.
Budget: stop investigating after {{N}} tool calls or when you have enough evidence, then write the report. Do not keep gathering evidence once you can answer.
Report only reproducible defects. For each: severity, file:line, the trigger (input or scenario), and the fix you would make. Treat as defects only {{hard failures: wrong output, crash, violated invariant}}; list subjective or style points under "polish", not in the defects.
If there is no material defect, say so explicitly.
Reply as {{one compact JSON object: {"target":"...","status":"Pass"|"Issues","issues":["..."]} | Markdown under {{800}} words ending with PASS or FAIL}}.
```
## Why this shape
- The cleanest first-try in this group was the persona QA call (`opencode:ses_02e656a4`, 2026-08-05): an exact file, an exact command, an explicit checklist, "Do not modify files", and the reply format as JSON. No follow-up message followed.
- The longer audits needed a second message to force the report. In `opencode:ses_06e934eb` (2026-07-24) the first message said "You MUST provide a final report" and still you had to send "Now provide the complete final validation report from the evidence you already gathered. Do not run more tools". `opencode:ses_06e042eb` repeated this ("Stop using tools. Based only on the inspection already completed, output the requested final verdict now in under 800 words"). The Budget line is the fix.
- Persona QA was rewritten dozens of times because subjective points counted as defects (`pg-persona-qa`). The hard-versus-polish split keeps scores stable.
- Read-only is stated twice (top line and in the audit line). In `opencode:ses_03479fb3` (2026-08-04) you had to write "NO CODE CHANGE OR ANTYHING ELSE" in the prompt and later repeat that you only wanted what you asked. If the tool supports a read-only or plan mode, use it instead of relying on the sentence.
- Persona QA skill candidate: the repeated `bun scripts/_dump-plan.ts <persona>` command belongs in a skill (`pg-persona-qa` is "skill" in workflows.json); this template covers the generic case.
## Real uses
1. `opencode:ses_02e656a4dffeGAiWv4fmFZ5pOF`, 2026-08-05. Worked first try (1 message).
> Run QA for exactly tests/fixtures/personas/edge/comorbid-diabetic-osteo-hypertension.json. Execute bun scripts/_dump-plan.ts tests/fixtures/personas/edge/comorbid-diabetic-osteo-hypertension.json and inspect its actual output. To keep output small, you may pipe it to bun -e to summarize goalId, structureId, session counts, session types, violations, relaxedSlots and exercise IDs. Check safety caps, goal fit, coverage, progression and dose. Do not modify files. Equal-to-cap demand is allowed. Reply only one compact JSON object: {"persona":"...","status":"Pass"|"Issues","issues":["..."]}.
2. `opencode:ses_06e042eb3ffe8B5k0nb2urfQ1g`, 2026-07-24. Needed one forcing message (not first try).
> Act as a read-only senior reviewer. Inspect asana-domain.ts, asana-query-engine.ts, and tests/asana-query-engine.enrichment.test.ts. Focus only on personalized recommendation safety and accessibility [...] Do not edit files. Report a concise verdict and only concrete logical defects with severity, exact code location, a reproducible scenario, and a suggested fix. If no material defect exists, explicitly say so.
research-with-subagents.md ~777 tokens · drafts/prompts/research-with-subagents.md
Rendered
research-with-subagents
Purpose: get a sourced comparison or survey, with each angle researched by a separate subagent and one synthesis.
Research {{question}}.
Use subagents, one per angle: {{angle 1}}, {{angle 2}}, {{angle 3}}. Do not use more than {{N}}.
Compare / cover: {{options to compare, or "find all options"}}.
For each option, report: {{pricing model | special features | how it works at scale | developer experience | developer feedback online}}.
Context that changes the answer: {{private org repo | team size | stack | budget | constraints}}.
Sources: primary sources first (official docs, pricing pages, source repos, papers), then {{forums / issue trackers / reviews}} for feedback. Every claim gets a link. If you cannot find something, say so; do not fill the gap.
Output: {{one comparison table, then a short recommendation for my context}}. Save it to {{path, e.g. a folder in my Obsidian vault}} as {{markdown}}. Do not edit code.
Why this shape
- Two research prompts in your history worked in one message, both with the dimensions listed in the first message:
t3:9e586e93(2026-11-19, "compare all options, their pricing model, their special features..., how do they work at scale, what is their developer experience and what is developer feedback online") andt3:075789ca(2026-11-07, spawn separate subagents per area: frontend, backend, native). The template keeps that list-the-dimensions habit. t3:075789cawas followed by "put this in a folder in my obsidian vault". Stating the output path up front saves the second message.- Research that mixes a build question ("make a pipeline" and "how would you plan it") is where you hit trouble (
prompt_advice). This template is research only and ends with a document, not code. - Citations are a standing rule (
r-real-citations): real, retrieved links; never invent. Put it in AGENTS.md and drop the sentence here. - Library or tool facts newer than the model's knowledge (Effect v4, Alchemy v2, AI SDK) need current docs read first (
r-check-current-docs). - Tool note: "use subagents" is Claude Code/T3 Code/Codex behaviour. In tools without them (Zed Agent), ask for sequential research per angle.
Real uses
t3:9e586e93-8a00-4a4e-ad7d-7a2c05ed352a, 2026-11-19. Single message, no follow-up in the history (first try as far as the log shows). > I want you use subagents and do research about what is best AI code-review service that would work for private org git repo . You need to compare all options , their pricing model , their speical features they have , how do they work at scale , what is their developer experience and what is developer feedback onlinet3:075789ca-e5bc-4cd7-9145-85fac8a9d1bf, 2026-11-07. Worked first try; the only follow-up was a save location. > In the recent times , in the age of LLMs working , verification are very important , now I want you to spawn separate subagent that would research all different ways of validating , verificaitoin accepetant cretierai in deffiernt areas like frontend , backend , native applications and so on and so forth
# research-with-subagents
Purpose: get a sourced comparison or survey, with each angle researched by a separate subagent and one synthesis.
```
Research {{question}}.
Use subagents, one per angle: {{angle 1}}, {{angle 2}}, {{angle 3}}. Do not use more than {{N}}.
Compare / cover: {{options to compare, or "find all options"}}.
For each option, report: {{pricing model | special features | how it works at scale | developer experience | developer feedback online}}.
Context that changes the answer: {{private org repo | team size | stack | budget | constraints}}.
Sources: primary sources first (official docs, pricing pages, source repos, papers), then {{forums / issue trackers / reviews}} for feedback. Every claim gets a link. If you cannot find something, say so; do not fill the gap.
Output: {{one comparison table, then a short recommendation for my context}}. Save it to {{path, e.g. a folder in my Obsidian vault}} as {{markdown}}. Do not edit code.
```
## Why this shape
- Two research prompts in your history worked in one message, both with the dimensions listed in the first message: `t3:9e586e93` (2026-11-19, "compare all options, their pricing model, their special features..., how do they work at scale, what is their developer experience and what is developer feedback online") and `t3:075789ca` (2026-11-07, spawn separate subagents per area: frontend, backend, native). The template keeps that list-the-dimensions habit.
- `t3:075789ca` was followed by "put this in a folder in my obsidian vault". Stating the output path up front saves the second message.
- Research that mixes a build question ("make a pipeline" and "how would you plan it") is where you hit trouble (`prompt_advice`). This template is research only and ends with a document, not code.
- Citations are a standing rule (`r-real-citations`): real, retrieved links; never invent. Put it in AGENTS.md and drop the sentence here.
- Library or tool facts newer than the model's knowledge (Effect v4, Alchemy v2, AI SDK) need current docs read first (`r-check-current-docs`).
- Tool note: "use subagents" is Claude Code/T3 Code/Codex behaviour. In tools without them (Zed Agent), ask for sequential research per angle.
## Real uses
1. `t3:9e586e93-8a00-4a4e-ad7d-7a2c05ed352a`, 2026-11-19. Single message, no follow-up in the history (first try as far as the log shows).
> I want you use subagents and do research about what is best AI code-review service that would work for private org git repo . You need to compare all options , their pricing model , their speical features they have , how do they work at scale , what is their developer experience and what is developer feedback online
2. `t3:075789ca-e5bc-4cd7-9145-85fac8a9d1bf`, 2026-11-07. Worked first try; the only follow-up was a save location.
> In the recent times , in the age of LLMs working , verification are very important , now I want you to spawn separate subagent that would research all different ways of validating , verificaitoin accepetant cretierai in deffiernt areas like frontend , backend , native applications and so on and so forth
similar-to.md ~520 tokens · drafts/prompts/similar-to.md
Rendered
similar-to
Purpose: copy an existing pattern into a new place without the agent redesigning it.
Similar to {{@reference file(s)}}, {{create | change}} {{@target file or new path}}.
Same as the reference: {{structure, props, data fetching, naming, styling}}.
Different: {{only the differences, e.g. the link goes to /admin/sales/[sales], it only fetches users with role admin or internal}}.
Only touch {{target file(s)}}. Do not change the reference or any other file.
{{If it needs a shared piece: extract {{component}} into {{path}} and make both use it.}}
Why this shape
- This pattern works first try for straightforward structural copies (~20 uses, item
02.re1). - It breaks when the agent drifts into unrelated entities or files (item
02.re1). Inzed:2ae75c20(2026-01-20) the new page ended up in the wrong place ("why is the deployment page in the root , pressing the deployment should open the correct page"). Naming where the new file lives and "only touch" prevents both. - Listing differences (not "make it the same") is what made
zed:681cf9dda one-message success. - Always attach the reference files (
@file). Missing attachments caused most restarts in Zed (prompt_advice). The@filesyntax is Zed-specific; in Claude Code use@path, in Codex write the path.
Real uses
zed:681cf9dd-eb17-4680-9f1e-d8a078ae5627, 2025-09-11. Worked first try (1 message). > similar to the user table , make the sales table [@page.tsx] . Now this sales table should be exactly the same , only difference would be that pressing teh username should redirect to /admin/sales/[sales] , and it only fetch user that have role as admin or internal[@page.tsx]zed:2ae75c20-2643-46ec-b79d-e5c520a5609e, 2026-01-20. Needed a correction (location of the new page). > Similar to this paage [@index.tsx] , implement this deployment page that would fetch all of the deployments for the user for the team [@index.tsx]. First extract the components and put them in the components directoy in the root and make both the pages use the same components
# similar-to
Purpose: copy an existing pattern into a new place without the agent redesigning it.
```
Similar to {{@reference file(s)}}, {{create | change}} {{@target file or new path}}.
Same as the reference: {{structure, props, data fetching, naming, styling}}.
Different: {{only the differences, e.g. the link goes to /admin/sales/[sales], it only fetches users with role admin or internal}}.
Only touch {{target file(s)}}. Do not change the reference or any other file.
{{If it needs a shared piece: extract {{component}} into {{path}} and make both use it.}}
```
## Why this shape
- This pattern works first try for straightforward structural copies (~20 uses, item `02.re1`).
- It breaks when the agent drifts into unrelated entities or files (item `02.re1`). In `zed:2ae75c20` (2026-01-20) the new page ended up in the wrong place ("why is the deployment page in the root , pressing the deployment should open the correct page"). Naming where the new file lives and "only touch" prevents both.
- Listing differences (not "make it the same") is what made `zed:681cf9dd` a one-message success.
- Always attach the reference files (`@file`). Missing attachments caused most restarts in Zed (`prompt_advice`). The `@file` syntax is Zed-specific; in Claude Code use `@path`, in Codex write the path.
## Real uses
1. `zed:681cf9dd-eb17-4680-9f1e-d8a078ae5627`, 2025-09-11. Worked first try (1 message).
> similar to the user table , make the sales table [@page.tsx] . Now this sales table should be exactly the same , only difference would be that pressing teh username should redirect to /admin/sales/[sales] , and it only fetch user that have role as admin or internal[@page.tsx]
2. `zed:2ae75c20-2643-46ec-b79d-e5c520a5609e`, 2026-01-20. Needed a correction (location of the new page).
> Similar to this paage [@index.tsx] , implement this deployment page that would fetch all of the deployments for the user for the team [@index.tsx]. First extract the components and put them in the components directoy in the root and make both the pages use the same components
slides-combine.md ~981 tokens · drafts/prompts/slides-combine.md
Rendered
slides-combine
Purpose: merge several Slidev slides into one click-driven visualisation component. First attempts were poor almost every time (small text, low contrast, no clicks), so this template adds numbers and states up front.
Combine these slides into a single slide: {{slide titles or paste of the slides, with the file and line range}}.
The new slide is one visualisation component. Read {{path to an existing visualisation component}} first and follow its slide/click logic, and read the frontend-design skill.
Click sequence (one state per click):
0. {{intro: the idea in one sentence}}
1. {{state 1: what appears, what is highlighted}}
2. {{state 2}}
...
Layout: {{two columns: code on the left; right column split in two, memory above and calculation or explanation below}}.
Teaching goal: after the last click a student can {{explain / reproduce ...}}. The explanation must say how, not only what (for example how the mask works).
Size and contrast (hard numbers, not adjectives):
- Fills the slide height; no empty band above or below. {{min code font px / body font px}}.
- Text and highlights readable on the projector: {{contrast / colour tokens from the existing component}}.
- Small gap between line numbers and the code block edge.
Keep: {{the rest of the deck, other slides}} unchanged. {{Remove the original slides after the new one is in.}}
Do not run the app, preview or use Argent/Chromium. Check only with {{tsc | none}}.
Why this shape
- First attempts were the weakest of any prompt group (12 uses, "poor"; item
06.re4). Incodexhist:019f5a1d(2026-07-13) the prompt needed about ten follow-ups, six of them "make it bigger" / "increase it slightly more" for text size, because size was described only as an adjective. - In
codexhist:019f5ac9(2026-07-13) the component "doesn't teaches the rules" and had "too much empty space"; you asked for a redesign from scratch. The template makes the teaching goal and the click states explicit so the agent designs the content, not just the shell. - "Read the other visualisation components and the frontend skill" was in the original and is kept; it did not prevent the size problem by itself.
- The per-click list replaces "it should have unpack values slide, update one field slide" arriving as a later message.
- Standing rules for AGENTS.md (
comp2017project): use magic-move for stepwise code,v-if="$clicks === N"states, no v-click on normal slides, keep slides concise and correct (r-slidev-magic-move,r-slides-concise-correct,r-no-run-app-unless-asked). Then drop them from this prompt.
Real uses
codexhist:019f5a1d-a48e-78a0-b7e2-d3f05d65c0cd, 2026-07-13. Not first try (about 13 messages, mostly sizing). > i want to combine all of the following slides into a single slide. Now this , slide needs to be completely using a vislusation component (read other components and frontend skill) [...] First it should tell the us the idea that is we would be saving Mode , priroty and ID into a single integer . And then all of the slide would be in two column , left column showing the code , right column (split in two) showing the memory and the calculation of the highlighted(or the explanation). Do you understand ?
Follow-ups: "No argent!", "makthe component biggger when it comes to hight !", "increase the text-size being used as well", then "increase it slightly more" five times.
codexhist:019f5ac9-3e29-7412-9cc8-1d70f7fc2c28, 2026-07-13. Not first try. > For the slide Padding RUles , have a vislusation component , with clicks that would explain the student how padding works and what are the rules when it comes to padding in strcuts . Please read the frontend skill and other vislusiation component as well
Follow-ups: "[Image #1] too much empty space.Do not use argent", "still shitty design , redesign it from scarcthc", "Also this component doesn't teaches the rules".
# slides-combine
Purpose: merge several Slidev slides into one click-driven visualisation component. First attempts were poor almost every time (small text, low contrast, no clicks), so this template adds numbers and states up front.
```
Combine these slides into a single slide: {{slide titles or paste of the slides, with the file and line range}}.
The new slide is one visualisation component. Read {{path to an existing visualisation component}} first and follow its slide/click logic, and read the frontend-design skill.
Click sequence (one state per click):
0. {{intro: the idea in one sentence}}
1. {{state 1: what appears, what is highlighted}}
2. {{state 2}}
...
Layout: {{two columns: code on the left; right column split in two, memory above and calculation or explanation below}}.
Teaching goal: after the last click a student can {{explain / reproduce ...}}. The explanation must say how, not only what (for example how the mask works).
Size and contrast (hard numbers, not adjectives):
- Fills the slide height; no empty band above or below. {{min code font px / body font px}}.
- Text and highlights readable on the projector: {{contrast / colour tokens from the existing component}}.
- Small gap between line numbers and the code block edge.
Keep: {{the rest of the deck, other slides}} unchanged. {{Remove the original slides after the new one is in.}}
Do not run the app, preview or use Argent/Chromium. Check only with {{tsc | none}}.
```
## Why this shape
- First attempts were the weakest of any prompt group (12 uses, "poor"; item `06.re4`). In `codexhist:019f5a1d` (2026-07-13) the prompt needed about ten follow-ups, six of them "make it bigger" / "increase it slightly more" for text size, because size was described only as an adjective.
- In `codexhist:019f5ac9` (2026-07-13) the component "doesn't teaches the rules" and had "too much empty space"; you asked for a redesign from scratch. The template makes the teaching goal and the click states explicit so the agent designs the content, not just the shell.
- "Read the other visualisation components and the frontend skill" was in the original and is kept; it did not prevent the size problem by itself.
- The per-click list replaces "it should have unpack values slide, update one field slide" arriving as a later message.
- Standing rules for AGENTS.md (`comp2017` project): use magic-move for stepwise code, `v-if="$clicks === N"` states, no v-click on normal slides, keep slides concise and correct (`r-slidev-magic-move`, `r-slides-concise-correct`, `r-no-run-app-unless-asked`). Then drop them from this prompt.
## Real uses
1. `codexhist:019f5a1d-a48e-78a0-b7e2-d3f05d65c0cd`, 2026-07-13. Not first try (about 13 messages, mostly sizing).
> i want to combine all of the following slides into a single slide. Now this , slide needs to be completely using a vislusation component (read other components and frontend skill) [...] First it should tell the us the idea that is we would be saving Mode , priroty and ID into a single integer . And then all of the slide would be in two column , left column showing the code , right column (split in two) showing the memory and the calculation of the highlighted(or the explanation). Do you understand ?
Follow-ups: "No argent!", "makthe component biggger when it comes to hight !", "increase the text-size being used as well", then "increase it slightly more" five times.
2. `codexhist:019f5ac9-3e29-7412-9cc8-1d70f7fc2c28`, 2026-07-13. Not first try.
> For the slide Padding RUles , have a vislusation component , with clicks that would explain the student how padding works and what are the rules when it comes to padding in strcuts . Please read the frontend skill and other vislusiation component as well
Follow-ups: "[Image #1] too much empty space.Do not use argent", "still shitty design , redesign it from scarcthc", "Also this component doesn't teaches the rules".
subagent-routing.md ~923 tokens · drafts/prompts/subagent-routing.md
Rendered
subagent-routing
Purpose: split a large task across subagents with named models and effort, a review step, and a stated order of checking. Use when the work is many similar units (write 30 files, port 12 modules).
{{task in one sentence, with the target folder and the format to follow (@example file)}}
Use subagents:
- Writers: {{model, e.g. Haiku}} {{effort}}, one subagent per {{file / topic / module}}. Each writes only its own {{file}} and does not touch any other file.
- Reviewer: {{model, e.g. Sonnet}} {{effort}}, read-only first; it returns a list of defects. {{It may fix links and typos only.}}
Order: run writers in groups of {{N}}. {{Check each group when it returns, before the next group. | Do all writers first, and do the single review pass only at the end, once everything is written.}}
Finally update {{the index file}} so it links every {{topic}} to its {{file}}.
Rules for every subagent: {{no deploy, no remote calls, no full test suite; only targeted tests}}. Do not spawn subagents for anything else.
Do not leave backup, temp or scratch files. Delete any you create.
Why this shape
- Models and order were the repeated fixes. In
t3:301017fe(2026-11-03) you first said "preferable Haiku or Sonnet", then after the agent resumed: "i think using haiku would be better. Use Haiku model instaned , wirte all topics , and only at the end do the check". The same ask int3:03ef3dab(2026-11-03) was clearer: "Haiku only ... (use sonnet subagent to review and fix)" and still needed "after this just to do the sonnet review at the end once everything is written . And i mean everything". TheOrderline states both options so you pick one up front. - "Make them write each file ... check their work ... then move to next set" is a loop that the agent otherwise runs once; a group size makes it explicit.
r-subagent-model-routingsays to use exactly the models and effort you name. Save the default routing in AGENTS.md (for example "writers: Haiku, reviewers: Sonnet, hard debugging: Opus") so the prompt only names exceptions.- Backup files: in
t3:301017fethe agent left backups ("i didn't asked for backup files, if you created backup files trash them"). The last line prevents it (r-cleanup-worktrees-processes,r-no-unrequested-docs-tests). - "Do not spawn subagents for anything else" matches
r-no-subagents-unless-asked: small or debugging tasks should not fan out. - Tool note: the model names and "effort" levels (Haiku, Sonnet, Opus, Sol low, Codex-Work) exist in Claude Code and T3 Code. In Codex or opencode, use the model ids that tool offers; the structure is the same.
Real uses
t3:03ef3dab-a593-4892-af5d-5b79b346aa6d, 2026-11-03. Needed one follow-up on when to review (not first try). > Now I want to spawn a lot of subagent with Haiku only and make them write each file. Once they return back check their work and see if the correct link is done (use sonnet subagent to review and fix). And then move to next set. Note to update the .md the root of this data engineering folder that has all of the topic that would link the topic and subtopic to their file at the end of the. [...] You can do all topic one after another in groups . And then do the subagent-review together and do the pass so they correctly link each other correctlyt3:aa89bd1d-5b70-40ad-8c97-86e1e14a73fe, 2026-11-01. Review-subagent clause inside a larger request; a PR was ready about 35 minutes after the request, and you answered "option 1" and "merge it in" (no correction). > [...] Can you check it , confirm this issue or behavior. (Spawn another subagent with opus with triage skill and let it confirm the issue first)
# subagent-routing
Purpose: split a large task across subagents with named models and effort, a review step, and a stated order of checking. Use when the work is many similar units (write 30 files, port 12 modules).
```
{{task in one sentence, with the target folder and the format to follow (@example file)}}
Use subagents:
- Writers: {{model, e.g. Haiku}} {{effort}}, one subagent per {{file / topic / module}}. Each writes only its own {{file}} and does not touch any other file.
- Reviewer: {{model, e.g. Sonnet}} {{effort}}, read-only first; it returns a list of defects. {{It may fix links and typos only.}}
Order: run writers in groups of {{N}}. {{Check each group when it returns, before the next group. | Do all writers first, and do the single review pass only at the end, once everything is written.}}
Finally update {{the index file}} so it links every {{topic}} to its {{file}}.
Rules for every subagent: {{no deploy, no remote calls, no full test suite; only targeted tests}}. Do not spawn subagents for anything else.
Do not leave backup, temp or scratch files. Delete any you create.
```
## Why this shape
- Models and order were the repeated fixes. In `t3:301017fe` (2026-11-03) you first said "preferable Haiku or Sonnet", then after the agent resumed: "i think using haiku would be better. Use Haiku model instaned , wirte all topics , and only at the end do the check". The same ask in `t3:03ef3dab` (2026-11-03) was clearer: "Haiku only ... (use sonnet subagent to review and fix)" and still needed "after this just to do the sonnet review at the end once everything is written . And i mean everything". The `Order` line states both options so you pick one up front.
- "Make them write each file ... check their work ... then move to next set" is a loop that the agent otherwise runs once; a group size makes it explicit.
- `r-subagent-model-routing` says to use exactly the models and effort you name. Save the default routing in AGENTS.md (for example "writers: Haiku, reviewers: Sonnet, hard debugging: Opus") so the prompt only names exceptions.
- Backup files: in `t3:301017fe` the agent left backups ("i didn't asked for backup files, if you created backup files trash them"). The last line prevents it (`r-cleanup-worktrees-processes`, `r-no-unrequested-docs-tests`).
- "Do not spawn subagents for anything else" matches `r-no-subagents-unless-asked`: small or debugging tasks should not fan out.
- Tool note: the model names and "effort" levels (Haiku, Sonnet, Opus, Sol low, Codex-Work) exist in Claude Code and T3 Code. In Codex or opencode, use the model ids that tool offers; the structure is the same.
## Real uses
1. `t3:03ef3dab-a593-4892-af5d-5b79b346aa6d`, 2026-11-03. Needed one follow-up on when to review (not first try).
> Now I want to spawn a lot of subagent with Haiku only and make them write each file. Once they return back check their work and see if the correct link is done (use sonnet subagent to review and fix). And then move to next set. Note to update the .md the root of this data engineering folder that has all of the topic that would link the topic and subtopic to their file at the end of the. [...] You can do all topic one after another in groups . And then do the subagent-review together and do the pass so they correctly link each other correctly
2. `t3:aa89bd1d-5b70-40ad-8c97-86e1e14a73fe`, 2026-11-01. Review-subagent clause inside a larger request; a PR was ready about 35 minutes after the request, and you answered "option 1" and "merge it in" (no correction).
> [...] Can you check it , confirm this issue or behavior. (Spawn another subagent with opus with triage skill and let it confirm the issue first)
thesis-review.md ~974 tokens · drafts/prompts/thesis-review.md
Rendered
thesis-review
Purpose: review or mark one thesis chapter against a rubric, and nothing outside it.
Review the {{chapter name, e.g. methodology}} of my honours thesis in {{path to the chapter file(s)}}.
Read the whole chapter in full before answering; your read tool truncates long files, so read in parts until you reach the end. {{Also read: chapters it refers to, and the appendix it references.}}
Scope: judge only this chapter. {{Experiments are unfinished: ignore their results and judge only the rigour and correctness of the method.}} Do not list issues in {{other chapters}}.
Rubric: {{paste the marking scheme, e.g. Contribution 40, Critical analysis 30, Knowledge 20, Communication 10}}
Questions I want answered: {{Is the approach appropriate? Does it give the reader everything needed before the experiments? Is the narrative flow strong?}}
Output: a score per rubric item with one line of evidence each (quote the sentence), then a numbered list of fixes, most valuable first. Separate hard problems (wrong, missing, contradicts another section) from subjective polish.
Do not edit the thesis. Do not delete important information. Wait for me to say which fix to apply.
{{When I ask for a re-score: re-read the changed parts only and say what moved and why; do not change the standard.}}
Why this shape
- The chapter scope line is there because the agent reviewed more than asked. In
claudehist:edc6b9aa(2026-05-16) you answered the agent's extra findings with "When did i asked for issues in intro, background , lit reiview ?" (item10.re0). - Rubric pasted every time (item
10.re1: four conversations). Scores fluctuated on re-evaluation and annoyed you, so the template asks for evidence per score and says to re-score only what changed. - "Read it full" is in your own wording because the read tool truncates long files ("since your read tool can turniacte long files",
claudehist:fd7b4a32). Skimming also happened: "did you even read it ? Read the literature , background before reading this lit review" (claudehist:3355e598, 2026-05-16). The template asks the agent to read in parts until the end. - "Do not delete important information" came from over-trimming in the concise-appendix prompt (item
10.re3, several restarts, same wording added after the agent cut too much). - Standing rules for AGENTS.md in the thesis folder: concise academic style, no repetition, no invented labels, only citations that support the claim (
r-thesis-academic-style,r-real-citations). Then the prompt can drop its style lines.
Real uses
claudehist:3355e598-05c5-4df0-8d64-fecd6f8bb322, 2026-05-16 (message 46 of a long session). Mixed: the review came, then you re-sent the follow-up benchmark-script request three times with additions within eight minutes, and asked "Before you start. Thourghly think about it !". > Please review the methodology section. In doing so, you will need to read through the experiments; however, please note that I have not yet completed all of them, so disregard the results and focus strictly on the academic rigor and correctness of the methodology itself. Does this section need anything else? Is the approach appropriate? Does it convey all necessary information before the experiment begins? Additionally, please review the introduction and background sections. Could you evaluate whether they maintain a strong narrative flow and seem academically rigorous?claudehist:fd7b4a32-4e46-44ab-a205-e99d9586feec, 2026-05-25. No correction of the first reply; your next messages built on it ("what the issues in the thesis writing itself", then "Let's go over each issue one by one"). Scores still fluctuated across the four runs of this prompt (item10.re1). > According to the following mark my thesis. Please read it full , since your read tool can turniacte long files [pasted marking scheme, 80 lines]
# thesis-review
Purpose: review or mark one thesis chapter against a rubric, and nothing outside it.
```
Review the {{chapter name, e.g. methodology}} of my honours thesis in {{path to the chapter file(s)}}.
Read the whole chapter in full before answering; your read tool truncates long files, so read in parts until you reach the end. {{Also read: chapters it refers to, and the appendix it references.}}
Scope: judge only this chapter. {{Experiments are unfinished: ignore their results and judge only the rigour and correctness of the method.}} Do not list issues in {{other chapters}}.
Rubric: {{paste the marking scheme, e.g. Contribution 40, Critical analysis 30, Knowledge 20, Communication 10}}
Questions I want answered: {{Is the approach appropriate? Does it give the reader everything needed before the experiments? Is the narrative flow strong?}}
Output: a score per rubric item with one line of evidence each (quote the sentence), then a numbered list of fixes, most valuable first. Separate hard problems (wrong, missing, contradicts another section) from subjective polish.
Do not edit the thesis. Do not delete important information. Wait for me to say which fix to apply.
{{When I ask for a re-score: re-read the changed parts only and say what moved and why; do not change the standard.}}
```
## Why this shape
- The chapter scope line is there because the agent reviewed more than asked. In `claudehist:edc6b9aa` (2026-05-16) you answered the agent's extra findings with "When did i asked for issues in intro, background , lit reiview ?" (item `10.re0`).
- Rubric pasted every time (item `10.re1`: four conversations). Scores fluctuated on re-evaluation and annoyed you, so the template asks for evidence per score and says to re-score only what changed.
- "Read it full" is in your own wording because the read tool truncates long files ("since your read tool can turniacte long files", `claudehist:fd7b4a32`). Skimming also happened: "did you even read it ? Read the literature , background before reading this lit review" (`claudehist:3355e598`, 2026-05-16). The template asks the agent to read in parts until the end.
- "Do not delete important information" came from over-trimming in the concise-appendix prompt (item `10.re3`, several restarts, same wording added after the agent cut too much).
- Standing rules for AGENTS.md in the thesis folder: concise academic style, no repetition, no invented labels, only citations that support the claim (`r-thesis-academic-style`, `r-real-citations`). Then the prompt can drop its style lines.
## Real uses
1. `claudehist:3355e598-05c5-4df0-8d64-fecd6f8bb322`, 2026-05-16 (message 46 of a long session). Mixed: the review came, then you re-sent the follow-up benchmark-script request three times with additions within eight minutes, and asked "Before you start. Thourghly think about it !".
> Please review the methodology section. In doing so, you will need to read through the experiments; however, please note that I have not yet completed all of them, so disregard the results and focus strictly on the academic rigor and correctness of the methodology itself. Does this section need anything else? Is the approach appropriate? Does it convey all necessary information before the experiment begins? Additionally, please review the introduction and background sections. Could you evaluate whether they maintain a strong narrative flow and seem academically rigorous?
2. `claudehist:fd7b4a32-4e46-44ab-a205-e99d9586feec`, 2026-05-25. No correction of the first reply; your next messages built on it ("what the issues in the thesis writing itself", then "Let's go over each issue one by one"). Scores still fluctuated across the four runs of this prompt (item `10.re1`).
> According to the following mark my thesis. Please read it full , since your read tool can turniacte long files [pasted marking scheme, 80 lines]
tickets-one-by-one.md ~615 tokens · drafts/prompts/tickets-one-by-one.md
Rendered
tickets-one-by-one
Purpose: work through a list or milestone of Linear tickets sequentially, one PR each, merging and updating Linear as you go. No parallel agents.
Can you access all of the tickets from {{milestone / project / label}} in Linear?
{{URL}}
Work on these one by one, starting with the first that needs to be done, then the next, and so on.
For each issue: create a branch, implement it, run {{allowed checks}}, open a PR, update the Linear issue, merge the PR, then move to the next.
First confirm you understand what I mean.
Only stop when all {{N}} tickets are implemented in separate PRs, merged, and their Linear tickets updated. {{If a ticket is blocked, skip it, say why, and continue.}}
Why this shape
- Two messages: a cheap "can you access them" check first, then the instruction. It proves the Linear connector works before 10 tickets depend on it.
- "First confirm you understand" followed by one-word "Proceed." is the confirm gate that your first-try successes share (
prompt_advice). - The stop condition is explicit ("only stop once..."), which guards against stopping early; in
t3:587bc5c7(2026-11-17), where the prompt had no stop condition, you had to add "Next . Don't stop until all todo are done". - Repeated across two milestones (items
20.re5: "Image & Stream" and "Realtime"), same wording, agent confirmed then proceeded. - Remaining standing rules for AGENTS.md: PR per ticket, squash merge, Linear In Progress/Done (
r-pr-linear-flow,r-squash-merge-stacked,r-branch-from-main).
Real uses
t3:c667bf71-e16d-498e-bdb6-9afa5c3db433, 2026-10-21. Worked first try (4 of your messages: access check, instruction, "Proceed.", later "Stop the processes"). > Now , what I want you to do is work on these one by one. From the First that needs to be done , then next one and so on. For each issue , you need to make a PR , implement , update Linear Issue . Then Merge in the PR . And move on to next issue. First of all confirm if you understand what I meant or not ? You only stop once all of these 10 tickets are implemented in spearate PR , merged in and Linear tickets are updated.t3:587bc5c7-5aa8-412d-92d1-3a232dd30627, 2026-11-16. Parallel variant; needed nudges ("Why are the test failing fix them", "Make sure there working locally !!! And finish it off") and a continue after a limit, but ended with "all done ? if so clean up your worktrees and simulators" on 2026-11-18.
# tickets-one-by-one
Purpose: work through a list or milestone of Linear tickets sequentially, one PR each, merging and updating Linear as you go. No parallel agents.
```
Can you access all of the tickets from {{milestone / project / label}} in Linear?
{{URL}}
Work on these one by one, starting with the first that needs to be done, then the next, and so on.
For each issue: create a branch, implement it, run {{allowed checks}}, open a PR, update the Linear issue, merge the PR, then move to the next.
First confirm you understand what I mean.
Only stop when all {{N}} tickets are implemented in separate PRs, merged, and their Linear tickets updated. {{If a ticket is blocked, skip it, say why, and continue.}}
```
## Why this shape
- Two messages: a cheap "can you access them" check first, then the instruction. It proves the Linear connector works before 10 tickets depend on it.
- "First confirm you understand" followed by one-word "Proceed." is the confirm gate that your first-try successes share (`prompt_advice`).
- The stop condition is explicit ("only stop once..."), which guards against stopping early; in `t3:587bc5c7` (2026-11-17), where the prompt had no stop condition, you had to add "Next . Don't stop until all todo are done".
- Repeated across two milestones (items `20.re5`: "Image & Stream" and "Realtime"), same wording, agent confirmed then proceeded.
- Remaining standing rules for AGENTS.md: PR per ticket, squash merge, Linear In Progress/Done (`r-pr-linear-flow`, `r-squash-merge-stacked`, `r-branch-from-main`).
## Real uses
1. `t3:c667bf71-e16d-498e-bdb6-9afa5c3db433`, 2026-10-21. Worked first try (4 of your messages: access check, instruction, "Proceed.", later "Stop the processes").
> Now , what I want you to do is work on these one by one. From the First that needs to be done , then next one and so on. For each issue , you need to make a PR , implement , update Linear Issue . Then Merge in the PR . And move on to next issue. First of all confirm if you understand what I meant or not ? You only stop once all of these 10 tickets are implemented in spearate PR , merged in and Linear tickets are updated.
2. `t3:587bc5c7-5aa8-412d-92d1-3a232dd30627`, 2026-11-16. Parallel variant; needed nudges ("Why are the test failing fix them", "Make sure there working locally !!! And finish it off") and a continue after a limit, but ended with "all done ? if so clean up your worktrees and simulators" on 2026-11-18.
what-is-this-app.md ~452 tokens · drafts/prompts/what-is-this-app.md
Rendered
what-is-this-app
Purpose: orient the agent (and you) in an unfamiliar or cold repo before any real request.
What is this application? Read the code and docs only. Do not run, build or install anything.
Answer in under {{300}} words:
1. Purpose in one sentence, and who uses it.
2. Stack, and the main folders or packages (one line each).
3. The commands to run it locally and to test it (read them from package.json / README, do not run them).
4. Where {{the area I care about}} lives.
Stop after the summary. No edits, no improvement ideas.
Why this shape
- The bare version ("what is this application ?", about 30 uses) works first try and is cheap (
pg-what-is-this-app, items09.re5,20.re4). The added lines only make the answer reusable: run and test commands, and where to look next. - Stacking a second ask killed it.
t3:a5c2935eopened with "what is this application ? How would you improve this application UI ?" and ran to 36 of your messages, 6 corrections and 18 frustration signals (the agent offered menus of optional UI changes instead of acting). - "Read the code in this" on data-heavy folders returned nothing useful. Name the area to read (line 4).
- If the answers to lines 2 and 3 are in AGENTS.md, this prompt becomes unnecessary. Put "how to run, how to test, folder map" in AGENTS.md once (see
drafts/context/*.md).
Real uses
t3:f202121e-08df-4767-961f-0f30d4983474, 2026-11-05. Worked first try; next message was a feature request. > what is this app ? what's the command to run it ?codexhist:019ec9fe-7ce9-7ce1-b2a6-0868a9109060, 2026-06-15. Worked first try; followed by "ok so upadate the readme file". > what is this application ?- Counter-example:
t3:a5c2935e-8fff-4ec2-a406-e9625378cd3d, 2026-10-30, worked badly (see above).
# what-is-this-app
Purpose: orient the agent (and you) in an unfamiliar or cold repo before any real request.
```
What is this application? Read the code and docs only. Do not run, build or install anything.
Answer in under {{300}} words:
1. Purpose in one sentence, and who uses it.
2. Stack, and the main folders or packages (one line each).
3. The commands to run it locally and to test it (read them from package.json / README, do not run them).
4. Where {{the area I care about}} lives.
Stop after the summary. No edits, no improvement ideas.
```
## Why this shape
- The bare version ("what is this application ?", about 30 uses) works first try and is cheap (`pg-what-is-this-app`, items `09.re5`, `20.re4`). The added lines only make the answer reusable: run and test commands, and where to look next.
- Stacking a second ask killed it. `t3:a5c2935e` opened with "what is this application ? How would you improve this application UI ?" and ran to 36 of your messages, 6 corrections and 18 frustration signals (the agent offered menus of optional UI changes instead of acting).
- "Read the code in this" on data-heavy folders returned nothing useful. Name the area to read (line 4).
- If the answers to lines 2 and 3 are in AGENTS.md, this prompt becomes unnecessary. Put "how to run, how to test, folder map" in AGENTS.md once (see `drafts/context/*.md`).
## Real uses
1. `t3:f202121e-08df-4767-961f-0f30d4983474`, 2026-11-05. Worked first try; next message was a feature request.
> what is this app ? what's the command to run it ?
2. `codexhist:019ec9fe-7ce9-7ce1-b2a6-0868a9109060`, 2026-06-15. Worked first try; followed by "ok so upadate the readme file".
> what is this application ?
3. Counter-example: `t3:a5c2935e-8fff-4ec2-a406-e9625378cd3d`, 2026-10-30, worked badly (see above).
why-error.md ~635 tokens · drafts/prompts/why-error.md
Rendered
why-error
Purpose: get a diagnosis (and optionally a fix) for a pasted error, with the facts the agent cannot see.
Why am I getting this error? {{Diagnose only: do not edit files, run commands or build. | Fix it too, but only the cause.}}
Where it happens: {{command / page / URL / CI job}}
Environment: {{local dev | production build | deployed on Vercel/Cloudflare | CI}}
Relevant files: {{@file or path, one per line}}
What changed just before it broke: {{change, upgrade, new env var, or "nothing"}}
Already tried: {{what you tried, or "nothing"}}
Error (full, unedited, first line to last):
{{paste the whole log including the stack}}
Answer with: the cause in one or two sentences, the file and line it comes from, and the fix you would make.
{{Then wait for me to say "fix it".}}
Why this shape
- Bare pastes ("why am I getting this error ?" plus a log) led to guesses and follow-ups about facts the agent could not see. In
zed:1fa1b01athe facts "it runs locally but not in production" and "it is not using docker compose" arrived as three later messages. - One-turn successes named the file and pasted the full error:
zed:37e22a48,zed:b631c178. The template makes that the default. - "Diagnose only" is explicit because the agent often runs commands or rewrites code when you only wanted the cause (
pg-why-error; ruler-question-means-answer-only). Inzed:31d9a080you ended with "just answer me". - Runtime and deploy errors (env vars, production-only failures) need the environment line. Without it they took several rounds (
codexhist:019f5904, 2026-07-13, env vars "set" but missing in the deployed function).
Real uses
zed:37e22a48-6675-4bec-baad-a4e76582b914, 2025-08-29. Worked first try (1 message, no follow-up). > [@subscription-emails.ts] in this you cannot use renderToString , as I'm getting this error ./src/lib/subscription-emails.ts Error: x You're importing a component that imports react-dom/server. To fix it, render or return the content directly as a Server Component [...] Import trace for requested module: [...]zed:1fa1b01a-38d3-45f4-b5ad-66df886a2428, 2025-12-01. Needed three corrections. > why am I getting this error ? Failed to load resource: net::ERR_CONNECTION_REFUSED[@main.py]
Then: "It's not currently running", "It runs locally but doesn't run in production !", "it is not using docker cmopose".
Standing rule to put in AGENTS.md instead: "A question is not a request to edit. Answer only when I ask why." (r-question-means-answer-only).
# why-error
Purpose: get a diagnosis (and optionally a fix) for a pasted error, with the facts the agent cannot see.
```
Why am I getting this error? {{Diagnose only: do not edit files, run commands or build. | Fix it too, but only the cause.}}
Where it happens: {{command / page / URL / CI job}}
Environment: {{local dev | production build | deployed on Vercel/Cloudflare | CI}}
Relevant files: {{@file or path, one per line}}
What changed just before it broke: {{change, upgrade, new env var, or "nothing"}}
Already tried: {{what you tried, or "nothing"}}
Error (full, unedited, first line to last):
{{paste the whole log including the stack}}
Answer with: the cause in one or two sentences, the file and line it comes from, and the fix you would make.
{{Then wait for me to say "fix it".}}
```
## Why this shape
- Bare pastes ("why am I getting this error ?" plus a log) led to guesses and follow-ups about facts the agent could not see. In `zed:1fa1b01a` the facts "it runs locally but not in production" and "it is not using docker compose" arrived as three later messages.
- One-turn successes named the file and pasted the full error: `zed:37e22a48`, `zed:b631c178`. The template makes that the default.
- "Diagnose only" is explicit because the agent often runs commands or rewrites code when you only wanted the cause (`pg-why-error`; rule `r-question-means-answer-only`). In `zed:31d9a080` you ended with "just answer me".
- Runtime and deploy errors (env vars, production-only failures) need the environment line. Without it they took several rounds (`codexhist:019f5904`, 2026-07-13, env vars "set" but missing in the deployed function).
## Real uses
1. `zed:37e22a48-6675-4bec-baad-a4e76582b914`, 2025-08-29. Worked first try (1 message, no follow-up).
> [@subscription-emails.ts] in this you cannot use renderToString , as I'm getting this error ./src/lib/subscription-emails.ts Error: x You're importing a component that imports react-dom/server. To fix it, render or return the content directly as a Server Component [...] Import trace for requested module: [...]
2. `zed:1fa1b01a-38d3-45f4-b5ad-66df886a2428`, 2025-12-01. Needed three corrections.
> why am I getting this error ? Failed to load resource: net::ERR_CONNECTION_REFUSED[@main.py]
Then: "It's not currently running", "It runs locally but doesn't run in production !", "it is not using docker cmopose".
Standing rule to put in AGENTS.md instead: "A question is not a request to edit. Answer only when I ask why." (`r-question-means-answer-only`).