mindforge-cc 2.0.0 → 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 (115) hide show
  1. package/.agent/mindforge/add-backlog.md +32 -0
  2. package/.agent/mindforge/agent.md +31 -0
  3. package/.agent/mindforge/do.md +31 -0
  4. package/.agent/mindforge/note.md +35 -0
  5. package/.agent/mindforge/plant-seed.md +31 -0
  6. package/.agent/mindforge/review-backlog.md +34 -0
  7. package/.agent/mindforge/session-report.md +39 -0
  8. package/.agent/mindforge/ui-phase.md +34 -0
  9. package/.agent/mindforge/ui-review.md +36 -0
  10. package/.agent/mindforge/validate-phase.md +31 -0
  11. package/.agent/mindforge/workstreams.md +35 -0
  12. package/.claude/commands/mindforge/add-backlog.md +32 -0
  13. package/.claude/commands/mindforge/agent.md +31 -0
  14. package/.claude/commands/mindforge/approve.md +27 -15
  15. package/.claude/commands/mindforge/audit.md +30 -26
  16. package/.claude/commands/mindforge/auto.md +29 -18
  17. package/.claude/commands/mindforge/benchmark.md +26 -29
  18. package/.claude/commands/mindforge/browse.md +24 -22
  19. package/.claude/commands/mindforge/complete-milestone.md +28 -14
  20. package/.claude/commands/mindforge/costs.md +26 -9
  21. package/.claude/commands/mindforge/cross-review.md +27 -13
  22. package/.claude/commands/mindforge/dashboard.md +35 -98
  23. package/.claude/commands/mindforge/debug.md +34 -126
  24. package/.claude/commands/mindforge/discuss-phase.md +36 -138
  25. package/.claude/commands/mindforge/do.md +31 -0
  26. package/.claude/commands/mindforge/execute-phase.md +37 -190
  27. package/.claude/commands/mindforge/health.md +27 -17
  28. package/.claude/commands/mindforge/help.md +25 -19
  29. package/.claude/commands/mindforge/init-org.md +37 -131
  30. package/.claude/commands/mindforge/init-project.md +40 -155
  31. package/.claude/commands/mindforge/install-skill.md +32 -15
  32. package/.claude/commands/mindforge/learn.md +36 -142
  33. package/.claude/commands/mindforge/map-codebase.md +36 -298
  34. package/.claude/commands/mindforge/marketplace.md +33 -120
  35. package/.claude/commands/mindforge/metrics.md +29 -18
  36. package/.claude/commands/mindforge/migrate.md +33 -40
  37. package/.claude/commands/mindforge/milestone.md +35 -12
  38. package/.claude/commands/mindforge/new-runtime.md +25 -15
  39. package/.claude/commands/mindforge/next.md +34 -105
  40. package/.claude/commands/mindforge/note.md +35 -0
  41. package/.claude/commands/mindforge/plan-phase.md +34 -125
  42. package/.claude/commands/mindforge/plant-seed.md +31 -0
  43. package/.claude/commands/mindforge/plugins.md +30 -36
  44. package/.claude/commands/mindforge/pr-review.md +32 -41
  45. package/.claude/commands/mindforge/profile-team.md +26 -19
  46. package/.claude/commands/mindforge/publish-skill.md +28 -17
  47. package/.claude/commands/mindforge/qa.md +27 -12
  48. package/.claude/commands/mindforge/quick.md +35 -135
  49. package/.claude/commands/mindforge/release.md +27 -8
  50. package/.claude/commands/mindforge/remember.md +25 -10
  51. package/.claude/commands/mindforge/research.md +27 -9
  52. package/.claude/commands/mindforge/retrospective.md +28 -22
  53. package/.claude/commands/mindforge/review-backlog.md +34 -0
  54. package/.claude/commands/mindforge/review.md +37 -157
  55. package/.claude/commands/mindforge/security-scan.md +34 -233
  56. package/.claude/commands/mindforge/session-report.md +39 -0
  57. package/.claude/commands/mindforge/ship.md +34 -100
  58. package/.claude/commands/mindforge/skills.md +36 -141
  59. package/.claude/commands/mindforge/status.md +30 -104
  60. package/.claude/commands/mindforge/steer.md +25 -10
  61. package/.claude/commands/mindforge/sync-confluence.md +28 -9
  62. package/.claude/commands/mindforge/sync-jira.md +32 -12
  63. package/.claude/commands/mindforge/tokens.md +25 -6
  64. package/.claude/commands/mindforge/ui-phase.md +34 -0
  65. package/.claude/commands/mindforge/ui-review.md +36 -0
  66. package/.claude/commands/mindforge/update.md +33 -42
  67. package/.claude/commands/mindforge/validate-phase.md +31 -0
  68. package/.claude/commands/mindforge/verify-phase.md +30 -62
  69. package/.claude/commands/mindforge/workspace.md +28 -25
  70. package/.claude/commands/mindforge/workstreams.md +35 -0
  71. package/.mindforge/memory/decision-library.jsonl +0 -0
  72. package/.mindforge/memory/knowledge-base.jsonl +7 -0
  73. package/.mindforge/memory/pattern-library.jsonl +1 -0
  74. package/.mindforge/memory/team-preferences.jsonl +4 -0
  75. package/.mindforge/personas/advisor-researcher.md +89 -0
  76. package/.mindforge/personas/analyst.md +112 -52
  77. package/.mindforge/personas/architect.md +100 -67
  78. package/.mindforge/personas/assumptions-analyzer-extend.md +87 -0
  79. package/.mindforge/personas/assumptions-analyzer.md +109 -0
  80. package/.mindforge/personas/codebase-mapper-extend.md +93 -0
  81. package/.mindforge/personas/codebase-mapper.md +770 -0
  82. package/.mindforge/personas/coverage-specialist.md +104 -0
  83. package/.mindforge/personas/debug-specialist.md +118 -52
  84. package/.mindforge/personas/debugger.md +97 -0
  85. package/.mindforge/personas/decision-architect.md +102 -0
  86. package/.mindforge/personas/developer.md +97 -85
  87. package/.mindforge/personas/executor.md +88 -0
  88. package/.mindforge/personas/integration-checker.md +92 -0
  89. package/.mindforge/personas/nyquist-auditor.md +84 -0
  90. package/.mindforge/personas/phase-researcher.md +107 -0
  91. package/.mindforge/personas/plan-checker.md +92 -0
  92. package/.mindforge/personas/planner.md +105 -0
  93. package/.mindforge/personas/project-researcher.md +99 -0
  94. package/.mindforge/personas/qa-engineer.md +113 -61
  95. package/.mindforge/personas/release-manager.md +102 -64
  96. package/.mindforge/personas/research-agent.md +108 -24
  97. package/.mindforge/personas/research-synthesizer.md +101 -0
  98. package/.mindforge/personas/roadmapper-extend.md +100 -0
  99. package/.mindforge/personas/roadmapper.md +103 -0
  100. package/.mindforge/personas/security-reviewer.md +114 -91
  101. package/.mindforge/personas/tech-writer.md +118 -51
  102. package/.mindforge/personas/ui-auditor.md +94 -0
  103. package/.mindforge/personas/ui-checker.md +89 -0
  104. package/.mindforge/personas/ui-researcher.md +99 -0
  105. package/.mindforge/personas/user-profiler.md +93 -0
  106. package/.mindforge/personas/verifier.md +101 -0
  107. package/.planning/browser-daemon.log +32 -0
  108. package/CHANGELOG.md +26 -0
  109. package/MINDFORGE.md +2 -0
  110. package/README.md +38 -1
  111. package/bin/installer-core.js +3 -4
  112. package/docs/Context/Master-Context.md +6 -13
  113. package/docs/PERSONAS.md +611 -0
  114. package/docs/reference/commands.md +53 -43
  115. package/package.json +1 -1
