Skip to content

Commit fa742f4

Browse files
committed
fix: prevent skills from loading twice when invoked via slash commands
Root Cause: Slash commands were outputting text like 'Execute: /skill analyze' which Claude would parse and execute, but something was causing double execution. Fix: Changed slash commands to use directive format instead: - Old: 'Execute: /skill analyze' (text that gets re-parsed) - New: 'Use the Skill tool with skill="analyze".' (single instruction) This provides clear instructions for Claude to invoke the skill exactly once. Updated all 7 slash commands: - /stackshift.analyze - /stackshift.reverse-engineer - /stackshift.create-specs - /stackshift.gap-analysis - /stackshift.complete-spec - /stackshift.implement - /stackshift.cruise-control Result: Skills should now load once instead of twice.
1 parent c6584de commit fa742f4

File tree

7 files changed

+28
-86
lines changed

7 files changed

+28
-86
lines changed

.claude/commands/stackshift.analyze.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,8 @@
22
description: Gear 1 - Analyze codebase and detect tech stack
33
---
44

5-
Run the analyze skill to start reverse engineering.
5+
Invoke the analyze skill (Gear 1 of StackShift).
66

7-
This is **Gear 1** of the StackShift process.
7+
This will detect tech stack, map directory structure, assess completeness, create analysis-report.md, and help you choose Greenfield or Brownfield route.
88

9-
Execute: `/skill analyze`
10-
11-
This will:
12-
- Detect programming language and framework
13-
- Identify application type
14-
- Map directory structure
15-
- Assess completeness
16-
- Create analysis-report.md
17-
- Ask you to choose route: Greenfield or Brownfield
9+
Use the Skill tool with skill="analyze".

.claude/commands/stackshift.complete-spec.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,10 @@
22
description: Gear 5 - Resolve clarifications and complete specifications
33
---
44

5-
Run the complete-spec skill to resolve ambiguities.
5+
Invoke the complete-spec skill (Gear 5 of StackShift).
66

7-
This is **Gear 5** of the StackShift process.
7+
This resolves ambiguities by finding [NEEDS CLARIFICATION] markers, asking targeted questions, and updating specs.
88

9-
Execute: `/skill complete-spec`
9+
Prerequisite: Complete Gear 4 (gap-analysis)
1010

11-
This will:
12-
- Find [NEEDS CLARIFICATION] markers
13-
- Ask targeted questions
14-
- Update specs with answers
15-
- Remove ambiguities
16-
- Prepare for implementation
17-
18-
Prerequisites: Complete Gear 4 (gap-analysis)
11+
Use the Skill tool with skill="complete-spec".

.claude/commands/stackshift.create-specs.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,10 @@
22
description: Gear 3 - Generate GitHub Spec Kit specifications for ALL features
33
---
44

5-
Run the create-specs skill to automatically generate comprehensive specifications.
5+
Invoke the create-specs skill (Gear 3 of StackShift).
66

7-
This is **Gear 3** of the StackShift process.
7+
This automatically generates specifications for the ENTIRE application (not just gaps) - creates specs for existing features, partial features, and missing features. Achieves 100% spec coverage.
88

9-
Execute: `/skill create-specs`
9+
Prerequisite: Complete Gear 2 (reverse-engineer)
1010

11-
This will:
12-
- Automatically parse functional-specification.md
13-
- Extract ALL features (complete, partial, missing)
14-
- Generate constitution.md
15-
- Create specs for EVERY feature (not just gaps!)
16-
- Create implementation plans for incomplete features
17-
- Set up /speckit.* slash commands
18-
- Achieve 100% spec coverage
19-
20-
Prerequisites: Complete Gear 2 (reverse-engineer)
21-
22-
**Critical**: Creates specs for existing features too, enabling spec-driven changes to current code!
11+
Use the Skill tool with skill="create-specs".

.claude/commands/stackshift.cruise-control.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,11 @@
22
description: Cruise Control - Automatically run all 6 gears in sequence
33
---
44

