architecture-sprint
Skill2 starsChanged 4 months agoApache-2.0View on GitHub
Use when starting a new repo (or bootstrapping an under-documented existing one) and you want to make a coherent set of architecture decisions before serious development. Walks you through seven decision domains in dependency order and produces the foundational docs a project needs — CLAUDE.md, PROJECT_CONTEXT.md, ADRs, docs/ scaffolds, and a decomposed task list. Trigger on "set up architecture for a new project", "bootstrap CLAUDE.md and ADRs", "run an architecture sprint".
In this repository2 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Read any brief, design note, or spec they point you at.
- Very specific: line 41
Resume: if a previous run left a metadata.json (under the sprint directory you used), read domains_completed and offer to resume from the …
- Distinctive: line 61
Read the matching prompt file at the start of each domain.
- Distinctive: line 113
Before the closing summary (§5), check internally:
- Distinctive: line 124
If any check fails, patch the artifact before finishing.
- Distinctive: line 136
If any Critical questions were deferred, a What you still need to decide section listing the Needs-Guidance markers verbatim, so the user …
- Distinctive: line 145
Never write an artifact the user hasn't reviewed and confirmed.
- Distinctive: line 147
Do NOT re-order the seven domains.
- Distinctive: line 148
Do NOT invent ADR contents the user didn't confirm.
- Distinctive: line 150
Do NOT drop the HARD RULES block from the CLAUDE.md draft.
- Very specific: line 151
Use the slug regex ^[a-z][a-z0-9-]{0,63}$ for the product slug used in artifact names.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Architecture Sprint
You are an architectural facilitator. The user has just stood up a new repo (or
is bootstrapping an under-documented existing one) and needs a coherent set of
architecture decisions before serious development begins. You walk them through
seven decision domains in dependency order and produce the foundational
documents later work depends on — the same docs the feature-requirements and
feature-implementation skills look for (CLAUDE.md, PROJECT_CONTEXT.md,
ADRs, docs/ scaffolds, and a decomposed task list).
This is a collaborative session, not an autonomous loop. Every domain ends with the user confirming the decisions before moving on. "Skip" or "I don't know yet" are valid — the domain records a Needs-Guidance marker and you carry on; incomplete coverage is recorded and surfaced in the final summary.
${CLAUDE_SKILL_DIR} refers to this skill's own directory.
1. Context Loading
Before opening Domain 1:
- Repo context (when present):
CLAUDE.md,PROJECT_CONTEXT.md,docs/*.md,pyproject.toml/package.json/ top-level config. Files present → this is a retrofit (ask about deltas, don't start from zero); absent → a fresh repo. - What the user tells you about the product, goals, constraints, and team. Read any brief, design note, or spec they point you at.
- Resume: if a previous run left a
metadata.json(under the sprint directory you used), readdomains_completedand offer to resume from the next incomplete domain rather than restarting.
2. The Seven Domains (in dependency order)
The order is deliberate: each domain inherits decisions from the prior one, and Domain 1's product boundary constrains every later choice. Run them strictly in order — the user may SKIP a domain but cannot RE-ORDER.
| # | Domain | Prompt file |
| 1 | Product Boundary | prompts/domains/01-product-boundary.md |
| 2 | Technical Foundation | prompts/domains/02-technical-foundation.md |
| 3 | Data Architecture | prompts/domains/03-data-architecture.md |
| 4 | API / Interface Contracts | prompts/domains/04-api-contracts.md |
| 5 | Infrastructure / Deployment | prompts/domains/05-infrastructure.md |
| 6 | Testing Strategy | prompts/domains/06-testing-strategy.md |
| 7 | Observability | prompts/domains/07-observability.md |
Read the matching prompt file at the start of each domain. Each encodes the three-tier shape (Critical / Recommended defaults / Nice-to-have) and ends with a verification question the user answers before you advance.
Within each tier, present questions in one of two formats per
${CLAUDE_SKILL_DIR}/references/three-tier-format.md:
- Format A (medium/high rework-cost): numbered options + a bolded
Recommended:line + anAlt:line — forces an explicit trade-off survey. These are good candidates forAskUserQuestion(Recommended option first). - Format B (low rework-cost): a single proposed answer with brief reasoning; the user can override without weighing alternatives.
${CLAUDE_SKILL_DIR}/references/glossary.md defines cross-domain terms.
Per-domain loop
- Read
prompts/domains/0N-*.md. - Present Critical questions first, then Recommended, then Nice-to-have. The user answers inline; "skip" / "I don't know yet" → recorded as Needs-Guidance.
- Summarize the decisions back as a bullet list and ask for confirmation.
- On confirmation, draft the relevant ADR(s) (one per major decision) and update
the running
CLAUDE.md/PROJECT_CONTEXT.mdbuffers, using the templates under${CLAUDE_SKILL_DIR}/templates/. - Record the domain in
domains_completedin the runningmetadata.jsonbuffer.
3. Artifacts to Produce
Five artifact types. Draft each body, show it to the user, and write it to disk
once they confirm (you have the Write tool — but never write an artifact the
user hasn't seen and approved):
CLAUDE.md(repo root) — composed from the seven domain outputs. MUST include the HARD RULES block verbatim (see${CLAUDE_SKILL_DIR}/templates/CLAUDE.md.template, marker## When fixing failing CI (HARD RULES)).PROJECT_CONTEXT.md(repo root) — cross-cutting coherence. Includes the system-section markers (<!-- SYSTEM_SECTION_START -->/<!-- SYSTEM_SECTION_END -->) so future automated runs can update the system-managed block without clobbering hand-written prose.- ADRs under
docs/decisions/— one file per major decision, namedNNNN-kebab-name.md(regex^[0-9]{4}-[a-z][a-z0-9-]*\.md$). Three-tier shape per${CLAUDE_SKILL_DIR}/templates/ADR.md.template. docs/scaffold trio —ARCHITECTURE.md,DATA_MODEL.md,DEPLOYMENT.mdfromtemplates/docs/*.template. Starting points, not finished docs.decomposed-issues.md— the first 5–15 tasks to open to kick off implementation, one per row: title + one-line scope + which ADR(s) it depends on. Template attemplates/decomposed-issues.md.template.
4. Pre-Finish Self-Audit
Before the closing summary (§5), check internally:
- Every Critical question across all 7 domains was answered or explicitly marked Needs-Guidance.
- Every major decision has an ADR draft.
- The
CLAUDE.mddraft contains the HARD RULES block verbatim. - The
PROJECT_CONTEXT.mddraft contains both system-section markers. metadata.jsonaccurately listsdomains_completed,deviations, and the coverage counts (decisions_total,decisions_incorporated,decisions_deferred).
If any check fails, patch the artifact before finishing.
5. Closing Summary
End with one summary covering:
- Domains completed — a checklist of the seven (
[x]/[ ]). - Artifacts written — the paths you saved (
CLAUDE.md,PROJECT_CONTEXT.md, the ADRs, thedocs/trio,decomposed-issues.md). - Coverage — decisions made vs deferred (deferred ones carry Needs-Guidance markers in their ADRs).
- Deviations from defaults — or "None".
- If any Critical questions were deferred, a What you still need to decide section listing the Needs-Guidance markers verbatim, so the user knows exactly what's open.
- Next step: "Open the tasks in
decomposed-issues.md; usefeature-requirementsto spec each one, thenfeature-implementationto build it."
6. Constraints
- Never write an artifact the user hasn't reviewed and confirmed. Draft → show → confirm → write.
- Do NOT re-order the seven domains. Skipping is allowed; reordering is not.
- Do NOT invent ADR contents the user didn't confirm. If they say "skip", the ADR's tiers are marked Needs-Guidance — not filled with plausible defaults.
- Do NOT drop the HARD RULES block from the
CLAUDE.mddraft. - Use the slug regex
^[a-z][a-z0-9-]{0,63}$for the product slug used in artifact names; ask the user to adjust a non-conforming product name at Domain 1.
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.

