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,298 +1,36 @@
1
- # MindForge — Map Codebase Command
2
- # Usage: /mindforge:map-codebase [area]
3
- # Onboards MindForge to an existing (brownfield) codebase.
4
- # Run this INSTEAD of /mindforge:init-project when joining an existing project.
5
-
6
- ## When to use this command
7
- - Joining an existing project that has no MindForge context files
8
- - Adding MindForge to a team that already has a codebase
9
- - Onboarding to a new-to-you repository
10
- - Re-mapping after major architectural changes
11
-
12
- ## What it produces
13
- - `.planning/ARCHITECTURE.md` system architecture discovered from code
14
- - `.planning/PROJECT.md` — project identity inferred from codebase + user confirmation
15
- - `.mindforge/org/CONVENTIONS.md` — actual conventions found in the code
16
- - `.planning/STATE.md` — current position (MindForge onboarded, ready to plan)
17
- - `.planning/decisions/ADR-NNN-[title].md` — key architectural decisions found
18
-
19
- ## Pre-execution security check
20
-
21
- Before reading ANY files, build an exclusion list.
22
- NEVER read these file patterns during codebase mapping:
23
-
24
- ```bash
25
- # Build the exclusion list
26
- EXCLUDED_PATTERNS=(
27
- "*.env" ".env.*" "*.env.local"
28
- "*.key" "*.pem" "*.p12" "*.pfx"
29
- "secrets/*" "**/secrets/*" "**/.secrets/*"
30
- "*.secret" "*credentials*"
31
- ".npmrc" # may contain npm tokens
32
- ".pypirc" # may contain PyPI tokens
33
- "~/.aws/*" "~/.ssh/*"
34
- )
35
- ```
36
-
37
- For any file the agent is about to read, check:
38
- 1. Does the file name match any excluded pattern?
39
- 2. Is the file in a directory named `secrets/`, `.secrets/`, or `credentials/`?
40
- 3. Is the file listed in `.gitignore`? (`.gitignore` files are intentionally excluded from git for a reason)
41
-
42
- If yes to any: SKIP the file. Log that it was skipped.
43
- Do not include any content from excluded files in ARCHITECTURE.md or CONVENTIONS.md.
44
-
45
- ## Step 0 — Clean up any previous mapping artifacts
46
-
47
- ```bash
48
- # Remove any stale temp files from a previous mapping attempt
49
- if [ -d ".planning/map-temp" ]; then
50
- echo "Cleaning up previous mapping session..."
51
- rm -rf .planning/map-temp
52
- fi
53
- mkdir -p .planning/map-temp
54
- ```
55
-
56
- ## Step 1 — Codebase inventory
57
-
58
- Spawn FOUR parallel subagents. Each focuses on one analysis area.
59
- Each subagent writes its findings to a temporary file.
60
-
61
- ### Subagent A — Technology Stack Analyst
62
- Context: minimal (CONVENTIONS.md template + task description)
63
- Persona: architect.md
64
- Task:
65
- ```
66
- Analyse this repository's technology stack. Read:
67
- - package.json / requirements.txt / Cargo.toml / go.mod (root and workspaces)
68
- - Dockerfile, docker-compose.yml (if present)
69
- - CI/CD configuration: .github/workflows/, .gitlab-ci.yml, .circleci/
70
- - Infrastructure files: terraform/, pulumi/, k8s/, helm/
71
-
72
- Write to: .planning/map-temp/STACK.md
73
- Include:
74
- - Runtime/language and version
75
- - Framework(s) and versions
76
- - Database(s) used
77
- - Cache and queue systems
78
- - Testing framework(s)
79
- - Build and bundling tools
80
- - Deployment target (AWS/GCP/Azure/bare metal/etc.)
81
- - External services integrated (payment, email, auth, etc.)
82
- ```
83
-
84
- ### Subagent B — Architecture Analyst
85
- Context: minimal
86
- Persona: architect.md
87
- Task:
88
- ```
89
- Analyse this repository's architecture. Read:
90
- - All files in src/ (or equivalent) — structure, not content
91
- - README.md and any docs/ directory
92
- - Any architecture diagrams (look for .png, .svg, .drawio in docs/)
93
- - Entry points: index.ts, main.py, app.go, server.ts (root-level)
94
-
95
- Write to: .planning/map-temp/ARCHITECTURE-RAW.md
96
- Include:
97
- - Architectural pattern: MVC / Clean Architecture / Hexagonal / Modular Monolith / Microservices
98
- - Domain model: what are the core entities? (infer from models/, entities/, types/)
99
- - API surface: public endpoints found in routes/, controllers/, handlers/
100
- - Module structure: how is the code organised? Feature-based / Layer-based?
101
- - Key design patterns in use: Repository, Service, Factory, Observer, etc.
102
- ```
103
-
104
- ### Scale handling for large codebases
105
-
106
- Before reading source files, count them:
107
- ```bash
108
- find src/ -type f \( -name "*.ts" -o -name "*.py" -o -name "*.go" \) | wc -l
109
- ```
110
-
111
- If count > 200 files: use sampling strategy instead of full read:
112
- - Read 3 files from each top-level subdirectory
113
- - Prioritise: largest files (by size), entry points (index.*, main.*, app.*)
114
- - Read the full Prisma schema / SQLAlchemy models / Django models file (always)
115
- - Read all route/controller index files (always)
116
- - Sample 2-3 files per feature directory
117
- - Do NOT read test files during mapping (they follow source patterns, not add to them)
118
-
119
- If count > 1000 files: read only entry points, schema files, and top-level indices.
120
- Report to the user: "Large codebase detected ([N] source files).
121
- Using sampling strategy — some conventions may require manual confirmation."
122
-
123
- ### Subagent C — Conventions Analyst
124
- Context: minimal
125
- Persona: developer.md
126
- Task:
127
- ```
128
- Analyse the actual coding conventions used in this repository.
129
- Read 5-10 representative source files from different areas of the codebase.
130
-
131
- Write to: .planning/map-temp/CONVENTIONS-RAW.md
132
- Infer and document:
133
- - Naming conventions: variables, functions, classes, files, database columns
134
- - Import order and grouping style
135
- - Error handling patterns: how are errors thrown and caught?
136
- - TypeScript patterns: preferred type patterns, generic usage
137
- - Comment style: JSDoc, inline, etc.
138
- - Test file naming and location pattern
139
- - Async patterns: callbacks / promises / async-await
140
- - State management (frontend): if applicable
141
- - Any recurring patterns that appear across multiple files
142
-
143
- Important: document what IS there, not what should be there.
144
- This is a description of reality, not a prescription.
145
- ```
146
-
147
- ### Subagent D — Quality Baseline Analyst
148
- Context: minimal
149
- Persona: qa-engineer.md
150
- Task:
151
- ```
152
- Assess the current quality baseline of this repository.
153
-
154
- Write to: .planning/map-temp/QUALITY-BASELINE.md
155
- Check:
156
- - Test coverage: does a test suite exist? What framework? Run: [test command] --coverage
157
- - Linting: is a linter configured? (.eslintrc, .pylintrc, ruff.toml, etc.)
158
- - Type checking: TypeScript config? Strict mode enabled?
159
- - CI/CD: does it run tests on PRs?
160
- - Security: any security scanning in CI?
161
- - Known issues: open GitHub/GitLab issues, TODO count in source
162
-
163
- Note: do not fix anything. Only document what exists.
164
- ```
165
-
166
- ## Step 2 — Synthesise findings
167
-
168
- Read all four temp files. Synthesise into the permanent context files.
169
-
170
- ### Write `.planning/ARCHITECTURE.md`
171
-
172
- Use ARCHITECTURE-RAW.md as input. Write a clean, structured architecture document:
173
-
174
- ```markdown
175
- # [Project Name] — Architecture
176
-
177
- ## System overview
178
- [2-3 sentences from the subagent's findings]
179
-
180
- ## Technology stack
181
- [From STACK.md — organised by layer]
182
-
183
- ## Architectural pattern
184
- [From ARCHITECTURE-RAW.md]
185
-
186
- ## Domain model
187
- [Core entities and their relationships]
188
-
189
- ## API surface
190
- [Key endpoints / GraphQL operations / gRPC services found]
191
-
192
- ## Module structure
193
- [How the codebase is organised]
194
-
195
- ## External integrations
196
- [Third-party services found]
197
-
198
- ## Known architectural decisions
199
- [Any ADRs, architecture docs, or README decisions found]
200
-
201
- ## Quality baseline
202
- [From QUALITY-BASELINE.md — honest assessment]
203
-
204
- ## MindForge onboarding notes
205
- [What was inferred vs. confirmed, what needs human review]
206
- ```
207
-
208
- ### Write `.mindforge/org/CONVENTIONS.md`
209
-
210
- Use CONVENTIONS-RAW.md as input. Write the conventions file in the standard format,
211
- but clearly mark inferred conventions:
212
-
213
- ```markdown
214
- # Coding Conventions — [Project Name]
215
- # Source: Inferred from codebase analysis by MindForge
216
- # Status: DRAFT — confirm with team before treating as authoritative
217
-
218
- ## IMPORTANT
219
- These conventions were inferred from code analysis. Review each section
220
- and mark as [CONFIRMED] or [NEEDS REVIEW] before running /mindforge:plan-phase.
221
-
222
- ## Naming conventions [NEEDS REVIEW]
223
- [What was found]
224
- ```
225
-
226
- ## Step 3 — Present findings for confirmation
227
-
228
- Present a summary to the user. Ask for confirmation and corrections:
229
-
230
- ```
231
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
232
- MindForge Codebase Analysis Complete
233
-
234
- Stack:
235
- Runtime : Node.js 20 (inferred from .nvmrc)
236
- Framework : Next.js 14 (inferred from package.json)
237
- Database : PostgreSQL via Prisma (inferred from prisma/schema.prisma)
238
- Auth : NextAuth.js (inferred from package.json)
239
-
240
- Architecture:
241
- Pattern : Feature-based modular (inferred from src/ structure)
242
- Entities : User, Organization, Project, Task (inferred from Prisma schema)
243
- API : REST API in src/app/api/ (24 route files found)
244
-
245
- Quality baseline:
246
- Tests : Vitest, ~340 test files, ~67% coverage (inferred from coverage report)
247
- Linting : ESLint configured, strict TypeScript
248
- CI/CD : GitHub Actions (4 workflows)
249
-
250
- Conventions: see .mindforge/org/CONVENTIONS.md (DRAFT — needs review)
251
-
252
- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
253
-
254
- Does this look correct? (yes / correct [field]: [value] / no)
255
- ```
256
-
257
- Wait for user confirmation. Apply any corrections the user provides.
258
-
259
- ## Step 4 — Write PROJECT.md and STATE.md
260
-
261
- After confirmation, write:
262
-
263
- `.planning/PROJECT.md` — populated with confirmed findings
264
- `.planning/STATE.md` — status: "Codebase mapped. Ready to plan first phase."
265
- Add a warning in STATE.md if CONVENTIONS.md is still DRAFT and requires review.
266
- `.planning/HANDOFF.json` — updated with onboarding completion
267
-
268
- ## Step 5 — Clean up and report
269
-
270
- After analysis completes, delete `.planning/map-temp/` to avoid stale data.
271
-
272
- ```bash
273
- rm -rf .planning/map-temp/
274
- ```
275
-
276
- Report to user:
277
- "✅ Codebase mapped.
278
-
279
- Files created:
280
- .planning/ARCHITECTURE.md
281
- .planning/PROJECT.md
282
- .mindforge/org/CONVENTIONS.md (DRAFT — please review)
283
- .planning/STATE.md
284
-
285
- Review .mindforge/org/CONVENTIONS.md and mark each section as [CONFIRMED].
286
- Then run /mindforge:plan-phase 1 to begin your first phase."
287
-
288
- Write AUDIT entry:
289
- ```json
290
- {
291
- "event": "codebase_mapped",
292
- "files_analysed": [N],
293
- "entities_found": [N],
294
- "api_routes_found": [N],
295
- "conventions_confidence": "medium",
296
- "requires_human_review": [".mindforge/org/CONVENTIONS.md"]
297
- }
298
- ```
1
+ ---
2
+ name: mindforge:map-codebase
3
+ description: Onboard MindForge to an existing project by mapping architecture and conventions
4
+ argument-hint: [area]
5
+ allowed-tools:
6
+ - run_command
7
+ - list_dir
8
+ - view_file
9
+ - write_to_file
10
+ ---
11
+
12
+ <objective>
13
+ Rapidly bootstrap MindForge context for brownfield repositories by scanning files to infer architecture, technology stack, and actual coding conventions used by the existing team.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/map-codebase.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Target: Existing repositories without MindForge initialization.
22
+ Security: Enforces strict exclusion list (secrets, keys, pems, ignores).
23
+ Strategy: Sampling for large codebases (>200 files).
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Inventory**: Count source files and decide on a reading strategy (Sampling vs. Full).
28
+ 2. **Parallel Analysis**:
29
+ - **Stack Agent**: Identify runtimes, frameworks, and databases.
30
+ - **Architect Agent**: Discover architectural patterns and domain models.
31
+ - **Convention Agent**: Document actual naming and error handling patterns found in code.
32
+ - **Quality Agent**: Assess testing and linting status.
33
+ 3. **Synthesis**: Write `ARCHITECTURE.md`, `PROJECT.md`, and a draft `CONVENTIONS.md`.
34
+ 4. **Review**: Present findings to the user for correction and confirmation.
35
+ 5. **Initialize**: Finalize `STATE.md` and transition the project to "Ready to plan".
36
+ </process>
@@ -1,120 +1,33 @@
1
- # MindForge v2 — Marketplace Command
2
- # Usage: /mindforge:marketplace [search|featured|trending|install|publish]
3
- # Version: v2.0.0-alpha.6
4
-
5
- ## Purpose
6
- Discover, evaluate, and install community-published MindForge skills from the
7
- marketplace — a curated layer on top of the npm registry.
8
-
9
- The marketplace is the shortcut: instead of learning from documentation yourself,
10
- install skills that the community has already created, validated, and battle-tested.
11
-
12
- ## Sub-commands
13
-
14
- ### search [query]
15
- Find skills relevant to your tech stack or domain.
16
- ```
17
- /mindforge:marketplace search "prisma"
18
- /mindforge:marketplace search "stripe payment processing"
19
- /mindforge:marketplace search "HIPAA compliance"
20
- /mindforge:marketplace search "graphql api"
21
- ```
22
-
23
- Output:
24
- ```
25
- 🔍 Marketplace search: "prisma" (6 results)
26
-
27
- 1. prisma-advanced (v1.2.3)
28
- Advanced Prisma patterns: relations, migrations, performance, cursor pagination
29
- 847 installs this week
30
-
31
- 2. prisma-schema (v1.0.1)
32
- Prisma schema design: models, relations, enums, cascade rules
33
- 234 installs this week
34
-
35
- 3. prisma-testing (v1.0.0)
36
- Testing Prisma with Jest: database seeding, teardown, transaction rollback
37
- 156 installs this week
38
-
39
- Install: /mindforge:marketplace install prisma-advanced
40
- ```
41
-
42
- ### featured
43
- Show curated featured skills by category.
44
- ```
45
- /mindforge:marketplace featured
46
- ```
47
-
48
- Output:
49
- ```
50
- 🏪 MindForge Community Skills — Featured
51
-
52
- Database:
53
- db-postgres-advanced v2.1.0 — Advanced PostgreSQL patterns, indexes, partitioning
54
- db-prisma-advanced v1.2.0 — Prisma relations, migrations, query optimisation
55
- db-drizzle v1.0.0 — Drizzle ORM type-safe patterns
56
-
57
- API:
58
- api-graphql v1.4.0 — GraphQL schema, resolvers, N+1 prevention
59
- api-rest v2.0.0 — REST API design, versioning, error schemas
60
-
61
- Compliance:
62
- fintech-pci-compliance v1.1.0 — PCI DSS Level 1 safeguards
63
- healthtech-hipaa v1.0.1 — HIPAA Security Rule for PHI
64
- [more...]
65
- ```
66
-
67
- ### trending
68
- Show most-installed skills this month.
69
- ```
70
- /mindforge:marketplace trending
71
- ```
72
-
73
- ### install [name] [--tier project|org]
74
- Install a marketplace skill.
75
- ```
76
- /mindforge:marketplace install prisma-advanced
77
- /mindforge:marketplace install mindforge-skill-api-graphql --tier org
78
- /mindforge:marketplace install fintech-pci-compliance --tier project
79
- ```
80
-
81
- Short names work (without `mindforge-skill-` prefix).
82
- Delegates to `/mindforge:install-skill` for actual installation.
83
- Shows quality score and session_quality_lift before installing.
84
-
85
- ### publish [skill-dir]
86
- Publish a skill to the community marketplace.
87
- ```
88
- /mindforge:marketplace publish .mindforge/skills/my-skill/
89
- ```
90
-
91
- Requirements:
92
- - Quality score ≥ 80/100
93
- - No injection patterns
94
- - Has complete version history
95
- - Has author contact (GitHub issues URL)
96
-
97
- ## Skill quality display format
98
-
99
- ```
100
- 📊 Skill: prisma-advanced v1.2.3
101
- Quality score: 94/100 (Excellent)
102
- ★★★★★ Session quality lift: +8.2 points (over 1,247 sessions)
103
- 847 installs/week | Published by: @prisma-community
104
-
105
- Top trigger keywords: "prisma schema", "@relation", "prisma migrate",
106
- "prisma generate", "onDelete", "cursor pagination"
107
-
108
- [Install] [Preview SKILL.md] [View on npm]
109
- ```
110
-
111
- ## AUDIT entry
112
- ```json
113
- {
114
- "event": "marketplace_action",
115
- "action": "search|install|publish",
116
- "query": "[search query if search]",
117
- "skill_name": "[name if install/publish]",
118
- "quality_score": 94
119
- }
120
- ```
1
+ ---
2
+ name: mindforge:marketplace
3
+ description: Discover, evaluate, and install community-published skills
4
+ argument-hint: [search|featured|trending|install|publish]
5
+ allowed-tools:
6
+ - run_command
7
+ - list_dir
8
+ - view_file
9
+ ---
10
+
11
+ <objective>
12
+ Provide a central hub for sharing and consuming battle-tested MindForge skills, allowing developers to extend their agent's capabilities without manual documentation research.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ .claude/commands/mindforge/marketplace.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Platform: Curated layer over npm.
21
+ Subcommands: search, featured, trending, install, publish.
22
+ Quality: Enforces quality scores and session quality lift metrics.
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Query Subcommand**:
27
+ - `search`: Find relevant skills based on tech stack or domain keywords.
28
+ - `featured/trending`: Display curated or popular skill lists.
29
+ 2. **Install Flow**: Delegate to `/mindforge:install-skill` while surfacing quality scores and expected quality lift.
30
+ 3. **Publish Flow**: Validate skill directory for quality (score >= 80), injection safety, and complete history before pushing.
31
+ 4. **Render Format**: Display skills with detailed metrics (installs, lifters, triggers).
32
+ 5. **Audit**: Log `marketplace_action` including query/skill name and quality scores.
33
+ </process>
@@ -1,22 +1,33 @@
1
- # MindForge — Metrics Command
2
- # Usage: /mindforge:metrics [--phase N] [--window short|medium|long] [--export path]
1
+ ---
2
+ name: mindforge:metrics
3
+ description: Display session and phase quality trends with early warning signals
4
+ argument-hint: [--phase N] [--window short|medium|long] [--export path]
5
+ allowed-tools:
6
+ - list_dir
7
+ - view_file
8
+ - write_to_file
9
+ ---
3
10
 
