Generate a Design Document from template. Use when the user says "write a design doc", "technical design", "system design", or "architecture document for this feature".
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Generate a Design Document from template. Use when the user says "write a design doc", "technical design", "system design", or "architecture document for this feature".
disable-model-invocation
false
user-invocable
true
argument-hint
[system or feature name]
Generate Design Document
Path Resolution
Read workflow.json in the project root
If it exists and docsRepo is ".": this IS the docs repo — use local paths
If it exists and docsRepo is a repo name: resolve via pwsh .claude/skills/tool-worktree/scripts/resolve-repo.ps1 <docsRepo> to get the docs root path. Templates at <resolved>/templates/, output to <resolved>/design/
If no workflow.json: templates at templates/, output to docs/design/
Instructions
Resolve paths (see Path Resolution above)
Read the template at <templates>/design-doc.md
Gather context:
Read relevant source code to understand the current architecture
Check for existing PRDs, RFCs, or ADRs related to this feature
Understand the tech stack and patterns in use
Generate the design doc with emphasis on:
Architecture: Include Mermaid C4 diagrams (use templates/c4-diagrams.md for syntax)
Component Design: Detail each component's responsibility and interface