.claude/skills/system-design-doc/SKILL.md
Generate a system-level design document via `tx doc add design`. Covers cross-cutting architecture, service boundaries, data flows, scalability, and deployment topology. References plan via file path instead of embedding. Plan lives in ~/.claude/plans/<name>.md. Use for system-wide or multi-domain designs rather than feature-scoped subsystem docs.
npx skillsauth add jamesaphoenix/tx system-design-docInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create a system-level design document using the tx doc primitive. System design docs cover cross-cutting architecture spanning multiple domains and services. For feature-scoped or single-subsystem design work, use /design-doc. For project-level product context and root scope, use /overview-spec.
Before drafting from memory, fetch the canonical tx scaffold for the target system design doc and use that as the minimum valid schema. Run tx doc add design <name> --title "<title>" if the doc does not exist yet, then run tx doc show <name> --md. That output is the baseline shape to preserve. Add structure on top of it; do not invent frontmatter fields or remove tx-required top-level sections.
doc_id. Human name slugs only need to be unique within their doc kind.<product>-system-design, <initiative>-architecture, or <platform>-runtime-design.Read references/octospark-system-design-example.md before drafting when you need a concrete example of a serious system design source document.
That example is useful because it shows:
START
|
v
[Step 0: Plan Gate]
- Save or create `~/.claude/plans/<name>.md`
- If request is vague, ask for or create a plan first
|
v
[Step 1: Scaffold]
- `tx doc add design <name> --title "<title>"`
- `tx doc show <name> --md`
|
v
[Step 2: Deep Context Gathering]
- Read architecture docs, deployment/runbooks, project instructions, schemas, workflows, and existing specs
|
v
[Step 3: Fill Document]
- Preserve all cross-cutting architecture detail
- Keep subsystem boundaries explicit
- Add service boundaries, data flows, invariants, failure modes, and verification
|
v
[Step 4: Self-Audit]
- Every plan item captured?
- No stubs?
- Cross-cutting constraints explicit?
|
v
[Step 5: Validate]
- `tx spec lint`
|
v
[Step 6: Discover + Link + Report]
- `tx spec discover --doc <name>`
- `tx doc link <overview> <design>` when appropriate
- `tx spec gaps --doc <name>`
DONE
The plan is the primary input. Check for plan content in the conversation:
/plan or was in plan mode, write that plan to ~/.claude/plans/<name>.md.The doc's frontmatter gets plan: ~/.claude/plans/<name>.md and the # Plan section contains a reference link plus a brief summary, not the full verbatim content.
tx doc add design $ARGUMENTS --title "<Human-Readable Title>"
tx doc show $ARGUMENTS --md
Creates or opens specs/design/<name>.md. Treat the tx doc show --md output as the minimal schema for the document.
Read all relevant system-level material:
docs/ARCHITECTURE.mddocs/QUALITY.mddocs/DEPLOYMENT.mddocs/ROLLBACK.mddocs/RUNBOOKS.mdCLAUDE.mdtx doc list---
kind: spec
spec_type: design
name: <name>
title: "<title>"
status: draft
version: 1
owners:
- <team-or-person>
summary: <one-line summary>
domain: platform
tags:
- design
- system
depends_on: []
supersedes: []
implements: null
last_reviewed_at: <YYYY-MM-DD>
plan: ~/.claude/plans/<name>.md
---
# Plan comes first and references the saved plan file.Before finishing, confirm:
tx spec lint
Fix warnings or failures before reporting completion.
tx spec discover --doc <name>
tx spec gaps --doc <name>
tx doc link <overview> <design>
If subsystem docs exist, keep the linkage explicit:
development
Implement and verify design doc invariants by annotating tests and source code with [INV-*] / @spec tags, then driving tx spec coverage from BUILD toward HARDEN (100% FCI). Works with any design doc that has an invariants block.
data-ai
Link tasks to paired PRD/design specs, export all open work to markdown, and keep Ralph-style loops moving by creating tasks, subtasks, and dependency updates through tx primitives.
development
Refresh bundled tx Claude Code and Codex skills in a project from the canonical tx source without manual copy and paste.
development
Run Ralph against either the full repo queue or tasks linked to one design doc, with injected task/spec/queue context for Codex or Claude runtimes.