Bootstrap docs context files, merge AGENTS.md/CLAUDE.md, grill one unfilled file per run
Set up living project context so coding agents stop guessing. Do not implement application code. Do not fill more than one context file per invocation.
This skill is bundled with /create-feature-spec. After the build plan is filled, point the user there.
Search the project and home skill dirs for grill-me/SKILL.md (.cursor/skills, .claude/skills, .agents/skills, .windsurf/skills, and the matching global folders). If found, read it and follow those rules in this conversation — do not spawn a subagent.
If it is missing, use this format:
A file is unfilled if it contains the HTML comment <!-- specify-context: unfilled -->. Remove that comment when you write real content.
project-overview.mdarchitecture.mdui-context.mdcode-standards.mdai-workflow-rules.mdprogress-tracker.md{{SPECS_DIR}}/00-build-plan.mdTemplates live in this skill's templates/ folder (next to this SKILL.md).
Skip this phase if an ## Application Building Context section already exists in AGENTS.md or CLAUDE.md and the listed context files are on disk.
Otherwise grill these two questions (same round):
❓ Context root: Where should the six context files live? Never recommend context/ (collides with React context).
A)
docs/ (recommended)
B)
handbook/
C)
Another name the user types (not context/, not src/)
❓ Feature-spec folder: Nested directory under that root for unit specs. Never recommend features/ (collides with Feature-Sliced Design).
A)
feature-specs/ (recommended)
B)
specs/
C)
Another name the user types (not features/)
Then:
{{CONTEXT_ROOT}}/ and {{CONTEXT_ROOT}}/{{SPECS_DIR}}/.{{CONTEXT_ROOT}}/, and only if the destination is missing: project-overview.md, architecture.md, ui-context.md, code-standards.md, ai-workflow-rules.md, progress-tracker.md. Never overwrite a file that is already filled (no unfilled marker).templates/00-build-plan.md to {{CONTEXT_ROOT}}/{{SPECS_DIR}}/00-build-plan.md if missing.entry-section.md into the project; it is only merged into AGENTS.md / CLAUDE.md.If some files already exist from a previous run, do not recopy them; go to Phase 3.
Read templates/entry-section.md. Replace {{CONTEXT_ROOT}} and {{SPECS_DIR}} with the chosen names (no trailing slashes in the placeholders).
Write AGENTS.md at the project root:
## Application Building Context, replace that section only (from the heading through the next ## heading or EOF). Leave the rest of the file alone.Also write or merge CLAUDE.md the same way only when .claude/ exists in the project root.
If every file in File order is filled, go to Phase 4.
Otherwise pick the first unfilled file in that order. Read the template (or the unfilled copy on disk). Explore the repo for facts that belong in this file. Grill until the frontier for this file only is empty.
Cover the template's sections. For ui-context.md, if the project has no product UI, still fill the file: one short "no product UI" paragraph and mark tables not applicable — do not skip the file.
Then write the file: real content, no unfilled marker, no leftover [placeholder] instructions.
Tell the user the next unfilled file (or that bootstrap is done) and to run /specify-context again to continue. Stop. Do not grill the next file in this invocation.
| File | Grill toward |
|---|---|
project-overview.md | One-sentence product, users, core flow, in/out of scope, verifiable success |
architecture.md | Stack + why, folder boundaries, storage, auth, at least four invariants |
ui-context.md | Theme, tokens, type, radius, component library, layout, icons — or explicit no-UI |
code-standards.md | Language/framework conventions, styling, API, storage, file layout |
ai-workflow-rules.md | Imperative agent rules: scope, split, missing requirements, protected files, verify |
progress-tracker.md | Current phase/goal; seed Next Up from what you already know; leave Completed empty unless work already shipped |
00-build-plan.md | Ordered units: one visible result each, dependencies, security before features, backend before UI wiring. Spec column stays missing until /create-feature-spec |
Ask which file to revise (including the build plan), or offer to stop and run /create-feature-spec.
A) Revise a named context file (grill + rewrite that file only)
B)
Nothing — go write a feature spec with /create-feature-spec (recommended)
C)
Revise 00-build-plan.md
If they revise, grill that file only, rewrite it, stop.
| After this skill | When |
|---|---|
/specify-context again | Next unfilled context file or a revision |
/create-feature-spec | Build plan exists (filled or not) and they want a unit spec |
/grill-me | They want to implement application code next |