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,29 @@
1
- # /mindforge:new-runtime
1
+ ---
2
+ name: mindforge:new-runtime
3
+ description: Scaffold support for a new AI coding runtime
4
+ argument-hint: [name]
5
+ allowed-tools:
6
+ - run_command
7
+ - list_dir
8
+ - write_to_file
9
+ ---
2
10
 
3
- Scaffold support for a new AI coding runtime.
11
+ <objective>
12
+ Extend MindForge to support additional AI environments (Zed, Cursor, Void, etc.) by scaffolding the necessary instruction files and updating the global installer configuration.
13
+ </objective>
4
14
 
5
- ## Usage
15
+ <execution_context>
16
+ .claude/commands/mindforge/new-runtime.md
17
+ </execution_context>
6
18
 
7
- /mindforge:new-runtime [name]
19
+ <context>
20
+ Config: bin/installer-core.js
21
+ Targets: Global and Local scopes.
22
+ </context>
8
23
 
9
- ## Action
10
-
11
- 1. Identify target runtime's entry file format (e.g. .myrules, instructions.md)
12
- 2. Scaffold the required directories in both global and local scopes
13
- 3. Add a new entry to the RUNTIMES configuration in `bin/installer-core.js`
14
- 4. Generate first-run instructions for the new runtime
15
-
16
- ## Examples
17
-
18
- /mindforge:new-runtime void-editor
19
- /mindforge:new-runtime zed-ai
24
+ <process>
25
+ 1. **Identify**: Determine the specific instruction file format for the target runtime.
26
+ 2. **Scaffold**: Create the directory structure and placeholder documentation for the new integration.
27
+ 3. **Configure**: Update the central `installer-core.js` mapping to include the new runtime identifier.
28
+ 4. **Onboard**: Generate customized first-run instructions for the user to enable the runtime immediately.
29
+ </process>
@@ -1,105 +1,34 @@
1
- # MindForge — Next Command
2
- # Usage: /mindforge:next
3
-
4
- Auto-detect the current project state and execute the appropriate next step.
5
- The user does not need to know the workflow. MindForge figures it out.
6
-
7
- ## HANDOFF.json priority rule
8
- Check HANDOFF.json BEFORE running the decision tree.
9
-
10
- If HANDOFF.json exists AND `updated_at` is within 48 hours AND `next_task` is not null:
11
- present the HANDOFF state first. Only run the decision tree if the user declines
12
- or the HANDOFF.json is stale.
13
-
14
- ## State detection logic
15
-
16
- Read STATE.md and HANDOFF.json. Then follow this decision tree:
17
-
18
- ### Decision tree
19
-
20
- ```
21
- Does .planning/PROJECT.md exist AND have content?
22
- NO → Run /mindforge:init-project
23
- YES → Continue
24
-
25
- Does .planning/ROADMAP.md exist AND have phases defined?
26
- NO → Tell user: "Project is initialised but no phases are defined yet.
27
- Describe what Phase 1 should accomplish and I'll plan it."
28
- Then run /mindforge:plan-phase 1
29
- YESContinue
30
-
31
- Read the phase status from STATE.md.
32
-
33
- Does the current phase have plans? (check .planning/phases/[N]/PLAN-[N]-*.md)
34
- NO → Run /mindforge:plan-phase [N]
35
- YES → Continue
36
-
37
- Do SUMMARY files exist for all plans in the current phase?
38
- NO → Run /mindforge:execute-phase [N]
39
- YES → Continue
40
-
41
- Does VERIFICATION.md exist for the current phase?
42
- NO → Run /mindforge:verify-phase [N] (automated part)
43
- YES → Continue
44
-
45
- Does UAT.md exist and show all tests passing?
46
- NO → Run /mindforge:verify-phase [N] (UAT part)
47
- YES → Continue
48
-
49
- Is this phase marked as shipped in STATE.md?
50
- NO → Run /mindforge:ship [N]
51
- YES → Continue
52
-
53
- Are there more phases in ROADMAP.md?
54
- YES → Increment phase number. Run /mindforge:plan-phase [N+1]
55
- NO → Tell user: "All phases complete! Run /mindforge:ship [N] for the final release."
56
- ```
57
-
58
- ## Partial phase execution handling
59
- In the decision tree step "Do SUMMARY files exist for all plans?":
60
-
61
- Do not treat this as binary. Check individually:
62
-
63
- ```
64
- PLAN-[N]-01.md exists? SUMMARY-[N]-01.md exists?
65
- PLAN-[N]-02.md exists? SUMMARY-[N]-02.md exists?
66
- PLAN-[N]-03.md exists? SUMMARY-[N]-03.md exists?
67
- ```
68
-
69
- If some SUMMARY files exist and some don't: this is a partially-executed phase.
70
- Report: "Phase [N] is partially executed: plans [X, Y] are done, [Z] is not."
71
- Ask: "Resume execution from Plan [Z]? (yes/no)"
72
- Do not restart the entire phase — resume from the first missing SUMMARY.
73
-
74
- ## Before auto-executing: always confirm
75
- Before running any command automatically, tell the user:
76
-
77
- ```
78
- MindForge next step detected:
79
- Current state : [description of current state]
80
- Next action : [what will be run]
81
- Command : /mindforge:[command] [args]
82
-
83
- Run this now? (yes/no/different)
84
- ```
85
-
86
- If user says "different": ask what they want to do instead.
87
- If user says "yes": proceed with the detected command.
88
-
89
- ## Handling HANDOFF.json (session restart)
90
- If HANDOFF.json has a `next_task` field from a previous session:
91
- Present it prominently:
92
-
93
- ```
94
- Previous session found:
95
- Saved at : [updated_at from HANDOFF.json]
96
- Left off : [last_completed_task]
97
- Next task : [next_task]
98
-
99
- Options:
100
- 1. Continue from where we left off
101
- 2. Check current state and determine next step fresh
102
- 3. Tell me what you want to do
103
-
104
- Choose 1, 2, or 3:
105
- ```
1
+ ---
2
+ name: mindforge:next
3
+ description: Auto-detect the current state and execute the appropriate next step
4
+ argument-hint: none
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ ---
9
+
10
+ <objective>
11
+ Simplify the developer workflow by automatically determining the most logical next action based on the current project state, guided by `STATE.md` and `HANDOFF.json`.
12
+ </objective>
13
+
14
+ <execution_context>
15
+ .claude/commands/mindforge/next.md
16
+ </execution_context>
17
+
18
+ <context>
19
+ Priority: `HANDOFF.json` is used for session continuity if updated within 48 hours.
20
+ State Awareness: Detects missing initialisation, missing plans, partial execution, or pending verification/shipping.
21
+ </context>
22
+
23
+ <process>
24
+ 1. **Session Check**: Read `HANDOFF.json`. If a fresh `next_task` exists, offer to resume.
25
+ 2. **State Analysis**: Run the decision tree against `STATE.md`:
26
+ - Not initialised? `init-project`.
27
+ - No phases? `plan-phase 1`.
28
+ - Plan missing? → `plan-phase [N]`.
29
+ - Partial execution? Offer to resume `execute-phase [N]`.
30
+ - Pending verification? → `verify-phase [N]`.
31
+ - Pending shipping? `ship [N]`.
32
+ 3. **Handling Partially Executed Phases**: Identify specifically which plans lack SUMMARY files and offer targeted resumption.
33
+ 4. **Confirm**: Present the detected next step and command to the user for confirmation before acting.
34
+ </process>
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: mindforge:note
3
+ description: Capture an idea, task, or issue that surfaces during a session as a quick note for later
4
+ argument-hint: <text> [list|promote N]
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ - write_to_file
9
+ - multi_replace_file_content
10
+ ---
11
+
12
+ <objective>
13
+ Provide a zero-friction way to capture ephemeral thoughts, bugs, or todos during an active session without interrupting the current flow, with the ability to later promote them to official tasks.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/note.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Arguments: $ARGUMENTS (The note text or subcommand like `list` or `promote`)
22
+ Storage: .planning/notes/
23
+ Target for Promotion: ROADMAP.md or STATE.md
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Route Subcommand**:
28
+ - If `list`: Read all files in `.planning/notes/` and present them.
29
+ - If `promote <N>`: Read note N, add it to current phase/milestone in STATE.md or ROADMAP.md, then move the note to `.planning/notes/archived/`.
30
+ - Else (default): Capture the text.
31
+ 2. **Capture Flow**:
32
+ - Ensure `.planning/notes/` directory.
33
+ - Create a file `note_[timestamp].md` with the content.
34
+ 3. **Confirm**: Quick confirmation of capture or promotion result.
35
+ </process>
@@ -1,125 +1,34 @@
1
- Plan a project phase. Usage: /mindforge:plan-phase [N]
2
-
3
- ## Pre-check
4
- If N is not given, read STATE.md for the current phase number and increment by 1.
5
- Read PROJECT.md, REQUIREMENTS.md, ARCHITECTURE.md, and STATE.md before proceeding.
6
-
7
- ## Pre-read (before any questions or planning)
8
-
9
- Read these files in order:
10
- 1. `.planning/PROJECT.md`
11
- 2. `.planning/REQUIREMENTS.md`
12
- 3. `.planning/ARCHITECTURE.md`
13
- 4. `.planning/STATE.md`
14
- 5. `.planning/phases/phase-[N]/CONTEXT.md` (if it exists)
15
-
16
- ### If CONTEXT.md exists for phase [N]:
17
- This means `/mindforge:discuss-phase [N]` was already run.
18
- The user's implementation decisions are already captured.
19
- DO NOT re-ask questions that CONTEXT.md already answers.
20
- Read CONTEXT.md completely before asking any clarifying questions.
21
- Report: "I've read the phase discussion context. [N] decisions were captured.
22
- Planning will follow these decisions."
23
-
24
- ### If CONTEXT.md has open questions:
25
- Read the "Open questions" section in CONTEXT.md.
26
- Present unresolved questions to the user NOW, before planning begins.
27
- Do not create plans that assume answers to open questions without confirming first.
28
-
29
- ### If CONTEXT.md does NOT exist for phase [N]:
30
- Proceed normally with the discussion → planning flow.
31
-
32
- ## Step 1 Discuss phase scope
33
- Ask:
34
- 1. "Describe what Phase [N] should accomplish. 2-3 sentences."
35
- 2. "Have you already made any implementation decisions for this phase?
36
- (libraries, patterns, approaches) If yes, list them."
37
- 3. "Are there any constraints I should know about?
38
- (deadlines, dependencies on other teams, tech limitations)"
39
-
40
- Write answers to `.planning/phases/phase-[N]/CONTEXT.md`.
41
-
42
- If `.planning/phases/phase-[N]/CONTEXT.md` already exists:
43
- 1. Read it first.
44
- 2. If it has "Open questions", ask the user to resolve them before planning.
45
- 3. Update CONTEXT.md with the answers and mark those questions as resolved.
46
-
47
- ### If CONTEXT.md exists — skip already-answered questions
48
- Only ask about areas NOT covered in CONTEXT.md.
49
- Example: if CONTEXT.md captures the layout decision, do not ask "What layout do you want?"
50
- Respect the prior discussion. Build on it. Do not repeat it.
51
-
52
- ## Step 2 — Domain research (spawn subagent)
53
- Spawn a research subagent with this context only:
54
- - The tech stack from PROJECT.md
55
- - The phase scope from CONTEXT.md
56
- - CONVENTIONS.md
57
-
58
- Instruct it to investigate:
59
- 1. Best available libraries for this phase's requirements (with version numbers)
60
- 2. Common pitfalls and anti-patterns for this tech domain
61
- 3. Relevant architectural patterns (with tradeoffs)
62
- 4. Any known security considerations specific to this domain
63
-
64
- Write findings to `.planning/phases/phase-[N]/RESEARCH.md`.
65
-
66
- ## Step 3 — Create atomic task plans
67
- Based on CONTEXT.md and RESEARCH.md, create 3-6 PLAN files.
68
- Each plan must be completable in a single fresh context window.
69
- Each plan targets specific files — no plan should touch more than 6 files.
70
-
71
- File naming: `.planning/phases/phase-[N]/PLAN-[N]-[NN].md`
72
- Example: `.planning/phases/1/PLAN-1-01.md`
73
-
74
- Each plan uses this XML format:
75
-
76
- ```xml
77
- <task type="auto">
78
- <n>Short descriptive task name</n>
79
- <persona>developer</persona>
80
- <phase>[N]</phase>
81
- <plan>[NN]</plan>
82
- <dependencies>List any PLAN files that must complete before this one, or "none"</dependencies>
83
- <files>
84
- src/exact/file/path.ts
85
- src/another/file.ts
86
- </files>
87
- <context>
88
- Relevant decisions from ARCHITECTURE.md:
89
- - [decision]
90
- Skills to load before starting:
91
- - [skill name if applicable, or "none"]
92
- </context>
93
- <action>
94
- Precise implementation instructions.
95
- Include exact library names and versions.
96
- Include the approach, not just the goal.
97
- Include specific anti-patterns to avoid.
98
- </action>
99
- <verify>
100
- [Exact runnable command or check]
101
- Example: curl -X POST localhost:3000/api/auth/login -d '{"email":"test@test.com","password":"test"}' | jq .status
102
- Must produce a deterministic pass/fail result.
103
- </verify>
104
- <done>One sentence definition of done.</done>
105
- </task>
106
- ```
107
-
108
- ## Step 4 — Validate plans
109
- Check every plan against REQUIREMENTS.md:
110
- - Does this plan implement anything out of scope? If yes: revise.
111
- - Does this plan contradict ARCHITECTURE.md? If yes: create an ADR first.
112
- - Is the `<verify>` step actually runnable? If no: rewrite it.
113
-
114
- ## Step 5 — Update state and confirm
115
- Update STATE.md: current phase = N, status = "Phase N planned, ready to execute".
116
-
117
- Tell the user:
118
- "✅ Phase [N] planned. [X] task plans created.
119
-
120
- Plans:
121
- PLAN-[N]-01: [task name]
122
- PLAN-[N]-02: [task name]
123
- ...
124
-
125
- Run /mindforge:execute-phase [N] to begin execution."
1
+ ---
2
+ name: mindforge:plan-phase
3
+ description: Plan a project phase by generating atomic task plans
4
+ argument-hint: [N]
5
+ allowed-tools:
6
+ - view_file
7
+ - write_to_file
8
+ - list_dir
9
+ ---
10
+
11
+ <objective>
12
+ Generate a series of atomic, verifiable task plans for a specific project phase, incorporating domain research and captured implementation decisions.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ .claude/commands/mindforge/plan-phase.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Arguments: $ARGUMENTS (Phase N)
21
+ Prerequisites: PROJECT.md, REQUIREMENTS.md, ARCHITECTURE.md, STATE.md, and optionally CONTEXT.md.
22
+ Output: .planning/phases/phase-[N]/PLAN-[N]-[NN].md
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Pre-read**: Resolve phase number and read all foundational context files. If `CONTEXT.md` exists, respect prior decisions.
27
+ 2. **Domain Research**: Investigate best libraries, pitfalls, and patterns. Save to `RESEARCH.md`.
28
+ 3. **Task Planning**: Create 3-6 atomic PLAN files using the MindForge XML task format. Each plan must be:
29
+ - Completatable in one window.
30
+ - Targeted at <6 files.
31
+ - Verifiable via a deterministic command.
32
+ 4. **Validation**: Cross-reference plans against requirements and architecture. Ensure `<verify>` steps are runnable.
33
+ 5. **Finalize**: Update `STATE.md` and display the list of generated plans to the user.
34
+ </process>
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: mindforge:plant-seed
3
+ description: Capture speculative ideas with triggers that surface automatically when relevant
4
+ argument-hint: <idea>
5
+ allowed-tools:
6
+ - list_dir
7
+ - write_to_file
8
+ - view_file
9
+ ---
10
+
11
+ <objective>
12
+ Capture speculative or long-term ideas (seeds) and store them in a way that they can be automatically resurfaced when a relevant future milestone or phase is started.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ .claude/commands/mindforge/plant-seed.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Arguments: $ARGUMENTS (The speculative idea)
21
+ Storage: .planning/seeds/
22
+ Trigger mechanism: Files in this directory are checked during `init-project` or `milestone` creation.
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Ensure storage**: Verify `.planning/seeds/` exists; create if not.
27
+ 2. **Generate filename**: Create a slugified filename based on the idea or a timestamp.
28
+ 3. **Write seed**: Create a markdown file with the idea, any inferred triggers (tags/keywords), and the current timestamp.
29
+ 4. **Link to system**: Add a note to the master seed index if one exists.
30
+ 5. **Confirm**: Let the user know the seed has been planted and what might trigger its resurrection.
31
+ </process>
@@ -1,40 +1,34 @@
1
- # MindForge — Plugins Command
2
- # Usage: /mindforge:plugins [list|install|uninstall|info|validate|create] [name]
1
+ ---
2
+ name: mindforge:plugins
3
+ description: Manage MindForge plugins and their permission scopes
4
+ argument-hint: [list|install|uninstall|info|validate|create]
5
+ allowed-tools:
6
+ - run_command
7
+ - list_dir
8
+ - view_file
9
+ - write_to_file
10
+ ---
3
11
 
