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.
- package/.agent/CLAUDE.md +14 -0
- package/.agent/forge/help.md +4 -0
- package/.agent/forge/init-project.md +4 -0
- package/.agent/forge/plan-phase.md +4 -0
- package/.agent/mindforge/approve.md +4 -0
- package/.agent/mindforge/audit.md +4 -0
- package/.agent/mindforge/auto.md +4 -0
- package/.agent/mindforge/benchmark.md +4 -0
- package/.agent/mindforge/browse.md +4 -0
- package/.agent/mindforge/complete-milestone.md +4 -0
- package/.agent/mindforge/costs.md +4 -0
- package/.agent/mindforge/cross-review.md +4 -0
- package/.agent/mindforge/dashboard.md +4 -0
- package/.agent/mindforge/debug.md +4 -0
- package/.agent/mindforge/discuss-phase.md +4 -0
- package/.agent/mindforge/execute-phase.md +4 -0
- package/.agent/mindforge/health.md +4 -0
- package/.agent/mindforge/help.md +4 -0
- package/.agent/mindforge/init-org.md +4 -0
- package/.agent/mindforge/init-project.md +4 -0
- package/.agent/mindforge/install-skill.md +4 -0
- package/.agent/mindforge/learn.md +4 -0
- package/.agent/mindforge/map-codebase.md +4 -0
- package/.agent/mindforge/marketplace.md +4 -0
- package/.agent/mindforge/metrics.md +4 -0
- package/.agent/mindforge/migrate.md +4 -0
- package/.agent/mindforge/milestone.md +4 -0
- package/.agent/mindforge/new-runtime.md +4 -0
- package/.agent/mindforge/next.md +4 -0
- package/.agent/mindforge/plan-phase.md +4 -0
- package/.agent/mindforge/plugins.md +4 -0
- package/.agent/mindforge/pr-review.md +4 -0
- package/.agent/mindforge/profile-team.md +4 -0
- package/.agent/mindforge/publish-skill.md +4 -0
- package/.agent/mindforge/qa.md +4 -0
- package/.agent/mindforge/quick.md +4 -0
- package/.agent/mindforge/release.md +4 -0
- package/.agent/mindforge/remember.md +4 -0
- package/.agent/mindforge/research.md +4 -0
- package/.agent/mindforge/retrospective.md +4 -0
- package/.agent/mindforge/review.md +4 -0
- package/.agent/mindforge/security-scan.md +4 -0
- package/.agent/mindforge/ship.md +4 -0
- package/.agent/mindforge/skills.md +4 -0
- package/.agent/mindforge/status.md +4 -0
- package/.agent/mindforge/steer.md +4 -0
- package/.agent/mindforge/sync-confluence.md +4 -0
- package/.agent/mindforge/sync-jira.md +4 -0
- package/.agent/mindforge/tokens.md +4 -0
- package/.agent/mindforge/update.md +4 -0
- package/.agent/mindforge/verify-phase.md +4 -0
- package/.agent/mindforge/workspace.md +4 -0
- package/.agent/workflows/forge:help.md +10 -0
- package/.agent/workflows/forge:init-project.md +35 -0
- package/.agent/workflows/forge:plan-phase.md +33 -0
- package/.agent/workflows/mindforge:add-backlog.md +24 -0
- package/.agent/workflows/mindforge:agent.md +25 -0
- package/.agent/workflows/mindforge:approve.md +21 -0
- package/.agent/workflows/mindforge:audit.md +33 -0
- package/.agent/workflows/mindforge:auto.md +25 -0
- package/.agent/workflows/mindforge:benchmark.md +36 -0
- package/.agent/workflows/mindforge:browse.md +29 -0
- package/.agent/workflows/mindforge:complete-milestone.md +21 -0
- package/.agent/workflows/mindforge:costs.md +14 -0
- package/.agent/workflows/mindforge:cross-review.md +20 -0
- package/.agent/workflows/mindforge:dashboard.md +101 -0
- package/.agent/workflows/mindforge:debug.md +129 -0
- package/.agent/workflows/mindforge:discuss-phase.md +141 -0
- package/.agent/workflows/mindforge:do.md +25 -0
- package/.agent/workflows/mindforge:execute-phase.md +193 -0
- package/.agent/workflows/mindforge:health.md +24 -0
- package/.agent/workflows/mindforge:help.md +26 -0
- package/.agent/workflows/mindforge:init-org.md +134 -0
- package/.agent/workflows/mindforge:init-project.md +169 -0
- package/.agent/workflows/mindforge:install-skill.md +27 -0
- package/.agent/workflows/mindforge:learn.md +146 -0
- package/.agent/workflows/mindforge:map-codebase.md +301 -0
- package/.agent/workflows/mindforge:marketplace.md +123 -0
- package/.agent/workflows/mindforge:metrics.md +25 -0
- package/.agent/workflows/mindforge:migrate.md +43 -0
- package/.agent/workflows/mindforge:milestone.md +15 -0
- package/.agent/workflows/mindforge:new-runtime.md +22 -0
- package/.agent/workflows/mindforge:next.md +108 -0
- package/.agent/workflows/mindforge:note.md +27 -0
- package/.agent/workflows/mindforge:plan-phase.md +128 -0
- package/.agent/workflows/mindforge:plant-seed.md +24 -0
- package/.agent/workflows/mindforge:plugins.md +43 -0
- package/.agent/workflows/mindforge:pr-review.md +44 -0
- package/.agent/workflows/mindforge:profile-team.md +26 -0
- package/.agent/workflows/mindforge:publish-skill.md +22 -0
- package/.agent/workflows/mindforge:qa.md +19 -0
- package/.agent/workflows/mindforge:quick.md +138 -0
- package/.agent/workflows/mindforge:release.md +13 -0
- package/.agent/workflows/mindforge:remember.md +29 -0
- package/.agent/workflows/mindforge:research.md +15 -0
- package/.agent/workflows/mindforge:retrospective.md +29 -0
- package/.agent/workflows/mindforge:review-backlog.md +26 -0
- package/.agent/workflows/mindforge:review.md +160 -0
- package/.agent/workflows/mindforge:security-scan.md +236 -0
- package/.agent/workflows/mindforge:session-report.md +31 -0
- package/.agent/workflows/mindforge:ship.md +103 -0
- package/.agent/workflows/mindforge:skills.md +144 -0
- package/.agent/workflows/mindforge:status.md +107 -0
- package/.agent/workflows/mindforge:steer.md +16 -0
- package/.agent/workflows/mindforge:sync-confluence.md +14 -0
- package/.agent/workflows/mindforge:sync-jira.md +15 -0
- package/.agent/workflows/mindforge:tokens.md +11 -0
- package/.agent/workflows/mindforge:ui-phase.md +27 -0
- package/.agent/workflows/mindforge:ui-review.md +28 -0
- package/.agent/workflows/mindforge:update.md +45 -0
- package/.agent/workflows/mindforge:validate-phase.md +25 -0
- package/.agent/workflows/mindforge:verify-phase.md +65 -0
- package/.agent/workflows/mindforge:workspace.md +32 -0
- package/.agent/workflows/mindforge:workstreams.md +27 -0
- package/.claude/CLAUDE.md +14 -0
- package/bin/installer-core.js +115 -19
- package/bin/wizard/theme.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: 1. Read STATE.md — confirm phase [N] is in "planned" status.
|
|
3
|
+
---
|
|
4
|
+
# MindForge — Execute Phase Command
|
|
5
|
+
# Usage: /mindforge:execute-phase [N]
|
|
6
|
+
|
|
7
|
+
## Pre-checks (all must pass before execution starts)
|
|
8
|
+
|
|
9
|
+
1. Read STATE.md — confirm phase [N] is in "planned" status.
|
|
10
|
+
If STATE.md shows phase [N] as already "complete": ask user to confirm re-execution.
|
|
11
|
+
|
|
12
|
+
2. Verify plan files exist:
|
|
13
|
+
```
|
|
14
|
+
.planning/phases/[N]/PLAN-[N]-01.md (minimum one plan required)
|
|
15
|
+
```
|
|
16
|
+
If missing: stop. Tell user: "No plans found for Phase [N]. Run /mindforge:plan-phase [N] first."
|
|
17
|
+
|
|
18
|
+
3. Verify REQUIREMENTS.md exists and has content.
|
|
19
|
+
If empty: warn user but allow continuation.
|
|
20
|
+
|
|
21
|
+
4. Run the dependency parser (`.mindforge/engine/dependency-parser.md`).
|
|
22
|
+
If validation fails (circular deps, missing deps): stop and report. Do not execute.
|
|
23
|
+
|
|
24
|
+
## Step 1 — Build and display the execution plan
|
|
25
|
+
|
|
26
|
+
After dependency parsing succeeds, display the wave plan to the user:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
Phase [N] Execution Plan
|
|
30
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
31
|
+
|
|
32
|
+
Wave 1 (parallel) Wave 2 (parallel) Wave 3
|
|
33
|
+
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
|
|
34
|
+
│ Plan 01 │ │ Plan 03 │ │ Plan 05 │
|
|
35
|
+
│ User model │──┐ │ User API │──┐ │ Checkout UI │
|
|
36
|
+
└─────────────┘ │ └─────────────┘ │ └─────────────┘
|
|
37
|
+
┌─────────────┐ │ ┌─────────────┐ │
|
|
38
|
+
│ Plan 02 │──┘ │ Plan 04 │──┘
|
|
39
|
+
│ Product │ │ Product API │
|
|
40
|
+
└─────────────┘ └─────────────┘
|
|
41
|
+
|
|
42
|
+
Total tasks: 5 Waves: 3 Est. time: depends on model speed
|
|
43
|
+
|
|
44
|
+
Proceed? (yes/no)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
If the user says no: stop. Do not execute anything.
|
|
48
|
+
|
|
49
|
+
## Step 2 — Write pre-execution audit entry
|
|
50
|
+
|
|
51
|
+
Append to `.planning/AUDIT.jsonl`:
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"id": "[uuid-v4]",
|
|
55
|
+
"timestamp": "[ISO-8601]",
|
|
56
|
+
"event": "phase_execution_started",
|
|
57
|
+
"phase": [N],
|
|
58
|
+
"wave_count": [total waves],
|
|
59
|
+
"task_count": [total tasks],
|
|
60
|
+
"agent": "mindforge-orchestrator",
|
|
61
|
+
"session_id": "[session identifier]"
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Step 3 — Execute waves using the wave executor
|
|
66
|
+
|
|
67
|
+
Follow the complete protocol in `.mindforge/engine/wave-executor.md`.
|
|
68
|
+
|
|
69
|
+
For each wave:
|
|
70
|
+
|
|
71
|
+
### Wave start
|
|
72
|
+
Write to console:
|
|
73
|
+
```
|
|
74
|
+
━━━ Wave [W] of [total] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
75
|
+
Starting [X] tasks in parallel...
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Per-task execution (inject context per `context-injector.md`)
|
|
79
|
+
For each plan in the wave:
|
|
80
|
+
1. Load context package (per `context-injector.md`)
|
|
81
|
+
2. Execute the plan instructions
|
|
82
|
+
- Run `<verify>` — capture exact output
|
|
83
|
+
- If verify PASSES:
|
|
84
|
+
- Run `<verify-visual>` via `visual-verify-executor.js`
|
|
85
|
+
- If visual verify FAILS: stop and report (treat as verify failure)
|
|
86
|
+
- Write SUMMARY-[N]-[M].md
|
|
87
|
+
- Execute commit: `git add [files] && git commit -m "[type]([scope]): [task name]"`
|
|
88
|
+
- Capture git SHA
|
|
89
|
+
- Write AUDIT entry for task completion
|
|
90
|
+
5. If verify FAILS:
|
|
91
|
+
- Write SUMMARY-[N]-[M].md with failure details
|
|
92
|
+
- Write AUDIT entry for task failure
|
|
93
|
+
- STOP this wave immediately
|
|
94
|
+
- Report: "Task [plan ID] failed: [verify output]. Stopping Phase [N]."
|
|
95
|
+
- Do not start next wave
|
|
96
|
+
- Ask user: "Spawn debug agent to diagnose? (yes/no)"
|
|
97
|
+
|
|
98
|
+
### Wave completion (before starting next wave)
|
|
99
|
+
After all tasks in wave complete:
|
|
100
|
+
1. Run: `[project test command]`
|
|
101
|
+
2. If tests fail:
|
|
102
|
+
- Identify failing tests
|
|
103
|
+
- Run `git log --oneline -[wave-task-count]` to see wave commits
|
|
104
|
+
- Report which commit likely introduced the failure
|
|
105
|
+
- Stop. Ask user how to proceed.
|
|
106
|
+
3. If tests pass:
|
|
107
|
+
- Report: "Wave [W] complete. All [X] tasks passed. Tests passing. ✅"
|
|
108
|
+
- Write WAVE-REPORT update
|
|
109
|
+
|
|
110
|
+
## Step 4 — Phase-level verification
|
|
111
|
+
|
|
112
|
+
After all waves complete, run the verification pipeline:
|
|
113
|
+
|
|
114
|
+
1. Read every v1 requirement from REQUIREMENTS.md for this phase
|
|
115
|
+
2. For each requirement, verify it is implemented:
|
|
116
|
+
- Search the codebase for the implementation
|
|
117
|
+
- Check if a test covers it
|
|
118
|
+
- Mark: ✅ implemented + tested | ⚠️ implemented, no test | ❌ not found
|
|
119
|
+
3. Write `.planning/phases/[N]/VERIFICATION.md`
|
|
120
|
+
4. Run the full test suite one final time
|
|
121
|
+
5. If any requirement is ❌: create a fix plan and report to user
|
|
122
|
+
|
|
123
|
+
## Step 5 — Update state and write wave report
|
|
124
|
+
|
|
125
|
+
Write `.planning/phases/[N]/WAVE-REPORT-[N].md` (per template in wave-executor.md)
|
|
126
|
+
|
|
127
|
+
Update STATE.md:
|
|
128
|
+
```markdown
|
|
129
|
+
## Current phase
|
|
130
|
+
[N] — Execution complete ✅
|
|
131
|
+
|
|
132
|
+
## Last completed task
|
|
133
|
+
Phase [N]: All [X] tasks completed across [W] waves.
|
|
134
|
+
|
|
135
|
+
## Next action
|
|
136
|
+
Run /mindforge:verify-phase [N] for human acceptance testing.
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Update HANDOFF.json with completed phase info.
|
|
140
|
+
|
|
141
|
+
Write final AUDIT entry:
|
|
142
|
+
```json
|
|
143
|
+
{
|
|
144
|
+
"id": "[uuid-v4]",
|
|
145
|
+
"timestamp": "[ISO-8601]",
|
|
146
|
+
"event": "phase_execution_completed",
|
|
147
|
+
"phase": [N],
|
|
148
|
+
"tasks_completed": [X],
|
|
149
|
+
"waves_executed": [W],
|
|
150
|
+
"commits": ["sha1", "sha2", "..."],
|
|
151
|
+
"test_result": "passing",
|
|
152
|
+
"agent": "mindforge-orchestrator"
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Step 6 — Report to user
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
160
|
+
✅ Phase [N] execution complete
|
|
161
|
+
|
|
162
|
+
Tasks completed : [X] / [X]
|
|
163
|
+
Waves executed : [W]
|
|
164
|
+
Commits made : [X]
|
|
165
|
+
Tests : All passing
|
|
166
|
+
Requirements : [X] / [X] implemented
|
|
167
|
+
|
|
168
|
+
Next step: Run /mindforge:verify-phase [N] for UAT sign-off.
|
|
169
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
170
|
+
|
|
171
|
+
## Step 7 — Auto-capture check (when AUTO_CAPTURE_SKILLS=true)
|
|
172
|
+
|
|
173
|
+
After all gates pass and the phase is verified:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
# Check if auto-capture is enabled
|
|
177
|
+
CAPTURE=$(grep -m1 "^AUTO_CAPTURE_SKILLS=" MINDFORGE.md 2>/dev/null | cut -d= -f2 | tr -d ' ')
|
|
178
|
+
if [ "$CAPTURE" = "true" ]; then
|
|
179
|
+
node -e "
|
|
180
|
+
const { detectPatterns, formatForPresentation } = require('./bin/skills-builder/pattern-detector');
|
|
181
|
+
detectPatterns(${PHASE_NUM}).then(result => {
|
|
182
|
+
const display = formatForPresentation(result);
|
|
183
|
+
console.log(display);
|
|
184
|
+
}).catch(err => console.error('[auto-capture] Error:', err.message));
|
|
185
|
+
"
|
|
186
|
+
fi
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
If patterns are found: display the prompt and await user input.
|
|
190
|
+
If user selects yes: run `/mindforge:learn --session` targeting this phase's SUMMARY files.
|
|
191
|
+
If user selects no: write AUDIT entry `auto_capture_skipped` and continue.
|
|
192
|
+
If no patterns found: exit silently (no noise in the output).
|
|
193
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run all seven health-engine categories from .mindforge/intelligence/health-engine.md.
|
|
3
|
+
---
|
|
4
|
+
# MindForge — Health Command
|
|
5
|
+
# Usage: /mindforge:health [--repair] [--category C] [--verbose]
|
|
6
|
+
|
|
7
|
+
Run all seven health-engine categories from `.mindforge/intelligence/health-engine.md`.
|
|
8
|
+
|
|
9
|
+
## Output
|
|
10
|
+
- category status summary
|
|
11
|
+
- errors (must fix)
|
|
12
|
+
- warnings (should fix)
|
|
13
|
+
- informational signals
|
|
14
|
+
|
|
15
|
+
## Flags
|
|
16
|
+
- `--repair`: apply safe auto-repair only
|
|
17
|
+
- `--category`: one of `installation|context|skills|personas|state|integrations|security`
|
|
18
|
+
- `--verbose`: include passing checks and exact inspected values
|
|
19
|
+
|
|
20
|
+
## AUDIT
|
|
21
|
+
Append:
|
|
22
|
+
```json
|
|
23
|
+
{ "event": "health_check_completed", "errors": 0, "warnings": 0, "repaired": 0 }
|
|
24
|
+
```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Show all available MindForge commands.
|
|
3
|
+
---
|
|
4
|
+
Show all available MindForge commands.
|
|
5
|
+
|
|
6
|
+
## Pre-check
|
|
7
|
+
If `.planning/STATE.md` exists, read it.
|
|
8
|
+
If `.planning/PROJECT.md` is missing, treat the project as "Not initialised".
|
|
9
|
+
|
|
10
|
+
1. Scan every .md file in `.claude/commands/mindforge/`
|
|
11
|
+
2. For each file, extract the first non-empty line as the command description
|
|
12
|
+
3. Display as a clean table:
|
|
13
|
+
|
|
14
|
+
| Command | Description |
|
|
15
|
+
|------------------------------|----------------------------------------------|
|
|
16
|
+
| /mindforge:help | Show all available commands |
|
|
17
|
+
| /mindforge:init-project | ... |
|
|
18
|
+
| ... | ... |
|
|
19
|
+
|
|
20
|
+
4. After the table, print:
|
|
21
|
+
"Current project: [read PROJECT.md first line, or 'Not initialised']"
|
|
22
|
+
"Current phase: [read STATE.md current phase, or 'None']"
|
|
23
|
+
"Next step: [read STATE.md next action]"
|
|
24
|
+
|
|
25
|
+
5. If CLAUDE.md has not been read this session, remind the user to ensure
|
|
26
|
+
it is loaded as MindForge's system context.
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Set up MindForge at the organisation level — create standardised org-level
|
|
3
|
+
---
|
|
4
|
+
# MindForge — Init Org Command
|
|
5
|
+
# Usage: /mindforge:init-org [--org-name "Name"] [--update]
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
Set up MindForge at the organisation level — create standardised org-level
|
|
9
|
+
context files that are shared across ALL projects in the organisation.
|
|
10
|
+
|
|
11
|
+
Intended to be run ONCE by a platform engineer or engineering lead.
|
|
12
|
+
Output is committed to a shared `mindforge-org-config` repository
|
|
13
|
+
and distributed to projects as a git submodule or npm package.
|
|
14
|
+
|
|
15
|
+
## Step 1 — Gather org information
|
|
16
|
+
|
|
17
|
+
Ask (one question at a time):
|
|
18
|
+
1. "What is your organisation name?"
|
|
19
|
+
2. "Describe what your organisation builds in 1-2 sentences."
|
|
20
|
+
3. "What is your primary tech stack? (describe in plain English)"
|
|
21
|
+
4. "What is your default deployment target? (AWS / GCP / Azure / self-hosted / hybrid)"
|
|
22
|
+
5. "What regulatory frameworks apply to your organisation?"
|
|
23
|
+
Options: GDPR / HIPAA / SOC 2 / PCI-DSS / ISO 27001 / None / Multiple
|
|
24
|
+
6. "What is your source control platform?" (GitHub / GitLab / Bitbucket / Azure DevOps)
|
|
25
|
+
7. "What is your issue tracker?" (Jira / GitHub Issues / Linear / Azure DevOps / None)
|
|
26
|
+
8. "Who are your Tier 3 compliance approvers? (email addresses, comma-separated)"
|
|
27
|
+
|
|
28
|
+
## Step 2 — Generate org-level context files
|
|
29
|
+
|
|
30
|
+
Create (or update with `--update`) these files:
|
|
31
|
+
|
|
32
|
+
### `.mindforge/org/ORG.md`
|
|
33
|
+
Populated from answers with:
|
|
34
|
+
- Organisation identity and mission
|
|
35
|
+
- Default tech stack with version recommendations
|
|
36
|
+
- Architecture defaults
|
|
37
|
+
- Team conventions
|
|
38
|
+
- Compliance requirements
|
|
39
|
+
|
|
40
|
+
### `.mindforge/org/CONVENTIONS.md`
|
|
41
|
+
Generate sensible defaults based on the tech stack detected.
|
|
42
|
+
For TypeScript/Node.js stacks: strict TypeScript, ESLint, Conventional Commits
|
|
43
|
+
For Python stacks: ruff, mypy, black formatting
|
|
44
|
+
For Go: standard Go toolchain conventions
|
|
45
|
+
Mark each section clearly: [DEFAULT] or [CUSTOMISE THIS]
|
|
46
|
+
|
|
47
|
+
### `.mindforge/org/SECURITY.md`
|
|
48
|
+
Generate based on declared compliance frameworks:
|
|
49
|
+
- GDPR → include GDPR-specific policies
|
|
50
|
+
- HIPAA → include PHI handling requirements
|
|
51
|
+
- PCI-DSS → include card data handling policies
|
|
52
|
+
- SOC 2 → include access control requirements
|
|
53
|
+
Mark critical sections: [REVIEW WITH SECURITY TEAM]
|
|
54
|
+
|
|
55
|
+
### `.mindforge/org/TOOLS.md`
|
|
56
|
+
Generate approved library list based on tech stack.
|
|
57
|
+
Include common forbidden libraries (moment.js, request, etc.)
|
|
58
|
+
Mark: [ADD YOUR APPROVED LIBRARIES]
|
|
59
|
+
|
|
60
|
+
### `.mindforge/org/integrations/INTEGRATIONS-CONFIG.md`
|
|
61
|
+
Pre-populate based on declared platforms:
|
|
62
|
+
- GitHub → fill GitHub config section
|
|
63
|
+
- Jira → fill Jira config section
|
|
64
|
+
Mark credential fields clearly: [SET VIA ENVIRONMENT VARIABLE]
|
|
65
|
+
|
|
66
|
+
### `.mindforge/governance/GOVERNANCE-CONFIG.md`
|
|
67
|
+
Pre-populate based on declared approvers and compliance frameworks.
|
|
68
|
+
Higher compliance burden → lower Tier 2/3 thresholds.
|
|
69
|
+
Stricter approval SLAs for HIPAA/PCI-DSS organisations.
|
|
70
|
+
|
|
71
|
+
## Step 3 — Generate skills recommendation
|
|
72
|
+
|
|
73
|
+
Based on the tech stack and compliance requirements, recommend skills to install:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
Recommended skills for your tech stack:
|
|
77
|
+
|
|
78
|
+
Core skills (already included — v0.6.0):
|
|
79
|
+
✅ security-review, code-quality, api-design, testing-standards, documentation,
|
|
80
|
+
performance, accessibility, data-privacy, incident-response, database-patterns
|
|
81
|
+
|
|
82
|
+
Additional skills recommended for your stack:
|
|
83
|
+
[tech-stack-specific recommendations from registry]
|
|
84
|
+
|
|
85
|
+
For your compliance requirements:
|
|
86
|
+
[compliance-specific skill recommendations]
|
|
87
|
+
|
|
88
|
+
Install all recommendations?
|
|
89
|
+
yes → npx mindforge-skills install [list]
|
|
90
|
+
no → I'll show you the install commands for each
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Step 4 — Create distribution package
|
|
94
|
+
|
|
95
|
+
Offer to create an org-skills npm package for distributing org-level config:
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
Create `@your-org/mindforge-config` npm package?
|
|
99
|
+
This package will distribute your org-level MindForge configuration
|
|
100
|
+
to all projects in your organisation via: npx @your-org/mindforge-config
|
|
101
|
+
|
|
102
|
+
Files included:
|
|
103
|
+
.mindforge/org/ORG.md
|
|
104
|
+
.mindforge/org/CONVENTIONS.md
|
|
105
|
+
.mindforge/org/SECURITY.md
|
|
106
|
+
.mindforge/org/TOOLS.md
|
|
107
|
+
.mindforge/org/skills/MANIFEST.md
|
|
108
|
+
.mindforge/org/integrations/INTEGRATIONS-CONFIG.md (without credentials)
|
|
109
|
+
.mindforge/governance/GOVERNANCE-CONFIG.md (without credentials)
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Step 5 — Write AUDIT entry and report
|
|
113
|
+
|
|
114
|
+
```json
|
|
115
|
+
{ "event": "org_initialised", "org_name": "[name]", "compliance_frameworks": [...], "skills_recommended": [...] }
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Report:
|
|
119
|
+
```
|
|
120
|
+
✅ MindForge organisation configuration complete.
|
|
121
|
+
|
|
122
|
+
Files created:
|
|
123
|
+
.mindforge/org/ORG.md
|
|
124
|
+
.mindforge/org/CONVENTIONS.md
|
|
125
|
+
.mindforge/org/SECURITY.md
|
|
126
|
+
.mindforge/org/TOOLS.md
|
|
127
|
+
.mindforge/governance/GOVERNANCE-CONFIG.md
|
|
128
|
+
|
|
129
|
+
Next steps:
|
|
130
|
+
1. Review each file — look for [CUSTOMISE THIS] markers
|
|
131
|
+
2. Fill in SECURITY.md with your security team
|
|
132
|
+
3. Commit to your org's mindforge-config repository
|
|
133
|
+
4. Share with all projects: npx @your-org/mindforge-config (if you created the package)
|
|
134
|
+
```
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Initialise a new project under the MindForge framework.
|
|
3
|
+
---
|
|
4
|
+
Initialise a new project under the MindForge framework.
|
|
5
|
+
|
|
6
|
+
## Pre-check
|
|
7
|
+
Read `.planning/PROJECT.md`. If it already exists and contains content,
|
|
8
|
+
ask: "A project is already initialised. Do you want to reinitialise? (yes/no)"
|
|
9
|
+
Stop if the user says no.
|
|
10
|
+
|
|
11
|
+
## Pre-flight Environment Check
|
|
12
|
+
Verify that `CLAUDE.md` exists at the root of the project and `.claude/commands/mindforge/` is populated. If not, silently run the following to enable zero-config IDE autocomplete (Cursor, Windsurf, Claude Code):
|
|
13
|
+
```bash
|
|
14
|
+
mkdir -p .claude/commands/mindforge
|
|
15
|
+
cp -r .agent/mindforge/* .claude/commands/mindforge/ 2>/dev/null || true
|
|
16
|
+
cp -r .agents/workflows/* .claude/commands/mindforge/ 2>/dev/null || true
|
|
17
|
+
cp .agent/CLAUDE.md ./CLAUDE.md 2>/dev/null || true
|
|
18
|
+
cp .agent/CLAUDE.md ./.cursorrules 2>/dev/null || true
|
|
19
|
+
cp .agent/CLAUDE.md ./.windsurfrules 2>/dev/null || true
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Step 1 — Requirements interview
|
|
23
|
+
Ask these questions one at a time. Wait for the full answer before asking the next.
|
|
24
|
+
Do not batch them. Do not rush.
|
|
25
|
+
|
|
26
|
+
1. "What is this project? Give me a 1-2 sentence description."
|
|
27
|
+
2. "Who is the primary user? Describe them specifically."
|
|
28
|
+
3. "What problem does this solve for them? What is the pain today?"
|
|
29
|
+
4. "What tech stack do you want to use? (Say 'recommend one' if unsure.)"
|
|
30
|
+
— If they say recommend: ask 3 clarifying questions about team size,
|
|
31
|
+
deployment environment, and performance requirements. Then recommend
|
|
32
|
+
a specific stack with brief rationale for each choice.
|
|
33
|
+
5. "What is explicitly NOT in scope for v1? Name at least 3 things."
|
|
34
|
+
6. "What does a successful v1 look like? How will you know it worked?"
|
|
35
|
+
7. "Are there any compliance requirements? (GDPR, HIPAA, SOC2, PCI-DSS, none)"
|
|
36
|
+
|
|
37
|
+
## Step 2 — Create context files
|
|
38
|
+
|
|
39
|
+
Write `.planning/PROJECT.md`:
|
|
40
|
+
```markdown
|
|
41
|
+
# [Project Name]
|
|
42
|
+
[One-line description]
|
|
43
|
+
|
|
44
|
+
## Problem statement
|
|
45
|
+
[From answer 3]
|
|
46
|
+
|
|
47
|
+
## Target user
|
|
48
|
+
[From answer 2]
|
|
49
|
+
|
|
50
|
+
## Tech stack
|
|
51
|
+
| Layer | Choice | Rationale |
|
|
52
|
+
|------------|-----------------|--------------------------------|
|
|
53
|
+
| [layer] | [technology] | [why] |
|
|
54
|
+
|
|
55
|
+
## v1 scope — IN
|
|
56
|
+
[Bullet list of what is included]
|
|
57
|
+
|
|
58
|
+
## v1 scope — OUT (explicitly excluded)
|
|
59
|
+
[Bullet list from answer 5]
|
|
60
|
+
|
|
61
|
+
## Success criteria
|
|
62
|
+
[From answer 6]
|
|
63
|
+
|
|
64
|
+
## Compliance
|
|
65
|
+
[From answer 7]
|
|
66
|
+
|
|
67
|
+
## Initialised
|
|
68
|
+
[ISO 8601 timestamp]
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Write `.planning/REQUIREMENTS.md`:
|
|
72
|
+
```markdown
|
|
73
|
+
# Requirements — [Project Name]
|
|
74
|
+
|
|
75
|
+
## Functional requirements
|
|
76
|
+
| ID | Requirement | Acceptance criterion | Scope |
|
|
77
|
+
|-------|--------------------------|--------------------------------|-------|
|
|
78
|
+
| FR-01 | | | v1 |
|
|
79
|
+
|
|
80
|
+
## Non-functional requirements
|
|
81
|
+
| ID | Category | Requirement | Measure |
|
|
82
|
+
|--------|---------------|--------------------------------|----------------|
|
|
83
|
+
| NFR-01 | Performance | | |
|
|
84
|
+
| NFR-02 | Security | | |
|
|
85
|
+
| NFR-03 | Availability | | |
|
|
86
|
+
|
|
87
|
+
## Out of scope
|
|
88
|
+
[Items explicitly excluded from v1]
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Write `.planning/STATE.md`:
|
|
92
|
+
```markdown
|
|
93
|
+
# MindForge — Project State
|
|
94
|
+
|
|
95
|
+
## Status
|
|
96
|
+
Project initialised. No phases started.
|
|
97
|
+
|
|
98
|
+
## Current phase
|
|
99
|
+
None
|
|
100
|
+
|
|
101
|
+
## Last completed task
|
|
102
|
+
Project initialisation
|
|
103
|
+
|
|
104
|
+
## Next action
|
|
105
|
+
Run /mindforge:plan-phase 1 to begin planning Phase 1.
|
|
106
|
+
|
|
107
|
+
## Decisions made
|
|
108
|
+
- Project scope defined (see PROJECT.md)
|
|
109
|
+
- Tech stack chosen (see PROJECT.md)
|
|
110
|
+
|
|
111
|
+
## Active blockers
|
|
112
|
+
None
|
|
113
|
+
|
|
114
|
+
## Last updated
|
|
115
|
+
[ISO 8601 timestamp]
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Write `.planning/HANDOFF.json`:
|
|
119
|
+
```json
|
|
120
|
+
{
|
|
121
|
+
"schema_version": "1.0.0",
|
|
122
|
+
"project": "[project name]",
|
|
123
|
+
"phase": null,
|
|
124
|
+
"plan": null,
|
|
125
|
+
"plan_step": null,
|
|
126
|
+
"last_completed_task": {
|
|
127
|
+
"description": "Project initialisation",
|
|
128
|
+
"commit_sha": null,
|
|
129
|
+
"verified": true
|
|
130
|
+
},
|
|
131
|
+
"next_task": "Run /mindforge:plan-phase 1",
|
|
132
|
+
"in_progress": {
|
|
133
|
+
"file": null,
|
|
134
|
+
"intent": null,
|
|
135
|
+
"completed_steps": [],
|
|
136
|
+
"remaining_steps": []
|
|
137
|
+
},
|
|
138
|
+
"blockers": [],
|
|
139
|
+
"decisions_needed": [],
|
|
140
|
+
"context_refs": [
|
|
141
|
+
".planning/PROJECT.md",
|
|
142
|
+
".planning/STATE.md",
|
|
143
|
+
".planning/REQUIREMENTS.md"
|
|
144
|
+
],
|
|
145
|
+
"agent_notes": "Fresh project. Read PROJECT.md and REQUIREMENTS.md before planning.",
|
|
146
|
+
"session_summary": "Project initialised.",
|
|
147
|
+
"recent_files": [
|
|
148
|
+
".planning/PROJECT.md",
|
|
149
|
+
".planning/REQUIREMENTS.md",
|
|
150
|
+
".planning/STATE.md",
|
|
151
|
+
".planning/HANDOFF.json"
|
|
152
|
+
],
|
|
153
|
+
"recent_commits": [],
|
|
154
|
+
"updated_at": "[ISO 8601 timestamp]",
|
|
155
|
+
"_warning": "Never store secrets, tokens, or passwords in this file. It is tracked in git."
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Step 3 — Confirm and guide
|
|
160
|
+
Tell the user:
|
|
161
|
+
"✅ MindForge project initialised.
|
|
162
|
+
|
|
163
|
+
Files created:
|
|
164
|
+
.planning/PROJECT.md
|
|
165
|
+
.planning/REQUIREMENTS.md
|
|
166
|
+
.planning/STATE.md
|
|
167
|
+
.planning/HANDOFF.json
|
|
168
|
+
|
|
169
|
+
Next step: Run /mindforge:plan-phase 1 to plan your first phase."
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Follow the full installation protocol from .mindforge/distribution/registry-client.md.
|
|
3
|
+
---
|
|
4
|
+
Follow the full installation protocol from `.mindforge/distribution/registry-client.md`.
|
|
5
|
+
|
|
6
|
+
Steps:
|
|
7
|
+
1. Resolve package name from skill name.
|
|
8
|
+
2. Check if already installed (skip if same version, offer upgrade if newer).
|
|
9
|
+
3. Fetch from registry (npm or private if --registry specified).
|
|
10
|
+
4. Validate the skill:
|
|
11
|
+
```bash
|
|
12
|
+
node bin/mindforge-cli.js validate-skill ./SKILL.md
|
|
13
|
+
```
|
|
14
|
+
5. Run injection guard check (handled by validator).
|
|
15
|
+
6. Install to tier directory:
|
|
16
|
+
```bash
|
|
17
|
+
node bin/mindforge-cli.js install-skill [skill-name] --tier [1|2|3]
|
|
18
|
+
```
|
|
19
|
+
7. Register in MANIFEST.md:
|
|
20
|
+
```bash
|
|
21
|
+
node bin/mindforge-cli.js register-skill [skill-name] [version] [tier]
|
|
22
|
+
```
|
|
23
|
+
8. Write AUDIT entry:
|
|
24
|
+
```bash
|
|
25
|
+
node bin/mindforge-cli.js audit-skill [skill-name] [version] [tier]
|
|
26
|
+
```
|
|
27
|
+
9. Confirm: "Run /mindforge:skills validate to verify installation"
|