@@ -1,19 +1,30 @@
1
- # MindForge — Publish Skill Command
2
- # Usage: /mindforge:publish-skill [skill-dir] [--registry URL] [--dry-run]
1
+ ---
2
+ name: mindforge:publish-skill
3
+ description: Validate and publish a skill to a registry
4
+ argument-hint: [skill-dir] [--registry URL] [--dry-run]
5
+ allowed-tools:
6
+ - run_command
7
+ - view_file
8
+ ---
3
9
 
4
- Publish a skill to the npm registry (or private registry).
10
+ <objective>
11
+ Facilitate code reuse and community contribution by verifying, packaging, and uploading local skills to an npm or private registry after passing rigorous quality checks.
12
+ </objective>
5
13
 
6
- Pre-publication checklist:
7
- 1. Run full skill validation (Level 1 + 2 + 3 from skill-validator.md)
8
- Fail if Level 1 or 2 fails. Warn if Level 3 fails.
9
- 2. Verify package.json has `mindforge` field with all required sub-fields
10
- 3. Verify CHANGELOG.md has an entry for the current version
11
- 4. Check if version already published: `npm info [package-name]@[version]`
12
- If already published: error "Version already exists. Bump the version."
13
- 5. Run `npm pack --dry-run` to preview what will be published
14
- 6. Confirm with user: "These files will be published: [list]. Proceed? (yes/no)"
15
- 7. If --dry-run: stop here, show preview only
16
- 8. Publish: `npm publish --access public`
17
- 9. Verify: `npm info [package-name]@[version]` confirm publication succeeded
18
- 10. Write AUDIT: `{ "event": "skill_published", "package": "...", "version": "..." }`
19
- 11. Report: "✅ [package-name]@[version] published to npm registry"
14
+ <execution_context>
15
+ .claude/commands/mindforge/publish-skill.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Auditors: Level 1, 2, and 3 validation from skill-validator.md.
20
+ Format: Standard npm package with `mindforge` fields.
21
+ </context>
22
+
23
+ <process>
24
+ 1. **Audit**: Run full multi-level validation. Fail on structural or security issues.
25
+ 2. **Metadata Check**: Ensure `package.json`, `SKILL.md`, and `CHANGELOG.md` are in sync and complete.
26
+ 3. **Preview**: Run `npm pack --dry-run` and list files for user confirmation.
27
+ 4. **Publish**: Upload the package (public by default) to the resolved registry.
28
+ 5. **Verify**: Query the registry to confirm the version is live.
29
+ 6. **Audit**: Log `skill_published` with package name and version.
30
+ </process>
@@ -1,16 +1,31 @@
1
- # /mindforge:qa
1
+ ---
2
+ name: mindforge:qa
3
+ description: Run systematic visual QA on changed UI surfaces
4
+ argument-hint: [--phase N] [--auto]
5
+ allowed-tools:
6
+ - run_command
7
+ - list_dir
8
+ - open_browser_url
9
+ - view_file
10
+ ---
2
11
 
