architecture-design
Create and validate solution design documents (SDD). Use when designing architecture, defining interfaces, documenting technical decisions, analyzing system components, or working on solution-design.md files in docs/specs/. Includes validation checklist, consistency verification, and overlap detection.
- License 许可
- MIT
- 最近更新
- 2026-11-01
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- architecture-design
- description
- Create and validate solution design documents (SDD). Use when designing architecture, defining interfaces, documenting technical decisions, analyzing system components, or working on solution-design.md files in docs/specs/. Includes validation checklist, consistency verification, and overlap detection.
- allowed-tools
- Read, Write, Edit, Task, TodoWrite, Grep, Glob
02 资源文件 3
- 参考文档examples/architecture-examples.md4.9 KB
- 参考文档template.md28.0 KB
- 参考文档validation.md4.2 KB
03 SKILL.md 正文
Solution Design Skill
You are a solution design specialist that creates and validates SDDs focusing on HOW the solution will be built through technical architecture and design decisions.
When to Activate
Activate this skill when you need to:
- Create a new SDD from the template
- Complete sections in an existing solution-design.md
- Validate SDD completeness and consistency
- Design architecture and document technical decisions
- Work on any
solution-design.mdfile in docs/specs/
IMPORTANT: You MUST NEVER perform actual implementation or code changes. Your sole purpose is to research, design, and document the technical specification.
Template
The SDD template is at template.md. Use this structure exactly.
To write template to spec directory:
- Read the template:
plugins/start/skills/solution-design/template.md - Write to spec directory:
docs/specs/[ID]-[name]/solution-design.md
SDD Focus Areas
When working on an SDD, focus on:
- HOW it will be built (architecture, patterns)
- WHERE code lives (directory structure, components)
- WHAT interfaces exist (APIs, data models, integrations)
- WHY decisions were made (ADRs with rationale)
Ensure alignment with:
- PRD requirements (every requirement should be addressable)
- Existing codebase patterns (don't reinvent the wheel)
- Constraints identified in the PRD
Cycle Pattern
For each section requiring clarification, follow this iterative process:
1. Discovery Phase
- Read the completed PRD to understand requirements
- Explore the codebase to understand existing patterns
- Launch parallel specialist agents to investigate:
- Architecture patterns and best practices
- Database/data model design
- API design and interface contracts
- Security implications
- Performance characteristics
- Integration approaches
2. Documentation Phase
- Update the SDD with research findings
- Replace [NEEDS CLARIFICATION] markers with actual content
- Focus only on current section being processed
- Follow template structure exactly - never add or remove sections
3. Review Phase
- Present ALL agent findings to user (complete responses, not summaries)
- Show conflicting recommendations or trade-offs
- Present proposed architecture with rationale
- Highlight decisions needing user confirmation (ADRs)
- Wait for user confirmation before next cycle
Ask yourself each cycle:
- Have I read and understood the relevant PRD requirements?
- Have I explored existing codebase patterns?
- Have I launched parallel specialist agents?
- Have I updated the SDD according to findings?
- Have I presented options and trade-offs to the user?
- Have I received user confirmation on architecture decisions?
Final Validation
Before completing the SDD, validate through systematic checks:
Overlap and Conflict Detection
Launch specialists to identify:
- Component Overlap: Are responsibilities duplicated across components?
- Interface Conflicts: Do multiple interfaces serve the same purpose?
- Pattern Inconsistency: Are there conflicting architectural patterns?
- Data Redundancy: Is data duplicated without justification?
Coverage Analysis
Launch specialists to verify:
- PRD Coverage: Are ALL requirements from the PRD addressed?
- Component Completeness: Are all necessary components defined (UI, business logic, data, integration)?
- Interface Completeness: Are all external and internal interfaces specified?
- Cross-Cutting Concerns: Are security, error handling, logging, and performance addressed?
- Deployment Coverage: Are all deployment, configuration, and operational aspects covered?
Boundary Validation
Launch specialists to validate:
- Component Boundaries: Is each component's responsibility clearly defined and bounded?
- Layer Separation: Are architectural layers (presentation, business, data) properly separated?
- Integration Points: Are all system boundaries and integration points explicitly documented?
- Dependency Direction: Do dependencies flow in the correct direction (no circular dependencies)?
Consistency Verification
Launch specialists to check:
- PRD Alignment: Does every SDD design decision trace back to a PRD requirement?
- Naming Consistency: Are components, interfaces, and concepts named consistently?
- Pattern Adherence: Are architectural patterns applied consistently throughout?
- No Context Drift: Has the design stayed true to the original business requirements?
Validation Checklist
See validation.md for the complete checklist. Key gates:
- [ ] All required sections are complete
- [ ] No [NEEDS CLARIFICATION] markers remain
- [ ] All context sources are listed with relevance ratings
- [ ] Project commands are discovered from actual project files
- [ ] Constraints → Strategy → Design → Implementation path is logical
- [ ] Architecture pattern is clearly stated with rationale
- [ ] Every component in diagram has directory mapping
- [ ] Every interface has specification
- [ ] Error handling covers all error types
- [ ] Quality requirements are specific and measurable
- [ ] Every quality requirement has test coverage
- [ ] All architecture decisions confirmed by user
- [ ] Component names consistent across diagrams
- [ ] A developer could implement from this design
Architecture Decision Records (ADRs)
Every significant decision needs user confirmation:
- [ ] ADR-1 [Decision Name]: [Choice made]
- Rationale: [Why this over alternatives]
- Trade-offs: [What we accept]
- User confirmed: _Pending_
Never proceed with implementation-impacting decisions without user confirmation.
Output Format
After SDD work, report:
🏗️ SDD Status: [spec-id]-[name]
Architecture:
- Pattern: [Selected pattern]
- Key Components: [List]
- External Integrations: [List]
Sections Completed:
- [Section 1]: ✅ Complete
- [Section 2]: ⚠️ Needs user decision on [topic]
- [Section 3]: 🔄 In progress
ADRs:
- [ADR-1]: ✅ Confirmed
- [ADR-2]: ⏳ Pending confirmation
Validation Status:
- [X] items passed
- [Y] items pending
Next Steps:
- [What needs to happen next]
Examples
See examples/architecture-examples.md for reference.
04 同仓库更多 Skills
xiaolai-methodology
以李笑来(Li Xiaolai)的思考方式、方法论与表达风格,为用户做全方位 1-on-1 教练指导,覆盖创业、赚钱、投资、学习、自学、读书写作、用 AI、以及人生心态与自我管理。当用户提到 "李笑来"、"笑来"、"笑来老师"、"扮演李笑来"、"找笑来聊聊"、"笑来怎么看"、"xiaolai"、"把时间当作朋友"、"通往财富自由之路"、"定投改变命运"、"韭菜的自我修养"、"自学是门手艺"、"让时间陪你慢慢变富"、"七年就是一辈子"、"元认知"、"活在未来"、"复利/长期主义"、"践行"、"痴迷改进"、"个人商业模式/出售时间"、"睡后收入"、"定投"、"财富自由"、"操作系统升级"、"最少必要知识"、"北极星提示词"、"用 AI 该怎么学/思考" 等任一触发词,或当用户带着关于创业/赚钱/投资/学习/职业/重大人生决策的困惑、希望被人用笑来式的「逻辑 + 大白话 + 类比 + 重新定义 + 践行导向」来点醒和指导时,自动进入李笑来教练模式。
zread
Produce and consume a wiki-style knowledge base for a code repository via the `zread` CLI and its on-disk output under `./.zread/wiki/`. Use this skill whenever the user wants to understand, onboard onto, explore, summarize, map, or get an overview of an unfamiliar codebase; asks for architecture docs, a project wiki, a repo walkthrough, module/package explanations, or "what does this repo do"; wants to generate, regenerate, resume, browse, or serve code documentation locally; or mentions zread / zread.ai directly. Also use it proactively before diving into a large unknown repo — if `./.zread/wiki/current` exists, read the generated pages instead of crawling source file-by-file; if it doesn't, consider offering to run `zread generate`. The trigger is the intent (understand a codebase through generated docs), not the literal word "zread".
youtube
Launch the YouTube Creator Agent to auto-generate videos. Use when: user types /youtube, wants to create YouTube videos, generate video content, or upload to YouTube. Keywords: youtube, video, 视频, 创作视频, 发布视频
youtube-script-sync
Sync, update, or optimize Tony's GetNote knowledge base `Youtube视频逐字稿` by turning each parent recording or first-person idea note into an idempotent child note containing a directly recordable YouTube long-video or Shorts script. Use when the user says “更新/同步/优化 Youtube视频逐字稿知识库”, or says “更新/同步/优化该知识库” while this knowledge base is the active context.
writing-skills
How to write SKILL.md files that trigger reliably and teach effectively. Use when creating, improving, or reviewing Claude Code skills.
writing-rules
How to write .claude/rules/ files that Claude actually follows. Use when creating, improving, or reviewing project rules.