4
- ## list
5
- Read PLUGINS-MANIFEST.md. Display installed plugins with version and permissions.
6
- If no plugins: "No plugins installed. Find plugins: npm search mindforge-plugin"
12
+ <objective>
13
+ Extend MindForge core functionality through a secure plugin architecture, managing the lifecycle and security boundaries of installed extensions.
14
+ </objective>
7
15
 
8
- ## install [plugin-name]
9
- Full installation protocol per plugin-loader.md:
10
- 1. Resolve package: `mindforge-plugin-[name]` convention
11
- 2. Download to chmod 700 temp directory
12
- 3. Validate plugin.json manifest
13
- 4. Check plugin_api_version compatibility (1.0.0 required)
14
- 5. Run injection guard on ALL .md files in the plugin
15
- 6. Run Level 1 + 2 skill validation on all SKILL.md files
16
- 7. Display permission list for user approval:
17
- ```
18
- Plugin: mindforge-plugin-jira-advanced v1.0.0
19
- Requests these permissions:
20
- • read_audit_log: read AUDIT.jsonl ✅ (safe)
21
- • write_audit_log: append to AUDIT.jsonl ⚠️
22
- • network_access: make HTTP requests ⚠️
23
- Install? (yes/no)
24
- ```
25
- 8. Install components (commands, skills, personas, hooks)
26
- 9. Add to PLUGINS-MANIFEST.md
27
- 10. Write AUDIT entry
16
+ <execution_context>
17
+ .claude/commands/mindforge/plugins.md
18
+ </execution_context>
28
19
 
