Create comprehensive Tech Stack Documentation based on deep codebase analysis. Document all technologies, frameworks, libraries, development tools, deployment strategies, and implementation patterns with specific versions and configurations.
Type Safety: TypeScript strictness, validation libraries
API Design: REST, GraphQL, tRPC implementation
Authentication: Auth libraries and session management
Testing Strategy: Unit, integration, E2E test patterns
3. Interactive Technical Q&A
Ask 4-6 deployment and infrastructure questions:
Use numbered/lettered options
Focus on non-discoverable information
Gather hosting, monitoring, and workflow details
4. Generate Comprehensive Documentation
Create detailed tech stack document with:
Specific version numbers
Configuration examples
Command references
Architecture diagrams (when applicable)
5. Save and Organize
Create .agents/rules/ if needed
Save as 2-tech-stack.mdc
Technical Questions Template
🚀 Deployment & Infrastructure
1. Where is your application currently deployed?
a) Vercel - Next.js optimized hosting
b) AWS - EC2, Lambda, or containerized
c) Railway/Render - Modern PaaS providers
d) Self-hosted - VPS or on-premise
e) Other - Please specify
f) Not deployed yet - Still in development
2. How is your database hosted?
a) Managed service (Supabase, PlanetScale, Neon, etc.)
b) Cloud provider (AWS RDS, Google Cloud SQL, etc.)
c) Self-hosted (Docker, VPS, etc.)
d) Local only - No production database yet
📊 Monitoring & Operations
3. What observability tools do you use?
a) Error tracking: Sentry, Rollbar, Bugsnag
b) Analytics: Vercel Analytics, Google Analytics, Plausible
c) Monitoring: Datadog, New Relic, custom solution
d) Logging: CloudWatch, LogTail, custom logs
e) None yet - Planning to add later
👥 Development Workflow
4. What's your Git workflow?
a) Feature branches with PR reviews
b) Trunk-based development
c) GitFlow with release branches
d) Direct to main (solo project)
5. How do you manage environments?
a) Multiple deployments (dev, staging, prod)
b) Preview deployments for PRs
c) Single production environment
d) Local development only
🔐 Additional Services
6. Which external services do you integrate with?
Payment processing (Stripe, PayPal)
Email service (SendGrid, Resend, AWS SES)
File storage (S3, Cloudinary, UploadThing)
Authentication (Auth0, Clerk, Supabase Auth)
Search (Algolia, Elasticsearch)
Other APIs (please specify)
Document Structure
The generated document must follow this technical structure:
Overview
Brief description of the application's technical nature