Repository layout the skills expect
Pocock’s skills assume a little structure in the repository they run in. The skill that first needs a file creates it; the setup skill writes the rest once. The tree below shows the whole layout, followed by a note on each item. Everything comes from the skill files, and where a skill leaves a location unspecified the note says so.
The tree
Section titled “The tree”A single-context repository with the local-markdown issue tracker, after a few features have been through the flow:
/├── AGENTS.md shared agent instructions, incl. the "Agent skills" block├── CLAUDE.md one line: @AGENTS.md├── GLOSSARY.md the domain glossary (single context)├── CODING_STANDARDS.md judgment-call standards code-review enforces, if kept├── docs/│ ├── agents/│ │ ├── issue-tracker.md where issues live and how skills read/write them│ │ ├── triage-labels.md the five triage role strings│ │ └── domain.md how skills consume GLOSSARY.md and ADRs│ └── adr/│ ├── 0001-event-sourced-orders.md│ └── 0002-postgres-for-write-model.md├── .scratch/ local-markdown issue tracker (only if chosen)│ └── <feature-slug>/│ ├── spec.md the spec to-spec published│ ├── map.md a wayfinder map, if this is an effort│ └── issues/│ ├── 01-<slug>.md one ticket per file, numbered from 01│ └── 02-<slug>.md├── .out-of-scope/ triage's knowledge base of rejected requests│ └── dark-mode.md one file per rejected concept├── scripts/ wizard scripts, when kept└── src/A multi-context repository replaces the root GLOSSARY.md with GLOSSARY-MAP.md and gives each context its own glossary and decisions:
/├── GLOSSARY-MAP.md points at every context's GLOSSARY.md├── docs/adr/ system-wide decisions└── src/ ├── ordering/ │ ├── GLOSSARY.md │ └── docs/adr/ decisions scoped to ordering └── billing/ ├── GLOSSARY.md └── docs/adr/Two things are kept out of the tree on purpose. Handoff documents go to the operating system’s temporary directory. The architecture report from improve-codebase-architecture is written there too, as a self-contained HTML file, so that nothing is added to the repository.
AGENTS.md and CLAUDE.md
Section titled “AGENTS.md and CLAUDE.md”The root instructions file has an ## Agent skills block with three sub-sections, one line each, pointing at the three files under docs/agents/. The setup skill edits whichever of CLAUDE.md or AGENTS.md already exists, updates an existing block in place rather than appending a duplicate, and never creates one of the two files when the other is present. If neither exists it asks which to create.
AGENTS.md is the better choice for the shared file. Codex reads it directly, and Claude Code can be pointed at it by making CLAUDE.md the single line @AGENTS.md. Both agents then read one document, and the setup skill’s edits go in the file that already exists.
docs/agents/
Section titled “docs/agents/”The setup skill’s output, written once per repository. Skills that publish or fetch work read these files.
issue-tracker.mdrecords where issues live (GitHub, GitLab, local Markdown, or a workflow you describe) and, for each skill operation such as “publish to the issue tracker” or “fetch the relevant ticket”, the commands or file conventions to use. It also holds the wayfinding operations: where a map and its child tickets live, how blocking is expressed, and how the frontier is queried. The GitHub and GitLab templates have a flag for treating external pull requests as a triage surface, off by default.triage-labels.mdmaps the five canonical triage roles (needs triage, needs info, ready for agent, ready for human, will not fix) to the label strings your tracker uses. Written only when the triage skill is installed.domain.mdtells the skills to readGLOSSARY.md(or the map and each relevant per-context glossary) and the ADRs in the area they are about to touch before exploring, to proceed silently if none exist, to use the glossary’s terms rather than synonyms, and to flag any output that contradicts an ADR.
GLOSSARY.md and GLOSSARY-MAP.md
Section titled “GLOSSARY.md and GLOSSARY-MAP.md”The glossary. Domain-modeling creates it when the first term is resolved, updates it during a grilling rather than in a batch afterward, and keeps it free of implementation detail: it is a glossary, not a spec or a scratchpad. The wait-what skill re-pitches messages in its vocabulary, and tdd reads it so that test names use the project’s terms.
Most repositories have a single glossary at the root. A repository with several bounded contexts has GLOSSARY-MAP.md at the root, pointing at one GLOSSARY.md per context under src/<context>/. The setup skill offers the multi-context layout only when it finds monorepo signals such as a workspace file or populated packages.
CODING_STANDARDS.md
Section titled “CODING_STANDARDS.md”Code-review’s Standards axis reads whatever the repository uses to document how code should be written, such as CODING_STANDARDS.md or CONTRIBUTING.md. Retro proposes additions to it, but only for judgment calls. A mechanical rule goes into the linter, a pre-commit hook, or CI instead, so the file holds only what no check can enforce. Retro also keeps AGENTS.md lean: that file is loaded into every session, so it should hold little more than pointers to other documents.
docs/adr/
Section titled “docs/adr/”Architecture decision records, numbered sequentially: 0001-slug.md, 0002-slug.md, with the next number found by scanning for the highest existing one. The directory is created when the first ADR is needed. An ADR can be a single paragraph giving the context, the decision, and the reason. Optional sections (status, considered options, consequences) are added only when needed. Domain-modeling offers an ADR only when a decision is hard to reverse, surprising without context, and the result of a real trade-off.
Multi-context repositories keep system-wide decisions in the root docs/adr/ and context-scoped ones in src/<context>/docs/adr/.
.scratch/
Section titled “.scratch/”The local-markdown issue tracker, used when you choose it at setup or when no tracker has been configured and a skill falls back to it. One directory per feature or effort:
spec.mdis the spec that to-spec publishes.issues/NN-<slug>.mdholds one ticket per file, numbered from01in dependency order, never a single combined file. Each ticket’s blocking edges are aBlocked by:line near the top listing the numbers or titles it depends on. Triage state is aStatus:line; comments are appended under a## Commentsheading.- For a wayfinder effort the same directory holds
map.mdwith the map body (destination, notes, decisions so far, not yet specified, out of scope), and the child decision tickets inissues/with aType:line (research, prototype, grilling, task) and aStatus:line (claimed, resolved). Answers are appended under## Answer.
The skill files do not say whether .scratch/ is committed. Since it holds specs and tickets that later sessions read, committing it is the sensible default; that is a recommendation here, not Pocock’s rule.
.out-of-scope/
Section titled “.out-of-scope/”Triage’s knowledge base of rejected feature requests: one file per concept, not per issue, written as a short design note explaining why the thing is out of scope. When a matching request arrives, triage points at the prior rejection instead of arguing it again.
Where each skill writes
Section titled “Where each skill writes”| Skill | Writes | Where |
|---|---|---|
| setup-matt-pocock-skills | the Agent skills block; three config files | AGENTS.md or CLAUDE.md; docs/agents/ |
| domain-modeling, grill-with-docs | glossary entries; decision records | GLOSSARY.md; docs/adr/NNNN-slug.md |
| to-spec | a spec, labeled ready for an agent | a tracker issue, or .scratch/<feature>/spec.md |
| to-tickets | one ticket per slice, blockers first | tracker issues with native blocking links, or .scratch/<feature>/issues/NN-slug.md |
| wayfinder | the map and its decision tickets | a tracker issue labeled wayfinder:map with child issues, or .scratch/<effort>/map.md plus issues/ |
| research | one cited Markdown file | wherever the repository already keeps such notes; if there is no convention, somewhere sensible, and the skill says where. Wayfinder’s research tickets put findings on a research/<name> branch with a pointer from the ticket |
| prototype | throwaway code | next to the module or page it prototypes, named so it reads as a prototype; a UI prototype follows the project’s routing convention. When done, committed to a prototype/<name> branch off main and pointed at from the implementation issue; main keeps only the validated decision |
| implement, tdd | code and tests | the current branch; tests at the pre-agreed seams |
| implement-spec | code and tests for a whole spec | one integration branch, built from one worktree and branch per ticket, merged in as each finishes; exploration notes in a directory outside the repository; a draft pull request only if the tracker closes work through pull requests or you ask for one. The worktrees are removed at the end |
| pr | a pull request body | the pull request on the tracker |
| retro | proposed environment changes | the conversation; once accepted, lint rules, hooks, CI jobs, CODING_STANDARDS.md, or AGENTS.md |
| triage | labels, briefs, rejection notes | the tracker; .out-of-scope/<concept>.md |
| handoff | a handoff document | the operating system’s temporary directory, not the workspace, so it can be used from any session without adding to the repository |
| improve-codebase-architecture | an HTML report | <tmpdir>/architecture-review-<timestamp>.html, outside the repository |
| wizard | a bash script | a scratch or scripts/ path; ephemeral by default, committed and linked from the README only when the setup should be repeatable |
| teach | a learning workspace | the current directory: MISSION.md, RESOURCES.md, NOTES.md, reference/, lessons/, learning-records/, assets/ |
| diagnosing-bugs, code-review, grilling, to-questionnaire, wait-what, ask-matt | nothing durable in the repository | the conversation; a questionnaire is a Markdown document handed to its recipient, and the skill does not fix its path |
What is committed and what is not
Section titled “What is committed and what is not”| Item | Committed? | Why |
|---|---|---|
AGENTS.md, CLAUDE.md |
Yes | Every session reads them |
docs/agents/*.md |
Yes | Skills read them before publishing or fetching work |
GLOSSARY.md, GLOSSARY-MAP.md |
Yes | The shared vocabulary |
CODING_STANDARDS.md |
Yes | The reviewer reads it on every review |
docs/adr/ |
Yes | Decisions must outlive the session that made them |
.scratch/ |
Not specified by the skills; recommended yes | Specs and tickets are read by later sessions |
.out-of-scope/ |
Yes | Institutional memory for triage |
| Prototype code | On a prototype/<name> branch, not main |
Kept as the record of what was tried; main keeps only the decision |
| Research notes | Yes, in the repository’s notes convention | The file is the deliverable |
| Wizard scripts | Only when repeatable | Ephemeral by default |
| Handoff documents | No; they live in the temp directory | Usable from any session without adding to the repository |
| Architecture reports | No; temp directory | Nothing is added to the repository |
| Teach workspace files | Depends on the workspace | The skill treats the current directory as the workspace and does not say |
Sources
Section titled “Sources”- Matt Pocock, skills repository, version 1.3.1 of the Claude Code plugin.
- setup-matt-pocock-skills, including its seed templates for the GitHub tracker, the local tracker, triage labels, and domain docs.
- domain-modeling, including its ADR and glossary formats.
- to-spec, to-tickets, wayfinder, research, prototype, triage, improve-codebase-architecture, implement-spec, code-review, retro, wizard.
- handoff, teach.