- Add persistent docs: PRD, functional design, architecture, repository structure, development guidelines, milestones - Add brainstorming notes (docs/ideas/) - Configure tooling: package.json, tsconfig, eslint, prettier, vitest - Add opencode configuration (commands, skills, agents) - Add .gitignore for node_modules, .env, data/, backups/, build outputs
1.4 KiB
1.4 KiB
Design Document
Architecture Overview
{Describe the architecture pattern to adopt}
{Describe the architecture diagram in text or Mermaid}
Component Design
1. {Component name 1}
Responsibilities:
- {Responsibility 1}
- {Responsibility 2}
Implementation highlights:
- {Points to note during implementation}
- {Technical constraints}
2. {Component name 2}
Responsibilities:
- {Responsibility 1}
- {Responsibility 2}
Implementation highlights:
- {Points to note during implementation}
- {Technical constraints}
Data Flow
{Use case name}
1. {Step 1}
2. {Step 2}
3. {Step 3}
Error Handling Strategy
Custom Error Classes
{Define the necessary error classes}
Error Handling Patterns
{How errors are handled}
Test Strategy
Unit Tests
- {Test target 1}
- {Test target 2}
Integration Tests
- {Test scenario 1}
- {Test scenario 2}
Dependent Libraries
{Describe any newly added libraries}
{
"dependencies": {
"{library name}": "{version}"
}
}
Directory Structure
{File structure to be added or changed}
Implementation Order
- {Implementation step 1}
- {Implementation step 2}
- {Implementation step 3}
Security Considerations
- {Security-related points to note}
Performance Considerations
- {Performance-related points to note}
Future Extensibility
{A design that accounts for future extensions}