3
- ## Usage
4
- `@mindforge qa [--phase N] [--auto]`
12
+ <objective>
13
+ Automatically identify UI regressions and visual bugs by scanning phase diffs for frontend changes, navigating to affected pages, and performing automated sanity checks.
14
+ </objective>
5
15
 
6
- ## Description
7
- Runs systematic visual QA on UI surfaces changed in the current phase.
8
- Analyzes git diff to find pages, navigates to them, and looks for errors.
16
+ <execution_context>
17
+ .claude/commands/mindforge/qa.md
18
+ </execution_context>
9
19
 
10
- ## Options
11
- - `--phase N`: Target specific phase for reporting (defaults to current).
12
- - `--auto`: Automatically run after successful wave execution if configured.
20
+ <context>
21
+ Scope: Files changed in the target phase.
22
+ Output: QA-REPORT report and automated Playwright regression tests.
23
+ </context>
13
24
 
14
- ## Output
15
- - `QA-REPORT-[N].md`: Found bugs with screenshots.
16
- - `tests/regression/*.test.ts`: Playwright tests to prevent bug recurrence.
25
+ <process>
26
+ 1. **Diff Analysis**: Identify changed pages/routes from git history.
27
+ 2. **Visual Scan**: Navigate to affected URLs using the browser tool.
28
+ 3. **Bug Hunting**: Look for console errors, hydration issues, and visual brokenness.
29
+ 4. **Reporting**: Generate a `QA-REPORT-[N].md` with screenshots of findings.
30
+ 5. **Sanitization**: Draft regression tests in `tests/regression/` to prevent recurrence.
31
+ </process>
@@ -1,135 +1,35 @@
1
- # MindForge — Quick Command
2
- # Usage: /mindforge:quick [--research] [--review] [--full]
3
- # For ad-hoc tasks that don't need full lifecycle management.
4
-
5
- ## When to use quick vs plan-phase
6
- Use QUICK for:
7
- - Bug fixes not tied to a current phase
8
- - Small improvements (< 3 files, < 2 hours)
9
- - Dependency updates
10
- - Documentation corrections
11
- - One-off scripts or utilities
12
-
13
- Use PLAN-PHASE for:
14
- - Feature development
15
- - Anything touching more than 6 files
16
- - Anything requiring research before implementation
17
- - Anything with external dependencies or stakeholder requirements
18
-
19
- ## Step 1 — Task intake
20
-
21
- Ask the user:
22
- "What do you want to do?"
23
-
24
- Listen to the description. If the task sounds larger than "quick" scope
25
- (more than 6 files, architectural change, new feature), say:
26
- "This sounds like more than a quick task. I recommend using /mindforge:plan-phase
27
- instead to ensure it's properly planned and verified. Want to proceed with quick anyway?"
28
-
29
- ## Step 2 Optional research (--research flag or user requests it)
30
-
31
- If `--research` is provided or the task involves unfamiliar libraries:
32
- Spawn a focused research subagent. Give it:
33
- - The task description
34
- - The current tech stack from PROJECT.md
35
- Ask it to: investigate the best approach, identify gotchas, recommend specific
36
- libraries (with versions), and write a brief research note.
37
-
38
- Report research findings to the user before proceeding.
39
-
40
- ## Step 3 — Create a quick plan
41
-
42
- ### Sequential quick task numbering
43
- Determine the next quick task number by scanning `.planning/quick/`:
44
- 1. List directories matching `[0-9][0-9][0-9]-*`
45
- 2. Take the max numeric prefix and add 1 (start at 001 if none exist)
46
- 3. If a directory already exists for the chosen number, require `--force` to proceed
47
-
48
- Create `.planning/quick/[NNN]-[slug]/PLAN.md` where NNN is a sequential number
49
- and slug is a 2-4 word kebab-case description.
50
-
51
- Example: `.planning/quick/001-fix-login-null-check/PLAN.md`
52
-
53
- Use the standard XML plan format:
54
- ```xml
55
- <task type="quick">
56
- <n>[task name]</n>
57
- <persona>[appropriate persona]</persona>
58
- <files>[files to touch]</files>
59
- <context>[relevant context]</context>
60
- <action>[implementation instructions]</action>
61
- <verify>[verification command]</verify>
62
- <done>[definition of done]</done>
63
- </task>
64
- ```
65
-
66
- Show the plan to the user. Wait for approval before executing.
67
-
68
- ## Step 4 — Execute the quick plan
69
-
70
- ### Security auto-trigger (mandatory)
71
- Before execution, scan the task description and files for security keywords:
72
- auth, authentication, login, password, token, JWT, session, payment, PII, upload,
73
- credential, secret, key.
74
-
75
- If any keyword matches: load `security-review/SKILL.md` and activate
76
- `security-reviewer.md` persona for the implementation. This is required even
77
- without the `--full` flag.
78
-
79
- 1. Load persona from `.mindforge/personas/`
80
- 2. Load any relevant skills based on task keywords
81
- 3. Execute the plan
82
- 4. Run `<verify>` — must pass before committing
83
- 5. Commit: `[type](quick/[NNN]): [task name]`
84
- 6. Write `.planning/quick/[NNN]-[slug]/SUMMARY.md`
85
-
86
- ### STATE.md update policy
87
- Quick tasks do not change phase status. If there is no active phase, note the
88
- quick task completion in STATE.md under "Last completed task".
89
-
90
- ## Step 5 — Optional review (--review flag)
91
-
92
- If `--review` is provided:
93
- Activate `code-quality.md` skill on the diff.
94
- Report any issues before committing.
95
- If BLOCKING issues found: fix before commit.
96
-
97
- ## Step 6 — Optional full mode (--full flag)
98
-
99
- If `--full` is provided, additionally:
100
- - Run the project's full test suite (not just task-specific verify)
101
- - Run the type checker and linter
102
- - Activate `security-reviewer.md` if the task touches any security-sensitive code
103
- - Write an AUDIT entry for the quick task
104
-
105
- ## Linting always runs
106
- Regardless of flags, after every quick task execution:
107
- 1. Run the project's linter (from CONVENTIONS.md — check which linter applies)
108
- 2. If lint errors found: fix them before committing.
109
- 3. Linting is not part of `--full` — it is always part of quick.
110
-
111
- ## Flags are composable
112
- ```
113
- /mindforge:quick # minimal — task, plan, execute
114
- /mindforge:quick --research # adds domain research step
115
- /mindforge:quick --review # adds code quality review of diff
116
- /mindforge:quick --full # adds full test suite + linting + security
117
- /mindforge:quick --research --full # all of the above
118
- ```
119
-
120
- ## AUDIT entry for quick tasks
121
- ```json
122
- {
123
- "id": "uuid",
124
- "timestamp": "ISO-8601",
125
- "event": "quick_task_completed",
126
- "agent": "mindforge-orchestrator",
127
- "phase": null,
128
- "session_id": "sess_abc",
129
- "quick_id": "001",
130
- "task_name": "Fix login null check",
131
- "commit_sha": "abc1234",
132
- "files_changed": ["src/auth/login.ts"],
133
- "flags_used": ["--review"]
134
- }
135
- ```
1
+ ---
2
+ name: mindforge:quick
3
+ description: Execute an ad-hoc task without full lifecycle management
4
+ argument-hint: [--research] [--review] [--full]
5
+ allowed-tools:
6
+ - run_command
7
+ - view_file
8
+ - write_to_file
9
+ - list_dir
10
+ ---
11
+
12
+ <objective>
13
+ Provide a lightweight workflow for small bug fixes, documentation updates, or dependency maintenance that bypasses the formal phase planning while maintaining strict security and quality guardrails.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/quick.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Scope: < 6 files, < 2 hours of work.
22
+ Storage: .planning/quick/[NNN]-[slug]/
23
+ Flags: --research (add pre-analysis), --review (add quality check), --full (add comprehensive tests/linting).
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Intake**: Verify the task fits within the "Quick" scope. Redirect to `/mindforge:plan-phase` if too large.
28
+ 2. **Research (Optional)**: If `--research` is set, spawn a subagent to investigate the approach and write a research note.
29
+ 3. **Plan**: Generate an XML-based task plan in the `.planning/quick/` directory with a sequential ID.
30
+ 4. **Security Check**: Automatically load `security-review/SKILL.md` if the task touches sensitive keywords (Auth, PII, Secrets).
31
+ 5. **Execute**: Implement the plan, run the specified verify command, and fix any lint errors.
32
+ 6. **Review (Optional)**: If `--review` is set, perform a code quality audit on the diff.
33
+ 7. **Finalize**: Commit the changes with the `quick/[NNN]` prefix and write a `SUMMARY.md`.
34
+ 8. **Audit**: Log `quick_task_completed` with file counts and flag usage.
35
+ </process>
@@ -1,10 +1,29 @@
1
- # MindForge — Release Command
2
- # Usage: /mindforge:release [--version X.Y.Z] [--dry-run] [--checklist-only]
3
- # ⚠️ This command is for releasing the MindForge framework itself.
4
- # For releasing your project phases, use /mindforge:ship instead.
1
+ ---
2
+ name: mindforge:release
3
+ description: Execute the MindForge framework release pipeline
4
+ argument-hint: [--version X.Y.Z] [--dry-run]
5
+ allowed-tools:
6
+ - run_command
7
+ - view_file
8
+ - write_to_file
9
+ ---
5
10
 
