(Features) Analyze codebase and generate feature specifications
From tech-leadnpx claudepluginhub ruslan-korneev/claude-plugins --plugin tech-leadAnalyze existing codebase and generate feature specifications.
Use the Task tool to spawn the codebase-analyzer agent:
Analyze the codebase at {path} and extract:
1. Domain entities (models, tables)
2. API endpoints (routes, handlers)
3. Business services
4. External integrations
For each entity, identify:
- CRUD operations
- Business rules (validations, constraints)
- Relationships and dependencies
- Current implementation status
From the analyzer output, categorize findings:
Core Features (from models):
Workflow Features (from services):
Integration Features (from clients/adapters):
Use Glob to find existing feature files:
docs/technical-requirements/features/*.md
Compare with analysis to identify:
Use AskUserQuestion to confirm the proposed features:
## Proposed Features
Based on codebase analysis, I found these features:
### Core (entities)
- [ ] `core-01-user` — User model with authentication
- [ ] `core-02-product` — Product catalog
### Workflow (processes)
- [ ] `workflow-01-checkout` — Order creation flow
### Integration (external)
- [ ] `integration-01-email` — SendGrid integration
Should I generate these feature specifications?
For each confirmed feature:
Determine next number for phase:
Glob: docs/technical-requirements/features/{phase}-*.md
Generate feature file using template from SKILL.md
Extract business rules from code:
Generate user stories from endpoints:
After creating feature files:
## Codebase Analysis Complete
### Summary
| Phase | Found | Created | Updated |
|-------|-------|---------|---------|
| Core | 3 | 2 | 1 |
| Workflow | 1 | 1 | 0 |
| Integration | 2 | 2 | 0 |
### Features Created
1. `core-01-user-management.md`
- 3 Business Rules
- 5 User Stories
2. `core-02-product-catalog.md`
- 2 Business Rules
- 4 User Stories
### Next Steps
- Review generated features for accuracy
- Add missing business context
- Run `/feature-list:graph` to update dependencies
When updating existing features:
<!-- manual --> markers⚠️ Conflict in `core-01-user-management.md`:
**Current**: BR-USR-001 requires email verification
**Generated**: No email verification found in code
Keep current? [Y/n]