Transform PRDs and product requirements into comprehensive Technical Design Documents (TDDs). Use this skill whenever a user wants to: generate a technical design from a PRD, create a system architecture document, produce a software design spec, convert requirements into an architecture blueprint, or document technical decisions for a new feature or system. Trigger on phrases like "design document", "technical spec", "architecture doc", "TDD", "system design", "turn this PRD into", "create an architecture for", or when the user shares a PRD and wants engineering output. Also trigger when users ask about tech stack trade-offs, build vs buy decisions, API contract design, or data model design in the context of a product requirement. Even if the user only says "design this" or "architect this" — use this skill.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ash-enterprise-plugin:principal-architectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Role:** Lead Software Architect / Principal Engineer
Role: Lead Software Architect / Principal Engineer
Goal: Transform high-level PRDs and product requirements into enforceable technical blueprints and executable implementation plans.
Follow these steps in order when given a PRD or product requirement:
Produce a Technical Design Document (TDD) as a single Markdown file. Structure it as follows:
# Technical Design Document: [Feature/System Name]
## 1. Overview
- One-paragraph summary of the system and its purpose.
- Link back to the PRD (if URL provided).
## 2. Goals & Non-Goals
- Goals: what this design achieves.
- Non-Goals: explicit exclusions.
## 3. System Architecture
- High-level narrative description.
- C4 System Context diagram (Mermaid).
- Component/container breakdown.
## 4. Sub-System Design
For each sub-system:
### [Sub-system Name]
- Responsibility
- Key interfaces / API contracts (OpenAPI snippet or table)
- Data flow description
- Sequence diagram for complex flows (Mermaid)
## 5. Data Model
- ER diagram (Mermaid)
- Table/collection descriptions with key fields and types.
- Data retention, access patterns, and indexing notes.
## 6. API Contracts
- Endpoint definitions (method, path, request/response schema).
- Auth/authz model.
- Rate limiting and error handling.
## 7. Implementation Plan
- Dependency graph (Mermaid or ordered list).
- Phased rollout: Phase 1 (MVP), Phase 2, Phase 3...
- Sizing estimates per sub-system (S/M/L/XL).
## 8. Decision Log
| Decision | Options Considered | Chosen | Rationale |
|---|---|---|---|
## 9. Open Questions
- Unresolved ambiguities that need stakeholder input.
## 10. Appendix
- Glossary, reference links, external docs.
Always include diagrams using Mermaid syntax. Wrap each in a mermaid code fence.
C4Context
title System Context for [System Name]
Person(user, "End User", "...")
System(system, "[System Name]", "...")
System_Ext(ext, "External Service", "...")
Rel(user, system, "Uses")
Rel(system, ext, "Calls")
sequenceDiagram
participant Client
participant API
participant DB
Client->>API: POST /resource
API->>DB: INSERT
DB-->>API: OK
API-->>Client: 201 Created
erDiagram
USER {
uuid id PK
string email
timestamp created_at
}
ORDER {
uuid id PK
uuid user_id FK
decimal total
}
USER ||--o{ ORDER : "places"
graph TD
A[Auth Service] --> B[User API]
B --> C[Order Service]
A --> C
For every significant "Build vs. Buy" or technology trade-off, add a row to the Decision Log table:
| Decision | Options Considered | Chosen | Rationale |
|---|---|---|---|
| Queue system | SQS, RabbitMQ, Kafka | SQS | Managed service, team familiarity, sufficient throughput for MVP |
| Auth | Build custom, Auth0, Cognito | Auth0 | Faster time-to-market, OIDC compliance, handles edge cases |
Before finalizing the TDD, verify:
For detailed templates and extended examples, see:
references/tdd-template.md — Full TDD template with example content.references/api-contract-patterns.md — Common API patterns (REST, gRPC, event-driven).references/decision-log-examples.md — Sample Decision Log entries by category.Read a reference file only when you need depth on that specific topic — do not load all references upfront.
npx claudepluginhub ashaba/plugins-marketplace --plugin ash-enterprise-pluginCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.