6
- ## Purpose
7
- Execute the complete MindForge v1.0.0 (or any version) release pipeline.
8
- Intended for the MindForge core team.
11
+ <objective>
12
+ Coordinate the release of the MindForge framework itself (Core Team only), ensuring all readiness checks pass, changelogs are updated, and packages are correctly versioned.
13
+ </objective>
9
14
 
10
- ## Gate: Production Readiness Checklist
15
+ <execution_context>
16
+ .claude/commands/mindforge/release.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Scope: Framework Core (not project phases).
21
+ Gates: Production readiness checklist.
22
+ </context>
23
+
24
+ <process>
25
+ 1. **Checklist Audit**: Verify all framework readiness items (tests, docs, security) are marked [x].
26
+ 2. **Dry Run**: Preview the release artifacts and target version.
27
+ 3. **Pipeline Execution**: Bump versions, update the main CHANGELOG.md, and tag the release in git.
28
+ 4. **Finalize**: Trigger the publication to the official registry.
29
+ </process>
@@ -1,14 +1,29 @@
1
- # /mindforge:remember
1
+ ---
2
+ name: mindforge:remember
3
+ description: Manage long-term memory and knowledge graph entries
4
+ argument-hint: [--add "content"] [--search "query"] [--promote "id"]
5
+ allowed-tools:
6
+ - view_file
7
+ - write_to_file
8
+ - run_command
9
+ ---
2
10
 