29
- ## uninstall [plugin-name]
30
- Remove all installed components. Update PLUGINS-MANIFEST.md.
31
- Confirm: "This will remove [N] commands, [N] skills from this plugin."
20
+ <context>
21
+ Manifest: PLUGINS-MANIFEST.md
22
+ Loader: plugin-loader.md
23
+ Security: Level 1+2 skill validation, injection guards, and explicit permission prompts.
24
+ </context>
32
25
 
33
- ## info [plugin-name]
34
- Display: version, description, author, permissions, commands, skills, personas, hooks.
35
-
36
- ## validate
37
- Validate all installed plugins for compatibility, injection safety, permission scope.
38
-
39
- ## create [plugin-name]
40
- Generate a plugin scaffold:
26
+ <process>
27
+ 1. **Route Action**:
28
+ - `list`: Show installed plugins and versions.
29
+ - `install`: Execute the full installation protocol (download, validate manifest, run security guards, prompt for permissions).
30
+ - `uninstall`: Cleanly remove all components and update the manifest.
31
+ - `validate`: Audit all installed plugins for injection safety and permission compliance.
32
+ 2. **Permission Management**: Display a clear list of requested permissions (network, registry, audit write) and await user approval.
33
+ 3. **Audit**: Log all plugin installations and removals.
34
+ </process>
@@ -1,41 +1,32 @@
1
- # MindForge — PR Review Command
2
- # Usage: /mindforge:pr-review [--diff path] [--sha base..head] [--output github|json|markdown]
3
-
4
- Run the AI PR review engine on a pull request diff.
5
-
6
- Steps:
7
- 1. Determine diff source:
8
- - `--diff path`: read diff from file
9
- - `--sha base..head`: run `git diff base..head`
10
- - Default: `git diff HEAD~1` (last commit) or `git diff --staged` (staged changes)
11
-
12
- 2. Load review context (per ai-reviewer.md):
13
- - PROJECT.md, ARCHITECTURE.md, CONVENTIONS.md, SECURITY.md
14
- - Current phase's CONTEXT.md (if in an active phase)
15
- - Any active ADRs relevant to changed files
16
-
17
- 3. Detect change type and select review template:
18
- - Auth/security changes → Security-focused review template
19
- - Database migrations → Database migration review template
20
- - API changes API breaking change review template
21
- - Default Standard review template
22
-
23
- 4. Check API availability:
24
- - ANTHROPIC_API_KEY set? If not: warn and skip AI review
25
- - Check daily review limit (from ai-reviewer.md)
26
- - Check cache: has this SHA been reviewed in the last 60 minutes?
27
-
28
- 5. Call Claude API (per ai-reviewer.md buildSystemPrompt + buildReviewPrompt)
29
- - Handle errors gracefully API unavailable is NOT a build failure
30
- - Timeout: 60 seconds
31
-
32
- 6. Format output per --output flag:
33
- - github: GitHub-flavoured markdown for PR comment
34
- - json: structured JSON with findings array
35
- - markdown: standard markdown
36
-
37
- 7. Write to output:
38
- - If in CI: write to /tmp/mindforge-review.md (read by GitHub Actions step)
39
- - If interactive: display to user
40
-
41
- 8. Write AUDIT entry
1
+ ---
2
+ name: mindforge:pr-review
3
+ description: Run the AI PR review engine on a pull request diff
4
+ argument-hint: [--diff path] [--sha base..head] [--output github|json|markdown]
5
+ allowed-tools:
6
+ - run_command
7
+ - view_file
8
+ - write_to_file
9
+ ---
10
+
11
+ <objective>
12
+ Automate the review of pull request diffs using an AI engine, providing structured feedback in various formats (GitHub, JSON, Markdown) tailored to the type of changes made.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ .claude/commands/mindforge/pr-review.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Source: Diff file, SHA range, or staged changes.
21
+ Knowledge: PROJECT.md, ARCHITECTURE.md, CONVENTIONS.md, SECURITY.md.
22
+ Environment: Requires ANTHROPIC_API_KEY for external model calls.
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Determine Source**: Extract the diff from the provided path, SHA range, or git state.
27
+ 2. **Load Context**: Gather project-level documentation and relevant ADRs.
28
+ 3. **Select Template**: Detect change type (Auth, DB, API) and select the corresponding review template.
29
+ 4. **Execute Review**: Invoke the Claude API with the built system/review prompts.
30
+ 5. **Format Output**: Generate the report according to the `--output` flag (GitHub-flavoured MD, JSON, or standard MD).
31
+ 6. **Finalize**: Write to the specified destination (CI /tmp/ or interactive console) and log the event.
32
+ </process>
@@ -1,23 +1,30 @@
1
- # MindForge — Profile Team Command
2
- # Usage: /mindforge:profile-team [--refresh] [--developer email] [--questionnaire]
1
+ ---
2
+ name: mindforge:profile-team
3
+ description: Generate and maintain team/developer profiles for response personalization
4
+ argument-hint: [--refresh] [--developer email] [--questionnaire]
5
+ allowed-tools:
6
+ - view_file
7
+ - write_to_file
8
+ - run_command
9
+ ---
3
10
 
