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.
- package/.agent/mindforge/add-backlog.md +32 -0
- package/.agent/mindforge/agent.md +31 -0
- package/.agent/mindforge/do.md +31 -0
- package/.agent/mindforge/note.md +35 -0
- package/.agent/mindforge/plant-seed.md +31 -0
- package/.agent/mindforge/review-backlog.md +34 -0
- package/.agent/mindforge/session-report.md +39 -0
- package/.agent/mindforge/ui-phase.md +34 -0
- package/.agent/mindforge/ui-review.md +36 -0
- package/.agent/mindforge/validate-phase.md +31 -0
- package/.agent/mindforge/workstreams.md +35 -0
- package/.claude/commands/mindforge/add-backlog.md +32 -0
- package/.claude/commands/mindforge/agent.md +31 -0
- package/.claude/commands/mindforge/approve.md +27 -15
- package/.claude/commands/mindforge/audit.md +30 -26
- package/.claude/commands/mindforge/auto.md +29 -18
- package/.claude/commands/mindforge/benchmark.md +26 -29
- package/.claude/commands/mindforge/browse.md +24 -22
- package/.claude/commands/mindforge/complete-milestone.md +28 -14
- package/.claude/commands/mindforge/costs.md +26 -9
- package/.claude/commands/mindforge/cross-review.md +27 -13
- package/.claude/commands/mindforge/dashboard.md +35 -98
- package/.claude/commands/mindforge/debug.md +34 -126
- package/.claude/commands/mindforge/discuss-phase.md +36 -138
- package/.claude/commands/mindforge/do.md +31 -0
- package/.claude/commands/mindforge/execute-phase.md +37 -190
- package/.claude/commands/mindforge/health.md +27 -17
- package/.claude/commands/mindforge/help.md +25 -19
- package/.claude/commands/mindforge/init-org.md +37 -131
- package/.claude/commands/mindforge/init-project.md +40 -155
- package/.claude/commands/mindforge/install-skill.md +32 -15
- package/.claude/commands/mindforge/learn.md +36 -142
- package/.claude/commands/mindforge/map-codebase.md +36 -298
- package/.claude/commands/mindforge/marketplace.md +33 -120
- package/.claude/commands/mindforge/metrics.md +29 -18
- package/.claude/commands/mindforge/migrate.md +33 -40
- package/.claude/commands/mindforge/milestone.md +35 -12
- package/.claude/commands/mindforge/new-runtime.md +25 -15
- package/.claude/commands/mindforge/next.md +34 -105
- package/.claude/commands/mindforge/note.md +35 -0
- package/.claude/commands/mindforge/plan-phase.md +34 -125
- package/.claude/commands/mindforge/plant-seed.md +31 -0
- package/.claude/commands/mindforge/plugins.md +30 -36
- package/.claude/commands/mindforge/pr-review.md +32 -41
- package/.claude/commands/mindforge/profile-team.md +26 -19
- package/.claude/commands/mindforge/publish-skill.md +28 -17
- package/.claude/commands/mindforge/qa.md +27 -12
- package/.claude/commands/mindforge/quick.md +35 -135
- package/.claude/commands/mindforge/release.md +27 -8
- package/.claude/commands/mindforge/remember.md +25 -10
- package/.claude/commands/mindforge/research.md +27 -9
- package/.claude/commands/mindforge/retrospective.md +28 -22
- package/.claude/commands/mindforge/review-backlog.md +34 -0
- package/.claude/commands/mindforge/review.md +37 -157
- package/.claude/commands/mindforge/security-scan.md +34 -233
- package/.claude/commands/mindforge/session-report.md +39 -0
- package/.claude/commands/mindforge/ship.md +34 -100
- package/.claude/commands/mindforge/skills.md +36 -141
- package/.claude/commands/mindforge/status.md +30 -104
- package/.claude/commands/mindforge/steer.md +25 -10
- package/.claude/commands/mindforge/sync-confluence.md +28 -9
- package/.claude/commands/mindforge/sync-jira.md +32 -12
- package/.claude/commands/mindforge/tokens.md +25 -6
- package/.claude/commands/mindforge/ui-phase.md +34 -0
- package/.claude/commands/mindforge/ui-review.md +36 -0
- package/.claude/commands/mindforge/update.md +33 -42
- package/.claude/commands/mindforge/validate-phase.md +31 -0
- package/.claude/commands/mindforge/verify-phase.md +30 -62
- package/.claude/commands/mindforge/workspace.md +28 -25
- package/.claude/commands/mindforge/workstreams.md +35 -0
- package/.mindforge/memory/decision-library.jsonl +0 -0
- package/.mindforge/memory/knowledge-base.jsonl +7 -0
- package/.mindforge/memory/pattern-library.jsonl +1 -0
- package/.mindforge/memory/team-preferences.jsonl +4 -0
- package/.mindforge/personas/advisor-researcher.md +89 -0
- package/.mindforge/personas/analyst.md +112 -52
- package/.mindforge/personas/architect.md +100 -67
- package/.mindforge/personas/assumptions-analyzer-extend.md +87 -0
- package/.mindforge/personas/assumptions-analyzer.md +109 -0
- package/.mindforge/personas/codebase-mapper-extend.md +93 -0
- package/.mindforge/personas/codebase-mapper.md +770 -0
- package/.mindforge/personas/coverage-specialist.md +104 -0
- package/.mindforge/personas/debug-specialist.md +118 -52
- package/.mindforge/personas/debugger.md +97 -0
- package/.mindforge/personas/decision-architect.md +102 -0
- package/.mindforge/personas/developer.md +97 -85
- package/.mindforge/personas/executor.md +88 -0
- package/.mindforge/personas/integration-checker.md +92 -0
- package/.mindforge/personas/nyquist-auditor.md +84 -0
- package/.mindforge/personas/phase-researcher.md +107 -0
- package/.mindforge/personas/plan-checker.md +92 -0
- package/.mindforge/personas/planner.md +105 -0
- package/.mindforge/personas/project-researcher.md +99 -0
- package/.mindforge/personas/qa-engineer.md +113 -61
- package/.mindforge/personas/release-manager.md +102 -64
- package/.mindforge/personas/research-agent.md +108 -24
- package/.mindforge/personas/research-synthesizer.md +101 -0
- package/.mindforge/personas/roadmapper-extend.md +100 -0
- package/.mindforge/personas/roadmapper.md +103 -0
- package/.mindforge/personas/security-reviewer.md +114 -91
- package/.mindforge/personas/tech-writer.md +118 -51
- package/.mindforge/personas/ui-auditor.md +94 -0
- package/.mindforge/personas/ui-checker.md +89 -0
- package/.mindforge/personas/ui-researcher.md +99 -0
- package/.mindforge/personas/user-profiler.md +93 -0
- package/.mindforge/personas/verifier.md +101 -0
- package/.planning/browser-daemon.log +32 -0
- package/CHANGELOG.md +26 -0
- package/MINDFORGE.md +2 -0
- package/README.md +38 -1
- package/bin/installer-core.js +3 -4
- package/docs/Context/Master-Context.md +6 -13
- package/docs/PERSONAS.md +611 -0
- package/docs/reference/commands.md +53 -43
- package/package.json +1 -1
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
15
|
+
<execution_context>
|
|
16
|
+
.claude/commands/mindforge/new-runtime.md
|
|
17
|
+
</execution_context>
|
|
6
18
|
|
|
7
|
-
|
|
19
|
+
<context>
|
|
20
|
+
Config: bin/installer-core.js
|
|
21
|
+
Targets: Global and Local scopes.
|
|
22
|
+
</context>
|
|
8
23
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
3. Defaults from org conventions
|
|
15
|
+
<execution_context>
|
|
16
|
+
.claude/commands/mindforge/profile-team.md
|
|
17
|
+
</execution_context>
|
|
10
18
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
19
|
+
<context>
|
|
20
|
+
Sources: AUDIT logs, git history, metrics, and interactive questionnaires.
|
|
21
|
+
Storage: .mindforge/team/profiles/
|
|
22
|
+
</context>
|
|
14
23
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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>
|