structure
Use when design.md is approved and the QRSPI pipeline needs file/component mapping — maps vertical slices to specific files, interfaces, and component…
by dfrysinger★ 42 GitHub stars
Install structure in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Structure (QRSPI Step 6)
PRECONDITION: Invoke qrspi:using-qrspi skill to ensure global pipeline rules are in context. (Idempotent on session re-entry. Subagents are exempt — SUBAGENT-STOP in using-qrspi handles that.)
Announce at start: "I'm using the QRSPI Structure skill to map the design to files and interfaces."
Overview
Map the design's vertical slices to specific files, components, and interfaces. Define what gets created vs modified, show how slices map to the stack, and produce a detailed architectural diagram. This is the bridge between abstract design and concrete implementation.
Structure authors: the unified system architecture diagram(s) for the release (Mermaid or equivalent — stitching the components named across design.md's per-solution and cross-cutting-CD blocks into a single architectural overview); file maps and module-boundary contracts; cross-solution component interactions; unified test architecture (the ## Test Architecture section in structure.md); and per-type stitching of per-solution acceptance criteria from design.md.
Structure OWNS / Structure DEFERS
!cat skills/structure/owns-defers.md
Artifact Gating
Required inputs:
goals.mdwithstatus: approvedresearch/summary.mdwithstatus: approveddesign.mdwithstatus: approvedphasing.mdwithstatus: approved
If any artifact is missing or not approved, refuse to run and tell the user which artifact is needed.
Read config.md from the artifact directory to determine whether Codex reviews are enabled.
Config Validation
Apply the Config Validation Procedure in using-qrspi/SKILL.md. Structure validates second_reviewer.
Execution Model
Subagent per round (iterative with human feedback). Each round is a fresh subagent with declared inputs + any feedback from prior rounds.
Phase-Scoped Content Rules (consumer guidance)
Consumer guidance, not authoritative source. The authoritative source for phasing decisions, vertical slice authoring, roadmap maintenance, and current-phase scoping is the Phasing skill (
skills/phasing/SKILL.md). Structure consumes phasing decisions fromphasing.md(and pruneddesign.md); it does not own them. The text below restates the consumer-side expectations Structure honors when reading those upstream artifacts.
When generating structure.md, Structure honors the phase scope set by Phasing: structure.md reflects ONLY current-phase file maps and interfaces (per phasing.md + the pruned design.md). Entries are tagged with goal IDs. File maps for goals not in the current phase (per roadmap.md, which Phasing authors) do not appear in structure.md. Structure verifies every goal ID in the file map exists in the current-phase goals.md; cross-phase scoping decisions and any change to the phase boundary itself are Phasing's responsibility — Structure refers the user back to Phasing if a scope shift is needed rather than re-authoring the phase split.
Multi-Actor Flow Check
!cat skills/_shared/multi-actor-flow-check.md
Process
Structure Subagent
Inputs:
goals.mdresearch/summary.mddesign.mdphasing.md(current-phase scope source — Phasing-owned)- Any prior feedback files
Task: Map the design to concrete files and interfaces.
- Map each vertical slice from
design.mdto specific files and components - For each slice, show which layers of the stack it touches and what files are involved
- Define interfaces between components (function/class signatures, not implementations)
- Identify create vs modify for each file
- Detailed Mermaid architectural diagram: file/module layout, API endpoints, data flow, interface boundaries
- If CI setup noted in Design, define pipeline structure (workflow file, test commands, lint config) and project convention files (CLAUDE.md, linting config, etc.) for greenfield projects
Output format for structure.md:
!cat skills/_shared/evergreen-output-rule.md
Per-section template guidance is embedded inline as HTML comments below. Each section block carries a one-line guidance comment and a conformance reminder so future structure.md content can be linted for boundary-drift signals (the scope-reviewer's boundary-drift sub-check looks for skill-implementation jargon — specific tool names, hook syntax, subagent dispatch verbs — leaking into earlier-stage artifacts; structure.md owns file paths and interfaces, not Plan/Implement-layer language).
**Conformance applies to every section of structur
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- owns-defers.md
FAQ
What does the structure skill do?
Use when design.md is approved and the QRSPI pipeline needs file/component mapping — maps vertical slices to specific files, interfaces, and component boundaries
How do I install the structure skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the structure skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…