Skip to content

feat(prompt-templates): add context-bootstrap and ADHD-breakdown built-ins - #565

Merged
Juliusolsson05 merged 1 commit into
mainfrom
feat/prompt-templates-bootstrap-adhd
Jul 18, 2026
Merged

Juliusolsson05 merged 1 commit into
mainfrom
feat/prompt-templates-bootstrap-adhd

Conversation

@Juliusolsson05

Copy link
Copy Markdown
Owner

Adds two built-in prompt templates to builtinPromptTemplates.

The templates

Read This Project (builtin:context-bootstrap)

Please read what this project is for me — README, CLAUDE.md/AGENTS.md, and the repo layout.

Tell me what it is, why it exists, how it works, and any conventions I would get wrong.
Do not change anything yet. This is context bootstrapping.

ADHD-Friendly Breakdown (builtin:adhd-friendly-breakdown)

Give me that in an ADHD-friendly breakdown.

Notes on the shape

Both are static-body — no buildBody, no workspace context, no IPC. Nothing to resolve at insert time.

Three decisions worth flagging, all commented in the diff:

  • Ordering. Both go ahead of the existing three. allPromptTemplates() returns custom templates first and then this array verbatim; array position is the only ranking signal the palette has. These two are the ones reached for constantly.
  • Title. "Read This Project", not "Context Bootstrap" — filteredPromptTemplates matches on title + description, and nobody searching for this types "bootstrap".
  • The final line of refactor: reshape tree, break up god-files, go all-absolute imports #1 is load-bearing. Without an explicit stop, a fresh agent reads two or three files and then starts editing something it has only half-understood.

#2 is one sentence on purpose. Longer drafts spelling out formatting rules didn't beat the bare phrase and made the inserted draft more tedious to edit before sending.

Verification

tsc -p tsconfig.web.json --noEmit in the worktree reports only TS6305 project-reference staleness (.tsc-out/node unbuilt in a fresh worktree) — zero errors in templates.ts or anywhere under prompt-templates/. The main checkout has its own pre-existing errors in catalogCoverage.ts / committed.ts, unrelated to this diff.

No new tests.

🤖 Generated with Claude Code

…t-ins

Two new built-in prompt templates, both static-body (no buildBody, no
workspace context needed):

- "Read This Project" — points a fresh agent at README/CLAUDE.md/layout
  and explicitly tells it not to edit anything yet. Titled for what a
  user would type in the palette, not for what the feature is called.
- "ADHD-Friendly Breakdown" — one sentence, deliberately.

Both sit ahead of the existing three because array position is the only
ranking signal allPromptTemplates gives the palette, and these are the
two reached for most often.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Juliusolsson05
Juliusolsson05 merged commit d3f1d59 into main Jul 18, 2026
1 check passed
@Juliusolsson05
Juliusolsson05 deleted the feat/prompt-templates-bootstrap-adhd branch July 18, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant