mindforge-cc 2.0.0-alpha.9 → 2.1.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.
Files changed (157) hide show
  1. package/.agent/CLAUDE.md +26 -0
  2. package/.agent/mindforge/add-backlog.md +32 -0
  3. package/.agent/mindforge/agent.md +31 -0
  4. package/.agent/mindforge/do.md +31 -0
  5. package/.agent/mindforge/execute-phase.md +23 -0
  6. package/.agent/mindforge/install-skill.md +20 -11
  7. package/.agent/mindforge/learn.md +142 -0
  8. package/.agent/mindforge/marketplace.md +120 -0
  9. package/.agent/mindforge/new-runtime.md +19 -0
  10. package/.agent/mindforge/note.md +35 -0
  11. package/.agent/mindforge/plant-seed.md +31 -0
  12. package/.agent/mindforge/remember.md +16 -4
  13. package/.agent/mindforge/review-backlog.md +34 -0
  14. package/.agent/mindforge/session-report.md +39 -0
  15. package/.agent/mindforge/ui-phase.md +34 -0
  16. package/.agent/mindforge/ui-review.md +36 -0
  17. package/.agent/mindforge/validate-phase.md +31 -0
  18. package/.agent/mindforge/workstreams.md +35 -0
  19. package/.claude/CLAUDE.md +26 -0
  20. package/.claude/commands/mindforge/add-backlog.md +32 -0
  21. package/.claude/commands/mindforge/agent.md +31 -0
  22. package/.claude/commands/mindforge/approve.md +27 -15
  23. package/.claude/commands/mindforge/audit.md +30 -26
  24. package/.claude/commands/mindforge/auto.md +29 -18
  25. package/.claude/commands/mindforge/benchmark.md +26 -29
  26. package/.claude/commands/mindforge/browse.md +24 -22
  27. package/.claude/commands/mindforge/complete-milestone.md +28 -14
  28. package/.claude/commands/mindforge/costs.md +26 -9
  29. package/.claude/commands/mindforge/cross-review.md +27 -13
  30. package/.claude/commands/mindforge/dashboard.md +35 -98
  31. package/.claude/commands/mindforge/debug.md +34 -126
  32. package/.claude/commands/mindforge/discuss-phase.md +36 -138
  33. package/.claude/commands/mindforge/do.md +31 -0
  34. package/.claude/commands/mindforge/execute-phase.md +37 -167
  35. package/.claude/commands/mindforge/health.md +27 -17
  36. package/.claude/commands/mindforge/help.md +25 -19
  37. package/.claude/commands/mindforge/init-org.md +37 -131
  38. package/.claude/commands/mindforge/init-project.md +40 -155
  39. package/.claude/commands/mindforge/install-skill.md +32 -15
  40. package/.claude/commands/mindforge/learn.md +36 -0
  41. package/.claude/commands/mindforge/map-codebase.md +36 -298
  42. package/.claude/commands/mindforge/marketplace.md +33 -0
  43. package/.claude/commands/mindforge/metrics.md +29 -18
  44. package/.claude/commands/mindforge/migrate.md +33 -40
  45. package/.claude/commands/mindforge/milestone.md +35 -12
  46. package/.claude/commands/mindforge/new-runtime.md +29 -0
  47. package/.claude/commands/mindforge/next.md +34 -105
  48. package/.claude/commands/mindforge/note.md +35 -0
  49. package/.claude/commands/mindforge/plan-phase.md +34 -125
  50. package/.claude/commands/mindforge/plant-seed.md +31 -0
  51. package/.claude/commands/mindforge/plugins.md +30 -36
  52. package/.claude/commands/mindforge/pr-review.md +32 -41
  53. package/.claude/commands/mindforge/profile-team.md +26 -19
  54. package/.claude/commands/mindforge/publish-skill.md +28 -17
  55. package/.claude/commands/mindforge/qa.md +27 -12
  56. package/.claude/commands/mindforge/quick.md +35 -135
  57. package/.claude/commands/mindforge/release.md +27 -8
  58. package/.claude/commands/mindforge/remember.md +25 -10
  59. package/.claude/commands/mindforge/research.md +27 -9
  60. package/.claude/commands/mindforge/retrospective.md +28 -22
  61. package/.claude/commands/mindforge/review-backlog.md +34 -0
  62. package/.claude/commands/mindforge/review.md +37 -157
  63. package/.claude/commands/mindforge/security-scan.md +34 -233
  64. package/.claude/commands/mindforge/session-report.md +39 -0
  65. package/.claude/commands/mindforge/ship.md +34 -100
  66. package/.claude/commands/mindforge/skills.md +36 -141
  67. package/.claude/commands/mindforge/status.md +30 -104
  68. package/.claude/commands/mindforge/steer.md +25 -10
  69. package/.claude/commands/mindforge/sync-confluence.md +28 -9
  70. package/.claude/commands/mindforge/sync-jira.md +32 -12
  71. package/.claude/commands/mindforge/tokens.md +25 -6
  72. package/.claude/commands/mindforge/ui-phase.md +34 -0
  73. package/.claude/commands/mindforge/ui-review.md +36 -0
  74. package/.claude/commands/mindforge/update.md +33 -42
  75. package/.claude/commands/mindforge/validate-phase.md +31 -0
  76. package/.claude/commands/mindforge/verify-phase.md +30 -62
  77. package/.claude/commands/mindforge/workspace.md +28 -25
  78. package/.claude/commands/mindforge/workstreams.md +35 -0
  79. package/.mindforge/distribution/marketplace.md +53 -0
  80. package/.mindforge/org/skills/MANIFEST.md +1 -0
  81. package/.mindforge/personas/advisor-researcher.md +89 -0
  82. package/.mindforge/personas/analyst.md +112 -52
  83. package/.mindforge/personas/architect.md +100 -67
  84. package/.mindforge/personas/assumptions-analyzer-extend.md +87 -0
  85. package/.mindforge/personas/assumptions-analyzer.md +109 -0
  86. package/.mindforge/personas/codebase-mapper-extend.md +93 -0
  87. package/.mindforge/personas/codebase-mapper.md +770 -0
  88. package/.mindforge/personas/coverage-specialist.md +104 -0
  89. package/.mindforge/personas/debug-specialist.md +118 -52
  90. package/.mindforge/personas/debugger.md +97 -0
  91. package/.mindforge/personas/decision-architect.md +102 -0
  92. package/.mindforge/personas/developer.md +97 -85
  93. package/.mindforge/personas/executor.md +88 -0
  94. package/.mindforge/personas/integration-checker.md +92 -0
  95. package/.mindforge/personas/nyquist-auditor.md +84 -0
  96. package/.mindforge/personas/phase-researcher.md +107 -0
  97. package/.mindforge/personas/plan-checker.md +92 -0
  98. package/.mindforge/personas/planner.md +105 -0
  99. package/.mindforge/personas/project-researcher.md +99 -0
  100. package/.mindforge/personas/qa-engineer.md +113 -61
  101. package/.mindforge/personas/release-manager.md +102 -64
  102. package/.mindforge/personas/research-agent.md +108 -24
  103. package/.mindforge/personas/research-synthesizer.md +101 -0
  104. package/.mindforge/personas/roadmapper-extend.md +100 -0
  105. package/.mindforge/personas/roadmapper.md +103 -0
  106. package/.mindforge/personas/security-reviewer.md +114 -91
  107. package/.mindforge/personas/tech-writer.md +118 -51
  108. package/.mindforge/personas/ui-auditor.md +94 -0
  109. package/.mindforge/personas/ui-checker.md +89 -0
  110. package/.mindforge/personas/ui-researcher.md +99 -0
  111. package/.mindforge/personas/user-profiler.md +93 -0
  112. package/.mindforge/personas/verifier.md +101 -0
  113. package/.mindforge/production/production-checklist.md +34 -123
  114. package/.mindforge/skills-builder/auto-capture-protocol.md +88 -0
  115. package/.mindforge/skills-builder/learn-protocol.md +161 -0
  116. package/.mindforge/skills-builder/quality-scoring.md +120 -0
  117. package/.planning/AUDIT.jsonl +1 -0
  118. package/.planning/decisions/ADR-036-learn-command-docs-as-skill-source.md +26 -0
  119. package/.planning/decisions/ADR-037-auto-capture-frequency-threshold.md +26 -0
  120. package/.planning/decisions/ADR-038-skill-quality-minimum-60.md +27 -0
  121. package/CHANGELOG.md +78 -0
  122. package/MINDFORGE.md +11 -0
  123. package/README.md +80 -6
  124. package/bin/autonomous/auto-runner.js +12 -0
  125. package/bin/install.js +8 -2
  126. package/bin/installer-core.js +129 -26
  127. package/bin/migrations/1.0.0-to-2.0.0.js +115 -0
  128. package/bin/migrations/schema-versions.js +12 -0
  129. package/bin/mindforge-cli.js +35 -0
  130. package/bin/review/cross-review-engine.js +11 -0
  131. package/bin/skill-registry.js +167 -0
  132. package/bin/skill-validator.js +144 -0
  133. package/bin/skills-builder/learn-cli.js +57 -0
  134. package/bin/skills-builder/marketplace-cli.js +54 -0
  135. package/bin/skills-builder/marketplace-client.js +198 -0
  136. package/bin/skills-builder/pattern-detector.js +144 -0
  137. package/bin/skills-builder/skill-generator.js +258 -0
  138. package/bin/skills-builder/skill-registrar.js +107 -0
  139. package/bin/skills-builder/skill-scorer.js +263 -0
  140. package/bin/skills-builder/source-loader.js +268 -0
  141. package/docs/Context/Master-Context.md +6 -13
  142. package/docs/PERSONAS.md +611 -0
  143. package/docs/architecture/README.md +6 -1
  144. package/docs/architecture/adr-039-multi-runtime-support.md +20 -0
  145. package/docs/architecture/adr-040-additive-schema-migration.md +21 -0
  146. package/docs/architecture/adr-041-stable-runtime-interface-contract.md +20 -0
  147. package/docs/architecture/decision-records-index.md +3 -0
  148. package/docs/commands-reference.md +3 -0
  149. package/docs/mindforge-md-reference.md +4 -0
  150. package/docs/reference/commands.md +53 -43
  151. package/docs/skills-authoring-guide.md +29 -0
  152. package/docs/skills-publishing-guide.md +3 -2
  153. package/docs/testing-current-version.md +3 -3
  154. package/docs/upgrade.md +16 -2
  155. package/docs/user-guide.md +57 -8
  156. package/docs/usp-features.md +21 -6
  157. package/package.json +1 -1