5-
Run cruise control mode to shift through all gears automatically.
5+
Use the Skill tool to invoke the cruise-control skill.
66

7-
This is **CRUISE CONTROL MODE** - full automation!
7+
Skill: cruise-control
88

9-
Execute: `/skill cruise-control`
9+
This runs CRUISE CONTROL MODE - shifting through all 6 gears automatically:
10+
1. Analyze → 2. Reverse Engineer → 3. Create Specs → 4. Gap Analysis → 5. Complete Spec → 6. Implement
1011

11-
This will:
12-
- Run all 6 gears sequentially
13-
- Gear 1: Analyze → Gear 2: Reverse Engineer → Gear 3: Create Specs
14-
- Gear 4: Gap Analysis → Gear 5: Complete Spec → Gear 6: Implement
15-
- Handle clarifications based on configuration (defer/prompt/skip)
16-
- Create complete, spec-driven codebase
17-
18-
Prerequisites: None (runs entire workflow from start)
19-
20-
**Perfect for**: Hands-off migration of complete applications
12+
Perfect for hands-off migration of complete applications.

.claude/commands/stackshift.gap-analysis.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,10 @@
22
description: Gear 4 - Analyze gaps and create prioritized implementation roadmap
33
---
44

5-
Run the gap-analysis skill to identify incomplete features.
5+
Invoke the gap-analysis skill (Gear 4 of StackShift).
66

7-
This is **Gear 4** of the StackShift process.
7+
This identifies incomplete features, creates prioritized roadmap, estimates implementation effort.
88

9-
Execute: `/skill gap-analysis`
9+
Prerequisite: Complete Gear 3 (create-specs)
1010

11-
This will:
12-
- Run /speckit.analyze for validation
13-
- Identify COMPLETE, PARTIAL, and MISSING features
14-
- Create prioritized roadmap
15-
- Estimate implementation effort
16-
- Suggest implementation phases
17-
18-
Prerequisites: Complete Gear 3 (create-specs)
11+
Use the Skill tool with skill="gap-analysis".

.claude/commands/stackshift.implement.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,10 @@
22
description: Gear 6 - Implement features from specifications
33
---
44

5-
Run the implement skill to build features from specs.
5+
Invoke the implement skill (Gear 6 of StackShift).
66

7-
This is **Gear 6** of the StackShift process.
7+
This builds features from specs using /speckit.tasks and /speckit.implement. Only implements PARTIAL and MISSING features - existing features are already under spec control.
88

9-
Execute: `/skill implement`
9+
Prerequisite: Complete Gear 5 (complete-spec)
1010

11-
This will:
12-
- Use /speckit.tasks to generate task list
13-
- Use /speckit.implement to build features
14-
- Work through prioritized implementation plan
15-
- Validate against specifications
16-
- Build PARTIAL and MISSING features
17-
18-
Prerequisites: Complete Gear 5 (complete-spec)
19-
20-
**Note**: Only implements incomplete features. Existing features are already under spec control from Gear 3!
11+
Use the Skill tool with skill="implement".

.claude/commands/stackshift.reverse-engineer.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,10 @@
22
description: Gear 2 - Extract comprehensive documentation from codebase
33
---
44

5-
Run the reverse-engineer skill to create comprehensive documentation.
5+
Invoke the reverse-engineer skill (Gear 2 of StackShift).
66

7-
This is **Gear 2** of the StackShift process.
7+
This creates comprehensive documentation including functional requirements, data architecture, API endpoints, and business logic in docs/reverse-engineering/.
88

9-
Execute: `/skill reverse-engineer`
9+
Prerequisite: Complete Gear 1 (analyze)
1010

11-
This will:
12-
- Extract comprehensive documentation (8-10 files)
13-
- Document functional requirements
14-
- Document data architecture
15-
- Document API endpoints
16-
- Document business logic
17-
- Create docs/reverse-engineering/ directory
18-
19-
Prerequisites: Complete Gear 1 (analyze)
11+
Use the Skill tool with skill="reverse-engineer".

0 commit comments

Comments
 (0)