Skip to content

Commit 7118c67

Browse files
committed
feat: Enhanced PATH detection for Node.js version managers and improved documentation
- Implemented comprehensive PATH detection with fallback mechanisms - Added support for asdf, nvm, volta, fnm, and other version managers - Updated documentation to recommend pipx over pip for CLI installation - Removed all brainstorm command references (deprecated feature) - Fixed pipx environment detection and helpful error messages - Resolved Issues #5, #6, #7 Co-authored-by: GitHub Contributors
1 parent ce8830c commit 7118c67

File tree

19 files changed

+330
-186
lines changed

19 files changed

+330
-186
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4848
- security-engineer, performance-engineer, quality-engineer, refactoring-expert
4949
- requirements-analyst, root-cause-analyst, python-expert, technical-writer, learning-guide
5050
- **NEW BEHAVIORAL MODES**: 5 intelligent workflow adaptation modes
51-
- Brainstorming Mode for collaborative discovery and requirements exploration
51+
- analysis mode for collaborative discovery and requirements exploration
5252
- Introspection Mode for meta-cognitive analysis and reasoning optimization
5353
- Orchestration Mode for intelligent tool selection and resource efficiency
5454
- Task Management Mode for hierarchical organization with persistent memory

Docs/Developer-Guide/testing-debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3352,7 +3352,7 @@ class TestEndToEndWorkflows:
33523352
session_manager = SessionManager()
33533353
session = session_manager.create_session('test-project')
33543354

