Create a comprehensive Application Design Document based on deep codebase analysis and user input. The document provides a high-level overview of the application's architecture, core features, user experience, and business logic while remaining technology-agnostic and focused on the "what" rather than the "how".
Process
1. Initial Analysis
Analyze project structure and existing codebase
Review package.json for project name and dependencies
Check for existing documentation in .agents/rules/
関連 Skill
Identify key application features and patterns
Think deeply about the application's purpose and architecture
2. Codebase Deep Dive
Think harder about the application's architecture and business logic.
Analyze the codebase to understand:
Application Structure: Main modules, features, and components
User Flows: Authentication, navigation, key user journeys
Data Models: Conceptual relationships and entities
Business Logic: Core rules, workflows, and processes
Integrations: External services and APIs
Security Patterns: Authentication and authorization approaches
Extended thinking helps identify non-obvious patterns, understand complex business rules from code, and make strategic decisions about what aspects are most important to document.
3. Interactive Q&A Session
CRITICAL: Ask project stage question FIRST, then 4-7 additional questions:
Use lettered/numbered options for easy response
Focus on business goals and user needs
Gather context for proper documentation
4. Update Project Configuration
Based on project stage response:
Update .agents/rules/status.mdc with current stage
Set appropriate DO/DON'T priorities for the stage
Document stage-specific development guidelines in the Cursor rule
5. Generate Document
Create comprehensive app design document following the standard structure
6. Save and Organize
Create .agents/rules/ directory if needed
Save as 1-app-design-document.mdc
Suggest next steps (tech stack doc, PRD, etc.)
Required Questions Template
🎯 CRITICAL: Project Stage Assessment (Ask First!)
1. What stage is your application currently in?
a) Pre-MVP - Building initial version, not deployed to production yet
b) MVP - Basic version deployed and live with early users
c) Production - Mature application with established user base
d) Enterprise - Large scale deployment, multiple teams involved
2. Based on your selected stage, here are the development priorities:
Pre-MVP Priorities:
✅ DO: Core functionality, security basics, input validation, working features
❌ DON'T: Unit tests, performance optimization, accessibility polish, perfect code
🚀 Focus: Ship fast with security, iterate based on feedback
MVP Priorities:
✅ DO: Critical path testing, basic monitoring, user feedback loops
❌ DON'T: Comprehensive test coverage, advanced patterns, premature optimization
🚀 Focus: Stability for early users, rapid iteration