Adaptive interview heuristics and technical feature enrichment for TRD generation.
Generates technical requirements documents through adaptive interviews and enriches feature lists with implementation subtasks.
npx claudepluginhub aeyeops/aeo-skill-marketplacereference/Adaptive interview heuristics and technical feature enrichment for TRD generation.
Match question depth to project complexity (discovered dynamically):
Adapt: Focus on Stack + Data + Basic Security (~10-12 questions)
Adapt: All 6 phases with moderate depth (~20-25 questions)
100K users
5 integrations
Adapt: Comprehensive exploration of all 6 phases (~30-40 questions)
Dynamic adjustment: If user mentions compliance/high-scale/many integrations during simple TRD → offer to switch to comprehensive mode.
After generating TECH_REQ.md, enrich the feature list with technical subtasks if epcc-features.json exists.
if [ -f "epcc-features.json" ]; then
echo "Found epcc-features.json - enriching features with technical details..."
else
echo "No epcc-features.json found - technical decisions will inform /epcc-plan"
fi
For each feature in epcc-features.json, add technical subtasks based on TRD decisions:
{
"features": [
{
"id": "F001",
"name": "User Authentication",
"subtasks": [
{"name": "Set up [Auth provider] integration", "status": "pending", "source": "TECH_REQ.md#authentication"},
{"name": "Implement [JWT/Session] token handling", "status": "pending", "source": "TECH_REQ.md#authentication"},
{"name": "Create [Database] user schema", "status": "pending", "source": "TECH_REQ.md#data-model"},
{"name": "Configure [bcrypt/argon2] password hashing", "status": "pending", "source": "TECH_REQ.md#security"},
{"name": "Add rate limiting middleware", "status": "pending", "source": "TECH_REQ.md#security"}
]
}
]
}
Subtask generation rules:
Add new features for infrastructure tasks not covered by product features:
{
"features": [
{
"id": "INFRA-001",
"name": "Database Setup",
"description": "Set up [PostgreSQL] database with schemas and migrations",
"priority": "P0",
"status": "pending",
"passes": false,
"acceptanceCriteria": [
"Database provisioned and accessible",
"All migrations run successfully",
"Connection pooling configured",
"Backup strategy in place"
],
"subtasks": [],
"source": "TECH_REQ.md#data-model"
},
{
"id": "INFRA-002",
"name": "CI/CD Pipeline",
"description": "Set up continuous integration and deployment",
"priority": "P1",
"status": "pending",
"passes": false,
"acceptanceCriteria": [
"Tests run on every commit",
"Automated deployment to staging",
"Production deployment with approval gate"
],
"subtasks": [],
"source": "TECH_REQ.md#deployment"
},
{
"id": "INFRA-003",
"name": "Monitoring & Logging",
"description": "Set up application monitoring and centralized logging",
"priority": "P1",
"status": "pending",
"passes": false,
"acceptanceCriteria": [
"Error tracking configured",
"Performance monitoring in place",
"Logs aggregated and searchable"
],
"subtasks": [],
"source": "TECH_REQ.md#monitoring"
}
]
}
Infrastructure feature rules:
Append TRD session to epcc-progress.md:
---
## Session [N]: TRD Created - [Date]
### Summary
Technical Requirements Document created with architecture and technology decisions.
### Technical Decisions
- **Architecture**: [Pattern chosen]
- **Backend**: [Technology + rationale]
- **Frontend**: [Technology + rationale]
- **Database**: [Technology + rationale]
- **Hosting**: [Platform chosen]
- **Authentication**: [Method chosen]
### Feature Enrichment
- Updated [X] features with technical subtasks
- Added [Y] infrastructure features:
- INFRA-001: Database Setup
- INFRA-002: CI/CD Pipeline
[...]
### Feature Summary (Updated)
- **Total Features**: [N] (was [M] from PRD)
- **Product Features**: [X] (with technical subtasks)
- **Infrastructure Features**: [Y] (new from TRD)
### Next Session
Run `/epcc-plan` to finalize implementation order and create detailed task breakdown.
---
## Technical Requirements Complete
✅ **TECH_REQ.md** - Technical decisions documented
✅ **epcc-features.json** - Features enriched with technical details:
- [X] existing features updated with subtasks
- [Y] infrastructure features added
- Total features: [N]
✅ **epcc-progress.md** - TRD session logged
### Technical Subtasks Added
| Feature | Subtasks Added | Source |
|---------|----------------|--------|
| F001: User Auth | 5 subtasks | TECH_REQ.md#authentication |
| F002: Task CRUD | 3 subtasks | TECH_REQ.md#data-model |
| ... | ... | ... |
### Infrastructure Features Added
| Feature | Priority | Source |
|---------|----------|--------|
| INFRA-001: Database Setup | P0 | TECH_REQ.md#data-model |
| INFRA-002: CI/CD Pipeline | P1 | TECH_REQ.md#deployment |
| ... | ... | ... |
### Next Steps
**For Implementation Planning**: `/epcc-plan` - Finalize task order and create detailed breakdown
**For Brownfield Projects**: `/epcc-explore` - Understand existing codebase first
**To check progress**: `/epcc-resume` - Quick orientation and status
Map TRD decisions to subtasks based on technology choices:
| TRD Section | Generated Subtasks |
|---|---|
| Authentication: JWT | Token generation, validation middleware, refresh token handling |
| Authentication: OAuth2 | Provider integration, callback handling, token storage |
| Database: PostgreSQL | Schema creation, migrations, connection pooling, indexes |
| Database: MongoDB | Schema design, indexes, aggregation pipelines |
| API: REST | Route structure, validation, error handling, documentation |
| API: GraphQL | Schema definition, resolvers, subscriptions setup |
| Hosting: AWS | IAM setup, VPC config, deployment scripts |
| Hosting: Vercel | Environment variables, build config, domain setup |
| Caching: Redis | Connection setup, cache invalidation, session storage |
| Security: GDPR | Audit logging, data export, deletion handlers |