3355-
# 2. Requirements discovery (brainstorming mode)
3355+
# 2. Requirements discovery (analysis mode)
33563356
brainstorm_task = TaskContext(
33573357
input_text="build e-commerce platform",
33583358
session_id=session.id

Docs/Getting-Started/installation.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,16 @@ SuperGemini installs in under 2 minutes with an interactive installer. The proce
88

99
## Quick Start 🚀
1010

11-
**Method 1: Python (Recommended)**
11+
**Method 1: pipx (Recommended for CLI tools)**
1212
```bash
13+
# Install with pipx for isolated environment
14+
pipx install SuperGemini
15+
SuperGemini install
16+
```
17+
18+
**Method 1b: pip (Traditional Python)**
19+
```bash
20+
# Install with pip (may cause dependency conflicts)
1321
pip install SuperGemini
1422
SuperGemini install
1523
```
@@ -34,7 +42,7 @@ SuperGemini install --dry-run
3442
|-------------|--------------|--------|----------|
3543
| **🖥️ Installation** | Terminal/CMD | `SuperGemini [command]` | `SuperGemini install` |
3644
| **🔧 Configuration** | Terminal/CMD | `python3 -m SuperGemini` | `python3 -m SuperGemini --version` |
37-
| **💬 Development** | Gemini CLI | `/sg:[command]` | `/sg:brainstorm "idea"` |
45+
| **💬 Development** | Gemini CLI | `/sg:[command]` | `/sg:analyze "idea"` |
3846
| **⚡ Workflow** | Gemini CLI | `/sg:[command] --flags` | `/sg:test --coverage` |
3947

4048
> **Important**: Installation commands run in your terminal. Once installed, you'll use `/sg:` commands inside Gemini CLI for development tasks.
@@ -113,8 +121,12 @@ winget install OpenJS.NodeJS
113121

114122
**Choose Your Preferred Method:**
115123

116-
**Python Users:**
124+
**Python Users (Recommended: pipx):**
117125
```bash
126+
# For CLI tools - isolated environment (recommended)
127+
pipx install SuperGemini
128+
129+
# Traditional installation
118130
pip install SuperGemini
119131
```
120132

@@ -251,7 +263,7 @@ ls ~/.gemini/.gemini.json
251263
**Try These Commands:**
252264
```bash
253265
# Interactive requirements discovery
254-
/sg:brainstorm "mobile app idea"
266+
/sg:analyze "mobile app idea"
255267

256268
# Analyze existing code
257269
/sg:analyze src/
@@ -264,7 +276,7 @@ ls ~/.gemini/.gemini.json
264276
```
265277

266278
**Learning Path:**
267-
1. Start with `/sg:brainstorm` for project discovery
279+
1. Start with `/sg:analyze` for project discovery
268280
2. Use `/sg:analyze` to understand existing code
269281
3. Try `/sg:implement` for feature development
270282
4. Explore `/sg:index` for command discovery
@@ -474,7 +486,7 @@ python scripts/validate_pypi_ready.py
474486
- **Platform**: Linux, macOS, Windows supported
475487
- **Usage**: Immediate access to 21 commands and 6 behavioral modes
476488

477-
**What's Next**: Your Gemini CLI now has enhanced capabilities. Try `/sg:brainstorm` for your first SuperGemini experience!
489+
**What's Next**: Your Gemini CLI now has enhanced capabilities. Try `/sg:analyze` for your first SuperGemini experience!
478490

479491
---
480492

Docs/Getting-Started/quick-start.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,23 @@
66

77
SuperGemini transforms Gemini CLI into a structured development framework with just one installation command. Behind the simple interface, intelligent routing automatically selects the right tools, activates domain experts, and coordinates complex workflows.
88

9-
**5-Minute Start**: Install → Try `/sg:brainstorm` → Watch the magic happen.
9+
**5-Minute Start**: Install → Try `/sg:analyze` → Watch the magic happen.
1010

1111
## Just Start Here
1212

1313
### 🖥️ Installation (2 minutes) - Run in Terminal
1414
```bash
15+
# Recommended: pipx (isolated environment)
16+
pipx install SuperGemini && SuperGemini install
17+
18+
# Alternative: pip (traditional)
1519
pip install SuperGemini && SuperGemini install
1620
```
1721

1822
### 💬 First Commands (3 minutes) - Type in Gemini CLI
1923
```
20-
# Interactive project discovery
21-
/sg:brainstorm "web app for task management"
24+
# Interactive project discovery (brainstorm mode)
25+
/sg:analyze "web app for task management"
2226
2327
# Analyze existing code
2428
/sg:analyze src/
@@ -39,7 +43,7 @@ pip install SuperGemini && SuperGemini install
3943

4044
SuperGemini is a meta-programming framework that enhances Gemini CLI with:
4145

42-
**21 Slash Commands** for workflow automation (/sg:brainstorm, /sg:implement, /sg:analyze)
46+
**18 Slash Commands** for workflow automation (/sg:analyze, /sg:implement, /sg:workflow)
4347
**13 AI Specialists** with domain expertise (architect, security, frontend, backend)
4448
**6 Behavioral Modes** for different contexts (brainstorming, introspection, orchestration)
4549
**6 MCP Servers** for enhanced capabilities (Context7, Sequential, Magic, Playwright)
@@ -64,8 +68,8 @@ You type `/sg:implement "user login"` → SuperGemini analyzes requirements →
6468

6569
**First Session Pattern:**
6670
```bash
67-
# 1. Project Discovery
68-
/sg:brainstorm "e-commerce mobile app"
71+
# 1. Project Discovery (brainstorm mode)
72+
/sg:analyze "e-commerce mobile app"
6973

7074
# 2. Load Context (existing projects)
7175
/sg:load src/
@@ -120,7 +124,7 @@ SuperGemini transforms Gemini CLI from a general-purpose AI assistant into a **s
120124

121125
**Learning Path:**
122126

123-
**Week 1**: Master core commands (`/sg:brainstorm`, `/sg:analyze`, `/sg:implement`)
127+
**Week 1**: Master core commands (`/sg:analyze`, `/sg:implement`, `/sg:workflow`)
124128
**Week 2**: Explore behavioral modes and flag combinations
125129
**Week 3**: Configure MCP servers for enhanced capabilities
126130
**Week 4**: Create custom workflows and session management patterns

Docs/Reference/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Advanced Analysis: diagnostic-reference.md
100100
| `/sg:load` | Restore session context | `/sg:load project_name` |
101101
| `/sg:save` | Preserve session state | `/sg:save "milestone checkpoint"` |
102102
| `--think` | Enable structured analysis | `--think analyze performance bottlenecks` |
103-
| `--brainstorm` | Collaborative requirement discovery | `--brainstorm new authentication system` |
103+
| `` | Collaborative requirement discovery | ` new authentication system` |
104104
| `--task-manage` | Multi-step operation orchestration | `--task-manage refactor user module` |
105105

106106
### Performance & Efficiency Flags

Docs/Reference/advanced-patterns.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,10 @@
301301

302302
### Strategic Mode Usage Patterns
303303

304-
**Brainstorming Mode for Requirements Discovery:**
304+
**analysis mode for Requirements Discovery:**
305305
```bash
306306
# Activate for: Vague requirements, project planning, creative exploration
307-
/sg:brainstorm "productivity solution for remote teams"
307+
/sg:analyze "productivity solution for remote teams"
308308
# Triggers: uncertainty keywords ("maybe", "thinking about", "not sure")
309309

310310
# Expected behavior:
@@ -368,8 +368,8 @@
368368

369369
**Explicit Mode Activation:**
370370
```bash
371-
# Force brainstorming mode for systematic exploration
372-
/sg:brainstorm "well-defined requirements" --mode brainstorming
371+
# Force analysis mode for systematic exploration
372+
/sg:analyze "well-defined requirements" --mode brainstorming
373373
# Override automatic mode selection when exploration needed
374374

375375
# Force task management mode for simple tasks requiring tracking
@@ -391,8 +391,8 @@
391391

392392
**Sequential Mode Progression for Complex Projects:**
393393
```bash
394-
# Phase 1: Brainstorming mode for discovery
395-
Phase 1: /sg:brainstorm "project concept" --requirements-focus
394+
# Phase 1: analysis mode for discovery
395+
Phase 1: /sg:analyze "project concept" --requirements-focus
396396
# Mode: Collaborative discovery, requirements elicitation
397397

398398
# Phase 2: Task management mode for structured development
@@ -413,14 +413,14 @@ Phase 4: /sg:reflect "project completion" --introspect --lessons-learned
413413
**Context-Sensitive Mode Selection:**
414414
```bash
415415
# Startup MVP Development Context
416-
Week 1: /sg:brainstorm "SaaS platform for small businesses" # Discovery mode
416+
Week 1: /sg:analyze "SaaS platform for small businesses" # Discovery mode
417417
Week 2-3: /sg:workflow "MVP development plan" --6-week-timeline # Task management
418418
Week 4-5: /sg:spawn "frontend-backend integration" --orchestrate # Coordination mode
419419
Week 6: /sg:reflect "MVP development process" --lessons-learned # Introspection
420420

421421
# Enterprise Application Modernization Context
422422
Discovery: /sg:analyze legacy-system/ --introspect --modernization-assessment
423-
Planning: /sg:brainstorm "modernization approaches for legacy monolith"
423+
Planning: /sg:analyze "modernization approaches for legacy monolith"
424424
Implementation: /sg:workflow "microservices extraction roadmap" --enterprise-scale
425425
Integration: /sg:spawn "microservices deployment with monitoring" --orchestrate
426426
Optimization: /sg:analyze complete-system/ --uc --performance-focus
@@ -434,7 +434,7 @@ Optimization: /sg:analyze complete-system/ --uc --performance-focus
434434
Understanding: /sg:load open-source-project/ --introspect --contributor-perspective
435435
# Deep understanding with transparent reasoning about project patterns
436436

437-
Planning: /sg:brainstorm "feature contribution that benefits community"
437+
Planning: /sg:analyze "feature contribution that benefits community"
438438
# Explore contribution opportunities with community value focus
439439

440440
Implementation: /sg:implement "community feature" --orchestrate --comprehensive
@@ -453,7 +453,7 @@ Review: /sg:workflow "pull request preparation" --task-manage --community-standa
453453
**Project Phase Adaptation:**
454454
```bash
455455
# Early Development (Exploration Phase)
456-
/sg:brainstorm "new product concept" --exploration-focus
456+
/sg:analyze "new product concept" --exploration-focus
457457
# Mode automatically emphasizes:
458458
# - Creative problem solving
459459
# - Requirement discovery

Docs/Reference/advanced-workflows.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
### Complete E-Commerce Platform Development
8585
```bash
8686
# Phase 1: Discovery & Planning
87-
/sg:brainstorm "e-commerce platform for small businesses"
87+
/sg:analyze "e-commerce platform for small businesses"
8888
# Expected: Requirements discovery, feature prioritization, technical scope
8989

9090
/sg:save "ecommerce-requirements-complete"
@@ -188,7 +188,7 @@
188188
# Expected: Architecture understanding, contribution patterns, codebase navigation
189189
# ✅ Verified: SuperGemini v4.0
190190

191-
/sg:brainstorm "feature proposal for community benefit" --focus community
191+
/sg:analyze "feature proposal for community benefit" --focus community
192192
# Expected: Community-oriented feature planning, RFC preparation
193193

194194
# Feature Implementation with Quality Focus
@@ -414,7 +414,7 @@
414414
### Startup MVP to Enterprise Scale
415415
```bash
416416
# Week 1-2: MVP Foundation
417-
/sg:brainstorm "scalable social platform for creators" && /sg:save "mvp-requirements"
417+
/sg:analyze "scalable social platform for creators" && /sg:save "mvp-requirements"
418418

419419
/sg:load "mvp-requirements" && /sg:implement "MVP core features with scalability considerations"
420420
# Expected: MVP implementation with enterprise-scale architecture planning

Docs/Reference/basic-examples.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222

2323
### Core Development Commands
2424

25-
#### Command: /sg:brainstorm
25+
#### Command: /sg:analyze
2626
**Purpose**: Interactive project discovery and requirements gathering
27-
**Syntax**: `/sg:brainstorm "project description"`
27+
**Syntax**: `/sg:analyze "project description"`
2828
**Example**:
2929
```bash
30-
/sg:brainstorm "mobile app for fitness tracking"
30+
/sg:analyze "mobile app for fitness tracking"
3131
# Expected: Socratic dialogue, requirement elicitation, feasibility analysis
3232
```
33-
**Verification**: Activates brainstorming mode + system-architect + requirements-analyst + Context7
33+
**Verification**: Activates analysis mode + system-architect + requirements-analyst + Context7
3434

3535
#### Command: /sg:analyze
3636
**Purpose**: Analyze existing codebase for issues and improvements
@@ -115,7 +115,7 @@
115115
### Discovery → Implementation Pattern
116116
```bash
117117
# Step 1: Explore and understand requirements
118-
/sg:brainstorm "web dashboard for project management"
118+
/sg:analyze "web dashboard for project management"
119119
# Expected: Requirements discovery, feature prioritization, technical scope
120120

121121
# Step 2: Analyze technical approach
@@ -183,15 +183,15 @@
183183
### Interactive Requirements Discovery
184184
```bash
185185
# Transform vague ideas into concrete requirements
186-
/sg:brainstorm "productivity app for remote teams"
186+
/sg:analyze "productivity app for remote teams"
187187

188188
# Expected Interaction:
189189
# - Socratic questioning about user needs and pain points
190190
# - Feature prioritization and scope definition
191191
# - Technical feasibility assessment
192192
# - Structured requirements document generation
193193

194-
# Activates: Brainstorming mode + system-architect + requirements-analyst
194+
# Activates: analysis mode + system-architect + requirements-analyst
195195
# Output: Product Requirements Document (PRD) with clear specifications
196196

197197
# Follow-up commands for progression:
@@ -436,15 +436,15 @@
436436
/sg:analyze problem-area/ --focus relevant-domain
437437

438438
# Day 5-7: Integration
439-
/sg:brainstorm "project idea"
439+
/sg:analyze "project idea"
440440
/sg:implement "core feature"
441441
/sg:test --focus quality
442442
```
443443

444444
### Week 2: Patterns
445445
```bash
446446
# Workflow patterns
447-
/sg:brainstorm → /sg:analyze → /sg:implement → /sg:test
447+
/sg:analyze → /sg:analyze → /sg:implement → /sg:test
448448

449449
# Problem-solving patterns
450450
/sg:troubleshoot → /sg:analyze → /sg:implement
@@ -456,7 +456,7 @@
456456
### Week 3-4: Integration
457457
```bash
458458
# Multi-step projects
459-
/sg:brainstorm "larger project"
459+
/sg:analyze "larger project"
460460
/sg:implement "phase 1"
461461
/sg:test --focus quality
462462
/sg:implement "phase 2"

Docs/Reference/examples-cookbook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
## Verified Commands Reference
7676

7777
**Core Commands** (all verified SuperGemini v4.0):
78-
- `/sg:brainstorm` - Interactive requirements discovery
78+
- `/sg:analyze` - Interactive requirements discovery
7979
- `/sg:analyze` - Codebase analysis and assessment
8080
- `/sg:implement` - Feature implementation with best practices
8181
- `/sg:troubleshoot` - Systematic problem diagnosis

Docs/Reference/quick-start-practices.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
**Start Simple, Scale Intelligently:**
2929
```bash
3030
# Week 1: Master these essential commands
31-
/sg:brainstorm "vague project idea" # Requirements discovery
31+
/sg:analyze "vague project idea" # Requirements discovery
3232
/sg:analyze existing-code/ # Code understanding
3333
/sg:implement "specific feature" # Feature development
3434
/sg:test --coverage # Quality validation
@@ -48,7 +48,7 @@
4848
**Phase 1: Command Fundamentals (Days 1-7)**
4949
```bash
5050
# Daily practice routine
51-
Day 1: /sg:brainstorm "daily coding challenge"
51+
Day 1: /sg:analyze "daily coding challenge"
5252
Day 2: /sg:analyze sample-project/ --focus quality
5353
Day 3: /sg:implement "simple CRUD API"
5454
Day 4: /sg:test --type unit --coverage
@@ -66,7 +66,7 @@ Day 7: /sg:workflow "week 2 learning plan"
6666
# Should activate: security-engineer + backend-architect + quality-engineer + technical-writer
6767

6868
# Mode optimization practice
69-
/sg:brainstorm "complex project requirements" # Brainstorming mode
69+
/sg:analyze "complex project requirements" # analysis mode
7070
/sg:spawn "multi-service architecture" # Task management mode
7171
/sg:analyze performance-issues/ --introspect # Introspection mode
7272

@@ -129,7 +129,7 @@ Day 7: /sg:workflow "week 2 learning plan"
129129
# Use when: Starting new projects, onboarding, architecture review
130130
/sg:load project/ --scope project # Project understanding
131131
/sg:analyze . --focus architecture # System design analysis
132-
/sg:brainstorm "project enhancement" # Requirements discovery
132+
/sg:analyze "project enhancement" # Requirements discovery
133133
/sg:explain "complex system behavior" # Concept clarification
134134

135135
# Best practice: Always start projects with discovery commands
@@ -190,7 +190,7 @@ Day 7: /sg:workflow "week 2 learning plan"
190190
**Context-Aware Command Selection:**
191191
```bash
192192
# For new projects: Discovery-first approach
193-
/sg:brainstorm → /sg:design → /sg:workflow → /sg:implement
193+
/sg:analyze → /sg:design → /sg:workflow → /sg:implement
194194

195195
# For existing projects: Analysis-first approach
196196
/sg:load → /sg:analyze → /sg:improve → /sg:test
@@ -228,8 +228,8 @@ Day 7: /sg:workflow "week 2 learning plan"
228228
# --validate: Verify changes before applying
229229

230230
# For learning and exploration
231-
/sg:explain "complex architecture" --brainstorm
232-
# --brainstorm: Interactive learning through dialogue
231+
/sg:explain "complex architecture"
232+
#: Interactive learning through dialogue
233233

234234
# Development speed: Faster iteration cycles through focused scope
235235
```
@@ -268,7 +268,7 @@ Day 7: /sg:workflow "week 2 learning plan"
268268
**Context-Adaptive Flag Selection:**
269269
```bash
270270
# Early development phase
271-
/sg:brainstorm "new feature" --scope project
271+
/sg:analyze "new feature" --scope project
272272
# Focus on exploration and requirements discovery
273273

274274
# Implementation phase

0 commit comments

Comments
 (0)