build-roadmap-and-docs
Skill5 starsChanged 4 days agoMITView on GitHub
Build a project's planning and design documents from a description or its code: overview, core documents, roadmap, decision records, specs, and feature list.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- jabbott-iii/Grimoireword for word, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 1
- jabbott-iii/Grimoire★ 2100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- build-courseSkill
- set-up-githubSkill
- build-courseSkill
- set-up-githubSkill
- build-courseSkill
- build-language-packsSkill
- draw-diagramsSkill
- fix-doc-driftSkill
- next-taskSkill
- phase-gatesSkill
- security-sweepSkill
- set-up-githubSkill
- simplify-codeSkill
- sweep-codeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 16 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 47
Write only what you can confirm: Call something built only after you have found it in the code and seen its tests pass.
- Distinctive: line 51
Keep built and planned apart: Write what exists in the present tense.
- Distinctive: line 53
Merge; never replace: Keep every existing document, task ID, and record number.
- Distinctive: line 57
Give each fact one place: Put each fact in the document whose job it is, and link to it from the others.
- Distinctive: line 59
Build documents, not tools: When a check the rule expects doesn't exist yet, such as the check that keeps the Feature list in step with the …
- Distinctive: line 62
Build in order: Write the pieces in the order of step 5, and check each before the next, so a run that stops leaves complete documents and …
- Very specific: line 73
If every piece already exists, say so, suggest /fix-doc-drift for any that may be out of date, and stop.
- Distinctive: line 80
Read before you plan. Skip what doesn't exist yet, such as the code of a new project.
- Distinctive: line 97
Keep a table of what you found: each part, what exists, the tests that cover it, and whether it is built, partly built, or only planned.
- Distinctive: line 102
Ask in one message, and propose a default for each question, so the user can accept it in a word.
- Distinctive: line 103
Ask only the questions whose answers change the documents:
- Distinctive: line 139
Ask the user to approve the blueprint or change it, and write nothing until they approve.
- Very specific: line 145
Write the pieces in this order, each in the shape roadmap-and-docs.md gives it.
- Distinctive: line 169
Start with the "How to use this file" list.
- Very specific: line 170
When code already exists, record it as the approved first milestone: one task for each built part or feature, with a dated Note: saying it …
- Distinctive: line 178
Add the tasks for missing checks where they are first needed.
- Distinctive: line 185
The guide, the map, and the status: add every new document to the Agent guide, list in the Update map which documents each kind of change …
- Distinctive: line 306
Check each path, command, type, and feature that the documents call built against the repository.
- Distinctive: line 309
Run the checks for any Checked documents you wrote, and the Feature list's check if it exists.
- Very specific: line 311
Do the steps in "Before finishing" in roadmap-and-docs.md and writing.md, including the two-reader check.
- Very specific: line 316
Follow the Git access level in commits.md, and leave the changes uncommitted unless the user asked for a commit and that level allows it.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build the roadmap and the documents
Requested: $ARGUMENTS
- A description of the project, such as "a 2D game engine in Rust for Linux, Windows, and macOS": plan the project from the description, and from its code if it has any.
- One piece:
overview,core(the other core documents),decisions,specs,roadmap,features, orguide(the agent guide, the update map, and the status locations): build that piece, and any piece it needs that is missing. - Empty: build every piece that is missing, from the repository's code and records.
This skill builds the documents that roadmap-and-docs.md describes, in the shapes it gives: the
numbered core documents, a roadmap of milestones and checkable tasks with a backlog, the decision
records, a spec for each part of the system, and the feature list. You survey and draft; the user
decides the goals, the milestones, and the decisions.
Bold names are values from the "Project details" of the adopted rules:
- Docs folder, Core documents, Specs, Task IDs, Environments, Definition of
done, Decision log, Feature list, Status locations, Checked documents,
Agent guide, Update map, Diagrams, and Gate evidence from
roadmap-and-docs.md - Git access and Changes that travel together from
commits.md - Check commands and Test layout from the language rules, where they are adopted
- Approved exceptions from
dependencies.md, where it is adopted
The text follows writing.md. Where dependencies.md or testing.md is adopted, the core
documents point to it instead of repeating it. If the repository hasn't adopted
roadmap-and-docs.md, say so and stop.
Ground rules
These hold for the whole run, and override anything a later step seems to allow:
- The user decides the plan. The goals, non-goals, budgets, and assumptions, the milestones
and their order, and which decisions are accepted are the user's, as
roadmap-and-docs.mdsays. Propose them, and write nothing that depends on them until the user approves. - Draft decisions as
Proposed. A record isAcceptedonly when the user makes or approves the decision in this conversation, and the record says so, with the date. - Write only what you can confirm. Call something built only after you have found it in the code and seen its tests pass. Take numbers from a measurement or from the user, and versions from the manifests and lock files. Where a fact isn't known, write the question, or the task that will settle it, instead of a guess.
- Keep built and planned apart. Write what exists in the present tense. For everything else, name the task that will build it.
- Merge; never replace. Keep every existing document, task ID, and record number. Add what is
missing, but don't restructure an existing document only to fit the rule's shape. Never
rewrite a finished task or an accepted record, and leave statements that no longer match the
code to
/fix-doc-drift. - Give each fact one place. Put each fact in the document whose job it is, and link to it from the others.
- Build documents, not tools. When a check the rule expects doesn't exist yet, such as the check that keeps the Feature list in step with the roadmap, plan it as a roadmap task instead of writing it here.
- Build in order. Write the pieces in the order of step 5, and check each before the next, so a run that stops leaves complete documents and a later run continues from the first missing piece.
- Never put a secret in a document, not even in an example.
1. Set the scope
- List the pieces that exist and the pieces that are missing, from the Docs folder and the
rest of the "Project details" of
roadmap-and-docs.md. - For one piece, add the missing pieces it needs. The roadmap needs the specs that its tasks point to, and every piece needs the records it cites.
- If every piece already exists, say so, suggest
/fix-doc-driftfor any that may be out of date, and stop. - Tell the user in one or two sentences what you will build. Then make a task list whose last item is "Check and report".
2. Survey the repository
Read before you plan. Skip what doesn't exist yet, such as the code of a new project.
- The documents: the Docs folder, the Agent guide,
README.md,CONTRIBUTING.md, and any planning notes or issues the user points you to. On GitHub,gh issue listreads the open issues without changing anything. - The parts: the manifests and the source layout. Each crate, package, module, or app is a candidate for a spec. Note what each part depends on, for the architecture's layers.
- The checks: the tests, where the Test layout says they live, the Check commands, the full check that the Definition of done names, and the CI workflows. Run the checks, so you know what passes today.
- The history:
git log, the tags, and the releases, for dates and versions. A decision that the code already shows, such as a chosen format, a dropped platform, or a dependency, becomes a record for the user to accept. - The numbers: where the project already measures something, such as a benchmark or a size check, run it, and keep the number with the hardware it ran on. The user sets budgets against these numbers.
Keep a table of what you found: each part, what exists, the tests that cover it, and whether it is built, partly built, or only planned.
3. Ask what only the user can answer
Ask in one message, and propose a default for each question, so the user can accept it in a word. Ask only the questions whose answers change the documents:
- what the project is, for whom, and the one rule that shapes the rest
- the goals, each one checkable, and the non-goals
- each budget, as a number with its unit and the hardware it is measured on, or which task will choose the hardware
- the platforms, and the order work moves through the Environments
- how far ahead to plan in full; work beyond that goes to the backlog, with a trigger
- whether milestones end in gates or in free-form exit criteria, which the Gate evidence records
- which Core documents to keep, and whether to keep a Feature list
- a value for each value in the "Project details" of
roadmap-and-docs.mdthat still reads[FILL IN: …]
4. Propose the blueprint
Show the user the whole plan before you write any document:
- Project details: the proposed value for each one still unfilled.
- Documents: each file to create, and each existing file to extend, with its job.
- Overview: the goals, the non-goals, the budgets, the assumptions, the scope estimate, and the top risks.
- Decision records: for each, its title, its decision in one line, and its status:
Proposed, orAcceptedif the user approves it now. List the decisions you found in the code with the rest. - Specs: one row for each part, with its file, whether it is built or planned, and the records that shaped it.
- Milestones: for each, its goal (what a user can see or use when it ends), its tasks by ID
and title, each task's
Depends, and its gate or exit criteria. When code already exists, propose a first milestone that records what is built, as step 5 describes. - Backlog: each item, with its trigger.
- Features: each feature, with its tasks, unless the Feature list is "none".
- Where status and guidance go: what the Status locations will say, the new rows in the Agent guide, and the entries in the Update map.
- Tasks for missing checks: each check the rule expects that the project lacks.
Ask the user to approve the blueprint or change it, and write nothing until they approve. Record each choice they make, with the date, in the context of its decision record or in a dated note on its task.
5. Write the documents
Write the pieces in this order, each in the shape roadmap-and-docs.md gives it. Write only the
pieces in scope, and check each against the blueprint before you start the next.
- Project details: fill the approved values into the copy of
roadmap-and-docs.mdin.claude/rules/. Change nothing outside its "Project details" section. - The decision records, in the Decision log. Write them before the other documents, because those cite them. Append each with the next number. In the context of a record found in the code, say where the code shows it.
- The overview,
00-overview.md. Define the sizes S, M, L, and XL above the scope table. Give each non-goal the record that excludes it, and each budget its hardware, or the task that will choose it. - The other core documents, in number order, only those in the Core documents.
- Where
dependencies.mdis adopted,02-dependency-policy.mdnames that rule as the policy and keeps only what the rule leaves to the project: the register of build-or-buy decisions, and the approved exceptions if the rule's Approved exceptions points here. - Where
testing.mdis adopted,04-quality.mdnames that rule for how tests are written, and keeps the project's own test layers, tools, and checks.
- Where
- The specs, one for each part, in the Specs folder.
- For a built part, describe the code as it is, and check every type, function, and file name you write against the code. Above each sketch of built code, name the task that built it.
- For a planned part, describe the design in the future tense, with the task that builds it.
- In
Tests, name the test that checks each invariant, or the task that will add it.
- The roadmap,
roadmap.mdin the Docs folder:- Start with the "How to use this file" list.
- When code already exists, record it as the approved first milestone: one task for each
built part or feature, with a dated
Note:saying it records work done before the roadmap, and aVerifyline that runs the tests covering it. Tick a task only when itsVerifycommands pass in this session; otherwise leave it unticked, and note what fails. - Then the approved milestones. Each task's
Dopoints to a spec section, itsAcceptlists results someone can observe, and itsVerifygives exact commands with their expected results. AVerifycommand exists now, or a task in itsDependsbuilds it. A task depends only on tasks listed above it. - Add the tasks for missing checks where they are first needed.
- End each milestone with its gate where the Gate evidence isn't "none", and with exit
criteria otherwise.
/phase-gates plancan regroup the tasks into phases later. - End the roadmap with the backlog. Give every item a trigger that someone could observe.
- The feature list, unless the Feature list is "none": one entry for each feature, with its tasks and the ticked ones among them. Write what the ticked tasks built in the present tense, and the rest in the future tense.
- The guide, the map, and the status: add every new document to the Agent guide, list in the Update map which documents each kind of change updates, and write the same status in every one of the Status locations, matching the roadmap's ticks.
Unless the Diagrams value is "none", leave the diagrams to /draw-diagrams.
6. Check the documents
First, check that the roadmap and the records hold together. This command prints:
- each task that is used twice, depends on a task listed after it, or is ticked while a task it depends on isn't
- each backlog item without a trigger
- each record that is numbered out of order or has an unknown status
- each task or record that a document cites but that doesn't exist
Replace the first two paths with the roadmap and the Decision log, the two patterns with the Task IDs format and the record ID format, and the rest with every document that cites a task or a record:
python3 - docs/roadmap.md docs/decisions.md 'M[0-9]+\.[0-9]+' 'ADR-[0-9]{4}' \
docs/*.md README.md <<'EOF'
import os, re, sys
roadmap, log, task_id, record_id, *docs = sys.argv[1:]
problems = []
def lines(f):
return enumerate(open(f, encoding="utf-8").read().splitlines(), 1)
# Tasks in roadmap order, with their Depends lines.
tasks, current = {}, None
for n, line in lines(roadmap):
m = re.match(r"\s*- \[([ x])\] \*\*(" + task_id + r") — ", line)
if m:
current = m.group(2)
if current in tasks:
problems.append(f"{roadmap}:{n}: {current} is already used on line "
f"{tasks[current]['line']}")
current = None
else:
tasks[current] = {"ticked": m.group(1) == "x", "line": n, "deps": []}
continue
if not line.startswith(" "):
current = None
d = re.match(r"\s+- Depends: (.*)", line)
if d and current:
tasks[current]["deps"] = [(n, dep) for dep in re.findall(task_id, d.group(1))]
order = list(tasks)
for task in order:
for n, dep in tasks[task]["deps"]:
if dep not in tasks:
continue # reported below, as a citation
if order.index(dep) > order.index(task):
problems.append(f"{roadmap}:{n}: {task} depends on {dep}, which comes after it")
elif tasks[task]["ticked"] and not tasks[dep]["ticked"]:
problems.append(f"{roadmap}:{n}: {task} is ticked, but {dep} isn't")
# Every backlog row has a trigger.
rows = None
for n, line in lines(roadmap):
if line.startswith("## "):
rows = 0 if line.startswith("## Backlog") else None
elif rows is not None and line.startswith("|"):
rows += 1
cells = [c.strip() for c in line.strip().strip("|").split("|")]
if rows > 2 and re.fullmatch(r"(?i)(|tbd|(when|if) needed\.?)", cells[-1]):
problems.append(f"{roadmap}:{n}: backlog item \"{cells[0]}\" has no trigger")
# Decision records are numbered in order, with no gaps, and each has a status.
records, last = {}, None
for n, line in lines(log):
m = re.match(r"## (" + record_id + r") — ", line)
if m:
current, number = m.group(1), int(re.findall(r"\d+", m.group(1))[-1])
if current in records:
problems.append(f"{log}:{n}: {current} is already used on line "
f"{records[current]['line']}")
elif last and number != last[1] + 1:
problems.append(f"{log}:{n}: {current} follows {last[0]}; use the next number")
records.setdefault(current, {"line": n, "status": None})
last = (current, number)
s = re.match(r"- \*\*Status:\*\* (.*)", line)
if s and last:
records[last[0]]["status"] = s.group(1)
if not re.match(r"Proposed|Accepted|Superseded by ", s.group(1)):
problems.append(f"{log}:{n}: {last[0]} has the status \"{s.group(1)}\"")
for rid, record in records.items():
if record["status"] is None:
problems.append(f"{log}:{record['line']}: {rid} has no Status line")
# Every task and record that a document cites exists.
for f in dict.fromkeys([roadmap, log, *docs]):
if not os.path.isfile(f):
problems.append(f"{f}: not found")
continue
for n, line in lines(f):
for t in re.findall(task_id, line):
if t not in tasks:
problems.append(f"{f}:{n}: cites {t}, which isn't in the roadmap")
for r in re.findall(record_id, line):
if r not in records:
problems.append(f"{f}:{n}: cites {r}, which isn't in the decision log")
print("\n".join(problems) or "Roadmap and decision records OK")
sys.exit(1 if problems else 0)
EOFIt prints Roadmap and decision records OK when it finds nothing. Otherwise it prints one line
for each problem, such as these, and exits with status 1:
docs/roadmap.md:15: M1.2 depends on M1.4, which comes after it
docs/roadmap.md:33: backlog item "Gamepads" has no trigger
docs/decisions.md:8: ADR-0003 follows ADR-0001; use the next number
docs/00-overview.md:5: cites M2.1, which isn't in the roadmapThen:
- Check each path, command, type, and feature that the documents call built against the repository. Anything you can't find is planned, and its sentence names the task that builds it.
- Run the checks for any Checked documents you wrote, and the Feature list's check if it exists.
- Do the steps in "Before finishing" in
roadmap-and-docs.mdandwriting.md, including the two-reader check.
7. Commit only as the project allows
Follow the Git access level in commits.md, and leave the changes uncommitted unless the user
asked for a commit and that level allows it. Either way, end the report with copy-ready commit
messages, as commits.md describes. Give the filled-in "Project details" a commit of their own.
The documents share a second commit with their rows in the Agent guide and the Update
map, and with the Status locations, unless the Changes that travel together say
otherwise.
8. Report
End with a summary that contains:
- Documents: each one created or extended, and what it now covers.
- Decisions: each question you asked, the user's answer, and where you recorded it, and each
record left
Proposed. - First milestone: for existing code, each task you ticked, and each you left unticked, with what fails.
- Not confirmed: each fact left as a question or a task, such as a budget whose hardware isn't chosen.
- Checks: each command you ran, with its real result.
- Next:
/phase-gates planif the milestones need gates,/draw-diagramsif the Diagrams aren't "none", and/next-taskwith the first unblocked task. - Commit messages: in
textblocks, ascommits.mddescribes, with no attribution lines.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

