plugins/teamcraft/skills/capture-technical-design/SKILL.md
Capture or evolve architecture and technology decisions for this project — system structure, components, boundaries, and discrete technology choices with rationale. Handles first-time capture, adding new decision areas, migrations (e.g., Prisma to Drizzle, REST to GraphQL), revisit-when triggers, targeted updates, and architectural evolution. Writes developer-approved gotcha promotions directly. Use when the user says 'capture our architecture', 'document our tech stack', 'add a decision for our new auth approach', 'we're migrating from X to Y', or 'revisit our testing decision'.
npx skillsauth add codingthefuturewithai/claude-code-primitives teamcraft:capture-technical-designInstall 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.
Own the full lifecycle of this project's architecture and technology decisions. The authoritative artifacts live in two places by default:
/docs/architecture.md). Architecture is systemic and reads best as one doc./docs/decisions/INDEX.md plus /docs/decisions/<area>.md). Decisions evolve independently per area; per-area files let Claude consult only what's relevant.Specific items Claude would reliably get wrong without always-loaded guidance get promoted into CLAUDE.md or .claude/rules/ with developer approval.
Read references/example-technical-design.md first. It shows the shape of both the architecture doc and a decisions/area file, plus how the gotcha-promotion distinction works.
This skill captures what the team chose and why — architecture and technology. It does not capture team operating conventions (that's capture-team-conventions) or product requirements (that's capture-requirements). If the conversation drifts, note it and redirect.
Look for existing architecture and decision artifacts. Present what you find briefly before interviewing: "I see architecture documented at [location] and decisions covering [areas]. What are we doing today?"
If existing structure differs from the opinionated defaults, offer migration. If the developer declines, warn that build-loop consultation works by category — Claude locates the files — but mismatched expectations may degrade reliability. Then proceed with the existing structure.
For brownfield projects, look around the repo: dependency manifests, config files, CI, code structure. Draft what's inferable before interviewing.
Ask what kind of capture this is. The flow depends on the answer.
Common scenarios:
Don't run a first-time interview on a targeted update. Match the scope of the scenario.
Ask whether relevant docs exist outside the repo — past ADRs, RFCs, migration plans, vendor comparison docs, prior-art notes from other projects. Read what the developer points you to. Present findings; let the developer decide what applies. Never auto-apply external content.
Frame the domain and scenario. Claude knows how to interview about architecture and technology stacks — don't recite mechanical question lists. For each decision being captured or updated, aim for the four-part shape:
For system architecture, capture components, boundaries, data flow, integration points, deployment model — what describes how the system IS organized.
For migrations, capture both current state and intended direction. Preserve history in the updated decision file so future Claude sessions understand the trajectory, not just the endpoint.
For first-time captures or migrations, start with a high-level summary before detailed review. Let the developer course-correct before committing to specifics.
For targeted updates, show the specific diff.
Write to the opinionated defaults unless an existing location was confirmed:
For migrations and updates to existing decision files, preserve historical context as a "History" or "Migration Context" section. An agent planning a new feature needs to know the direction, not just the endpoint.
Update the decisions INDEX whenever decision content changes in a way that affects the summary. When a decision constrains work beyond its own topic — a convergence, migration, phasing, or cross-app pattern that any related work item must respect — make its INDEX summary say so, not merely describe the decision. A consumer scanning the INDEX decides what to drill into from that one line; if the line only names the topic, a cross-cutting decision reads as irrelevant to any work that isn't explicitly about it, and gets skipped. "Service-extraction sequencing — required reading for any work in a module being extracted" pulls the right reader in; "How we extract modules, in what order" doesn't.
Certify the artifacts. Stamp each one with the Teamcraft provenance block per ../references/doc-provenance.md — the architecture doc, the decisions INDEX, and each per-area decision file (each is consulted independently, so each needs its own stamp). When you authored or rewrote content, stamp kind: created. On the review-&-certify-in-place path — the developer confirmed an existing/inherited doc is accurate and you are not rewriting it — insert or refresh ONLY the stamp block (kind: reviewed) and leave the body untouched. Source date from the system clock and plugin_version from the plugin manifest, as the reference describes.
Architecture documents capture both what IS and what SHOULD BE:
This is especially important during migrations, where current state and target state differ. Future work should follow the direction, not the historical pattern.
After capturing or updating, walk the artifacts and identify items Claude would reliably get wrong without always-loaded guidance. The test:
Could Claude figure this out from the codebase, or from reading the decision document when a build-loop skill directs consultation? If yes, it stays only in the document. If no — Claude would default to something from training data without always-loaded guidance — it's a promotion candidate.
Good candidates: non-obvious invariants ("monetary values stored as integers, never floats"), intentional deviations from standard patterns ("no foreign keys on the events table — locking issue"), prescribed direction during a migration ("new code uses Drizzle, not Prisma").
Weak candidates: the choice itself ("we use PostgreSQL" — discoverable from config), the rationale for a choice ("chosen over MongoDB because ACID compliance") — that's reference material, not something Claude acts on every request.
Propose each promotion candidate individually. Show the promotion text and the target location. Developer approves, rejects, or edits. Write each approved promotion directly.
This skill writes architecture, technology decisions, and their gotcha promotions. Nothing else. If the conversation drifts into conventions or requirements, redirect.
Confirm what was written and where. Surface any promotions that were applied. Ask the developer directly: "Are you satisfied with what was captured?" Wait for confirmation. This skill doesn't decide the work is done.
tools
Capture feedback about Teamcraft itself and turn it into a well-structured GitHub issue on the plugin's repo. Vets whether the problem is really a Teamcraft skill defect (vs. misuse, the harness, or the user's own project) by root-causing against the actual skill source, then helps the developer decide whether to file and publishes via the GitHub CLI. Use when the user says 'improve teamcraft', 'a teamcraft skill did the wrong thing', 'file feedback on teamcraft', 'report a teamcraft bug', 'I have an idea to make teamcraft better', or when a Teamcraft skill clearly misbehaved and the user wants that captured upstream.
tools
Learn the Teamcraft plugin itself — how its workflow, skills, and artifacts fit together. A guided overview for a human getting started, or a system map for Claude orienting itself to how Teamcraft works before working in a Teamcraft repo. Teaching only; needs no project or environment access. Use when someone wants to understand Teamcraft (the tool, not their specific project), asks "how does Teamcraft work", "explain the workflow", "which skill do I use for X", or when Claude needs the big picture of how the skills hook together.
tools
--- name: teamcraft:work-board description: Launch (or re-launch) the user's live, multi-project work board. The dashboard is a single HTML file copied to a stable user-side location at ~/.claude/teamcraft-board.html and opened in the user's default browser. It has two views via a header toggle — a drag-and-drop Kanban Board and a live Status tab (analytics: work by status, throughput, cycle time, aging, blocked chains, recomputed on every poll). Each project is added via a header dropdown; the
development
Run pre-PR reviews (code health, security, acceptance criteria), address findings, and submit the PR for review. Ends when the PR is ready and CI has passed. Use when implementation is done and ready for review, or when the user says "I'm done coding", "validate this", "ready for review", "submit this for review", "run the pre-PR reviews", or "prepare this for review".