4
- Display session and phase quality trends with early warning signals.
11
+ <objective>
12
+ Provide a dashboard of software delivery metrics, identifying quality trends and providing early warning signals for architectural or process decay.
13
+ </objective>
5
14
 
6
- ## Data sources
7
- - `.mindforge/metrics/session-quality.jsonl`
8
- - `.mindforge/metrics/phase-metrics.jsonl`
9
- - `.mindforge/metrics/skill-usage.jsonl`
10
- - `.mindforge/metrics/compaction-quality.jsonl`
11
- - `.planning/AUDIT.jsonl` for correlation
15
+ <execution_context>
16
+ .claude/commands/mindforge/metrics.md
17
+ </execution_context>
12
18
 
13
- ## Dashboard sections
14
- - session quality trend
15
- - verify pass/security/failure/compaction summary
16
- - skill usage distribution
17
- - early warnings + recommendations
19
+ <context>
20
+ Sources: .mindforge/metrics/*.jsonl, .planning/AUDIT.jsonl
21
+ Sub-metrics: Session quality, phase metrics, skill usage, compaction quality.
22
+ </context>
18
23
 
19
- ## AUDIT
20
- ```json
21
- { "event": "metrics_viewed", "window": "short", "early_warnings": 0 }
22
- ```
24
+ <process>
25
+ 1. **Fetch Metrics**: Read the relevant JSONL logs based on the requested window.
26
+ 2. **Analyze Trends**: Correlate session quality with verify pass rates and security findings.
27
+ 3. **Build Dashboard**:
28
+ - Quality trends graph (text-based).
29
+ - Failure/Compaction summary.
30
+ - Early warnings (e.g., "Rising complexity in Wave 2").
31
+ 4. **Export (Optional)**: If requested, write the aggregated metrics to the target path.
32
+ 5. **Log**: Record `metrics_viewed` in the audit log.
33
+ </process>
@@ -1,40 +1,33 @@
1
- # MindForge — Migrate Command
2
- # Usage: /mindforge:migrate [--from X.Y.Z] [--to X.Y.Z] [--dry-run] [--force]
3
-
4
- ## Purpose
5
- Run explicit schema migrations for .planning/ files.
6
- Normally triggered automatically by /mindforge:update.
7
- Use this command manually when: auto-migration failed, manual version jump, recovery.
8
-
9
- ## Flow
10
-
11
- ### Auto-detect migration need
12
- Read `schema_version` from HANDOFF.json.
13
- Compare against current `package.json` version.
14
- Determine migration path.
15
-
16
- ### Dry-run mode (--dry-run)
17
- Show: which migrations would run, what each changes.
18
- Show: breaking changes for the migration path.
19
- Make NO changes to any file.
20
-
21
- ### Backup first
22
- Before any changes: create `.planning/migration-backup-[timestamp]/`
23
- Verify backup integrity (file count, non-empty).
24
- If backup fails: ABORT. Explain disk space issue.
25
-
26
- ### Execute migrations
27
- Run `node bin/migrations/migrate.js`.
28
- Show progress for each migration.
29
- If any migration fails: auto-restore from backup.
30
-
31
- ### Verify
32
- Run /mindforge:health after migration.
33
- If health errors: report with specific fix instructions.
34
- Preserve backup until user is satisfied — they must delete it manually.
35
-
36
- ## Manual version override
37
- `/mindforge:migrate --from 0.1.0 --to 1.0.0` — forces migration between specified versions.
38
- Use with care: intended for recovery scenarios where HANDOFF.json schema_version is wrong.
39
-
40
- ## AUDIT entry
1
+ ---
2
+ name: mindforge:migrate
3
+ description: Run explicit schema migrations for planning artifacts
4
+ argument-hint: [--from X.Y.Z] [--to X.Y.Z] [--dry-run] [--force]
5
+ allowed-tools:
6
+ - run_command
7
+ - list_dir
8
+ - view_file
9
+ - write_to_file
10
+ ---
11
+
12
+ <objective>
13
+ Ensures consistency and compatibility of planning files (.planning/*.md, handoff.json) across different versions of MindForge by executing structured schema migrations.
14
+ </objective>
15
+
16
+ <execution_context>
17
+ .claude/commands/mindforge/migrate.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Detection: Compares `schema_version` in HANDOFF.json with current framework version.
22
+ Safety: Mandatory backup before mutation.
23
+ Engine: bin/migrations/migrate.js
24
+ </context>
25
+
26
+ <process>
27
+ 1. **Detect Path**: Determine the migration range based on HANDOFF.json vs package.json.
28
+ 2. **Backup**: Create a timestamped backup of the `.planning/` directory.
29
+ 3. **Dry-run**: Show the user which files will be modified and describe any breaking schema changes.
30
+ 4. **Execute**: Run the migration scripts sequentially across the target files.
31
+ 5. **Verify**: Run `/mindforge:health` to ensure the post-migration state is valid.
32
+ 6. **Audit**: Log success or failure of the migration process.
33
+ </process>
@@ -1,12 +1,35 @@
1
- Create or update a milestone definition in `.planning/milestones/` and track the
2
- health of grouped phases. Usage: `/mindforge:milestone <name> [phase list]`
3
-
4
- ## Outputs
5
- - milestone document with included phases
6
- - health summary (on track, at risk, blocked)
7
- - linked approvals, blockers, and verification status
8
-
9
- ## Health rules
10
- - any blocked phase makes the milestone at risk
11
- - missing verification keeps milestone status yellow
12
- - completed verified phases count toward release readiness
1
+ ---
2
+ name: mindforge:milestone
3
+ description: Create or update a milestone definition and track grouped phase health
4
+ argument-hint: <name> [phase list]
5
+ allowed-tools:
6
+ - list_dir
7
+ - write_to_file
8
+ - view_file
9
+ ---
10
+
11
+ <objective>
12
+ Define and track major project milestones by grouping phases, monitoring their health, and linking approvals and verification status.
13
+ </objective>
14
+
15
+ <execution_context>
16
+ .claude/commands/mindforge/milestone.md
17
+ </execution_context>
18
+
19
+ <context>
20
+ Arguments: $ARGUMENTS (Name of milestone and optional list of phase numbers)
21
+ Storage: .planning/milestones/
22
+ Health Rules: Any blocked phase makes the milestone "at risk".
23
+ </context>
24
+
25
+ <process>
26
+ 1. **Parse Arguments**: Extract milestone name and phase list.
27
+ 2. **Read State**: Check existing phases in `.planning/phases/`.
28
+ 3. **Generate/Update Milestone**:
29
+ - Create/update `.planning/milestones/[name].md`.
30
+ - Include phase list, health summary (on track, at risk, blocked), and verification status.
31
+ 4. **Evaluate Health**:
32
+ - Mark as "at risk" if any linked phase is blocked.
33
+ - Monitor for completed vs. verified phases for release readiness.
34
+ 5. **Report**: Summarize milestone health and next actions to the user.
35
+ </process>