3
- Manage the MindForge long-term memory (knowledge graph).
11
+ <objective>
12
+ Provide a manual interface for steering the agent's long-term memory, allowing users to add specific project knowledge, search the existing graph, and promote local learnings to global availability.
13
+ </objective>
4
14
 
5
- ## Usage
15
+ <execution_context>
16
+ .claude/commands/mindforge/remember.md
17
+ </execution_context>
6
18
 
7
- - `/mindforge:remember --add "Your knowledge content"`: Manually add an entry.
8
- - `/mindforge:remember --search "your query"`: Search the knowledge base.
9
- - `/mindforge:remember --stats`: View memory statistics.
10
- - `/mindforge:remember --promote "id"`: Promote a project entry to global memory.
19
+ <context>
20
+ Storage: MindForge Knowledge Graph.
21
+ Visibility: Project-local vs. Global memory.
22
+ </context>
11
23
 
12
- ## Description
13
-
14
- MindForge capture, stores, and retrieves knowledge (architectural decisions, code patterns, team preferences) across all sessions and projects. This command allows for manual management and querying of this data.
24
+ <process>
25
+ 1. **Add**: Capture one-off decisions or constraints manually into the memory store.
26
+ 2. **Search**: Query the knowledge base across sessions to retrieve previously captured patterns.
27
+ 3. **Promote**: Elevate a specific project-level finding to "Global" status for use in future repositories.
28
+ 4. **Analyze**: Provide stats on memory usage and activation frequency.
29
+ </process>
@@ -1,11 +1,29 @@
1
- # MindForge v2 — Research Command
2
- # Usage: /mindforge:research [topic] [--type general|library|codebase|compliance] [--url URL]
1
+ ---
2
+ name: mindforge:research
3
+ description: Perform deep technical or architectural research
4
+ argument-hint: [topic] [--type library|codebase|compliance]
5
+ allowed-tools:
6
+ - run_command
7
+ - read_url_content
8
+ - view_file
9
+ ---
3
10
 