@@ -1,98 +1,35 @@
1
- # MindForge v2 — Dashboard Command
2
- # Usage: /mindforge:dashboard [--port 7339] [--open] [--stop] [--status]
3
- # Version: v2.0.0-alpha.5
4
-
5
- ## Purpose
6
- Start the MindForge real-time web dashboard — a live observability UI for the
7
- entire team. Shows execution progress, quality metrics, pending approvals,
8
- knowledge graph, and team activity without requiring CLI access.
9
-
10
- ## Design
11
- The dashboard is a localhost-only web server:
12
- - No build step — single HTML file, no bundler, no npm packages on client
13
- - No authentication binding to 127.0.0.1 is the security model
14
- - Live updates via Server-Sent Events — no WebSocket library needed
15
- - Designed for screensharing at standups, not external access
16
-
17
- ## Usage
18
-
19
- ### Start the dashboard
20
- ```
21
- /mindforge:dashboard
22
- Dashboard running at: http://localhost:7339
23
- Press CTRL+C to stop (or /mindforge:dashboard --stop)
24
- ```
25
-
26
- ### Start and open in browser
27
- ```
28
- /mindforge:dashboard --open
29
- Opens http://localhost:7339 in your default browser
30
- ```
31
-
32
- ### Custom port
33
- ```
34
- /mindforge:dashboard --port 7340
35
- → Useful if 7339 is already in use
36
- ```
37
-
38
- ### Stop the dashboard
39
- ```
40
- /mindforge:dashboard --stop
41
- → Finds the running dashboard process (from PID file) and sends SIGTERM
42
- ```
43
-
44
- ### Check dashboard status
45
- ```
46
- /mindforge:dashboard --status
47
- → Checks if dashboard is running, shows port and PID
48
- → Also shows: http://localhost:7339/api/status
49
- ```
50
-
51
- ## Dashboard pages
52
-
53
- ### Activity (default)
54
- - Phase name, auto mode status (RUNNING/PAUSED/ESCALATED/IDLE)
55
- - Wave progress bar (tasks completed / total)
56
- - Live AUDIT event feed with color-coded event types
57
- - Steering input: send guidance to auto mode without touching the CLI
58
-
59
- ### Quality Metrics
60
- - Session quality score trend (last 20 sessions)
61
- - Verify pass rate over time
62
- - Security findings by severity (CRITICAL/HIGH/MEDIUM/LOW)
63
- - Cost per session trend
64
-
65
- ### Approvals
66
- - All pending Tier 2/3 governance requests
67
- - [Approve] and [Reject] buttons — no CLI needed for approval
68
- - Tier, phase/plan, description, time since requested, expiry warning
69
- - Recent approval history
70
-
71
- ### Knowledge
72
- - Search the knowledge graph from the browser
73
- - Entries filtered by confidence, type, tags
74
- - Color-coded by knowledge type
75
-
76
- ### Team
77
- - Active developers (by git email, from AUDIT.jsonl)
78
- - What each person is working on (last task)
79
- - File conflict warnings (two developers recently touching the same file)
80
-
81
- ## Security rules
82
- 1. Never expose the dashboard on 0.0.0.0 — localhost only
83
- 2. Never forward the port externally (no ngrok, no port forwarding)
84
- 3. For remote team visibility: screenshare your browser instead
85
- 4. The dashboard shows project details including code patterns and decisions
86
-
87
- ## Integration with auto mode
88
- When `/mindforge:auto` is running and the dashboard is open:
89
- - Activity feed updates live as tasks complete
90
- - Wave progress bar advances in real-time
91
- - Any escalations appear immediately with red indicator
92
- - The Steering input is active — inject guidance without a second terminal
93
-
94
- ## AUDIT entry
95
- ```json
96
- { "event": "dashboard_started", "port": 7339, "pid": 12345 }
97
- { "event": "dashboard_stopped", "pid": 12345 }
98
- ```
1
+ ---
2
+ name: mindforge:dashboard
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
10
+ ---
11
+
12
+ <objective>
13
+ Provide a real-time web-based observability interface for the project, allowing the team to monitor execution progress, quality metrics, pending approvals, and team activity.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/dashboard.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Port: Default 7339 (configurable via --port).
22
+ Security: Binding to 127.0.0.1 (local only).
23
+ Features: Server-Sent Events for live updates, no-auth by design.
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Handle Flags**:
28
+ - If `--stop`: Find the PID from the PID file and terminate the process.
29
+ - If `--status`: Check if the dashboard is running and report the URL/PID.
30
+ - Default: Start the server.
31
+ 2. **Start Server**: Execute the dashboard binary/script on the specified port.
32
+ 3. **Open Browser**: If `--open` is provided, trigger the default system browser to the dashboard URL.
33
+ 4. **Monitor**: Listen for steering inputs from the dashboard and route them to the active MindForge session.
34
+ 5. **Log**: Record `dashboard_started` or `dashboard_stopped` in the audit log.
35
+ </process>
@@ -1,126 +1,34 @@
1
- # MindForge — Debug Command
2
- # Usage: /mindforge:debug [description]
3
-
4
- Systematic debugging using the Debug Specialist persona with full RCA protocol.
5
-
6
- ## Activation
7
-
8
- Load `.mindforge/personas/debug-specialist.md` immediately.
9
- This command runs entirely in that persona for its full duration.
10
-
11
- ## Step 1 — Intake
12
-
13
- Ask the user:
14
- 1. "Describe the problem. What is happening vs. what should happen?"
15
- 2. "Can you reproduce it reliably? If yes: what are the exact steps?"
16
- 3. "When did this start? Was it working before? What changed?"
17
- 4. "Do you have an error message or stack trace? Paste it here."
18
-
19
- Capture all answers before proceeding.
20
-
21
- ## Step 2 — Triage
22
-
23
- Classify the issue immediately:
24
- - **Regression** (was working, now broken) → check recent commits
25
- - **Never worked** (new feature failing) → check the plan and verify step
26
- - **Environment issue** (works locally, fails in CI) → check environment diffs
27
- - **Data issue** (specific data causes failure) check data shape assumptions
28
- - **Integration issue** (fails when calling external service) check contracts
29
-
30
- Report classification to user: "This looks like a [type] issue. Here's my approach..."
31
-
32
- ## Step 3 Follow Debug Specialist protocol
33
-
34
- Execute the full protocol from `debug-specialist.md`:
35
- 1. Reproduce
36
- 2. Isolate
37
- 3. Read the error
38
- 4. Check recent changes
39
- 5. Instrument
40
- 6. Form hypothesis
41
- 7. Test hypothesis (write a failing test)
42
- 8. Fix
43
- 9. Verify (test from step 7 now passes, no regressions)
44
- 10. Document
45
-
46
- At each step, report what was found before moving to the next step.
47
- Do not skip steps or combine them.
48
-
49
- ## Step 3b — Full test suite verification (mandatory)
50
- After the fix and targeted verify pass, run the project's full test suite.
51
- Do not mark the debug task complete if any tests fail.
52
-
53
- ## Step 4 — Check recent git history
54
-
55
- ```bash
56
- git log --oneline -20
57
- git diff HEAD~[N] HEAD -- [suspected file]
58
- ```
59
-
60
- If a recent commit is the likely cause, show the user the specific diff.
61
-
62
- ## Step 5 — Write the RCA report
63
-
64
- Create `.planning/phases/[current-phase]/DEBUG-[timestamp].md`:
65
-
66
- ```markdown
67
- # Debug Report — [short description]
68
-
69
- ## Date
70
- [ISO-8601]
71
-
72
- ## Problem
73
- [User's description + what was verified during debugging]
74
-
75
- ## Root cause category
76
- [Logic error / Data error / Integration error / Concurrency error /
77
- Configuration error / Dependency error]
78
-
79
- ## Root cause
80
- [Precise description of what the actual cause was]
81
-
82
- ## Evidence
83
- - [How the root cause was confirmed]
84
- - [Failing test that proved the bug: file:line]
85
-
86
- ## Fix applied
87
- - File: [path]
88
- - Change: [description]
89
- - Commit: [SHA]
90
-
91
- ## Regression test
92
- [Test written to prevent this from recurring: file:line]
93
-
94
- ## Prevention
95
- [What should change in process/code to prevent this class of bug]
96
- ```
97
-
98
- ## Step 6 — Write AUDIT entry
99
-
100
- ```json
101
- {
102
- "id": "uuid",
103
- "timestamp": "ISO-8601",
104
- "event": "debug_completed",
105
- "agent": "mindforge-debug-specialist",
106
- "phase": [current phase or null],
107
- "session_id": "sess_abc",
108
- "issue_type": "regression",
109
- "root_cause_category": "Logic error",
110
- "root_cause_summary": "[one sentence]",
111
- "commit_sha": "[fix commit sha]",
112
- "regression_test_added": true,
113
- "report_path": ".planning/phases/[N]/DEBUG-[timestamp].md"
114
- }
115
- ```
116
-
117
- ## When the bug cannot be reproduced
118
-
119
- Ask:
120
- 1. "Does it happen every time or intermittently?"
121
- 2. "Does it happen in specific environments only? (dev/staging/prod)"
122
- 3. "Does it happen for specific users or all users?"
123
-
124
- If intermittent: focus on concurrency, caching, and race conditions.
125
- Write a monitoring/logging plan to catch the next occurrence.
126
- Document the inconclusive investigation in the DEBUG report with evidence gathered.
1
+ ---
2
+ name: mindforge:debug
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
10
+ ---
11
+
12
+ <objective>
13
+ Resolve complex software defects by following a rigorous Root Cause Analysis (RCA) protocol, including reproduction, isolation, instrumentation, and regression testing.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/debug.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Persona: debug-specialist.md
22
+ Lifecycle: Triage -> Reproduce -> Hypothesis -> Fix -> Verify.
23
+ Artifact: .planning/phases/[N]/DEBUG-[timestamp].md
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Intake**: Gather symptoms, reproduction steps, working history, and error logs.
28
+ 2. **Triage**: Classify as Regression, Never Worked, Environment, or Integration issue.
29
+ 3. **Isolate**: Use git history and breadcrumb logging to identify the failure point.
30
+ 4. **Reproduce**: Write a failing test case that proves the bug.
31
+ 5. **Fix**: Implement the minimum necessary change to resolve the issue.
32
+ 6. **Verify**: Ensure the new test passes and run the full project test suite to detect regressions.
33
+ 7. **Document**: Write the `DEBUG-[timestamp].md` RCA report and log the event in `AUDIT.jsonl`.
34
+ </process>
@@ -1,138 +1,36 @@
1
- # MindForge — Discuss Phase Command
2
- # Usage: /mindforge:discuss-phase [N] [--batch] [--auto]
3
- # Captures implementation decisions before planning begins.
4
- # Run this BEFORE /mindforge:plan-phase for complex phases.
5
-
6
- ## Purpose
7
- Planning without discussion produces generic plans.
8
- Discussion captures YOUR decisions — layout preferences, library choices,
9
- UX specifics, edge cases you've already thought through — so the planner
10
- builds what you actually want, not what seems reasonable.
11
-
12
- ## When to use
13
- - Any phase with UI/UX components (visual decisions need capturing)
14
- - Any phase with multiple valid implementation approaches
15
- - Any phase where you already have opinions on the approach
16
- - Any phase touching external services (your preferences on APIs matter)
17
- - Skip for trivial phases (e.g., "add one field to an existing form")
18
-
19
- ## Step 1 — Analyse the phase scope
20
-
21
- Read:
22
- - ROADMAP.md for the phase description
23
- - REQUIREMENTS.md for the requirements in this phase
24
- - ARCHITECTURE.md for relevant architectural context
25
-
26
- Identify the phase's primary domain and any secondary domains.
27
- If multiple domains are involved, cover each relevant set of questions.
28
- - **Visual/UI** ask about layout, interactions, states, empty states, animations
29
- - **API/Backend** ask about response format, error handling, auth approach, versioning
30
- - **Data/Database** ask about schema design, migration strategy, data volume expectations
31
- - **Integration** → ask about third-party API choices, error recovery, retry strategy
32
- - **Infrastructure** ask about deployment strategy, scaling approach, observability
33
-
34
- ## Step 2 Structured discussion
35
-
36
- Ask questions ONE AT A TIME. Wait for the full answer before asking the next.
37
- Do not batch questions (unless `--batch` flag is provided).
38
-
39
- ### Visual/UI phases — ask about:
40
- 1. "Walk me through what a user sees on this screen from top to bottom."
41
- 2. "What does the empty state look like? (nothing loaded yet / no results / error)"
42
- 3. "Any animations or transitions you're picturing? Or keep it static?"
43
- 4. "On mobile — stacks vertically or anything different?"
44
- 5. "Any edge cases? (very long text, images that fail to load, loading states)"
45
-
46
- ### API/Backend phases — ask about:
47
- 1. "What's the intended consumer? Internal frontend / external developers / both?"
48
- 2. "For errors — do you want detailed error objects with field-level info or simple messages?"
49
- 3. "Rate limiting needed on any of these endpoints?"
50
- 4. "Any background processing involved, or all synchronous?"
51
- 5. "Versioning approach? /v1/ prefix or header-based?"
52
-
53
- ### Data/Database phases — ask about:
54
- 1. "What's the expected data volume? Thousands / millions / billions of rows?"
55
- 2. "Any fields that need full-text search vs. exact match?"
56
- 3. "Soft delete or hard delete for user-facing records?"
57
- 4. "Any fields that change frequently vs. infrequently? (affects indexing strategy)"
58
- 5. "Data retention requirements? When can records be deleted?"
59
-
60
- ### Integration phases — ask about:
61
- 1. "Have you already chosen the third-party service / API? If so, which?"
62
- 2. "What should happen if the third-party service is down? Queue / fail / fallback?"
63
- 3. "Webhooks or polling for receiving updates?"
64
- 4. "Any rate limits you know about on their end?"
65
- 5. "Testing approach? Do they have a sandbox environment?"
66
-
67
- ## --batch mode
68
- If `--batch` flag is provided: group related questions and present them together.
69
- Appropriate when the user wants faster intake and is familiar with MindForge.
70
-
71
- Example batch:
72
- ```
73
- Visual decisions for Phase 2:
74
- 1. Layout: card grid / table / list?
75
- 2. Empty state: illustration / simple message / hide section?
76
- 3. Loading: skeleton / spinner / none?
77
- 4. Mobile: same layout / stacked / hidden?
78
- Answer 1-4:
79
- ```
80
-
81
- ## --auto mode
82
- If `--auto` flag is provided: skip the discussion entirely.
83
- The planner will make reasonable defaults for all decisions.
84
- Use when: the phase is straightforward and you trust the planner's judgment.
85
- Warn clearly: "Skipping discussion. Planner will make implementation decisions.
86
- Results may not match your vision exactly. Proceeding without
87
- explicit decisions can create rework later."
88
-
89
- ## Step 3 — Write CONTEXT.md
90
-
91
- After discussion, write `.planning/phases/[N]/CONTEXT.md`:
92
-
93
- ```markdown
94
- # Phase [N] Implementation Context
95
- # Captured: [ISO-8601]
96
- # Discussion mode: [interactive / batch / auto]
97
-
98
- ## Phase description
99
- [From ROADMAP.md]
100
-
101
- ## Implementation decisions (captured from discussion)
102
-
103
- ### [Domain: Visual / API / Data / Integration / etc.]
104
-
105
- **Decision:** [What was decided]
106
- **Rationale:** [Why — from user's words]
107
- **Implications for planning:**
108
- - [What the planner should do because of this decision]
109
- - [Specific library or pattern to use]
110
- - [What to avoid]
111
-
112
- [Repeat for each significant decision]
113
-
114
- ## Open questions (unresolved during discussion)
115
- - [Question 1]: [Status — decide during planning / decide during execution]
116
-
117
- ## User's explicit preferences
118
- [Verbatim or near-verbatim quotes from the discussion that capture specific intent]
119
-
120
- ## Defaults accepted (decisions the user deferred to the planner)
121
- - [Area]: planner's choice
122
- ```
123
-
124
- ## Step 4 — Confirm and guide
125
-
126
- Show the user a summary of what was captured:
127
-
128
- "✅ Phase [N] discussion complete. [N] decisions captured.
129
-
130
- Key decisions:
131
- - [Decision 1 summary]
132
- - [Decision 2 summary]
133
- - [Decision 3 summary]
134
-
135
- See full context: .planning/phases/[N]/CONTEXT.md
136
-
137
- Next step: Run /mindforge:plan-phase [N] to create implementation plans
138
- using these decisions."
1
+ ---
2
+ name: mindforge:discuss-phase
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
9
+ ---
10
+
11
+ <objective>
12
+ Capture critical implementation decisions (UI/UX, architecture, choice of libraries) through a structured discussion before generating plans. This prevents generic planning and ensures the output matches the user's vision.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ .claude/commands/mindforge/discuss-phase.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Arguments: $ARGUMENTS (Phase N, optional flags for batch or auto mode)
21
+ Sources: ROADMAP.md, REQUIREMENTS.md, ARCHITECTURE.md.
22
+ Output: .planning/phases/phase-[N]/CONTEXT.md
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Analyze Scope**: Read roadmap, requirements, and architecture to identify the primary domain (UI, API, Data, etc.).
27
+ 2. **Structured Discussion**:
28
+ - If `--auto`: Skip discussion and warn the user.
29
+ - If `--batch`: Group questions by domain.
30
+ - Default: Ask domain-specific questions one at a time (e.g., visual layout, error handling, data volume).
31
+ 3. **Generate CONTEXT.md**:
32
+ - Document all captured decisions and their rationale.
33
+ - Note implications for the upcoming planning phase.
34
+ - List any unresolved "open questions".
35
+ 4. **Guide**: Confirm completion and point the user to `/mindforge:plan-phase [N]`.
36
+ </process>
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: mindforge:do
3
+ description: Smart natural language dispatcher to route intent to the right MindForge command
4
+ argument-hint: <text>
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ ---
9
+
10
+ <objective>
11
+ Provide a high-level, natural language interface for users to interact with MindForge without needing to remember specific command names. Routes user intent to the most appropriate internal command.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ .claude/commands/mindforge/do.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Arguments: $ARGUMENTS (The user's intent in plain English)
20
+ Knowledge: Must be aware of all available `.claude/commands/mindforge/*.md` definitions.
21
+ </context>
22
+
23
+ <process>
24
+ 1. **Analyze input**: Parse the user's natural language request.
25
+ 2. **Match command**: Compare the intent against the descriptions and objectives of all known MindForge commands.
26
+ 3. **Execute match**:
27
+ - If a clear match is found, immediately pivot to that command's logic.
28
+ - If multiple matches are possible, ask the user for clarification.
29
+ - If no match is found, suggest the most relevant command or offer `/mindforge:help`.
30
+ 4. **Learn (Optional)**: If the user confirms a routing was correct, record the mapping for future intent resolution.
31
+ </process>