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".
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
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