mindforge-cc 6.2.0-alpha → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/bin/lib/commands.cjs +4 -4
- package/.agent/bin/lib/state.cjs +1 -1
- package/.agent/bin/lib/verify.cjs +7 -7
- package/.agent/bin/mindforge-tools.cjs +1 -1
- package/.agent/hooks/mindforge-context-monitor.js +1 -1
- package/.agent/hooks/mindforge-session-init_extended.js +4 -4
- package/.agent/hooks/mindforge-workflow-guard.js +1 -1
- package/.agent/mindforge/debug.md +3 -0
- package/.agent/mindforge/execute-phase.md +6 -0
- package/.agent/mindforge/learning.md +20 -0
- package/.agent/mindforge/plan-phase.md +9 -7
- package/.agent/mindforge/record-learning.md +22 -0
- package/.agent/mindforge/retrospective.md +1 -0
- package/.agent/mindforge/ship.md +7 -0
- package/.claude/CLAUDE.md +16 -7
- package/.claude/commands/mindforge/approve.md +16 -24
- package/.claude/commands/mindforge/audit.md +28 -28
- package/.claude/commands/mindforge/auto.md +20 -27
- package/.claude/commands/mindforge/benchmark.md +31 -24
- package/.claude/commands/mindforge/browse.md +24 -22
- package/.claude/commands/mindforge/complete-milestone.md +16 -26
- package/.claude/commands/mindforge/costs.md +10 -23
- package/.claude/commands/mindforge/cross-review.md +15 -25
- package/.claude/commands/mindforge/dashboard.md +99 -32
- package/.claude/commands/mindforge/debug.md +130 -31
- package/.claude/commands/mindforge/discuss-phase.md +139 -33
- package/.claude/commands/mindforge/execute-phase.md +197 -34
- package/.claude/commands/mindforge/health.md +25 -25
- package/.claude/commands/mindforge/help.md +27 -23
- package/.claude/commands/mindforge/init-org.md +132 -34
- package/.claude/commands/mindforge/init-project.md +167 -37
- package/.claude/commands/mindforge/install-skill.md +24 -28
- package/.claude/commands/mindforge/learn.md +144 -33
- package/.claude/commands/mindforge/learning.md +20 -0
- package/.claude/commands/mindforge/map-codebase.md +299 -33
- package/.claude/commands/mindforge/marketplace.md +121 -30
- package/.claude/commands/mindforge/metrics.md +20 -27
- package/.claude/commands/mindforge/migrate.md +41 -30
- package/.claude/commands/mindforge/milestone.md +11 -30
- package/.claude/commands/mindforge/new-runtime.md +20 -26
- package/.claude/commands/mindforge/next.md +106 -31
- package/.claude/commands/mindforge/plan-phase.md +128 -31
- package/.claude/commands/mindforge/plugins.md +38 -28
- package/.claude/commands/mindforge/pr-review.md +42 -29
- package/.claude/commands/mindforge/profile-team.md +21 -24
- package/.claude/commands/mindforge/publish-skill.md +18 -25
- package/.claude/commands/mindforge/qa.md +14 -25
- package/.claude/commands/mindforge/quick.md +136 -32
- package/.claude/commands/mindforge/record-learning.md +22 -0
- package/.claude/commands/mindforge/release.md +9 -24
- package/.claude/commands/mindforge/remember.md +24 -23
- package/.claude/commands/mindforge/research.md +11 -24
- package/.claude/commands/mindforge/retrospective.md +25 -26
- package/.claude/commands/mindforge/review.md +158 -34
- package/.claude/commands/mindforge/security-scan.md +239 -31
- package/.claude/commands/mindforge/ship.md +108 -31
- package/.claude/commands/mindforge/skills.md +142 -33
- package/.claude/commands/mindforge/status.md +110 -27
- package/.claude/commands/mindforge/steer.md +11 -22
- package/.claude/commands/mindforge/sync-confluence.md +10 -25
- package/.claude/commands/mindforge/sync-jira.md +11 -27
- package/.claude/commands/mindforge/tokens.md +7 -22
- package/.claude/commands/mindforge/update.md +43 -30
- package/.claude/commands/mindforge/verify-phase.md +63 -27
- package/.claude/commands/mindforge/workspace.md +27 -26
- package/.mindforge/engine/shard-controller.md +1 -1
- package/CHANGELOG.md +34 -15
- package/README.md +93 -98
- package/RELEASENOTES.md +6 -6
- package/bin/autonomous/auto-runner.js +1 -1
- package/bin/autonomous/mesh-self-healer.js +2 -2
- package/bin/change-classifier.js +1 -1
- package/bin/dashboard/server.js +4 -4
- package/bin/dashboard/sse-bridge.js +1 -1
- package/bin/engine/learning-manager.js +181 -0
- package/bin/engine/sre-manager.js +1 -1
- package/bin/engine/temporal-cli.js +1 -1
- package/bin/engine/temporal-hindsight.js +4 -4
- package/bin/governance/approve.js +2 -2
- package/bin/governance/policy-engine.js +1 -1
- package/bin/governance/ztai-manager.js +1 -1
- package/bin/hindsight-injector.js +1 -1
- package/bin/installer-core.js +8 -0
- package/bin/memory/federated-sync.js +7 -7
- package/bin/mindforge-cli.js +9 -0
- package/bin/models/cloud-broker.js +1 -1
- package/bin/review/ads-engine.js +6 -6
- package/bin/skill-registry.js +4 -4
- package/bin/skills-builder/marketplace-client.js +2 -2
- package/bin/skills-builder/pattern-detector.js +2 -2
- package/bin/skills-builder/skill-generator.js +1 -1
- package/bin/skills-builder/skill-registrar.js +4 -4
- package/bin/skills-builder/skill-scorer.js +1 -1
- package/bin/skills-builder/source-loader.js +2 -2
- package/bin/wizard/theme.js +1 -1
- package/docs/CAPABILITIES-MANIFEST.md +2 -2
- package/docs/MIND-FORGE-REFERENCE-V6.md +3 -3
- package/docs/Templates/Project/AGENTS_LEARNING.md +88 -0
- package/docs/architecture/V4-SWARM-MESH.md +1 -1
- package/docs/architecture/V5-ENTERPRISE.md +1 -1
- package/docs/ci-cd.md +1 -1
- package/docs/commands-reference.md +106 -48
- package/docs/registry/COMMANDS.md +1 -1
- package/docs/registry/PERSONAS.md +1 -1
- package/docs/registry/README.md +1 -1
- package/docs/registry/SKILLS.md +1 -1
- package/docs/security/ZTAI-OVERVIEW.md +1 -1
- package/docs/user-guide.md +2 -2
- package/docs/workflow-atlas.md +1 -1
- package/package.json +1 -1
|
@@ -1,28 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Real-time cost tracking for AI model usage
|
|
4
|
-
argument-hint: [--phase N] [--session ID] [--window 7d]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- view_file
|
|
7
|
-
- run_command
|
|
2
|
+
description: Real-time cost tracking for all AI model usage.
|
|
8
3
|
---
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</objective>
|
|
5
|
+
# MindForge v2 — Costs Command
|
|
6
|
+
# Usage: /mindforge:costs [--phase N] [--session ID] [--window 7d]
|
|
13
7
|
|
|
14
|
-
|
|
15
|
-
.
|
|
16
|
-
|
|
8
|
+
## Purpose
|
|
9
|
+
Real-time cost tracking for all AI model usage.
|
|
10
|
+
Enforce daily budgets and see per-model spend.
|
|
17
11
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<process>
|
|
24
|
-
1. **Gather Usage Data**: Parse logs for the specified phase, session, or time window.
|
|
25
|
-
2. **Calculate Spend**: Apply pricing models to the detected token counts per model.
|
|
26
|
-
3. **Enforce Budgets**: Compare current spend against configured daily and project limits.
|
|
27
|
-
4. **Display Report**: Present the total spend and limit usage as a percentage.
|
|
28
|
-
</process>
|
|
12
|
+
## Metrics
|
|
13
|
+
- Total spend: $X.XX
|
|
14
|
+
- Daily limit usage: XX%
|
|
15
|
+
- Per-model breakdown (Tokens/Cost)
|
|
@@ -1,31 +1,21 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Get code reviewed by multiple AI models simultaneously for consensus validation
|
|
4
|
-
argument-hint: [--phase N] [--models list] [--focus area]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- run_command
|
|
7
|
-
- view_file
|
|
8
|
-
- write_to_file
|
|
2
|
+
description: Get the same code diff reviewed by multiple AI models simultaneously.
|
|
9
3
|
---
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
</objective>
|
|
5
|
+
# MindForge v2 — Cross-Review Command
|
|
6
|
+
# Usage: /mindforge:cross-review [--phase N] [--models list] [--focus area]
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
.
|
|
17
|
-
|
|
8
|
+
## Purpose
|
|
9
|
+
Get the same code diff reviewed by multiple AI models simultaneously.
|
|
10
|
+
Claude finds what Claude finds. GPT-4o finds what GPT-4o finds.
|
|
11
|
+
Consensus findings = high confidence issues.
|
|
18
12
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Focus: Specific area like "security", "performance", or "consistency".
|
|
22
|
-
Pre-check: Models must be available via existing API integrations.
|
|
23
|
-
</context>
|
|
13
|
+
## Round 1: Primary (Claude)
|
|
14
|
+
Senior architect review.
|
|
24
15
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</process>
|
|
16
|
+
## Round 2: Adversarial (GPT-4o)
|
|
17
|
+
Critical security and edge case review.
|
|
18
|
+
|
|
19
|
+
## Synthesis
|
|
20
|
+
Consensus detector filters findings.
|
|
21
|
+
Verdict is gating for `/mindforge:ship`.
|
|
@@ -1,35 +1,102 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Start the MindForge real-time web dashboard
|
|
4
|
-
argument-hint: [--port N] [--open] [--stop] [--status]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- run_command
|
|
7
|
-
- list_dir
|
|
8
|
-
- view_file
|
|
9
|
-
- open_browser_url
|
|
2
|
+
description: Start the MindForge real-time web dashboard — a live observability UI for the
|
|
10
3
|
---
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
5
|
+
# MindForge v2 — Dashboard Command
|
|
6
|
+
# Usage: /mindforge:dashboard [--port 7339] [--open] [--stop] [--status]
|
|
7
|
+
# Version: v2.0.0-alpha.5
|
|
8
|
+
|
|
9
|
+
## Purpose
|
|
10
|
+
Start the MindForge real-time web dashboard — a live observability UI for the
|
|
11
|
+
entire team. Shows execution progress, quality metrics, pending approvals,
|
|
12
|
+
knowledge graph, and team activity without requiring CLI access.
|
|
13
|
+
|
|
14
|
+
## Design
|
|
15
|
+
The dashboard is a localhost-only web server:
|
|
16
|
+
- No build step — single HTML file, no bundler, no npm packages on client
|
|
17
|
+
- No authentication — binding to 127.0.0.1 is the security model
|
|
18
|
+
- Live updates via Server-Sent Events — no WebSocket library needed
|
|
19
|
+
- Designed for screensharing at standups, not external access
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
### Start the dashboard
|
|
24
|
+
```
|
|
25
|
+
/mindforge:dashboard
|
|
26
|
+
→ Dashboard running at: http://localhost:7339
|
|
27
|
+
→ Press CTRL+C to stop (or /mindforge:dashboard --stop)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Start and open in browser
|
|
31
|
+
```
|
|
32
|
+
/mindforge:dashboard --open
|
|
33
|
+
→ Opens http://localhost:7339 in your default browser
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Custom port
|
|
37
|
+
```
|
|
38
|
+
/mindforge:dashboard --port 7340
|
|
39
|
+
→ Useful if 7339 is already in use
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Stop the dashboard
|
|
43
|
+
```
|
|
44
|
+
/mindforge:dashboard --stop
|
|
45
|
+
→ Finds the running dashboard process (from PID file) and sends SIGTERM
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Check dashboard status
|
|
49
|
+
```
|
|
50
|
+
/mindforge:dashboard --status
|
|
51
|
+
→ Checks if dashboard is running, shows port and PID
|
|
52
|
+
→ Also shows: http://localhost:7339/api/status
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Dashboard pages
|
|
56
|
+
|
|
57
|
+
### Activity (default)
|
|
58
|
+
- Phase name, auto mode status (RUNNING/PAUSED/ESCALATED/IDLE)
|
|
59
|
+
- Wave progress bar (tasks completed / total)
|
|
60
|
+
- Live AUDIT event feed with color-coded event types
|
|
61
|
+
- Steering input: send guidance to auto mode without touching the CLI
|
|
62
|
+
|
|
63
|
+
### Quality Metrics
|
|
64
|
+
- Session quality score trend (last 20 sessions)
|
|
65
|
+
- Verify pass rate over time
|
|
66
|
+
- Security findings by severity (CRITICAL/HIGH/MEDIUM/LOW)
|
|
67
|
+
- Cost per session trend
|
|
68
|
+
|
|
69
|
+
### Approvals
|
|
70
|
+
- All pending Tier 2/3 governance requests
|
|
71
|
+
- [Approve] and [Reject] buttons — no CLI needed for approval
|
|
72
|
+
- Tier, phase/plan, description, time since requested, expiry warning
|
|
73
|
+
- Recent approval history
|
|
74
|
+
|
|
75
|
+
### Knowledge
|
|
76
|
+
- Search the knowledge graph from the browser
|
|
77
|
+
- Entries filtered by confidence, type, tags
|
|
78
|
+
- Color-coded by knowledge type
|
|
79
|
+
|
|
80
|
+
### Team
|
|
81
|
+
- Active developers (by git email, from AUDIT.jsonl)
|
|
82
|
+
- What each person is working on (last task)
|
|
83
|
+
- File conflict warnings (two developers recently touching the same file)
|
|
84
|
+
|
|
85
|
+
## Security rules
|
|
86
|
+
1. Never expose the dashboard on 0.0.0.0 — localhost only
|
|
87
|
+
2. Never forward the port externally (no ngrok, no port forwarding)
|
|
88
|
+
3. For remote team visibility: screenshare your browser instead
|
|
89
|
+
4. The dashboard shows project details including code patterns and decisions
|
|
90
|
+
|
|
91
|
+
## Integration with auto mode
|
|
92
|
+
When `/mindforge:auto` is running and the dashboard is open:
|
|
93
|
+
- Activity feed updates live as tasks complete
|
|
94
|
+
- Wave progress bar advances in real-time
|
|
95
|
+
- Any escalations appear immediately with red indicator
|
|
96
|
+
- The Steering input is active — inject guidance without a second terminal
|
|
97
|
+
|
|
98
|
+
## AUDIT entry
|
|
99
|
+
```json
|
|
100
|
+
{ "event": "dashboard_started", "port": 7339, "pid": 12345 }
|
|
101
|
+
{ "event": "dashboard_stopped", "pid": 12345 }
|
|
102
|
+
```
|
|
@@ -1,34 +1,133 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Perform systematic debugging using the RCA protocol
|
|
4
|
-
argument-hint: [description]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- run_command
|
|
7
|
-
- view_file
|
|
8
|
-
- write_to_file
|
|
9
|
-
- list_dir
|
|
2
|
+
description: Systematic debugging using the Debug Specialist persona with full RCA protocol.
|
|
10
3
|
---
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
5
|
+
# MindForge — Debug Command
|
|
6
|
+
# Usage: /mindforge:debug [description]
|
|
7
|
+
|
|
8
|
+
Systematic debugging using the Debug Specialist persona with full RCA protocol.
|
|
9
|
+
|
|
10
|
+
## Activation
|
|
11
|
+
|
|
12
|
+
Load `.mindforge/personas/debug-specialist.md` immediately.
|
|
13
|
+
This command runs entirely in that persona for its full duration.
|
|
14
|
+
|
|
15
|
+
## Step 0 — Initial Intelligence Check
|
|
16
|
+
Read `AGENTS_LEARNING.md` before intake. Check the "Mistakes Observed" and "Anti-Patterns" sections to see if this issue matches a known historical failure.
|
|
17
|
+
|
|
18
|
+
## Step 1 — Intake
|
|
19
|
+
|
|
20
|
+
Ask the user:
|
|
21
|
+
1. "Describe the problem. What is happening vs. what should happen?"
|
|
22
|
+
2. "Can you reproduce it reliably? If yes: what are the exact steps?"
|
|
23
|
+
3. "When did this start? Was it working before? What changed?"
|
|
24
|
+
4. "Do you have an error message or stack trace? Paste it here."
|
|
25
|
+
|
|
26
|
+
Capture all answers before proceeding.
|
|
27
|
+
|
|
28
|
+
## Step 2 — Triage
|
|
29
|
+
|
|
30
|
+
Classify the issue immediately:
|
|
31
|
+
- **Regression** (was working, now broken) → check recent commits
|
|
32
|
+
- **Never worked** (new feature failing) → check the plan and verify step
|
|
33
|
+
- **Environment issue** (works locally, fails in CI) → check environment diffs
|
|
34
|
+
- **Data issue** (specific data causes failure) → check data shape assumptions
|
|
35
|
+
- **Integration issue** (fails when calling external service) → check contracts
|
|
36
|
+
|
|
37
|
+
Report classification to user: "This looks like a [type] issue. Here's my approach..."
|
|
38
|
+
|
|
39
|
+
## Step 3 — Follow Debug Specialist protocol
|
|
40
|
+
|
|
41
|
+
Execute the full protocol from `debug-specialist.md`:
|
|
42
|
+
1. Reproduce
|
|
43
|
+
2. Isolate
|
|
44
|
+
3. Read the error
|
|
45
|
+
4. Check recent changes
|
|
46
|
+
5. Instrument
|
|
47
|
+
6. Form hypothesis
|
|
48
|
+
7. Test hypothesis (write a failing test)
|
|
49
|
+
8. Fix
|
|
50
|
+
9. Verify (test from step 7 now passes, no regressions)
|
|
51
|
+
10. Document
|
|
52
|
+
|
|
53
|
+
At each step, report what was found before moving to the next step.
|
|
54
|
+
Do not skip steps or combine them.
|
|
55
|
+
|
|
56
|
+
## Step 3b — Full test suite verification (mandatory)
|
|
57
|
+
After the fix and targeted verify pass, run the project's full test suite.
|
|
58
|
+
Do not mark the debug task complete if any tests fail.
|
|
59
|
+
|
|
60
|
+
## Step 4 — Check recent git history
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
git log --oneline -20
|
|
64
|
+
git diff HEAD~[N] HEAD -- [suspected file]
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
If a recent commit is the likely cause, show the user the specific diff.
|
|
68
|
+
|
|
69
|
+
## Step 5 — Write the RCA report
|
|
70
|
+
|
|
71
|
+
Create `.planning/phases/[current-phase]/DEBUG-[timestamp].md`:
|
|
72
|
+
|
|
73
|
+
```markdown
|
|
74
|
+
# Debug Report — [short description]
|
|
75
|
+
|
|
76
|
+
## Date
|
|
77
|
+
[ISO-8601]
|
|
78
|
+
|
|
79
|
+
## Problem
|
|
80
|
+
[User's description + what was verified during debugging]
|
|
81
|
+
|
|
82
|
+
## Root cause category
|
|
83
|
+
[Logic error / Data error / Integration error / Concurrency error /
|
|
84
|
+
Configuration error / Dependency error]
|
|
85
|
+
|
|
86
|
+
## Root cause
|
|
87
|
+
[Precise description of what the actual cause was]
|
|
88
|
+
|
|
89
|
+
## Evidence
|
|
90
|
+
- [How the root cause was confirmed]
|
|
91
|
+
- [Failing test that proved the bug: file:line]
|
|
92
|
+
|
|
93
|
+
## Fix applied
|
|
94
|
+
- File: [path]
|
|
95
|
+
- Change: [description]
|
|
96
|
+
- Commit: [SHA]
|
|
97
|
+
|
|
98
|
+
## Regression test
|
|
99
|
+
[Test written to prevent this from recurring: file:line]
|
|
100
|
+
|
|
101
|
+
## Prevention
|
|
102
|
+
[What should change in process/code to prevent this class of bug]
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Step 6 — Write AUDIT entry
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"id": "uuid",
|
|
110
|
+
"timestamp": "ISO-8601",
|
|
111
|
+
"event": "debug_completed",
|
|
112
|
+
"agent": "mindforge-debug-specialist",
|
|
113
|
+
"phase": [current phase or null],
|
|
114
|
+
"session_id": "sess_abc",
|
|
115
|
+
"issue_type": "regression",
|
|
116
|
+
"root_cause_category": "Logic error",
|
|
117
|
+
"root_cause_summary": "[one sentence]",
|
|
118
|
+
"commit_sha": "[fix commit sha]",
|
|
119
|
+
"regression_test_added": true,
|
|
120
|
+
"report_path": ".planning/phases/[N]/DEBUG-[timestamp].md"
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## When the bug cannot be reproduced
|
|
125
|
+
|
|
126
|
+
Ask:
|
|
127
|
+
1. "Does it happen every time or intermittently?"
|
|
128
|
+
2. "Does it happen in specific environments only? (dev/staging/prod)"
|
|
129
|
+
3. "Does it happen for specific users or all users?"
|
|
130
|
+
|
|
131
|
+
If intermittent: focus on concurrency, caching, and race conditions.
|
|
132
|
+
Write a monitoring/logging plan to catch the next occurrence.
|
|
133
|
+
Document the inconclusive investigation in the DEBUG report with evidence gathered.
|
|
@@ -1,36 +1,142 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
description: Capture implementation decisions before planning begins
|
|
4
|
-
argument-hint: [N] [--batch] [--auto]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- view_file
|
|
7
|
-
- list_dir
|
|
8
|
-
- write_to_file
|
|
2
|
+
description: Planning without discussion produces generic plans.
|
|
9
3
|
---
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
5
|
+
# MindForge — Discuss Phase Command
|
|
6
|
+
# Usage: /mindforge:discuss-phase [N] [--batch] [--auto]
|
|
7
|
+
# Captures implementation decisions before planning begins.
|
|
8
|
+
# Run this BEFORE /mindforge:plan-phase for complex phases.
|
|
9
|
+
|
|
10
|
+
## Purpose
|
|
11
|
+
Planning without discussion produces generic plans.
|
|
12
|
+
Discussion captures YOUR decisions — layout preferences, library choices,
|
|
13
|
+
UX specifics, edge cases you've already thought through — so the planner
|
|
14
|
+
builds what you actually want, not what seems reasonable.
|
|
15
|
+
|
|
16
|
+
## When to use
|
|
17
|
+
- Any phase with UI/UX components (visual decisions need capturing)
|
|
18
|
+
- Any phase with multiple valid implementation approaches
|
|
19
|
+
- Any phase where you already have opinions on the approach
|
|
20
|
+
- Any phase touching external services (your preferences on APIs matter)
|
|
21
|
+
- Skip for trivial phases (e.g., "add one field to an existing form")
|
|
22
|
+
|
|
23
|
+
## Step 1 — Analyse the phase scope
|
|
24
|
+
|
|
25
|
+
Read:
|
|
26
|
+
- ROADMAP.md for the phase description
|
|
27
|
+
- REQUIREMENTS.md for the requirements in this phase
|
|
28
|
+
- ARCHITECTURE.md for relevant architectural context
|
|
29
|
+
|
|
30
|
+
Identify the phase's primary domain and any secondary domains.
|
|
31
|
+
If multiple domains are involved, cover each relevant set of questions.
|
|
32
|
+
- **Visual/UI** → ask about layout, interactions, states, empty states, animations
|
|
33
|
+
- **API/Backend** → ask about response format, error handling, auth approach, versioning
|
|
34
|
+
- **Data/Database** → ask about schema design, migration strategy, data volume expectations
|
|
35
|
+
- **Integration** → ask about third-party API choices, error recovery, retry strategy
|
|
36
|
+
- **Infrastructure** → ask about deployment strategy, scaling approach, observability
|
|
37
|
+
|
|
38
|
+
## Step 2 — Structured discussion
|
|
39
|
+
|
|
40
|
+
Ask questions ONE AT A TIME. Wait for the full answer before asking the next.
|
|
41
|
+
Do not batch questions (unless `--batch` flag is provided).
|
|
42
|
+
|
|
43
|
+
### Visual/UI phases — ask about:
|
|
44
|
+
1. "Walk me through what a user sees on this screen from top to bottom."
|
|
45
|
+
2. "What does the empty state look like? (nothing loaded yet / no results / error)"
|
|
46
|
+
3. "Any animations or transitions you're picturing? Or keep it static?"
|
|
47
|
+
4. "On mobile — stacks vertically or anything different?"
|
|
48
|
+
5. "Any edge cases? (very long text, images that fail to load, loading states)"
|
|
49
|
+
|
|
50
|
+
### API/Backend phases — ask about:
|
|
51
|
+
1. "What's the intended consumer? Internal frontend / external developers / both?"
|
|
52
|
+
2. "For errors — do you want detailed error objects with field-level info or simple messages?"
|
|
53
|
+
3. "Rate limiting needed on any of these endpoints?"
|
|
54
|
+
4. "Any background processing involved, or all synchronous?"
|
|
55
|
+
5. "Versioning approach? /v1/ prefix or header-based?"
|
|
56
|
+
|
|
57
|
+
### Data/Database phases — ask about:
|
|
58
|
+
1. "What's the expected data volume? Thousands / millions / billions of rows?"
|
|
59
|
+
2. "Any fields that need full-text search vs. exact match?"
|
|
60
|
+
3. "Soft delete or hard delete for user-facing records?"
|
|
61
|
+
4. "Any fields that change frequently vs. infrequently? (affects indexing strategy)"
|
|
62
|
+
5. "Data retention requirements? When can records be deleted?"
|
|
63
|
+
|
|
64
|
+
### Integration phases — ask about:
|
|
65
|
+
1. "Have you already chosen the third-party service / API? If so, which? (I will query Context7 for current docs if available)"
|
|
66
|
+
2. "What should happen if the third-party service is down? Queue / fail / fallback?"
|
|
67
|
+
3. "Webhooks or polling for receiving updates?"
|
|
68
|
+
4. "Any rate limits you know about on their end?"
|
|
69
|
+
5. "Testing approach? Do they have a sandbox environment?"
|
|
70
|
+
|
|
71
|
+
## --batch mode
|
|
72
|
+
If `--batch` flag is provided: group related questions and present them together.
|
|
73
|
+
Appropriate when the user wants faster intake and is familiar with MindForge.
|
|
74
|
+
|
|
75
|
+
Example batch:
|
|
76
|
+
```
|
|
77
|
+
Visual decisions for Phase 2:
|
|
78
|
+
1. Layout: card grid / table / list?
|
|
79
|
+
2. Empty state: illustration / simple message / hide section?
|
|
80
|
+
3. Loading: skeleton / spinner / none?
|
|
81
|
+
4. Mobile: same layout / stacked / hidden?
|
|
82
|
+
Answer 1-4:
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## --auto mode
|
|
86
|
+
If `--auto` flag is provided: skip the discussion entirely.
|
|
87
|
+
The planner will make reasonable defaults for all decisions.
|
|
88
|
+
Use when: the phase is straightforward and you trust the planner's judgment.
|
|
89
|
+
Warn clearly: "Skipping discussion. Planner will make implementation decisions.
|
|
90
|
+
Results may not match your vision exactly. Proceeding without
|
|
91
|
+
explicit decisions can create rework later."
|
|
92
|
+
|
|
93
|
+
## Step 3 — Write CONTEXT.md
|
|
94
|
+
|
|
95
|
+
After discussion, write `.planning/phases/[N]/CONTEXT.md`:
|
|
96
|
+
|
|
97
|
+
```markdown
|
|
98
|
+
# Phase [N] Implementation Context
|
|
99
|
+
# Captured: [ISO-8601]
|
|
100
|
+
# Discussion mode: [interactive / batch / auto]
|
|
101
|
+
|
|
102
|
+
## Phase description
|
|
103
|
+
[From ROADMAP.md]
|
|
104
|
+
|
|
105
|
+
## Implementation decisions (captured from discussion)
|
|
106
|
+
|
|
107
|
+
### [Domain: Visual / API / Data / Integration / etc.]
|
|
108
|
+
|
|
109
|
+
**Decision:** [What was decided]
|
|
110
|
+
**Rationale:** [Why — from user's words]
|
|
111
|
+
**Implications for planning:**
|
|
112
|
+
- [What the planner should do because of this decision]
|
|
113
|
+
- [Specific library or pattern to use]
|
|
114
|
+
- [What to avoid]
|
|
115
|
+
|
|
116
|
+
[Repeat for each significant decision]
|
|
117
|
+
|
|
118
|
+
## Open questions (unresolved during discussion)
|
|
119
|
+
- [Question 1]: [Status — decide during planning / decide during execution]
|
|
120
|
+
|
|
121
|
+
## User's explicit preferences
|
|
122
|
+
[Verbatim or near-verbatim quotes from the discussion that capture specific intent]
|
|
123
|
+
|
|
124
|
+
## Defaults accepted (decisions the user deferred to the planner)
|
|
125
|
+
- [Area]: planner's choice
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Step 4 — Confirm and guide
|
|
129
|
+
|
|
130
|
+
Show the user a summary of what was captured:
|
|
131
|
+
|
|
132
|
+
"✅ Phase [N] discussion complete. [N] decisions captured.
|
|
133
|
+
|
|
134
|
+
Key decisions:
|
|
135
|
+
- [Decision 1 summary]
|
|
136
|
+
- [Decision 2 summary]
|
|
137
|
+
- [Decision 3 summary]
|
|
138
|
+
|
|
139
|
+
See full context: .planning/phases/[N]/CONTEXT.md
|
|
140
|
+
|
|
141
|
+
Next step: Run /mindforge:plan-phase [N] to create implementation plans
|
|
142
|
+
using these decisions."
|