4
- ## Purpose
5
- Deep research using Gemini 1.5 Pro's 1-million-token context window.
6
- Incorporate local code context and remote documentation simultaneously.
11
+ <objective>
12
+ Leverage large-context models to ingest massive amounts of external documentation and local code simultaneously to answer complex architectural or compliance questions.
13
+ </objective>
7
14
 
8
- ## Capabilities
9
- - Ingest full library documentation.
10
- - Codebase-wide architectural analysis.
11
- - Regulatory compliance audits.
15
+ <execution_context>
16
+ .claude/commands/mindforge/research.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Engine: Gemini 2.0 Pro (high token limit required).
21
+ Analysis Areas: Library integration, codebase-wide patterns, compliance audits.
22
+ </context>
23
+
24
+ <process>
25
+ 1. **Define Scope**: Identify target documentation URLs and local source paths.
26
+ 2. **Ingest**: Read all relevant sources into the analysis model's context.
27
+ 3. **Synthesize**: Answer the user's research topic with citations to specific docs and files.
28
+ 4. **Document**: Capture key findings for possible promotion to a skill via `/mindforge:learn`.
29
+ </process>
@@ -1,26 +1,32 @@
1
- # MindForge — Retrospective Command
2
- # Usage: /mindforge:retrospective [phase N|milestone M] [--template agile|4ls|starfish]
1
+ ---
2
+ name: mindforge:retrospective
3
+ description: Facilitate a structured retrospective with metrics and insights
4
+ argument-hint: [phase N|milestone M] [--template agile|4ls|starfish]
5
+ allowed-tools:
6
+ - view_file
7
+ - write_to_file
8
+ - list_dir
9
+ ---
3
10
 
