I'm running the Full Track pre-development workflow (9 gates) for your feature.
This track is for features that have ANY of:
- ❌ Take ≥2 days to implement
- ❌ Add new external dependencies (APIs, databases, libraries)
- ❌ Create new data models or entities
- ❌ Require multi-service integration
- ❌ Use new architecture patterns
- ❌ Require team collaboration
If feature is simple (<2 days, existing patterns), use /pre-dev-feature instead.
Document Organization
All artifacts will be saved to: docs/pre-dev/<feature-name>/
First, let me ask you about your feature:
Use the AskUserQuestion tool to gather:
Question 1: "What is the name of your feature?"
- Header: "Feature Name"
- This will be used for the directory name
- Use kebab-case (e.g., "auth-system", "payment-processing", "file-upload")
Question 2 (CONDITIONAL): "Does this feature require authentication or authorization?"
- Auto-detection: Before asking, check if
go.mod contains github.com/LerianStudio/lib-auth
- If found → Skip this question. Auth is already integrated at project level.
- If not found → Ask this question (new project or project without auth)
- Header: "Auth Requirements"
- Options:
- "None" - No authentication needed
- "User authentication only" - Users must log in but no permission checks
- "User + permissions" - Full user auth with role-based access control
- "Service-to-service auth" - Machine-to-machine authentication only
- "Full (user + service-to-service)" - Both user and service auth
- Note: For Go services requiring auth, reference
golang.md → Access Manager Integration section during TRD creation (Gate 3) and Dependency Map (Gate 6)
Question 3 (CONDITIONAL): "Is this a licensed product/plugin?"
- Auto-detection: Before asking, check if
go.mod contains github.com/LerianStudio/lib-license-go
- If found → Skip this question. Licensing is already integrated at project level.
- If not found → Ask this question (new project or project without licensing)
- Header: "License Requirements"
- Options:
- "No" - Not a licensed product (open source, internal tool, etc.)
- "Yes" - Licensed product that requires License Manager integration
- Note: For Go services requiring license validation, reference
golang.md → License Manager Integration section during TRD creation (Gate 3) and Dependency Map (Gate 6)
Why auto-detection? Access Manager and License Manager are project-level infrastructure decisions, not feature-level. Once integrated, all features in the project inherit them.
After getting the feature name (and auth/license requirements if applicable), create the directory structure and run the 9-gate workflow:
mkdir -p docs/pre-dev/<feature-name>
Gate 0: Research Phase (NEW)
Skill: pre-dev-research
-
Determine research mode by asking user or inferring from context:
- greenfield: New capability, no existing patterns
- modification: Extending existing functionality
- integration: Connecting external systems
-
Dispatch 3 research agents in PARALLEL:
- repo-research-analyst (codebase patterns, file:line refs)
- best-practices-researcher (web search, Context7)
- framework-docs-researcher (tech stack, versions)
-
Aggregate findings into research document
-
Save to: docs/pre-dev/<feature-name>/research.md
-
Run Gate 0 validation checklist
-
Get human approval before proceeding
Gate 0 Pass Criteria:
Gate 1: PRD Creation
Skill: pre-dev-prd-creation
- Ask user to describe the feature (problem, users, business value)
- Create PRD document with:
- Problem statement
- User stories
- Acceptance criteria
- Success metrics
- Out of scope
- Save to:
docs/pre-dev/<feature-name>/prd.md
- Run Gate 1 validation checklist
- Get human approval before proceeding
Gate 1 Pass Criteria:
Gate 2: Feature Map Creation
Skill: pre-dev-feature-map
- Load PRD from
docs/pre-dev/<feature-name>/prd.md
- Create feature map document with:
- Feature relationships and dependencies
- Domain boundaries
- Integration points
- Scope visualization
- Save to:
docs/pre-dev/<feature-name>/feature-map.md
- Run Gate 2 validation checklist
- Get human approval before proceeding
Gate 2 Pass Criteria:
Gate 3: TRD Creation
Skill: pre-dev-trd-creation
- Load PRD from
docs/pre-dev/<feature-name>/prd.md
- Load Feature Map from
docs/pre-dev/<feature-name>/feature-map.md
- Map Feature Map domains to architectural components
- Create TRD document with:
- Architecture style (pattern names, not products)
- Component design (technology-agnostic)
- Data architecture (conceptual)
- Integration patterns
- Security architecture
- NO specific tech products
- Save to:
docs/pre-dev/<feature-name>/trd.md
- Run Gate 3 validation checklist
- Get human approval before proceeding
Gate 3 Pass Criteria:
Gate 4: API Design
Skill: pre-dev-api-design
- Load previous artifacts (PRD, Feature Map, TRD)
- Create API design document with:
- Component contracts and interfaces
- Request/response formats
- Error handling patterns
- Integration specifications
- Save to:
docs/pre-dev/<feature-name>/api-design.md
- Run Gate 4 validation checklist
- Get human approval before proceeding
Gate 4 Pass Criteria:
Gate 5: Data Model
Skill: pre-dev-data-model
- Load previous artifacts
- Create data model document with:
- Entity relationships and schemas
- Data ownership boundaries
- Access patterns
- Migration strategy
- Save to:
docs/pre-dev/<feature-name>/data-model.md
- Run Gate 5 validation checklist
- Get human approval before proceeding
Gate 5 Pass Criteria:
Gate 6: Dependency Map
Skill: pre-dev-dependency-map
- Load previous artifacts
- Create dependency map document with:
- NOW we select specific technologies
- Concrete versions and packages
- Rationale for each choice
- Alternative evaluations
- Save to:
docs/pre-dev/<feature-name>/dependency-map.md
- Run Gate 6 validation checklist
- Get human approval before proceeding
Gate 6 Pass Criteria:
Gate 7: Task Breakdown
Skill: pre-dev-task-breakdown
- Load all previous artifacts (PRD, Feature Map, TRD, API Design, Data Model, Dependency Map)
- Create task breakdown document with:
- Value-driven decomposition
- Each task delivers working software
- Maximum task size: 2 weeks
- Dependencies mapped
- Testing strategy per task
- Save to:
docs/pre-dev/<feature-name>/tasks.md
- Run Gate 7 validation checklist
- Get human approval before proceeding
Gate 7 Pass Criteria:
Gate 8: Subtask Creation
Skill: pre-dev-subtask-creation
- Load tasks from
docs/pre-dev/<feature-name>/tasks.md
- Create subtask breakdown document with:
- Bite-sized steps (2-5 minutes each)
- TDD-based implementation steps
- Complete code (no placeholders)
- Zero-context executable
- Save to:
docs/pre-dev/<feature-name>/subtasks.md
- Run Gate 8 validation checklist
- Get human approval
Gate 8 Pass Criteria:
After Completion
Report to human:
✅ Full Track (9 gates) complete for <feature-name>
Artifacts created:
- docs/pre-dev/<feature-name>/research.md (Gate 0) ← NEW
- docs/pre-dev/<feature-name>/prd.md (Gate 1)
- docs/pre-dev/<feature-name>/feature-map.md (Gate 2)
- docs/pre-dev/<feature-name>/trd.md (Gate 3)
- docs/pre-dev/<feature-name>/api-design.md (Gate 4)
- docs/pre-dev/<feature-name>/data-model.md (Gate 5)
- docs/pre-dev/<feature-name>/dependency-map.md (Gate 6)
- docs/pre-dev/<feature-name>/tasks.md (Gate 7)
- docs/pre-dev/<feature-name>/subtasks.md (Gate 8)
Planning time: 2-4 hours (comprehensive)
Next steps:
1. Review artifacts in docs/pre-dev/<feature-name>/
2. Use /worktree to create isolated workspace
3. Use /write-plan to create implementation plan
4. Execute the plan
Remember
- This is the Full Track - comprehensive and thorough
- All 9 gates provide maximum planning depth
- Gate 0 (Research) runs 3 agents in parallel for codebase, best practices, and framework docs
- Technology decisions happen at Gate 6 (Dependency Map)
- All documents saved to
docs/pre-dev/<feature-name>/
- Get human approval at each gate before proceeding
- Planning investment (2-4 hours) pays off during implementation
MANDATORY: Skills Orchestration
This command orchestrates multiple skills in a 9-gate workflow.
Gate Sequence
| Gate | Skill | Purpose |
|---|
| 0 | pre-dev-research | Domain/technical research |
| 1 | pre-dev-prd-creation | Product requirements |
| 2 | pre-dev-feature-map | Feature scope |
| 3 | pre-dev-trd-creation | Technical requirements |
| 4 | pre-dev-api-design | API contracts |
| 5 | pre-dev-data-model | Data architecture |
| 6 | pre-dev-dependency-map | Technology selection |
| 7 | pre-dev-task-breakdown | Task decomposition |
| 8 | pre-dev-subtask-creation | Implementation steps |
Execution Pattern
For each gate:
Use Skill tool: [gate-skill]
Wait for human approval
Proceed to next gate
Each skill contains its own:
- Anti-rationalization tables
- Gate pass criteria
- Output format requirements
Do NOT skip gates. Each gate builds on the previous gate's output.