mindforge-cc 11.6.0 → 11.7.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 (51) hide show
  1. package/.agent/mindforge/wf-catalog.md +37 -0
  2. package/.agent/mindforge/wf-code-audit.md +31 -0
  3. package/.agent/mindforge/wf-competitive-analysis.md +31 -0
  4. package/.agent/mindforge/wf-deep-research.md +32 -0
  5. package/.agent/mindforge/wf-feature-planner.md +31 -0
  6. package/.agent/mindforge/wf-incident-response.md +31 -0
  7. package/.agent/mindforge/wf-onboard-codebase.md +31 -0
  8. package/.agent/mindforge/wf-perf-optimize.md +31 -0
  9. package/.agent/mindforge/wf-pr-review.md +31 -0
  10. package/.agent/mindforge/wf-refactor-plan.md +31 -0
  11. package/.agent/mindforge/wf-release-prep.md +31 -0
  12. package/.agent/mindforge/wf-tdd-sprint.md +31 -0
  13. package/.agent/mindforge/wf-tech-evaluation.md +31 -0
  14. package/.claude/commands/mindforge/wf-catalog.md +37 -0
  15. package/.claude/commands/mindforge/wf-code-audit.md +31 -0
  16. package/.claude/commands/mindforge/wf-competitive-analysis.md +31 -0
  17. package/.claude/commands/mindforge/wf-deep-research.md +32 -0
  18. package/.claude/commands/mindforge/wf-feature-planner.md +31 -0
  19. package/.claude/commands/mindforge/wf-incident-response.md +31 -0
  20. package/.claude/commands/mindforge/wf-onboard-codebase.md +31 -0
  21. package/.claude/commands/mindforge/wf-perf-optimize.md +31 -0
  22. package/.claude/commands/mindforge/wf-pr-review.md +31 -0
  23. package/.claude/commands/mindforge/wf-refactor-plan.md +31 -0
  24. package/.claude/commands/mindforge/wf-release-prep.md +31 -0
  25. package/.claude/commands/mindforge/wf-tdd-sprint.md +31 -0
  26. package/.claude/commands/mindforge/wf-tech-evaluation.md +31 -0
  27. package/.mindforge/config.json +2 -2
  28. package/.mindforge/dynamic-workflows/REGISTRY.md +65 -0
  29. package/.mindforge/dynamic-workflows/index.json +171 -0
  30. package/.mindforge/dynamic-workflows/scripts/code-audit.js +103 -0
  31. package/.mindforge/dynamic-workflows/scripts/competitive-analysis.js +85 -0
  32. package/.mindforge/dynamic-workflows/scripts/deep-research.js +151 -0
  33. package/.mindforge/dynamic-workflows/scripts/feature-planner.js +104 -0
  34. package/.mindforge/dynamic-workflows/scripts/incident-response.js +106 -0
  35. package/.mindforge/dynamic-workflows/scripts/onboard-codebase.js +102 -0
  36. package/.mindforge/dynamic-workflows/scripts/perf-optimize.js +128 -0
  37. package/.mindforge/dynamic-workflows/scripts/pr-review.js +87 -0
  38. package/.mindforge/dynamic-workflows/scripts/refactor-plan.js +121 -0
  39. package/.mindforge/dynamic-workflows/scripts/release-prep.js +102 -0
  40. package/.mindforge/dynamic-workflows/scripts/tdd-sprint.js +103 -0
  41. package/.mindforge/dynamic-workflows/scripts/tech-evaluation.js +72 -0
  42. package/.mindforge/memory/sync-manifest.json +1 -1
  43. package/CHANGELOG.md +28 -0
  44. package/MINDFORGE.md +2 -2
  45. package/README.md +37 -4
  46. package/RELEASENOTES.md +54 -0
  47. package/bin/installer-core.js +6 -2
  48. package/bin/mindforge-cli.js +7 -0
  49. package/bin/workflows/workflow-runner.js +110 -0
  50. package/docs/commands-reference.md +25 -0
  51. package/package.json +2 -1
package/RELEASENOTES.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # Release Notes
2
2
 