4
- Facilitate a structured retrospective with objective metrics + qualitative insights.
11
+ <objective>
12
+ Guide the project team through a structured reflection session at the end of a phase or milestone, combining quantitative delivery data with qualitative feedback to drive process improvement.
13
+ </objective>
5
14
 
6
- ## Workflow
7
- 1. Gather quantitative signals (tasks, verify pass rate, findings, UAT, approvals).
8
- 2. Run structured discussion by template.
9
- 3. Write retrospective artifact in `.planning/phases/...` or `.planning/milestones/...`.
10
- 4. Create follow-up tasks/tickets for action items.
11
- 5. Update metrics with retrospective-completed event.
15
+ <execution_context>
16
+ .claude/commands/mindforge/retrospective.md
17
+ </execution_context>
12
18
 
13
- ## Step 5 — Apply learnings to MINDFORGE.md
14
- Ask explicitly:
15
- `Based on this retrospective, should we update MINDFORGE.md to improve future phases?`
19
+ <context>
20
+ Target: Specified Phase or Milestone.
21
+ Data: Task stats, pass rates, UAT results, security findings.
22
+ Knowledge: MINDFORGE.md (for potential config updates).
23
+ </objective>
16
24
 
17
- If yes:
18
- - propose exact config changes
19
- - apply only after confirmation
20
- - commit with clear rationale
21
-
22
- Common mappings:
23
- - vague plans -> lower discuss threshold / enable auto-discuss
24
- - low verify pass rate -> lower max tasks per phase
25
- - rising security findings -> force-load `security-review,data-privacy`
26
- - frequent compaction pressure -> lower compaction threshold
25
+ <process>
26
+ 1. **Signal Gathering**: Collect quantitative performance data for the target period.
27
+ 2. **Facilitate Discussion**: Run the interview based on the selected template (Agile, 4Ls, etc.).
28
+ 3. **Document**: Write the retrospective artifact in the phase or milestone directory.
29
+ 4. **Action Items**: Create follow-up tasks for process improvements.
30
+ 5. **Config Update**: Prompt the user to update `MINDFORGE.md` based on learnings (e.g., adjusting task limits).
31
+ 6. **Log**: Record `retrospective_completed` in metrics.
32
+ </process>
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: mindforge:review-backlog
3
+ description: Review and promote backlog items to the active phase sequence
4
+ argument-hint: [optional filters]
5
+ allowed-tools:
6
+ - view_file
7
+ - write_to_file
8
+ - replace_file_content
9
+ - multi_replace_file_content
10
+ ---
11
+
12
+ <objective>
13
+ Review items currently parked in the ROADMAP.md backlog and facilitate their promotion to the active development plan.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/review-backlog.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Target File: ROADMAP.md, STATE.md
22
+ State: Resolves the next available phase number from STATE.md for promotion.
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Read ROADMAP.md**: Extract all items under the `## Backlog` section (999.x).
27
+ 2. **Present to User**: List the backlog items and ask which one(s) should be promoted.
28
+ 3. **Determine Promotion Slot**: Read STATE.md to find the next sequential phase number.
29
+ 4. **Promote Item**:
30
+ - Move the item from the backlog to the active milestone list.
31
+ - Renumber the item to the next available phase number.
32
+ 5. **Update STATE.md**: Add the new phase to STATE.md in `unplanned` or `planned` status as appropriate.
33
+ 6. **Confirm**: Summarize the promotion to the user.
34
+ </process>