mindforge-cc 2.1.4 → 2.3.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 (118) hide show
  1. package/.agent/CLAUDE.md +14 -0
  2. package/.agent/forge/help.md +4 -0
  3. package/.agent/forge/init-project.md +4 -0
  4. package/.agent/forge/plan-phase.md +4 -0
  5. package/.agent/mindforge/approve.md +4 -0
  6. package/.agent/mindforge/audit.md +4 -0
  7. package/.agent/mindforge/auto.md +4 -0
  8. package/.agent/mindforge/benchmark.md +4 -0
  9. package/.agent/mindforge/browse.md +4 -0
  10. package/.agent/mindforge/complete-milestone.md +4 -0
  11. package/.agent/mindforge/costs.md +4 -0
  12. package/.agent/mindforge/cross-review.md +4 -0
  13. package/.agent/mindforge/dashboard.md +4 -0
  14. package/.agent/mindforge/debug.md +4 -0
  15. package/.agent/mindforge/discuss-phase.md +4 -0
  16. package/.agent/mindforge/execute-phase.md +4 -0
  17. package/.agent/mindforge/health.md +4 -0
  18. package/.agent/mindforge/help.md +4 -0
  19. package/.agent/mindforge/init-org.md +4 -0
  20. package/.agent/mindforge/init-project.md +4 -0
  21. package/.agent/mindforge/install-skill.md +4 -0
  22. package/.agent/mindforge/learn.md +4 -0
  23. package/.agent/mindforge/map-codebase.md +4 -0
  24. package/.agent/mindforge/marketplace.md +4 -0
  25. package/.agent/mindforge/metrics.md +4 -0
  26. package/.agent/mindforge/migrate.md +4 -0
  27. package/.agent/mindforge/milestone.md +4 -0
  28. package/.agent/mindforge/new-runtime.md +4 -0
  29. package/.agent/mindforge/next.md +4 -0
  30. package/.agent/mindforge/plan-phase.md +4 -0
  31. package/.agent/mindforge/plugins.md +4 -0
  32. package/.agent/mindforge/pr-review.md +4 -0
  33. package/.agent/mindforge/profile-team.md +4 -0
  34. package/.agent/mindforge/publish-skill.md +4 -0
  35. package/.agent/mindforge/qa.md +4 -0
  36. package/.agent/mindforge/quick.md +4 -0
  37. package/.agent/mindforge/release.md +4 -0
  38. package/.agent/mindforge/remember.md +4 -0
  39. package/.agent/mindforge/research.md +4 -0
  40. package/.agent/mindforge/retrospective.md +4 -0
  41. package/.agent/mindforge/review.md +4 -0
  42. package/.agent/mindforge/security-scan.md +4 -0
  43. package/.agent/mindforge/ship.md +4 -0
  44. package/.agent/mindforge/skills.md +4 -0
  45. package/.agent/mindforge/status.md +4 -0
  46. package/.agent/mindforge/steer.md +4 -0
  47. package/.agent/mindforge/sync-confluence.md +4 -0
  48. package/.agent/mindforge/sync-jira.md +4 -0
  49. package/.agent/mindforge/tokens.md +4 -0
  50. package/.agent/mindforge/update.md +4 -0
  51. package/.agent/mindforge/verify-phase.md +4 -0
  52. package/.agent/mindforge/workspace.md +4 -0
  53. package/.agent/workflows/forge:help.md +10 -0
  54. package/.agent/workflows/forge:init-project.md +35 -0
  55. package/.agent/workflows/forge:plan-phase.md +33 -0
  56. package/.agent/workflows/mindforge:add-backlog.md +24 -0
  57. package/.agent/workflows/mindforge:agent.md +25 -0
  58. package/.agent/workflows/mindforge:approve.md +21 -0
  59. package/.agent/workflows/mindforge:audit.md +33 -0
  60. package/.agent/workflows/mindforge:auto.md +25 -0
  61. package/.agent/workflows/mindforge:benchmark.md +36 -0
  62. package/.agent/workflows/mindforge:browse.md +29 -0
  63. package/.agent/workflows/mindforge:complete-milestone.md +21 -0
  64. package/.agent/workflows/mindforge:costs.md +14 -0
  65. package/.agent/workflows/mindforge:cross-review.md +20 -0
  66. package/.agent/workflows/mindforge:dashboard.md +101 -0
  67. package/.agent/workflows/mindforge:debug.md +129 -0
  68. package/.agent/workflows/mindforge:discuss-phase.md +141 -0
  69. package/.agent/workflows/mindforge:do.md +25 -0
  70. package/.agent/workflows/mindforge:execute-phase.md +193 -0
  71. package/.agent/workflows/mindforge:health.md +24 -0
  72. package/.agent/workflows/mindforge:help.md +26 -0
  73. package/.agent/workflows/mindforge:init-org.md +134 -0
  74. package/.agent/workflows/mindforge:init-project.md +169 -0
  75. package/.agent/workflows/mindforge:install-skill.md +27 -0
  76. package/.agent/workflows/mindforge:learn.md +146 -0
  77. package/.agent/workflows/mindforge:map-codebase.md +301 -0
  78. package/.agent/workflows/mindforge:marketplace.md +123 -0
  79. package/.agent/workflows/mindforge:metrics.md +25 -0
  80. package/.agent/workflows/mindforge:migrate.md +43 -0
  81. package/.agent/workflows/mindforge:milestone.md +15 -0
  82. package/.agent/workflows/mindforge:new-runtime.md +22 -0
  83. package/.agent/workflows/mindforge:next.md +108 -0
  84. package/.agent/workflows/mindforge:note.md +27 -0
  85. package/.agent/workflows/mindforge:plan-phase.md +128 -0
  86. package/.agent/workflows/mindforge:plant-seed.md +24 -0
  87. package/.agent/workflows/mindforge:plugins.md +43 -0
  88. package/.agent/workflows/mindforge:pr-review.md +44 -0
  89. package/.agent/workflows/mindforge:profile-team.md +26 -0
  90. package/.agent/workflows/mindforge:publish-skill.md +22 -0
  91. package/.agent/workflows/mindforge:qa.md +19 -0
  92. package/.agent/workflows/mindforge:quick.md +138 -0
  93. package/.agent/workflows/mindforge:release.md +13 -0
  94. package/.agent/workflows/mindforge:remember.md +29 -0
  95. package/.agent/workflows/mindforge:research.md +15 -0
  96. package/.agent/workflows/mindforge:retrospective.md +29 -0
  97. package/.agent/workflows/mindforge:review-backlog.md +26 -0
  98. package/.agent/workflows/mindforge:review.md +160 -0
  99. package/.agent/workflows/mindforge:security-scan.md +236 -0
  100. package/.agent/workflows/mindforge:session-report.md +31 -0
  101. package/.agent/workflows/mindforge:ship.md +103 -0
  102. package/.agent/workflows/mindforge:skills.md +144 -0
  103. package/.agent/workflows/mindforge:status.md +107 -0
  104. package/.agent/workflows/mindforge:steer.md +16 -0
  105. package/.agent/workflows/mindforge:sync-confluence.md +14 -0
  106. package/.agent/workflows/mindforge:sync-jira.md +15 -0
  107. package/.agent/workflows/mindforge:tokens.md +11 -0
  108. package/.agent/workflows/mindforge:ui-phase.md +27 -0
  109. package/.agent/workflows/mindforge:ui-review.md +28 -0
  110. package/.agent/workflows/mindforge:update.md +45 -0
  111. package/.agent/workflows/mindforge:validate-phase.md +25 -0
  112. package/.agent/workflows/mindforge:verify-phase.md +65 -0
  113. package/.agent/workflows/mindforge:workspace.md +32 -0
  114. package/.agent/workflows/mindforge:workstreams.md +27 -0
  115. package/.claude/CLAUDE.md +14 -0
  116. package/bin/installer-core.js +115 -19
  117. package/bin/wizard/theme.js +1 -1
  118. package/package.json +1 -1
