SKILL_TEMPLATE
[1-2 sentence description of what this skill does]. Triggers on [specific phrases/contexts that should activate this skill]. Outputs [what the skill produces].
Define how system components connect, establishing boundaries, patterns, and integration approaches during PRD v0.6 Architecture. Triggers on requests to design architecture, create system design, define component relationships, or when user asks "design architecture", "system
$ npx -y skills add mattgierhart/PRD-driven-context-engineering --skill prd-v06-architecture-design --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/prd-v06-architecture-designContext preview
The summary Claude sees to decide when to auto-load this skill.
Define how system components connect, establishing boundaries, patterns, and integration approaches during PRD v0.6 Architecture. Triggers on requests to design architecture, create system design, define component relationships, or when user asks "design architecture", "system
name: prd-v06-architecture-design description: Define how system components connect, establishing boundaries, patterns, and integration approaches during PRD v0.6 Architecture. Triggers on requests to design architecture, create system design, define component relationships, or when user asks "design architecture", "system design", "how do components connect?", "architecture decisions", "technical architecture", "system overview". Consumes TECH- (stack selections), RISK- (constraints), FEA- (features). Outputs ARC- entries documenting architecture decisions with rationale. Feeds v0.6 Technical Specification. context: fork allowed-tools: - Read - Write - Edit - Glob - Grep
Position in workflow: v0.5 Technical Stack Selection → **v0.6 Architecture Design** → v0.6 Technical Specification
Architecture defines how your system components connect. This skill transforms stack selections into a coherent system design with explicit boundaries and integration patterns.
This skill requires prior work from v0.3-v0.5:
This skill assumes v0.5 Technical Stack Selection is complete with TECH- entries providing technology foundations.
This skill creates/updates:
All ARC- entries should include:
Example ARC- entry (Structure):
ARC-001: Monolith with Module Boundaries Category: Structure Context: Team of 2 developers; unclear domain boundaries at v0.6; TECH-001 (Next.js) supports monolith pattern Decision: Single Next.js application with domain-based module folders (auth/, reports/, data-sources/), clear module interfaces Rationale: - TECH-001 (Next.js) designed for monoliths - Avoids ops complexity of microservices - Can extract services later when scaling needs emerge - Enables fast iteration for MVP Alternatives Rejected: - Microservices: Premature (team too small); adds ops burden - Serverless: Harder to share code; cold start latency concerns (impacts UJ-001 response time) - Layered monolith: Less clear boundaries; module pattern better for future extraction Consequences: - Enables: Fast iteration, simple deployment, shared state across domains - Constrains: Single scaling unit (can't scale auth independently); must be disciplined about module boundaries Related IDs: TECH-001 (Next.js), RISK-005 (scaling concerns), FEA-001..FEA-020 (all features in one deployment) Status: Accepted
Example ARC- entry (Security, addressing RISK-):
ARC-005: JWT with HTTP-Only Cookies Category: Security Context: Need session management for authenticated users; RISK-008 (security compliance) and TECH-003 (Clerk auth) guide this Decision: JWTs stored in HTTP-only cookies, 1-hour expiry, refresh via /refresh endpoint Rationale: - HTTP-only prevents XSS token theft (mitigates RISK-008 surface area) - Short expiry limits damage window if token stolen - Refresh flow handles long sessions gracefully - TECH-003 (Clerk) handles token lifecycle, we just enforce storage pattern Alternatives Rejected: - localStorage: Vulnerable to XSS (RISK-008 violation) - Long-lived tokens: Increases risk exposure time (RISK-008) - Server sessions: Scaling complexity; would require Redis (not in TECH-) Consequences: - Enables: Stateless auth, horizontal scaling - Constrains: Must handle refresh flow in frontend; logout requires token invalidation Related IDs: TECH-003 (Clerk handles token generation), RISK-008 (security compliance), BR-010 (auth requirements) Status: Accepted
| Category | What It Covers | Example Decisions | |----------|----------------|-------------------| | **Structure** | Component organization, boundaries | Monolith vs microservices, module structure | | **Integration** | External service connections | API gateway pattern, webhook handlers | | **Security** | Auth, authorization, data protection | JWT strategy, role-based access | |
PRD-Led Context Engineering — Memory as Infrastructure. An ontology layer for product teams building products that solve real problems — with AI agents that remember. Gated PRD, typed IDs, markdown knowledge graph, Claude Code skills & hooks.
Repo: mattgierhart/PRD-driven-context-engineering
[1-2 sentence description of what this skill does]. Triggers on [specific phrases/contexts that should activate this skill]. Outputs [what the skill produces].
Validates gate criteria before PRD lifecycle advancement by delegating to the readiness scoring pipeline (scripts/readiness.py). Returns a graduated PASS /…
Extracts durable insights from temp/ files to SoT during EPIC Phase E. Triggers at EPIC completion or explicit `/ghm-harvest` invocation. Outputs new SoT…
Validates and registers new SoT IDs with cross-reference integrity. Triggers when creating BR-XXX, UJ-XXX, API-XXX, or CFD-XXX entries. Outputs formatted SoT…
Install the PRD-Driven Context Engineering methodology into a fresh OR existing repository — the subscription-native alternative to forking the whole repo.…
Creates new Source of Truth (SoT) files when existing templates don't fit your needs. Triggers on requests to create a new SoT file, add a new artifact type,…