4
- Generate and maintain team/developer profiles for response personalization.
11
+ <objective>
12
+ Enhance agent collaboration by building profiles of individual developers and the team as a whole, tailoring guidance and responses based on observed patterns and declared preferences.
13
+ </objective>
5
14
 
6
- ## Data sources
7
- 1. Declared questionnaire preferences
8
- 2. Inferred patterns from AUDIT + git history + metrics
9
- 3. Defaults from org conventions
15
+ <execution_context>
16
+ .claude/commands/mindforge/profile-team.md
17
+ </execution_context>
10
18
 
11
- ## Outputs
12
- - `.mindforge/team/TEAM-PROFILE.md`
13
- - `.mindforge/team/profiles/PROFILE-[dev-id].md`
19
+ <context>
20
+ Sources: AUDIT logs, git history, metrics, and interactive questionnaires.
21
+ Storage: .mindforge/team/profiles/
22
+ </context>
14
23
 
15
- ## Modes
16
- - `--refresh`: inference-only update
17
- - `--developer`: target one developer profile
18
- - `--questionnaire`: prompt preference questions before writing
19
-
20
- ## AUDIT
21
- ```json
22
- { "event": "team_profile_updated", "developers_profiled": 1, "method": "inferred" }
23
- ```
24
+ <process>
25
+ 1. **Data Harvest**: Analyze recent commits and audit logs to infer developer style and expertise.
26
+ 2. **Preference Intake**: If `--questionnaire` is set, ask preference questions about verbosity, explanation depth, and review style.
27
+ 3. **Synthesis**: Update the `.mindforge/team/TEAM-PROFILE.md` and individual developer profile files.
28
+ 4. **Refresh**: Run periodic updates to account for shifting team dynamics or new members.
29
+ 5. **Audit**: Log `team_profile_updated` with developer counts.
30
+ </process>