Extract project.json, features.json, application-design.json, and website-design.json from project files (README, roadmap/*.json, specs/)
Extracts project configuration from architecture docs into JSON files for project initialization.
/plugin marketplace add vanman2024/dev-lifecycle-marketplace/plugin install planning@dev-lifecycle-marketplacenonešØ EXECUTION NOTICE FOR CLAUDE
When you invoke this command via SlashCommand, the system returns THESE INSTRUCTIONS below.
YOU are the executor. This is NOT an autonomous subprocess.
Immediately after SlashCommand returns, start executing Phase 0, then Phase 1, etc.
See @CLAUDE.md section "SlashCommand Execution - YOU Are The Executor" for detailed explanation.
Arguments: None required
Goal: Extract comprehensive project.json, features.json, application-design.json, and website-design.json from all generated architecture documentation with full context.
Core Principles:
Phase 1: Validate Architecture Exists Goal: Ensure all required architecture files exist before extraction
Actions:
ā Missing architecture files. Run /planning:wizard first to generate architecture documentation.
Missing files:
- docs/architecture/backend.md
- docs/ROADMAP.md
Phase 2: Read All Architecture Documentation Goal: Load complete context from all architecture files
Actions:
Phase 3: Extract Tech Stack (project.json) Goal: Generate comprehensive .claude/project.json from project files (README, roadmap/*.json, specs/)
Actions:
Phase 4: Generate project.json Goal: Write comprehensive .claude/project.json
Actions:
{
"name": "project-name",
"framework": "Next.js 15",
"languages": ["TypeScript", "Python"],
"ai_stack": {
"sdks": ["Vercel AI SDK", "Claude Agent SDK"],
"providers": ["Anthropic", "OpenAI"],
"memory": "Mem0",
"mcp_servers": ["supabase", "playwright", "context7"]
},
"database": {
"type": "PostgreSQL",
"provider": "Supabase",
"orm": "Prisma",
"extensions": ["pgvector"]
},
"testing": {
"unit": "Jest",
"e2e": "Playwright",
"api": "Supertest"
},
"deployment": {
"frontend": "Vercel",
"backend": "Railway",
"mcp": "FastMCP Cloud"
},
"infrastructure": {
"authentication": {
"provider": "Clerk",
"features": ["JWT validation", "Session management"],
"integration": "Supabase RLS sync"
},
"caching": {
"provider": "Redis",
"strategy": "query caching",
"use_cases": ["API responses", "embeddings"]
},
"monitoring": {
"provider": "Sentry",
"features": ["error tracking", "performance monitoring"]
},
"error_handling": {
"provider": "Sentry",
"features": ["error aggregation", "alert rules"]
},
"rate_limiting": {
"provider": "express-rate-limit",
"strategy": "sliding window"
},
"ci_cd": {
"platform": "GitHub Actions",
"workflows": ["test", "deploy", "security-scan"]
}
},
"extracted_at": "2025-01-XX",
"extracted_from": "project files (README, roadmap/*.json, specs/) via /planning:extract-config"
}
Phase 5: Extract Features (features.json) Goal: Generate comprehensive features.json from ROADMAP.md and architecture
Actions:
Phase 6: Generate features.json Goal: Write comprehensive features.json with dependency-based ordering
Actions:
{
"features": [
{
"id": "F001",
"name": "Feature Name",
"description": "Detailed description from ROADMAP and architecture",
"priority": "P0",
"status": "not_started",
"estimated_effort": "3-5 days",
"build_order": 1,
"dependencies": ["infrastructure"],
"blocks": ["F003", "F005"],
"architecture_refs": [
"docs/architecture/ai.md#rag-system",
"docs/architecture/backend.md#api-endpoints"
]
}
],
"build_order_explanation": {
"1": "Foundation features (no feature dependencies, only infrastructure)",
"2": "Core services (depend on foundation)",
"3": "Secondary features (depend on core services)",
"4": "UI features (depend on backend/core services)",
"5": "Integration features (depend on multiple features)"
},
"shared_context": {
"tech_stack": "Next.js 15 + FastAPI + Supabase",
"ai_stack": "Claude Agent SDK + Vercel AI SDK",
"authentication": "Clerk with Supabase RLS",
"deployment": "Vercel (frontend) + Railway (backend)"
},
"extracted_at": "2025-01-XX",
"extracted_from": "ROADMAP.md + project files (README, roadmap/*.json, specs/) via /planning:extract-config"
}
Phase 7: Extract Application Pages (application-design.json) Goal: Generate application-design.json from application-pages.md
Actions:
Phase 8: Generate application-design.json Goal: Write comprehensive application-design.json for Next.js application pages
Actions:
Phase 9: Extract Website Pages (website-design.json) Goal: Generate website-design.json from website-pages.md
Actions:
Phase 10: Generate website-design.json Goal: Write comprehensive website-design.json for Astro marketing/content pages
Actions:
Phase 11: Validation Goal: Verify extracted configuration is complete and consistent
Actions:
Phase 12: Summary Goal: Display results and next steps
Actions:
ā
Configuration Extraction Complete!
Generated Files:
- .claude/project.json (tech stack and infrastructure)
- features.json (feature breakdown with build order)
- application-design.json (Next.js application pages)
- website-design.json (Astro marketing/content pages)
Feature Build Order:
- Build Order 1: X features (foundation - can build in parallel)
- Build Order 2: Y features (core services - can build in parallel)
- Build Order 3: Z features (secondary - can build in parallel)
- Build Order 4: N features (UI - can build in parallel)
- Build Order 5: M features (integration - can build in parallel)
Application Pages (Next.js):
- Phase 0: X pages (can build in parallel)
- Phase 1: Y pages (can build in parallel)
- Phase 2: Z pages (can build in parallel)
- Total Layouts: N
Website Pages (Astro):
- Phase 0: X pages (can build in parallel)
- Phase 1: Y pages (can build in parallel)
- Phase 2: Z pages (can build in parallel)
- AI Content Generation: N pages
- AI Image Generation: M pages
Extracted From:
- docs/architecture/README.md
- docs/architecture/backend.md
- docs/architecture/frontend.md (component patterns)
- docs/architecture/data.md
- docs/architecture/ai.md
- docs/architecture/infrastructure.md
- docs/architecture/security.md
- docs/architecture/integrations.md
- docs/architecture/application-pages.md (app page inventory)
- docs/architecture/website-pages.md (marketing page inventory)
- docs/ROADMAP.md
Next Steps:
1. Run /planning:init-project to generate feature specs (creates specs in build order)
2. Run /foundation:generate-infrastructure-specs to generate infrastructure specs
3. Build application pages: /implementation:execute --application
4. Build website pages: /implementation:execute --website
5. Build features in order (build_order: 1 ā 2 ā 3 ā 4 ā 5)
6. Features with same build_order can be built in parallel