3
+ ## v11.7.0 — Workflow Forge
4
+
5
+ **Release Date**: 2026-06-23
6
+ **Type**: Minor — new dynamic workflow library, no breaking changes
7
+ **Upgrade Path**: `npx mindforge-cc@latest`
8
+
9
+ ---
10
+
11
+ The first Dynamic Workflow Library for MindForge. Twelve pre-built multi-agent workflow scripts ship in the npm package and are immediately available to any user who installs MindForge. Each workflow runs via Claude Code's native `Workflow` tool for true parallel agent execution.
12
+
13
+ ### Dynamic Workflow Library
14
+
15
+ 12 workflows across 4 tiers, each backed by a full JS orchestration script in `.mindforge/dynamic-workflows/scripts/`:
16
+
17
+ **Research tier** — fan-out parallel searches, adversarial claim verification, cited synthesis:
18
+ - `deep-research` — Decompose → 5× parallel web search → fetch 15 sources → 3-vote verify → synthesize cited report
19
+ - `competitive-analysis` — 5× angles (product/pricing/reviews/community/roadmap) → SWOT → positioning
20
+ - `tech-evaluation` — 5× dimensions (DX/perf/security/ecosystem/community) → scored matrix → recommendation
21
+
22
+ **Dev tier** — coding-assistant power workflows:
23
+ - `code-audit` — 3× parallel auditors (security/quality/perf) → adversarial verify high-severity findings → risk report
24
+ - `feature-planner` — Brief → PRD → Architecture → User stories (sequential pipeline)
25
+ - `pr-review` — 4× parallel reviewers (correctness/security/perf/style) → consensus verdict
26
+ - `tdd-sprint` — Spec → RED (failing test) → GREEN (minimal impl) → REFACTOR (clean up) loop
27
+ - `refactor-plan` — Debt scan → risk-sort → sequence → safe implementation plan
28
+
29
+ **Ops tier**:
30
+ - `incident-response` — 4× parallel investigation (logs/metrics/traces/code) → mitigate → RCA → postmortem
31
+ - `release-prep` — Tests → changelog → semver bump → PR body → announcement draft
32
+
33
+ **Intelligence tier**:
34
+ - `onboard-codebase` — Map → domain analysis → architecture → guided tour + onboarding docs
35
+ - `perf-optimize` — Profile → 4× parallel bottleneck hunt (DB/network/CPU/memory) → prioritized fix plan → benchmarks
36
+
37
+ ### 13 new commands
38
+
39
+ `/mindforge:wf-catalog` — browseable index of all 12 workflows grouped by tier
40
+ `/mindforge:wf-<name>` — one command per workflow, each with usage and phase descriptions
41
+
42
+ ### CLI discovery
43
+
44
+ ```bash
45
+ node bin/mindforge-cli.js workflow list # print catalog
46
+ node bin/mindforge-cli.js workflow info <name> # show phases and description
47
+ ```
48
+
49
+ ### Upgrade steps
50
+
51
+ 1. `npx mindforge-cc@latest` — all 12 workflows and 13 commands install automatically
52
+ 2. Run `/mindforge:wf-catalog` to browse the library
53
+ 3. Try `/mindforge:wf-deep-research <your question>` for a first run
54
+
55
+ ---
56
+
3
57
  ## v11.6.0 — Skill Forge
4
58
 
5
59
  **Release Date**: 2026-06-17
@@ -527,9 +527,13 @@ async function install(runtime, scope, options = {}) {
527
527
  ];
528
528
 
529
529
  if (runtime === 'claude') {
530
- // Claude Code specifically looks in .claude/commands/mindforge
530
+ // Claude Code looks in .claude/commands/mindforge. Use .agent/mindforge as the
531
+ // canonical source — it is always committed, while .claude/ is gitignored. The
532
+ // previous behaviour of reading from .claude/commands/mindforge/ (itself gitignored)
533
+ // left CI with an empty command set on a fresh checkout.
531
534
  cmdSources.length = 0;
532
- cmdSources.push({ src: src('.claude', 'commands', 'mindforge'), namespace: 'mindforge' });
535
+ cmdSources.push({ src: src('.agent', 'mindforge'), namespace: 'mindforge' });
536
+ cmdSources.push({ src: src('.agent', 'forge'), namespace: 'forge' });
533
537
  }
534
538
 
535
539
  let totalCount = 0;