@@ -0,0 +1,33 @@
1
+ ---
2
+ description: Query .planning/AUDIT.jsonl by phase, event, date, severity, integration, or
3
+ ---
4
+ Query `.planning/AUDIT.jsonl` by phase, event, date, severity, integration, or
5
+ agent. Usage: `/mindforge:audit [filters]`
6
+
7
+ ## Supported options
8
+ - `--phase N`
9
+ - `--event NAME`
10
+ - `--agent NAME`
11
+ - `--severity LEVEL`
12
+ - `--date YYYY-MM-DD`
13
+ - `--summary`
14
+ - `--verify`
15
+ - `--export PATH`
16
+
17
+ ## Summary mode
18
+ Summarise counts by event, severity, integration, and phase.
19
+ Entries with `"phase": null` are reported as `project-level`, not dropped.
20
+
21
+ ## Verify mode
22
+ Validate JSONL shape and chronological ordering.
23
+ Timestamp comparison may use string comparison because ISO-8601 UTC timestamps
24
+ with a `Z` suffix sort lexicographically.
25
+
26
+ ## Archive rotation
27
+ If the active audit log exceeds 10,000 lines, rotate it into
28
+ `.planning/audit-archive/` before continuing heavy writes. Rotation must never
29
+ delete history; it archives then resets the active file.
30
+
31
+ ## Export safety
32
+ Validate export paths stay inside the project directory. If a path traversal or
33
+ unsafe destination is requested, export into `.planning/` instead.
@@ -0,0 +1,25 @@
1
+ ---
2
+ description: Starts the MindForge Autonomous Execution Engine for the
3
+ ---
4
+ # /mindforge:auto [Phase N]
5
+
6
+ **Purpose**: Starts the MindForge Autonomous Execution Engine for the
7
+ specified phase. The agent will execute all waves, handle repairs, and
8
+ perform compliance gates without requiring human confirmation.
9
+
10
+ ## Usage
11
+ - `/mindforge:auto --phase 3` (Standard unattended mode)
12
+ - `/mindforge:auto --resume` (Resumes from last checkpoint)
13
+ - `/mindforge:auto --headless` (CI/CD optimized output)
14
+ - `/mindforge:auto --dry-run` (Show the wave DAG and plan without executing)
15
+
16
+ ## Behavior
17
+ - **Zero-Interaction**: Auto-approves Tier 1/2 changes if gates pass.
18
+ - **Self-Repair**: Tries RETRY/DECOMPOSE before asking for help.
19
+ - **Checkpointing**: Constant state persistence in `HANDOFF.json`.
20
+ - **Governance**: ESCALATES on Tier 3 changes (Auth/Payment/PII).
21
+
22
+ ## Environment Variables
23
+ - `AUTO_MODE_TIMEOUT_MINUTES`: Default 120.
24
+ - `AUTO_PUSH_ON_WAVE_COMPLETE`: Default false.
25
+ - `SLACK_WEBHOOK_URL`: Required for notifications.
@@ -0,0 +1,36 @@
1
+ ---
2
+ description: Measure skill effectiveness over time.
3
+ ---
4
+ # MindForge — Benchmark Command
5
+ # Usage: /mindforge:benchmark [--skill skill-name] [--compare skill-a skill-b]
6
+
7
+ Measure skill effectiveness over time.
8
+
9
+ ## Single skill benchmark
10
+ For a named skill, analyse AUDIT.jsonl and skill-usage.jsonl:
11
+ - How many times was the skill loaded this month?
12
+ - What is the verify pass rate for tasks where this skill was loaded?
13
+ - Are there anti-patterns less common after this skill is loaded?
14
+ - What is the average session quality score when this skill is active?
15
+
16
+ Report:
17
+ ```
18
+ Skill Benchmark: security-review v1.0.0
19
+ ────────────────────────────────────────
20
+ Usage (last 30 days): 47 task loads
21
+ Trigger distribution: text match 68%, file-path 22%, file-name 10%
22
+ Verify pass rate: 91% (vs. 84% baseline without this skill)
23
+ Security findings: 8 HIGH caught (0 CRITICAL missed in tasks using this skill)
24
+ Session quality lift: +6.2 points average when loaded
25
+
26
+ Assessment: HIGH VALUE — clear quality improvement signal
27
+ ```
28
+
29
+ ## Skill comparison
30
+ Compare two skills head-to-head:
31
+ - Load frequency
32
+ - Verify pass rate improvement
33
+ - Anti-pattern detection rate
34
+ - Context budget cost (token estimate)
35
+
36
+ Helps decide: should you keep both skills, or deprecate the lower-performer?
@@ -0,0 +1,29 @@
1
+ ---
2
+ description: @mindforge browse <url | action>
3
+ ---
4
+ # /mindforge:browse
5
+
6
+ ## Usage
7
+ `@mindforge browse <url | action>`
8
+
9
+ ## Description
10
+ Controls the persistent MindForge browser daemon.
11
+ Maintains session state (cookies/localStorage) for the AI.
12
+
13
+ ## Actions
14
+ | Action | Description |
15
+ |---|---|
16
+ | `--start` | Initialize browser daemon |
17
+ | `--stop` | Kill browser daemon |
18
+ | `--status` | Show daemon health and active sessions |
19
+ | `--session <name>` | Switch browser context |
20
+ | `--import-session <name> --from <browser>` | Import cookies from host browser (chrome, arc, etc) |
21
+ | `<url>` | Navigate the current page to URL |
22
+ | `click <selector>` | Trigger click event |
23
+ | `type <sel> <text>` | Fill input field |
24
+ | `screenshot` | Capture current viewport |
25
+
26
+ ## Security
27
+ - Daemon binds to `127.0.0.1` only.
28
+ - Session files are gitignored.
29
+ - Use only for debugging and visual verification.
@@ -0,0 +1,21 @@
1
+ ---
2
+ description: Archive a completed milestone, generate a release report, and prepare the next
3
+ ---
4
+ Archive a completed milestone, generate a release report, and prepare the next
5
+ milestone. Usage: `/mindforge:complete-milestone <name> <version>`
6
+
7
+ ## Step 1 — Validate milestone completion
8
+ Ensure every included phase is verified and has no pending blocking approvals.
9
+
10
+ ## Step 2 — Generate milestone report
11
+ Summarise shipped phases, notable changes, risks, approvals, and unresolved
12
+ follow-ups.
13
+
14
+ ## Step 3 — Archive milestone artifacts
15
+ Archive only the phases included in the milestone, not the entire
16
+ `.planning/phases/` directory. Preserve history in the archive while keeping
17
+ active planning files available in place.
18
+
19
+ ## Step 4 — Release metadata
20
+ Create the release tag, update `STATE.md` with milestone summary, and mark the
21
+ project ready for the next version.
@@ -0,0 +1,14 @@
1
+ ---
2
+ description: Real-time cost tracking for all AI model usage.
3
+ ---
4
+ # MindForge v2 — Costs Command
5
+ # Usage: /mindforge:costs [--phase N] [--session ID] [--window 7d]
6
+
7
+ ## Purpose
8
+ Real-time cost tracking for all AI model usage.
9
+ Enforce daily budgets and see per-model spend.
10
+
11
+ ## Metrics
12
+ - Total spend: $X.XX
13
+ - Daily limit usage: XX%
14
+ - Per-model breakdown (Tokens/Cost)
@@ -0,0 +1,20 @@
1
+ ---
2
+ description: Get the same code diff reviewed by multiple AI models simultaneously.
3
+ ---
4
+ # MindForge v2 — Cross-Review Command
5
+ # Usage: /mindforge:cross-review [--phase N] [--models list] [--focus area]
6
+
7
+ ## Purpose
8
+ Get the same code diff reviewed by multiple AI models simultaneously.
9
+ Claude finds what Claude finds. GPT-4o finds what GPT-4o finds.
10
+ Consensus findings = high confidence issues.
11
+
12
+ ## Round 1: Primary (Claude)
13
+ Senior architect review.
14
+
15
+ ## Round 2: Adversarial (GPT-4o)
16
+ Critical security and edge case review.
17
+
18
+ ## Synthesis
19
+ Consensus detector filters findings.
20
+ Verdict is gating for `/mindforge:ship`.
@@ -0,0 +1,101 @@
1
+ ---
2
+ description: Start the MindForge real-time web dashboard — a live observability UI for the
3
+ ---
4
+ # MindForge v2 — Dashboard Command
5
+ # Usage: /mindforge:dashboard [--port 7339] [--open] [--stop] [--status]
6
+ # Version: v2.0.0-alpha.5
7
+
8
+ ## Purpose
9
+ Start the MindForge real-time web dashboard — a live observability UI for the
10
+ entire team. Shows execution progress, quality metrics, pending approvals,
11
+ knowledge graph, and team activity without requiring CLI access.
12
+
13
+ ## Design
14
+ The dashboard is a localhost-only web server:
15
+ - No build step — single HTML file, no bundler, no npm packages on client
16
+ - No authentication — binding to 127.0.0.1 is the security model
17
+ - Live updates via Server-Sent Events — no WebSocket library needed
18
+ - Designed for screensharing at standups, not external access
19
+
20
+ ## Usage
21
+
22
+ ### Start the dashboard
23
+ ```
24
+ /mindforge:dashboard
25
+ → Dashboard running at: http://localhost:7339
26
+ → Press CTRL+C to stop (or /mindforge:dashboard --stop)
27
+ ```
28
+
29
+ ### Start and open in browser
30
+ ```
31
+ /mindforge:dashboard --open
32
+ → Opens http://localhost:7339 in your default browser
33
+ ```
34
+
35
+ ### Custom port
36
+ ```
37
+ /mindforge:dashboard --port 7340
38
+ → Useful if 7339 is already in use
39
+ ```
40
+
41
+ ### Stop the dashboard
42
+ ```
43
+ /mindforge:dashboard --stop
44
+ → Finds the running dashboard process (from PID file) and sends SIGTERM
45
+ ```
46
+
47
+ ### Check dashboard status
48
+ ```
49
+ /mindforge:dashboard --status
50
+ → Checks if dashboard is running, shows port and PID
51
+ → Also shows: http://localhost:7339/api/status
52
+ ```
53
+
54
+ ## Dashboard pages
55
+
56
+ ### Activity (default)
57
+ - Phase name, auto mode status (RUNNING/PAUSED/ESCALATED/IDLE)
58
+ - Wave progress bar (tasks completed / total)
59
+ - Live AUDIT event feed with color-coded event types
60
+ - Steering input: send guidance to auto mode without touching the CLI
61
+
62
+ ### Quality Metrics
63
+ - Session quality score trend (last 20 sessions)
64
+ - Verify pass rate over time
65
+ - Security findings by severity (CRITICAL/HIGH/MEDIUM/LOW)
66
+ - Cost per session trend
67
+
68
+ ### Approvals
69
+ - All pending Tier 2/3 governance requests
70
+ - [Approve] and [Reject] buttons — no CLI needed for approval
71
+ - Tier, phase/plan, description, time since requested, expiry warning
72
+ - Recent approval history
73
+
74
+ ### Knowledge
75
+ - Search the knowledge graph from the browser
76
+ - Entries filtered by confidence, type, tags
77
+ - Color-coded by knowledge type
78
+
79
+ ### Team
80
+ - Active developers (by git email, from AUDIT.jsonl)
81
+ - What each person is working on (last task)
82
+ - File conflict warnings (two developers recently touching the same file)
83
+
84
+ ## Security rules
85
+ 1. Never expose the dashboard on 0.0.0.0 — localhost only
86
+ 2. Never forward the port externally (no ngrok, no port forwarding)
87
+ 3. For remote team visibility: screenshare your browser instead
88
+ 4. The dashboard shows project details including code patterns and decisions
89
+
90
+ ## Integration with auto mode
91
+ When `/mindforge:auto` is running and the dashboard is open:
92
+ - Activity feed updates live as tasks complete
93
+ - Wave progress bar advances in real-time
94
+ - Any escalations appear immediately with red indicator
95
+ - The Steering input is active — inject guidance without a second terminal
96
+
97
+ ## AUDIT entry
98
+ ```json
99
+ { "event": "dashboard_started", "port": 7339, "pid": 12345 }
100
+ { "event": "dashboard_stopped", "pid": 12345 }
101
+ ```
@@ -0,0 +1,129 @@
1
+ ---
2
+ description: Systematic debugging using the Debug Specialist persona with full RCA protocol.
3
+ ---
4
+ # MindForge — Debug Command
5
+ # Usage: /mindforge:debug [description]
6
+
7
+ Systematic debugging using the Debug Specialist persona with full RCA protocol.
8
+
9
+ ## Activation
10
+
11
+ Load `.mindforge/personas/debug-specialist.md` immediately.
12
+ This command runs entirely in that persona for its full duration.
13
+
14
+ ## Step 1 — Intake
15
+
16
+ Ask the user:
17
+ 1. "Describe the problem. What is happening vs. what should happen?"
18
+ 2. "Can you reproduce it reliably? If yes: what are the exact steps?"
19
+ 3. "When did this start? Was it working before? What changed?"
20
+ 4. "Do you have an error message or stack trace? Paste it here."
21
+
22
+ Capture all answers before proceeding.
23
+
24
+ ## Step 2 — Triage
25
+
26
+ Classify the issue immediately:
27
+ - **Regression** (was working, now broken) → check recent commits
28
+ - **Never worked** (new feature failing) → check the plan and verify step
29
+ - **Environment issue** (works locally, fails in CI) → check environment diffs
30
+ - **Data issue** (specific data causes failure) → check data shape assumptions
31
+ - **Integration issue** (fails when calling external service) → check contracts
32
+
33
+ Report classification to user: "This looks like a [type] issue. Here's my approach..."
34
+
35
+ ## Step 3 — Follow Debug Specialist protocol
36
+
37
+ Execute the full protocol from `debug-specialist.md`:
38
+ 1. Reproduce
39
+ 2. Isolate
40
+ 3. Read the error
41
+ 4. Check recent changes
42
+ 5. Instrument
43
+ 6. Form hypothesis
44
+ 7. Test hypothesis (write a failing test)
45
+ 8. Fix
46
+ 9. Verify (test from step 7 now passes, no regressions)
47
+ 10. Document
48
+
49
+ At each step, report what was found before moving to the next step.
50
+ Do not skip steps or combine them.
51
+
52
+ ## Step 3b — Full test suite verification (mandatory)
53
+ After the fix and targeted verify pass, run the project's full test suite.
54
+ Do not mark the debug task complete if any tests fail.
55
+
56
+ ## Step 4 — Check recent git history
57
+
58
+ ```bash
59
+ git log --oneline -20
60
+ git diff HEAD~[N] HEAD -- [suspected file]
61
+ ```
62
+
63
+ If a recent commit is the likely cause, show the user the specific diff.
64
+
65
+ ## Step 5 — Write the RCA report
66
+
67
+ Create `.planning/phases/[current-phase]/DEBUG-[timestamp].md`:
68
+
69
+ ```markdown
70
+ # Debug Report — [short description]
71
+
72
+ ## Date
73
+ [ISO-8601]
74
+
75
+ ## Problem
76
+ [User's description + what was verified during debugging]
77
+
78
+ ## Root cause category
79
+ [Logic error / Data error / Integration error / Concurrency error /
80
+ Configuration error / Dependency error]
81
+
82
+ ## Root cause
83
+ [Precise description of what the actual cause was]
84
+
85
+ ## Evidence
86
+ - [How the root cause was confirmed]
87
+ - [Failing test that proved the bug: file:line]
88
+
89
+ ## Fix applied
90
+ - File: [path]
91
+ - Change: [description]
92
+ - Commit: [SHA]
93
+
94
+ ## Regression test
95
+ [Test written to prevent this from recurring: file:line]
96
+
97
+ ## Prevention
98
+ [What should change in process/code to prevent this class of bug]
99
+ ```
100
+
101
+ ## Step 6 — Write AUDIT entry
102
+
103
+ ```json
104
+ {
105
+ "id": "uuid",
106
+ "timestamp": "ISO-8601",
107
+ "event": "debug_completed",
108
+ "agent": "mindforge-debug-specialist",
109
+ "phase": [current phase or null],
110
+ "session_id": "sess_abc",
111
+ "issue_type": "regression",
112
+ "root_cause_category": "Logic error",
113
+ "root_cause_summary": "[one sentence]",
114
+ "commit_sha": "[fix commit sha]",
115
+ "regression_test_added": true,
116
+ "report_path": ".planning/phases/[N]/DEBUG-[timestamp].md"
117
+ }
118
+ ```
119
+
120
+ ## When the bug cannot be reproduced
121
+
122
+ Ask:
123
+ 1. "Does it happen every time or intermittently?"
124
+ 2. "Does it happen in specific environments only? (dev/staging/prod)"
125
+ 3. "Does it happen for specific users or all users?"
126
+
127
+ If intermittent: focus on concurrency, caching, and race conditions.
128
+ Write a monitoring/logging plan to catch the next occurrence.
129
+ Document the inconclusive investigation in the DEBUG report with evidence gathered.
@@ -0,0 +1,141 @@
1
+ ---
2
+ description: Planning without discussion produces generic plans.
3
+ ---
4
+ # MindForge — Discuss Phase Command
5
+ # Usage: /mindforge:discuss-phase [N] [--batch] [--auto]
6
+ # Captures implementation decisions before planning begins.
7
+ # Run this BEFORE /mindforge:plan-phase for complex phases.
8
+
9
+ ## Purpose
10
+ Planning without discussion produces generic plans.
11
+ Discussion captures YOUR decisions — layout preferences, library choices,
12
+ UX specifics, edge cases you've already thought through — so the planner
13
+ builds what you actually want, not what seems reasonable.
14
+
15
+ ## When to use
16
+ - Any phase with UI/UX components (visual decisions need capturing)
17
+ - Any phase with multiple valid implementation approaches
18
+ - Any phase where you already have opinions on the approach
19
+ - Any phase touching external services (your preferences on APIs matter)
20
+ - Skip for trivial phases (e.g., "add one field to an existing form")
21
+
22
+ ## Step 1 — Analyse the phase scope
23
+
24
+ Read:
25
+ - ROADMAP.md for the phase description
26
+ - REQUIREMENTS.md for the requirements in this phase
27
+ - ARCHITECTURE.md for relevant architectural context
28
+
29
+ Identify the phase's primary domain and any secondary domains.
30
+ If multiple domains are involved, cover each relevant set of questions.
31
+ - **Visual/UI** → ask about layout, interactions, states, empty states, animations
32
+ - **API/Backend** → ask about response format, error handling, auth approach, versioning
33
+ - **Data/Database** → ask about schema design, migration strategy, data volume expectations
34
+ - **Integration** → ask about third-party API choices, error recovery, retry strategy
35
+ - **Infrastructure** → ask about deployment strategy, scaling approach, observability
36
+
37
+ ## Step 2 — Structured discussion
38
+
39
+ Ask questions ONE AT A TIME. Wait for the full answer before asking the next.
40
+ Do not batch questions (unless `--batch` flag is provided).
41
+
42
+ ### Visual/UI phases — ask about:
43
+ 1. "Walk me through what a user sees on this screen from top to bottom."
44
+ 2. "What does the empty state look like? (nothing loaded yet / no results / error)"
45
+ 3. "Any animations or transitions you're picturing? Or keep it static?"
46
+ 4. "On mobile — stacks vertically or anything different?"
47
+ 5. "Any edge cases? (very long text, images that fail to load, loading states)"
48
+
49
+ ### API/Backend phases — ask about:
50
+ 1. "What's the intended consumer? Internal frontend / external developers / both?"
51
+ 2. "For errors — do you want detailed error objects with field-level info or simple messages?"
52
+ 3. "Rate limiting needed on any of these endpoints?"
53
+ 4. "Any background processing involved, or all synchronous?"
54
+ 5. "Versioning approach? /v1/ prefix or header-based?"
55
+
56
+ ### Data/Database phases — ask about:
57
+ 1. "What's the expected data volume? Thousands / millions / billions of rows?"
58
+ 2. "Any fields that need full-text search vs. exact match?"
59
+ 3. "Soft delete or hard delete for user-facing records?"
60
+ 4. "Any fields that change frequently vs. infrequently? (affects indexing strategy)"
61
+ 5. "Data retention requirements? When can records be deleted?"
62
+
63
+ ### Integration phases — ask about:
64
+ 1. "Have you already chosen the third-party service / API? If so, which? (I will query Context7 for current docs if available)"
65
+ 2. "What should happen if the third-party service is down? Queue / fail / fallback?"
66
+ 3. "Webhooks or polling for receiving updates?"
67
+ 4. "Any rate limits you know about on their end?"
68
+ 5. "Testing approach? Do they have a sandbox environment?"
69
+
70
+ ## --batch mode
71
+ If `--batch` flag is provided: group related questions and present them together.
72
+ Appropriate when the user wants faster intake and is familiar with MindForge.
73
+
74
+ Example batch:
75
+ ```
76
+ Visual decisions for Phase 2:
77
+ 1. Layout: card grid / table / list?
78
+ 2. Empty state: illustration / simple message / hide section?
79
+ 3. Loading: skeleton / spinner / none?
80
+ 4. Mobile: same layout / stacked / hidden?
81
+ Answer 1-4:
82
+ ```
83
+
84
+ ## --auto mode
85
+ If `--auto` flag is provided: skip the discussion entirely.
86
+ The planner will make reasonable defaults for all decisions.
87
+ Use when: the phase is straightforward and you trust the planner's judgment.
88
+ Warn clearly: "Skipping discussion. Planner will make implementation decisions.
89
+ Results may not match your vision exactly. Proceeding without
90
+ explicit decisions can create rework later."
91
+
92
+ ## Step 3 — Write CONTEXT.md
93
+
94
+ After discussion, write `.planning/phases/[N]/CONTEXT.md`:
95
+
96
+ ```markdown
97
+ # Phase [N] Implementation Context
98
+ # Captured: [ISO-8601]
99
+ # Discussion mode: [interactive / batch / auto]
100
+
101
+ ## Phase description
102
+ [From ROADMAP.md]
103
+
104
+ ## Implementation decisions (captured from discussion)
105
+
106
+ ### [Domain: Visual / API / Data / Integration / etc.]
107
+
108
+ **Decision:** [What was decided]
109
+ **Rationale:** [Why — from user's words]
110
+ **Implications for planning:**
111
+ - [What the planner should do because of this decision]
112
+ - [Specific library or pattern to use]
113
+ - [What to avoid]
114
+
115
+ [Repeat for each significant decision]
116
+
117
+ ## Open questions (unresolved during discussion)
118
+ - [Question 1]: [Status — decide during planning / decide during execution]
119
+
120
+ ## User's explicit preferences
121
+ [Verbatim or near-verbatim quotes from the discussion that capture specific intent]
122
+
123
+ ## Defaults accepted (decisions the user deferred to the planner)
124
+ - [Area]: planner's choice
125
+ ```
126
+
127
+ ## Step 4 — Confirm and guide
128
+
129
+ Show the user a summary of what was captured:
130
+
131
+ "✅ Phase [N] discussion complete. [N] decisions captured.
132
+
133
+ Key decisions:
134
+ - [Decision 1 summary]
135
+ - [Decision 2 summary]
136
+ - [Decision 3 summary]
137
+
138
+ See full context: .planning/phases/[N]/CONTEXT.md
139
+
140
+ Next step: Run /mindforge:plan-phase [N] to create implementation plans
141
+ using these decisions."
@@ -0,0 +1,25 @@
1
+ ---
2
+ description: Smart natural language dispatcher to route intent to the right MindForge command
3
+ ---
4
+ <objective>
5
+ 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.
6
+ </objective>
7
+
8
+ <execution_context>
9
+ .claude/commands/mindforge/do.md
10
+ </execution_context>
11
+
12
+ <context>
13
+ Arguments: $ARGUMENTS (The user's intent in plain English)
14
+ Knowledge: Must be aware of all available `.claude/commands/mindforge/*.md` definitions.
15
+ </context>
16
+
17
+ <process>
18
+ 1. **Analyze input**: Parse the user's natural language request.
19
+ 2. **Match command**: Compare the intent against the descriptions and objectives of all known MindForge commands.
20
+ 3. **Execute match**:
21
+ - If a clear match is found, immediately pivot to that command's logic.
22
+ - If multiple matches are possible, ask the user for clarification.
23
+ - If no match is found, suggest the most relevant command or offer `/mindforge:help`.
24
+ 4. **Learn (Optional)**: If the user confirms a routing was correct, record the mapping for future intent resolution.
25
+ </process>