Write a Technical Design Document — architecture decisions, implementation strategy, dependency analysis. Triggers — 'write TDD', 'technical design document', 'design doc', 'architecture decision'.
Resources
1Install
npx skillscat add cuozg/oh-my-unity/unity-document-tdd Install via the SkillsCat registry.
unity-document-tdd
Produce an evidence-based Technical Design Document grounded in the actual codebase.
When to Use
- Planning a new system that needs architecture sign-off
- Documenting a key architecture decision after implementation
- Cross-team alignment before a major feature starts
- Recording trade-offs for future maintainers
Workflow
- Load template —
read_skill_file("unity-document-tdd", "references/tdd-template.md"); use it as the exact output skeleton - Investigate — Read existing related systems; understand current patterns
- Define — State the problem, goals, and non-goals precisely
- Design — Propose architecture; define components, interfaces, and data flow
- Alternatives — Document at least 2 rejected alternatives with rationale
- Dependencies — Map all affected systems with file:line evidence
- Risks — List risks with mitigation strategies
- Write — Fill every section of the template; no placeholder text allowed
- Save — Write to
Documents/TDDs/TDD_{Name}.md
Rules
- Template is mandatory — output must follow
references/tdd-template.mdexactly: same headers, same table schemas, same Mermaid block in Data Flow - Investigate the actual codebase before writing — no speculation
- No TODO/TBD in the output document; resolve all placeholders
- Cite
file:linefor every dependency or architectural claim - Alternatives section is mandatory — never skip it
- Keep language imperative; avoid "we should" or "you could"
- All 8 template sections must appear in the final document
Output Format
Save to Documents/TDDs/TDD_{Name}.md.
Required sections (from template — all mandatory):Problem · Goals · Non-Goals · Design (Components table + Interfaces + Data Flow mermaid) · Alternatives Considered (table) · Dependencies (table) · Risks (table) · Open Questions
Reference Files
references/tdd-template.md— Mandatory output template; load at step 1
Load via read_skill_file("unity-document-tdd", "references/tdd-template.md").
Standards
Load unity-standards for architecture and design context. Key references:
code-standards/architecture-patterns.md— state machine, MVC/MVP, command patterncode-standards/dependencies.md— DI, service locator, constructor injectioncode-standards/events.md— C# events, UnityEvent, SO channels, Actionreview/architecture-checklist.md— coupling, SOLID, assembly boundaries
Load via read_skill_file("unity-standards", "references/<path>").