@@ -140,6 +140,13 @@ const COMMANDS = {
140
140
  }
141
141
  };
142
142
 
143
+ // ── Workflow subcommand (non-script, handled inline) ─────────────────────────
144
+ if (COMMAND === 'workflow') {
145
+ const workflowRunner = require('./workflows/workflow-runner');
146
+ workflowRunner.run(COMMAND_ARGS[0], COMMAND_ARGS.slice(1));
147
+ process.exit(0);
148
+ }
149
+
143
150
  if (!COMMAND || ARGS.includes('--help') || ARGS.includes('-h')) {
144
151
  printUsage();
145
152
  process.exit(0);
@@ -0,0 +1,110 @@
1
+ 'use strict';
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+
6
+ const ROOT = path.resolve(__dirname, '..', '..');
7
+ const REGISTRY_PATH = path.join(ROOT, '.mindforge', 'dynamic-workflows', 'index.json');
8
+
9
+ function loadRegistry() {
10
+ if (!fs.existsSync(REGISTRY_PATH)) {
11
+ console.error('Workflow registry not found. Run `npx mindforge-cc@latest` to reinstall.');
12
+ process.exit(1);
13
+ }
14
+ return JSON.parse(fs.readFileSync(REGISTRY_PATH, 'utf8'));
15
+ }
16
+
17
+ function cmdList() {
18
+ const workflows = loadRegistry();
19
+ const tiers = ['research', 'dev', 'ops', 'intelligence'];
20
+ const byTier = {};
21
+ for (const wf of workflows) {
22
+ (byTier[wf.tier] = byTier[wf.tier] || []).push(wf);
23
+ }
24
+
25
+ console.log('\nMindForge Dynamic Workflow Library\n');
26
+ for (const tier of tiers) {
27
+ if (!byTier[tier]) continue;
28
+ console.log(` ${tier.toUpperCase()} TIER`);
29
+ for (const wf of byTier[tier]) {
30
+ console.log(` ${wf.command.padEnd(40)} ${wf.description}`);
31
+ }
32
+ console.log('');
33
+ }
34
+ console.log(` Total: ${workflows.length} workflows`);
35
+ console.log(' Run `node bin/mindforge-cli.js workflow info <name>` for details.\n');
36
+ }
37
+
38
+ function cmdInfo(name) {
39
+ if (!name) {
40
+ console.error('Usage: workflow info <name>');
41
+ process.exit(1);
42
+ }
43
+ const workflows = loadRegistry();
44
+ const wf = workflows.find(w => w.name === name);
45
+ if (!wf) {
46
+ console.error(`Workflow not found: ${name}`);
47
+ console.error(`Available: ${workflows.map(w => w.name).join(', ')}`);
48
+ process.exit(1);
49
+ }
50
+
51
+ console.log(`\n${wf.name}`);
52
+ console.log(` Command: ${wf.command}`);
53
+ console.log(` Tier: ${wf.tier}`);
54
+ console.log(` Description: ${wf.description}`);
55
+ console.log(` When to use: ${wf.whenToUse}`);
56
+ console.log(` Script: ${wf.scriptPath}`);
57
+ console.log(' Phases:');
58
+ for (const p of wf.phases) {
59
+ console.log(` ${p.title.padEnd(16)} ${p.detail}`);
60
+ }
61
+ console.log('');
62
+ }
63
+
64
+ function cmdRun(name, args) {
65
+ if (!name) {
66
+ console.error('Usage: workflow run <name> [args...]');
67
+ process.exit(1);
68
+ }
69
+ const workflows = loadRegistry();
70
+ const wf = workflows.find(w => w.name === name);
71
+ if (!wf) {
72
+ console.error(`Workflow not found: ${name}`);
73
+ process.exit(1);
74
+ }
75
+
76
+ const scriptPath = path.join(ROOT, wf.scriptPath);
77
+ if (!fs.existsSync(scriptPath)) {
78
+ console.error(`Workflow script not found: ${scriptPath}`);
79
+ process.exit(1);
80
+ }
81
+
82
+ const argsStr = args.join(' ');
83
+ console.log(`\nTo run the "${name}" workflow in Claude Code:`);
84
+ console.log('\nInvoke via the Workflow tool with:');
85
+ console.log(` scriptPath: "${wf.scriptPath}"`);
86
+ console.log(` args: "${argsStr}"`);
87
+ console.log(`\nOr use the command: ${wf.command} ${argsStr}`);
88
+ console.log('\nThe Workflow tool runs in Claude Code\'s native multi-agent environment.');
89
+ console.log('Phases: ' + wf.phases.map(p => p.title).join(' -> ') + '\n');
90
+ }
91
+
92
+ function run(subcommand, args) {
93
+ switch (subcommand) {
94
+ case 'list':
95
+ cmdList();
96
+ break;
97
+ case 'info':
98
+ cmdInfo(args[0]);
99
+ break;
100
+ case 'run':
101
+ cmdRun(args[0], args.slice(1));
102
+ break;
103
+ default:
104
+ console.error(`Unknown workflow subcommand: ${subcommand || '(none)'}`);
105
+ console.error('Usage: workflow <list|info|run> [args]');
106
+ process.exit(1);
107
+ }
108
+ }
109
+
110
+ module.exports = { run };
@@ -194,4 +194,29 @@ mindforge <command> [options]
194
194
  | `tokens` | Analyze token consumption and cost efficiency |
195
195
  | `learning` | Consult or initialize the project agentic learning memory |
196
196
  | `record-learning` | Append a new Learning Entry to the Evolution Log |
197
+ | `workflow list` | List all available dynamic workflows with descriptions |
198
+ | `workflow info <name>` | Show phases and metadata for a specific workflow |
199
+ | `workflow run <name> [args]` | Display invocation instructions for a workflow |
200
+
201
+ ---
202
+
203
+ ## 🚀 Dynamic Workflow Library
204
+
205
+ Pre-built multi-agent workflow scripts triggered via `/mindforge:wf-*` commands. Each runs via Claude Code's `Workflow` tool with true parallel agent execution.
206
+
207
+ | Command | Tier | Description |
208
+ | :--- | :--- | :--- |
209
+ | `/mindforge:wf-catalog` | — | Browse all 12 workflows grouped by tier |
210
+ | `/mindforge:wf-deep-research` | research | Fan-out web research → adversarial verify → cited report |
211
+ | `/mindforge:wf-competitive-analysis` | research | 5× parallel angles → SWOT → positioning |
212
+ | `/mindforge:wf-tech-evaluation` | research | 5× dimensions → scored matrix → recommendation |
213
+ | `/mindforge:wf-code-audit` | dev | 3× parallel auditors → verified findings → risk report |
214
+ | `/mindforge:wf-feature-planner` | dev | Brief → PRD → architecture → user stories pipeline |
215
+ | `/mindforge:wf-pr-review` | dev | 4× parallel reviewers → consensus verdict |
216
+ | `/mindforge:wf-tdd-sprint` | dev | Spec → RED → GREEN → REFACTOR loop |
217
+ | `/mindforge:wf-refactor-plan` | dev | Debt scan → risk-sort → safe sequence → plan |
218
+ | `/mindforge:wf-incident-response` | ops | 4× parallel investigation → mitigate → RCA → postmortem |
219
+ | `/mindforge:wf-release-prep` | ops | Tests → changelog → version bump → PR → announcement |
220
+ | `/mindforge:wf-onboard-codebase` | intelligence | Map → domain → architecture → guided tour |
221
+ | `/mindforge:wf-perf-optimize` | intelligence | Profile → 4× bottleneck hunt → prioritized fix plan |
197
222
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindforge-cc",
3
- "version": "11.6.0",
3
+ "version": "11.7.0",
4
4
  "description": "MindForge \u2014 Sovereign Agentic Intelligence Framework. Sovereign Stability: Production-Hardened Agentic Intelligence (v11)",
5
5
  "bin": {
6
6
  "mindforge-cc": "bin/install.js",
@@ -23,6 +23,7 @@
23
23
  ".mindforge/schemas/",
24
24
  ".mindforge/personas/",
25
25
  ".mindforge/skills/",
26
+ ".mindforge/dynamic-workflows/",
26
27
  ".mindforge/governance/",
27
28
  ".mindforge/integrations/",
28
29
  ".mindforge/intelligence/",