Cruise Control Mode ππ¨
Automatic transmission for StackShift - Shift through all 6 gears sequentially without manual intervention.
When to Use This Skill
Use cruise control when:
- You want to run the entire workflow automatically
- Don't need to review each step before proceeding
- Trust StackShift to make reasonable defaults
- Want unattended execution (kick it off and come back later)
- Prefer automatic over manual transmission
Trigger Phrases:
- "Run StackShift in cruise control mode"
- "Automatically shift through all gears"
- "Run the full workflow automatically"
- "StackShift autopilot"
What This Does
Runs all 6 gears sequentially:
Gear 1: Analyze β Gear 2: Reverse Engineer β Gear 3: Create Specs β
Gear 4: Gap Analysis β Gear 5: Complete Spec β Gear 6: Implement
Without stopping between gears!
Setup
Initial Configuration (One-Time)
At the start, you'll be asked:
-
Route Selection:
Choose your route: A) Greenfield - Shift to new tech stack B) Brownfield - Manage existing code -
Implementation Framework:
Choose implementation framework: A) GitHub Spec Kit - Feature specs in .specify/, /speckit.* commands B) BMAD Auto-Pilot - Auto-generate BMAD artifacts from reverse-eng docs C) BMAD Method - Same docs, hands off to BMAD's collaborative agents D) Architecture Only - Generate architecture.md with your constraints -
Clarifications Handling: (Spec Kit only)
How to handle [NEEDS CLARIFICATION] markers? A) Defer - Mark them, implement around them, clarify later B) Prompt - Stop and ask questions interactively C) Skip - Only implement fully-specified features -
Implementation Scope: (Spec Kit only)
What to implement in Gear 6? A) P0 only - Critical features only B) P0 + P1 - Critical and high-value C) All - Everything (may take hours/days) D) None - Stop after specs are ready -
BMAD Synthesize Mode: (BMAD Auto-Pilot only)
How should BMAD artifacts be generated? A) YOLO - Fully automatic, no questions (~10 min) B) Guided - Auto-fill + targeted questions (~15-20 min)Note: Interactive mode is not available in cruise control (requires manual interaction).
-
Architecture Constraints: (Architecture Only, asked once)
Quick architecture setup: - Tech stack: [Same as current / specify] - Cloud provider: [AWS / GCP / Azure / Self-hosted] - Scale: [Startup / Growing / Enterprise] - Hard constraints: [free text or skip]
Then cruise control takes over!
Note: For BMAD Method, questions 3-6 are skipped. For BMAD Auto-Pilot, questions 3-4 are skipped. For Architecture Only, questions 3-5 are skipped.
Execution Flow
GitHub Spec Kit Path
Gear 1: Analyze (Auto)
- Detects tech stack
- Assesses completeness
- Sets route and framework (from your selections)
- Saves state with
auto_mode: true - Run AST analysis for deep code inspection (
node scripts/run-ast-analysis.mjs analyze .) - Cache results in
.stackshift-analysis/for all subsequent gears - Auto-shifts to Gear 2 β
Gear 2: Reverse Engineer (Auto)
- Launches
stackshift:code-analyzeragent - Extracts documentation based on route
- Generates all 9 files (including integration-points.md)
- Auto-shifts to Gear 3 β
Gear 3: Create Specifications (Auto)
- Calls automated spec generation (F002)
- Generates constitution (appropriate template for route)
- Creates all feature specs programmatically
- Creates implementation plans for incomplete features
- Sets up
/speckit.*slash commands - Auto-shifts to Gear 4 β
Gear 4: Gap Analysis (Auto)
- Runs
/speckit.analyze - Identifies PARTIAL/MISSING features
- Creates prioritized roadmap
- Marks [NEEDS CLARIFICATION] items
- Auto-shifts to Gear 5 β
Gear 5: Complete Specification (Conditional)
- If clarifications handling = "Defer": Skips, moves to Gear 6
- If clarifications handling = "Prompt": Asks questions interactively, then continues
- If clarifications handling = "Skip": Marks unclear features as P2, moves on
- Auto-shifts to Gear 6 β
Gear 6: Implement (Based on Scope)
- If scope = "None": Stops, specs ready
- If scope = "P0 only": Implements critical features only
- If scope = "P0 + P1": Implements critical + high-value
- If scope = "All": Implements everything
- Uses
/speckit.tasksand/speckit.implementfor each feature - Completes! π
BMAD Auto-Pilot Path
Gear 1: Analyze (Auto)
- Detects tech stack
- Assesses completeness
- Sets route and framework (
bmad-autopilot) - Saves state with
auto_mode: true - Auto-shifts to Gear 2 β
Gear 2: Reverse Engineer (Auto)
- Launches
stackshift:code-analyzeragent - Extracts all 11 documentation files (including business-context.md and decision-rationale.md)
- Generates all docs in
docs/reverse-engineering/ - Auto-shifts to BMAD Synthesize β
Gears 3-5: Replaced by BMAD Synthesize
- Runs
/stackshift.bmad-synthesizein selected mode (YOLO or Guided) - Auto-generates: prd.md, architecture.md, epics.md, ux-design-specification.md
- Writes to
_bmad-output/planning-artifacts/ - Auto-shifts to Gear 6 β
Gear 6: BMAD Handoff (Optional)
- If user wants BMAD refinement: Displays BMAD installation +
*workflow-initinstructions - If artifacts are sufficient: Marks workflow complete
- StackShift completes! π
BMAD Method Path (Full Collaborative)
Gear 1: Analyze (Auto)
- Detects tech stack
- Assesses completeness
- Sets route and framework (from your selections)
- Saves state with
auto_mode: true - Auto-shifts to Gear 2 β
Gear 2: Reverse Engineer (Auto)
- Launches
stackshift:code-analyzeragent - Extracts all 11 documentation files
- Generates all docs in
docs/reverse-engineering/ - Skips to Gear 6 β
Gears 3-5: Skipped
- BMAD agents handle PRD creation, architecture, and clarifications collaboratively
- StackShift's reverse-engineering docs provide rich context for BMAD
Gear 6: BMAD Handoff
- Displays instructions for BMAD installation and setup
- Provides
*workflow-initcommand to start BMAD workflow - Explains how to point BMAD to
docs/reverse-engineering/ - StackShift completes - BMAD takes over! π
Architecture Only Path
Gear 1: Analyze (Auto)
- Detects tech stack
- Assesses completeness
- Sets route and framework (
architect-only) - Collects architecture constraints (tech stack, cloud, scale)
- Saves state with
auto_mode: true - Auto-shifts to Gear 2 β
Gear 2: Reverse Engineer (Auto)
- Launches
stackshift:code-analyzeragent - Extracts all 11 documentation files
- Generates all docs in
docs/reverse-engineering/ - Auto-shifts to Architecture Generator β
Gears 3-5: Replaced by Architecture Generator
- Runs
/stackshift.architectwith user constraints from Gear 1 - Generates architecture.md with Mermaid diagrams, ADRs, infrastructure
- StackShift completes! π
Progress Monitoring
While cruise control is running, you can check progress:
# Check current gear and progress
cat .stackshift-state.json | jq '{currentStep, completedSteps, auto_mode}'
# Watch progress in real-time
watch -n 5 'cat .stackshift-state.json | jq .currentStep'
Interrupting Cruise Control
You can stop cruise control at any time:
"Stop cruise control"
"Pause StackShift"
"Switch to manual mode"
This will:
- Save current state
- Set
auto_mode: false - Allow you to proceed manually from current gear
You can resume cruise control later:
"Resume cruise control from current gear"
Example: Full Automatic Run
User: "Run StackShift in cruise control mode"
StackShift:
Setting up cruise control...
Choose your route:
A) Greenfield - Shift to new tech stack
B) Brownfield - Manage existing code
User: "B - Brownfield"
StackShift:
How to handle clarifications?
A) Defer - Clarify later
B) Prompt - Ask me now
C) Skip - Only implement clear features
User: "A - Defer"
StackShift:
Implementation scope?
A) P0 only
B) P0 + P1
C) All features
D) None (stop after specs)
User: "B - P0 + P1"
StackShift:
β
Cruise control engaged! Shifting through all gears automatically...
π Gear 1: Analyzing... β
Complete (2 min)
π Gear 2: Reverse engineering... β
Complete (8 min)
π Gear 3: Creating specifications... β
Complete (5 min)
π Gear 4: Gap analysis... β
Complete (3 min)
β¨ Gear 5: Completing specs (deferred clarifications)... β
Complete (1 min)
π Gear 6: Implementing P0 + P1 features... π In Progress (est. 45 min)
Feature 1/8: user-authentication... β
Feature 2/8: fish-management... β
Feature 3/8: photo-upload... π In progress...
[... continues automatically ...]
π All gears complete! Application at 85% implementation.
Deferred clarifications (3) saved in: .specify/memory/clarifications.md
You can resolve these later with: /speckit.clarify
Configuration Options
Cruise control can be configured via state:
{
"auto_mode": true,
"auto_config": {
"route": "brownfield",
"clarifications_strategy": "defer",
"implementation_scope": "p0_p1",
"pause_between_gears": false,
"notify_on_completion": true
}
}
Use Cases
1. Overnight Execution
5pm: "Run cruise control, brownfield, P0+P1, defer clarifications"
9am: Check results, review generated specs, answer deferred questions
2. Demo Mode
"Show me what StackShift does - run full demo"
β Runs cruise control with sample project
Safety Features
Checkpoints
Cruise control creates checkpoints at each gear:
- State saved after each gear completes
- Can resume from any checkpoint if interrupted
- Rollback possible if issues detected
Validation
Before proceeding:
- Validates output files were created
- Checks for errors in previous gear
- Ensures prerequisites met
User Intervention
Pauses automatically if:
- Critical error detected
/speckit.analyzeshows major inconsistencies- Implementation fails tests
- Disk space low
- Git conflicts detected
Manual Override
At any point, you can:
"Pause after current gear"
"Stop cruise control"
"Switch to manual mode"
"Take control"
State saved, you can continue manually from that point.
Success Criteria
GitHub Spec Kit Path
After cruise control completes:
- β All 6 gears complete
- β
.stackshift-state.jsonshows 6/6 gears - β All output files generated
- β
GitHub Spec Kit initialized (
.specify/directory) - β Features implemented (based on scope)
- β Ready for production (or clarifications if deferred)
BMAD Auto-Pilot Path
After cruise control completes:
- β Gears 1, 2 complete + BMAD Synthesize complete
- β
.stackshift-state.jsonshows framework: "bmad-autopilot" - β
docs/reverse-engineering/with all 11 files generated - β
_bmad-output/planning-artifacts/with prd.md, architecture.md, epics.md, ux-design-specification.md - β Synthesis report with coverage percentages
- β Ready for BMAD refinement or direct use
BMAD Method Path
After cruise control completes:
- β Gears 1, 2, 6 complete (3-5 skipped)
- β
.stackshift-state.jsonshows framework: "bmad" - β
docs/reverse-engineering/with all 11 files generated - β BMAD handoff instructions displayed
- β
Ready for
*workflow-initto create PRD/Architecture collaboratively
Architecture Only Path
After cruise control completes:
- β Gears 1, 2 complete + Architecture Generator complete
- β
.stackshift-state.jsonshows framework: "architect-only" - β
docs/reverse-engineering/with all 11 files generated - β
architecture.mdwith Mermaid diagrams, ADRs, infrastructure recommendations - β Cost estimation and migration path included
Technical Notes
- Cruise control is a special skill that orchestrates other skills
- Each gear is still executed by its corresponding skill
- Auto mode can be toggled on/off at any time
- State tracks auto_mode for resume capability
- Great for CI/CD, batch processing, or overnight runs
Remember: Cruise control is like automatic transmission - convenient and hands-off. Manual mode (using individual skills) gives you more control. Choose based on your needs!
π Manual = Control each gear yourself π€ Cruise Control = Let StackShift handle it
Both get you to the same destination!