mindforge-cc 2.0.0 → 2.1.1
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/bin/lib/commands.cjs +959 -0
- package/.agent/bin/lib/config.cjs +421 -0
- package/.agent/bin/lib/core.cjs +1166 -0
- package/.agent/bin/lib/frontmatter.cjs +307 -0
- package/.agent/bin/lib/init.cjs +1336 -0
- package/.agent/bin/lib/milestone.cjs +252 -0
- package/.agent/bin/lib/model-profiles.cjs +68 -0
- package/.agent/bin/lib/phase.cjs +888 -0
- package/.agent/bin/lib/profile-output.cjs +952 -0
- package/.agent/bin/lib/profile-pipeline.cjs +539 -0
- package/.agent/bin/lib/roadmap.cjs +329 -0
- package/.agent/bin/lib/security.cjs +356 -0
- package/.agent/bin/lib/state.cjs +969 -0
- package/.agent/bin/lib/template.cjs +222 -0
- package/.agent/bin/lib/uat.cjs +189 -0
- package/.agent/bin/lib/verify.cjs +851 -0
- package/.agent/bin/lib/workstream.cjs +491 -0
- package/.agent/bin/mindforge-tools.cjs +897 -0
- package/.agent/file-manifest.json +219 -0
- package/.agent/hooks/mindforge-check-update.js +114 -0
- package/.agent/hooks/mindforge-context-monitor.js +156 -0
- package/.agent/hooks/mindforge-prompt-guard.js +96 -0
- package/.agent/hooks/mindforge-statusline.js +119 -0
- package/.agent/hooks/mindforge-workflow-guard.js +94 -0
- package/.agent/mindforge/add-backlog.md +32 -0
- package/.agent/mindforge/agent.md +31 -0
- package/.agent/mindforge/discuss-phase.md +1 -1
- package/.agent/mindforge/do.md +31 -0
- package/.agent/mindforge/help.md +1 -1
- package/.agent/mindforge/learn.md +3 -2
- package/.agent/mindforge/note.md +35 -0
- package/.agent/mindforge/plant-seed.md +31 -0
- package/.agent/mindforge/research.md +3 -2
- package/.agent/mindforge/review-backlog.md +34 -0
- package/.agent/mindforge/session-report.md +39 -0
- package/.agent/mindforge/steer.md +1 -1
- 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/.agent/settings.json +38 -0
- package/.agent/skills/mindforge-add-backlog/SKILL.md +72 -0
- package/.agent/skills/mindforge-add-phase/SKILL.md +39 -0
- package/.agent/skills/mindforge-add-tests/SKILL.md +28 -0
- package/.agent/skills/mindforge-add-todo/SKILL.md +42 -0
- package/.agent/skills/mindforge-audit-milestone/SKILL.md +29 -0
- package/.agent/skills/mindforge-audit-uat/SKILL.md +20 -0
- package/.agent/skills/mindforge-autonomous/SKILL.md +33 -0
- package/.agent/skills/mindforge-check-todos/SKILL.md +40 -0
- package/.agent/skills/mindforge-cleanup/SKILL.md +19 -0
- package/.agent/skills/mindforge-complete-milestone/SKILL.md +131 -0
- package/.agent/skills/mindforge-debug/SKILL.md +163 -0
- package/.agent/skills/mindforge-discuss-phase/SKILL.md +54 -0
- package/.agent/skills/mindforge-do/SKILL.md +26 -0
- package/.agent/skills/mindforge-execute-phase/SKILL.md +49 -0
- package/.agent/skills/mindforge-fast/SKILL.md +23 -0
- package/.agent/skills/mindforge-forensics/SKILL.md +49 -0
- package/.agent/skills/mindforge-health/SKILL.md +17 -0
- package/.agent/skills/mindforge-help/SKILL.md +23 -0
- package/.agent/skills/mindforge-insert-phase/SKILL.md +28 -0
- package/.agent/skills/mindforge-join-discord/SKILL.md +19 -0
- package/.agent/skills/mindforge-list-phase-assumptions/SKILL.md +41 -0
- package/.agent/skills/mindforge-list-workspaces/SKILL.md +17 -0
- package/.agent/skills/mindforge-manager/SKILL.md +32 -0
- package/.agent/skills/mindforge-map-codebase/SKILL.md +64 -0
- package/.agent/skills/mindforge-milestone-summary/SKILL.md +44 -0
- package/.agent/skills/mindforge-new-milestone/SKILL.md +38 -0
- package/.agent/skills/mindforge-new-project/SKILL.md +36 -0
- package/.agent/skills/mindforge-new-workspace/SKILL.md +39 -0
- package/.agent/skills/mindforge-next/SKILL.md +19 -0
- package/.agent/skills/mindforge-note/SKILL.md +29 -0
- package/.agent/skills/mindforge-pause-work/SKILL.md +35 -0
- package/.agent/skills/mindforge-plan-milestone-gaps/SKILL.md +28 -0
- package/.agent/skills/mindforge-plan-phase/SKILL.md +37 -0
- package/.agent/skills/mindforge-plant-seed/SKILL.md +22 -0
- package/.agent/skills/mindforge-pr-branch/SKILL.md +21 -0
- package/.agent/skills/mindforge-profile-user/SKILL.md +38 -0
- package/.agent/skills/mindforge-progress/SKILL.md +19 -0
- package/.agent/skills/mindforge-quick/SKILL.md +38 -0
- package/.agent/skills/mindforge-reapply-patches/SKILL.md +124 -0
- package/.agent/skills/mindforge-remove-phase/SKILL.md +26 -0
- package/.agent/skills/mindforge-remove-workspace/SKILL.md +22 -0
- package/.agent/skills/mindforge-research-phase/SKILL.md +186 -0
- package/.agent/skills/mindforge-resume-work/SKILL.md +35 -0
- package/.agent/skills/mindforge-review/SKILL.md +31 -0
- package/.agent/skills/mindforge-review-backlog/SKILL.md +58 -0
- package/.agent/skills/mindforge-session-report/SKILL.md +16 -0
- package/.agent/skills/mindforge-set-profile/SKILL.md +9 -0
- package/.agent/skills/mindforge-settings/SKILL.md +32 -0
- package/.agent/skills/mindforge-ship/SKILL.md +16 -0
- package/.agent/skills/mindforge-stats/SKILL.md +16 -0
- package/.agent/skills/mindforge-thread/SKILL.md +123 -0
- package/.agent/skills/mindforge-ui-phase/SKILL.md +24 -0
- package/.agent/skills/mindforge-ui-review/SKILL.md +24 -0
- package/.agent/skills/mindforge-update/SKILL.md +35 -0
- package/.agent/skills/mindforge-validate-phase/SKILL.md +26 -0
- package/.agent/skills/mindforge-verify-work/SKILL.md +30 -0
- package/.agent/skills/mindforge-workstreams/SKILL.md +65 -0
- package/.agent/workflows/mindforge-add-phase.md +112 -0
- package/.agent/workflows/mindforge-add-tests.md +351 -0
- package/.agent/workflows/mindforge-add-todo.md +158 -0
- package/.agent/workflows/mindforge-audit-milestone.md +332 -0
- package/.agent/workflows/mindforge-audit-uat.md +109 -0
- package/.agent/workflows/mindforge-autonomous.md +815 -0
- package/.agent/workflows/mindforge-check-todos.md +177 -0
- package/.agent/workflows/mindforge-cleanup.md +152 -0
- package/.agent/workflows/mindforge-complete-milestone.md +766 -0
- package/.agent/workflows/mindforge-diagnose-issues.md +220 -0
- package/.agent/workflows/mindforge-discovery-phase.md +289 -0
- package/.agent/workflows/mindforge-discuss-phase-assumptions.md +645 -0
- package/.agent/workflows/mindforge-discuss-phase.md +1047 -0
- package/.agent/workflows/mindforge-do.md +104 -0
- package/.agent/workflows/mindforge-execute-phase.md +838 -0
- package/.agent/workflows/mindforge-execute-plan.md +509 -0
- package/.agent/workflows/mindforge-fast.md +105 -0
- package/.agent/workflows/mindforge-forensics.md +265 -0
- package/.agent/workflows/mindforge-health.md +181 -0
- package/.agent/workflows/mindforge-help.md +606 -0
- package/.agent/workflows/mindforge-insert-phase.md +130 -0
- package/.agent/workflows/mindforge-list-phase-assumptions.md +178 -0
- package/.agent/workflows/mindforge-list-workspaces.md +56 -0
- package/.agent/workflows/mindforge-manager.md +360 -0
- package/.agent/workflows/mindforge-map-codebase.md +370 -0
- package/.agent/workflows/mindforge-milestone-summary.md +223 -0
- package/.agent/workflows/mindforge-new-milestone.md +469 -0
- package/.agent/workflows/mindforge-new-project.md +1226 -0
- package/.agent/workflows/mindforge-new-workspace.md +237 -0
- package/.agent/workflows/mindforge-next.md +97 -0
- package/.agent/workflows/mindforge-node-repair.md +92 -0
- package/.agent/workflows/mindforge-note.md +156 -0
- package/.agent/workflows/mindforge-pause-work.md +176 -0
- package/.agent/workflows/mindforge-plan-milestone-gaps.md +273 -0
- package/.agent/workflows/mindforge-plan-phase.md +848 -0
- package/.agent/workflows/mindforge-plant-seed.md +169 -0
- package/.agent/workflows/mindforge-pr-branch.md +129 -0
- package/.agent/workflows/mindforge-profile-user.md +450 -0
- package/.agent/workflows/mindforge-progress.md +507 -0
- package/.agent/workflows/mindforge-quick.md +732 -0
- package/.agent/workflows/mindforge-remove-phase.md +155 -0
- package/.agent/workflows/mindforge-remove-workspace.md +90 -0
- package/.agent/workflows/mindforge-research-phase.md +74 -0
- package/.agent/workflows/mindforge-resume-project.md +325 -0
- package/.agent/workflows/mindforge-review.md +228 -0
- package/.agent/workflows/mindforge-session-report.md +146 -0
- package/.agent/workflows/mindforge-settings.md +283 -0
- package/.agent/workflows/mindforge-ship.md +228 -0
- package/.agent/workflows/mindforge-stats.md +60 -0
- package/.agent/workflows/mindforge-transition.md +671 -0
- package/.agent/workflows/mindforge-ui-phase.md +290 -0
- package/.agent/workflows/mindforge-ui-review.md +157 -0
- package/.agent/workflows/mindforge-update.md +323 -0
- package/.agent/workflows/mindforge-validate-phase.md +167 -0
- package/.agent/workflows/mindforge-verify-phase.md +254 -0
- package/.agent/workflows/mindforge-verify-work.md +623 -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 +109 -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/ROADMAP.md +10 -0
- package/.planning/browser-daemon.log +32 -0
- package/.planning/phases/01-migrate-gsd-to-mindforge/.gitkeep +0 -0
- package/CHANGELOG.md +41 -0
- package/MINDFORGE.md +2 -0
- package/README.md +40 -3
- package/bin/installer-core.js +3 -4
- package/docs/PERSONAS.md +611 -0
- package/docs/commands-reference.md +1 -0
- package/docs/{Context → context}/Master-Context.md +6 -13
- package/docs/references/checkpoints.md +778 -0
- package/docs/{reference → references}/commands.md +53 -43
- package/docs/references/continuation-format.md +249 -0
- package/docs/references/decimal-phase-calculation.md +64 -0
- package/docs/references/git-integration.md +295 -0
- package/docs/references/git-planning-commit.md +38 -0
- package/docs/references/model-profile-resolution.md +36 -0
- package/docs/references/model-profiles.md +139 -0
- package/docs/references/phase-argument-parsing.md +61 -0
- package/docs/references/planning-config.md +202 -0
- package/docs/references/questioning.md +162 -0
- package/docs/references/tdd.md +263 -0
- package/docs/references/ui-brand.md +160 -0
- package/docs/references/user-profiling.md +681 -0
- package/docs/references/verification-patterns.md +612 -0
- package/docs/references/workstream-flag.md +58 -0
- package/docs/skills-authoring-guide.md +1 -1
- package/docs/templates/Agents/CLAUDE-MD.md +122 -0
- package/docs/templates/Agents/COPILOT-INSTRUCTIONS.md +7 -0
- package/docs/templates/Agents/DEBUGGER-PROMPT.md +91 -0
- package/docs/templates/Agents/PLANNER-PROMPT.md +117 -0
- package/docs/templates/Execution/CONTINUE-HERE.md +78 -0
- package/docs/templates/Execution/DISCUSSION-LOG.md +63 -0
- package/docs/templates/Execution/PHASE-PROMPT.md +610 -0
- package/docs/templates/Execution/STATE.md +176 -0
- package/docs/templates/Execution/SUMMARY-COMPLEX.md +59 -0
- package/docs/templates/Execution/SUMMARY-MINIMAL.md +41 -0
- package/docs/templates/Execution/SUMMARY-STANDARD.md +48 -0
- package/docs/templates/Execution/SUMMARY.md +248 -0
- package/docs/templates/Profile/DEV-PREFERENCES.md +21 -0
- package/docs/templates/Profile/USER-PROFILE.md +146 -0
- package/docs/templates/Profile/USER-SETUP.md +311 -0
- package/docs/templates/Project/DISCOVERY.md +146 -0
- package/docs/templates/Project/MILESTONE-ARCHIVE.md +123 -0
- package/docs/templates/Project/MILESTONE.md +115 -0
- package/docs/templates/Project/PROJECT.md +206 -0
- package/docs/templates/Project/REQUIREMENTS.md +231 -0
- package/docs/templates/Project/RETROSPECTIVE.md +54 -0
- package/docs/templates/Project/ROADMAP.md +202 -0
- package/docs/templates/Quality/DEBUG.md +164 -0
- package/docs/templates/Quality/UAT.md +280 -0
- package/docs/templates/Quality/UI-SPEC.md +100 -0
- package/docs/templates/Quality/VALIDATION.md +76 -0
- package/docs/templates/Quality/VERIFICATION-REPORT.md +322 -0
- package/docs/templates/System/CONFIG.json +43 -0
- package/docs/templates/System/CONTEXT.md +352 -0
- package/docs/templates/codebase/architecture.md +255 -0
- package/docs/templates/codebase/concerns.md +310 -0
- package/docs/templates/codebase/conventions.md +307 -0
- package/docs/templates/codebase/integrations.md +280 -0
- package/docs/templates/codebase/stack.md +186 -0
- package/docs/templates/codebase/structure.md +285 -0
- package/docs/templates/codebase/testing.md +480 -0
- package/docs/templates/research/ARCHITECTURE.md +204 -0
- package/docs/templates/research/FEATURES.md +147 -0
- package/docs/templates/research/PITFALLS.md +200 -0
- package/docs/templates/research/STACK.md +120 -0
- package/docs/templates/research/SUMMARY.md +170 -0
- package/docs/user-guide.md +1 -1
- package/package.json +7 -2
- /package/docs/{reference → references}/audit-events.md +0 -0
- /package/docs/{reference → references}/config-reference.md +0 -0
- /package/docs/{reference → references}/sdk-api.md +0 -0
- /package/docs/{reference → references}/skills-api.md +0 -0
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
name: mindforge:help
|
|
3
|
+
description: Show all available MindForge commands and current project summary
|
|
4
|
+
argument-hint: none
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- list_dir
|
|
7
|
+
- view_file
|
|
8
|
+
---
|
|
2
9
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
10
|
+
<objective>
|
|
11
|
+
Provide a searchable, categorized directory of all accessible MindForge commands, along with a quick snapshot of the project's current state.
|
|
12
|
+
</objective>
|
|
6
13
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
14
|
+
<execution_context>
|
|
15
|
+
.claude/commands/mindforge/help.md
|
|
16
|
+
</execution_context>
|
|
10
17
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
| ... | ... |
|
|
18
|
+
<context>
|
|
19
|
+
Discovery: Scans `.claude/commands/mindforge/*.md`
|
|
20
|
+
State: PROJECT.md and STATE.md
|
|
21
|
+
</context>
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
5.
|
|
23
|
-
|
|
23
|
+
<process>
|
|
24
|
+
1. **Command Scan**: List all markdown definitions in the command directory and extract their first-line descriptions or YAML metadata.
|
|
25
|
+
2. **Read Project Info**: Summarize the current project name, active phase, and recommended next step.
|
|
26
|
+
3. **Format Dashboard**: Render a clean table of commands and descriptions.
|
|
27
|
+
4. **Verify Context**: If `CLAUDE.md` hasn't been read in the current session, remind the user to load it as the agent's context.
|
|
28
|
+
5. **Display**: Present the help table and project summary.
|
|
29
|
+
</process>
|
|
@@ -1,131 +1,37 @@
|
|
|
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
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Generate sensible defaults based on the tech stack detected.
|
|
39
|
-
For TypeScript/Node.js stacks: strict TypeScript, ESLint, Conventional Commits
|
|
40
|
-
For Python stacks: ruff, mypy, black formatting
|
|
41
|
-
For Go: standard Go toolchain conventions
|
|
42
|
-
Mark each section clearly: [DEFAULT] or [CUSTOMISE THIS]
|
|
43
|
-
|
|
44
|
-
### `.mindforge/org/SECURITY.md`
|
|
45
|
-
Generate based on declared compliance frameworks:
|
|
46
|
-
- GDPR → include GDPR-specific policies
|
|
47
|
-
- HIPAA → include PHI handling requirements
|
|
48
|
-
- PCI-DSS → include card data handling policies
|
|
49
|
-
- SOC 2 → include access control requirements
|
|
50
|
-
Mark critical sections: [REVIEW WITH SECURITY TEAM]
|
|
51
|
-
|
|
52
|
-
### `.mindforge/org/TOOLS.md`
|
|
53
|
-
Generate approved library list based on tech stack.
|
|
54
|
-
Include common forbidden libraries (moment.js, request, etc.)
|
|
55
|
-
Mark: [ADD YOUR APPROVED LIBRARIES]
|
|
56
|
-
|
|
57
|
-
### `.mindforge/org/integrations/INTEGRATIONS-CONFIG.md`
|
|
58
|
-
Pre-populate based on declared platforms:
|
|
59
|
-
- GitHub → fill GitHub config section
|
|
60
|
-
- Jira → fill Jira config section
|
|
61
|
-
Mark credential fields clearly: [SET VIA ENVIRONMENT VARIABLE]
|
|
62
|
-
|
|
63
|
-
### `.mindforge/governance/GOVERNANCE-CONFIG.md`
|
|
64
|
-
Pre-populate based on declared approvers and compliance frameworks.
|
|
65
|
-
Higher compliance burden → lower Tier 2/3 thresholds.
|
|
66
|
-
Stricter approval SLAs for HIPAA/PCI-DSS organisations.
|
|
67
|
-
|
|
68
|
-
## Step 3 — Generate skills recommendation
|
|
69
|
-
|
|
70
|
-
Based on the tech stack and compliance requirements, recommend skills to install:
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
Recommended skills for your tech stack:
|
|
74
|
-
|
|
75
|
-
Core skills (already included — v0.6.0):
|
|
76
|
-
✅ security-review, code-quality, api-design, testing-standards, documentation,
|
|
77
|
-
performance, accessibility, data-privacy, incident-response, database-patterns
|
|
78
|
-
|
|
79
|
-
Additional skills recommended for your stack:
|
|
80
|
-
[tech-stack-specific recommendations from registry]
|
|
81
|
-
|
|
82
|
-
For your compliance requirements:
|
|
83
|
-
[compliance-specific skill recommendations]
|
|
84
|
-
|
|
85
|
-
Install all recommendations?
|
|
86
|
-
yes → npx mindforge-skills install [list]
|
|
87
|
-
no → I'll show you the install commands for each
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
## Step 4 — Create distribution package
|
|
91
|
-
|
|
92
|
-
Offer to create an org-skills npm package for distributing org-level config:
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
Create `@your-org/mindforge-config` npm package?
|
|
96
|
-
This package will distribute your org-level MindForge configuration
|
|
97
|
-
to all projects in your organisation via: npx @your-org/mindforge-config
|
|
98
|
-
|
|
99
|
-
Files included:
|
|
100
|
-
.mindforge/org/ORG.md
|
|
101
|
-
.mindforge/org/CONVENTIONS.md
|
|
102
|
-
.mindforge/org/SECURITY.md
|
|
103
|
-
.mindforge/org/TOOLS.md
|
|
104
|
-
.mindforge/org/skills/MANIFEST.md
|
|
105
|
-
.mindforge/org/integrations/INTEGRATIONS-CONFIG.md (without credentials)
|
|
106
|
-
.mindforge/governance/GOVERNANCE-CONFIG.md (without credentials)
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
## Step 5 — Write AUDIT entry and report
|
|
110
|
-
|
|
111
|
-
```json
|
|
112
|
-
{ "event": "org_initialised", "org_name": "[name]", "compliance_frameworks": [...], "skills_recommended": [...] }
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
Report:
|
|
116
|
-
```
|
|
117
|
-
✅ MindForge organisation configuration complete.
|
|
118
|
-
|
|
119
|
-
Files created:
|
|
120
|
-
.mindforge/org/ORG.md
|
|
121
|
-
.mindforge/org/CONVENTIONS.md
|
|
122
|
-
.mindforge/org/SECURITY.md
|
|
123
|
-
.mindforge/org/TOOLS.md
|
|
124
|
-
.mindforge/governance/GOVERNANCE-CONFIG.md
|
|
125
|
-
|
|
126
|
-
Next steps:
|
|
127
|
-
1. Review each file — look for [CUSTOMISE THIS] markers
|
|
128
|
-
2. Fill in SECURITY.md with your security team
|
|
129
|
-
3. Commit to your org's mindforge-config repository
|
|
130
|
-
4. Share with all projects: npx @your-org/mindforge-config (if you created the package)
|
|
131
|
-
```
|
|
1
|
+
---
|
|
2
|
+
name: mindforge:init-org
|
|
3
|
+
description: Set up MindForge at the organization level with standardized context
|
|
4
|
+
argument-hint: [--org-name "Name"] [--update]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- run_command
|
|
7
|
+
- list_dir
|
|
8
|
+
- write_to_file
|
|
9
|
+
- view_file
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Establish a consistent engineering culture and governance framework by generating organization-wide context files, security policies, and tech stack defaults for all projects.
|
|
14
|
+
</objective>
|
|
15
|
+
|
|
16
|
+
<execution_context>
|
|
17
|
+
.claude/commands/mindforge/init-org.md
|
|
18
|
+
</execution_context>
|
|
19
|
+
|
|
20
|
+
<context>
|
|
21
|
+
Scope: Organization-wide (Tier 1/2).
|
|
22
|
+
Output: Shared `.mindforge/org/` repository or npm package.
|
|
23
|
+
Governance: Defines Tier 2/3 approver lists and compliance burdens.
|
|
24
|
+
</context>
|
|
25
|
+
|
|
26
|
+
<process>
|
|
27
|
+
1. **Interview**: Conduct a structured interview about org identity, tech stack, deployment defaults, and compliance (GDPR, HIPAA, etc.).
|
|
28
|
+
2. **Generate Defaults**:
|
|
29
|
+
- `ORG.md`: Mission and global architecture defaults.
|
|
30
|
+
- `CONVENTIONS.md`: Tech-stack-specific coding standards.
|
|
31
|
+
- `SECURITY.md`: Compliance-mapped security policies.
|
|
32
|
+
- `TOOLS.md`: Approved library and dependency list.
|
|
33
|
+
3. **Configuration**: Pre-populate `INTEGRATIONS-CONFIG.md` and `GOVERNANCE-CONFIG.md`.
|
|
34
|
+
4. **Skill Recommendation**: Suggest core and compliance skills to install org-wide.
|
|
35
|
+
5. **Distribution**: Offer to package the configuration into an npm package for project-wide inheritance.
|
|
36
|
+
6. **Audit**: Log `org_initialised` with frameworks and recommended skills.
|
|
37
|
+
</process>
|
|
@@ -1,155 +1,40 @@
|
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## v1 scope — IN
|
|
42
|
-
[Bullet list of what is included]
|
|
43
|
-
|
|
44
|
-
## v1 scope — OUT (explicitly excluded)
|
|
45
|
-
[Bullet list from answer 5]
|
|
46
|
-
|
|
47
|
-
## Success criteria
|
|
48
|
-
[From answer 6]
|
|
49
|
-
|
|
50
|
-
## Compliance
|
|
51
|
-
[From answer 7]
|
|
52
|
-
|
|
53
|
-
## Initialised
|
|
54
|
-
[ISO 8601 timestamp]
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Write `.planning/REQUIREMENTS.md`:
|
|
58
|
-
```markdown
|
|
59
|
-
# Requirements — [Project Name]
|
|
60
|
-
|
|
61
|
-
## Functional requirements
|
|
62
|
-
| ID | Requirement | Acceptance criterion | Scope |
|
|
63
|
-
|-------|--------------------------|--------------------------------|-------|
|
|
64
|
-
| FR-01 | | | v1 |
|
|
65
|
-
|
|
66
|
-
## Non-functional requirements
|
|
67
|
-
| ID | Category | Requirement | Measure |
|
|
68
|
-
|--------|---------------|--------------------------------|----------------|
|
|
69
|
-
| NFR-01 | Performance | | |
|
|
70
|
-
| NFR-02 | Security | | |
|
|
71
|
-
| NFR-03 | Availability | | |
|
|
72
|
-
|
|
73
|
-
## Out of scope
|
|
74
|
-
[Items explicitly excluded from v1]
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
Write `.planning/STATE.md`:
|
|
78
|
-
```markdown
|
|
79
|
-
# MindForge — Project State
|
|
80
|
-
|
|
81
|
-
## Status
|
|
82
|
-
Project initialised. No phases started.
|
|
83
|
-
|
|
84
|
-
## Current phase
|
|
85
|
-
None
|
|
86
|
-
|
|
87
|
-
## Last completed task
|
|
88
|
-
Project initialisation
|
|
89
|
-
|
|
90
|
-
## Next action
|
|
91
|
-
Run /mindforge:plan-phase 1 to begin planning Phase 1.
|
|
92
|
-
|
|
93
|
-
## Decisions made
|
|
94
|
-
- Project scope defined (see PROJECT.md)
|
|
95
|
-
- Tech stack chosen (see PROJECT.md)
|
|
96
|
-
|
|
97
|
-
## Active blockers
|
|
98
|
-
None
|
|
99
|
-
|
|
100
|
-
## Last updated
|
|
101
|
-
[ISO 8601 timestamp]
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
Write `.planning/HANDOFF.json`:
|
|
105
|
-
```json
|
|
106
|
-
{
|
|
107
|
-
"schema_version": "1.0.0",
|
|
108
|
-
"project": "[project name]",
|
|
109
|
-
"phase": null,
|
|
110
|
-
"plan": null,
|
|
111
|
-
"plan_step": null,
|
|
112
|
-
"last_completed_task": {
|
|
113
|
-
"description": "Project initialisation",
|
|
114
|
-
"commit_sha": null,
|
|
115
|
-
"verified": true
|
|
116
|
-
},
|
|
117
|
-
"next_task": "Run /mindforge:plan-phase 1",
|
|
118
|
-
"in_progress": {
|
|
119
|
-
"file": null,
|
|
120
|
-
"intent": null,
|
|
121
|
-
"completed_steps": [],
|
|
122
|
-
"remaining_steps": []
|
|
123
|
-
},
|
|
124
|
-
"blockers": [],
|
|
125
|
-
"decisions_needed": [],
|
|
126
|
-
"context_refs": [
|
|
127
|
-
".planning/PROJECT.md",
|
|
128
|
-
".planning/STATE.md",
|
|
129
|
-
".planning/REQUIREMENTS.md"
|
|
130
|
-
],
|
|
131
|
-
"agent_notes": "Fresh project. Read PROJECT.md and REQUIREMENTS.md before planning.",
|
|
132
|
-
"session_summary": "Project initialised.",
|
|
133
|
-
"recent_files": [
|
|
134
|
-
".planning/PROJECT.md",
|
|
135
|
-
".planning/REQUIREMENTS.md",
|
|
136
|
-
".planning/STATE.md",
|
|
137
|
-
".planning/HANDOFF.json"
|
|
138
|
-
],
|
|
139
|
-
"recent_commits": [],
|
|
140
|
-
"updated_at": "[ISO 8601 timestamp]",
|
|
141
|
-
"_warning": "Never store secrets, tokens, or passwords in this file. It is tracked in git."
|
|
142
|
-
}
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
## Step 3 — Confirm and guide
|
|
146
|
-
Tell the user:
|
|
147
|
-
"✅ MindForge project initialised.
|
|
148
|
-
|
|
149
|
-
Files created:
|
|
150
|
-
.planning/PROJECT.md
|
|
151
|
-
.planning/REQUIREMENTS.md
|
|
152
|
-
.planning/STATE.md
|
|
153
|
-
.planning/HANDOFF.json
|
|
154
|
-
|
|
155
|
-
Next step: Run /mindforge:plan-phase 1 to plan your first phase."
|
|
1
|
+
---
|
|
2
|
+
name: mindforge:init-project
|
|
3
|
+
description: Initialise a new project under the MindForge framework
|
|
4
|
+
argument-hint: none
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- view_file
|
|
7
|
+
- write_to_file
|
|
8
|
+
- list_dir
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Initialise a new project by conducting a structured requirements interview, setting up the `.planning/` directory, and creating the foundational context files (PROJECT.md, REQUIREMENTS.md, STATE.md, HANDOFF.json).
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<execution_context>
|
|
16
|
+
.claude/commands/mindforge/init-project.md
|
|
17
|
+
</execution_context>
|
|
18
|
+
|
|
19
|
+
<context>
|
|
20
|
+
Target Directory: .planning/
|
|
21
|
+
State: Checks if .planning/PROJECT.md already exists before re-initialising.
|
|
22
|
+
</context>
|
|
23
|
+
|
|
24
|
+
<process>
|
|
25
|
+
1. **Pre-check**: Read `.planning/PROJECT.md`. If it exists, ask the user if they want to re-initialise.
|
|
26
|
+
2. **Requirements Interview**: Ask the following 7 questions one by one:
|
|
27
|
+
- Description of the project.
|
|
28
|
+
- Primary user description.
|
|
29
|
+
- Problem statement.
|
|
30
|
+
- Tech stack (recommend one if requested).
|
|
31
|
+
- Scope exclusions (v1).
|
|
32
|
+
- Success criteria.
|
|
33
|
+
- Compliance requirements.
|
|
34
|
+
3. **Generate Context Files**:
|
|
35
|
+
- Write `.planning/PROJECT.md` with the interview results.
|
|
36
|
+
- Write `.planning/REQUIREMENTS.md` with functional and non-functional tables.
|
|
37
|
+
- Write `.planning/STATE.md` set to "Project initialised".
|
|
38
|
+
- Write `.planning/HANDOFF.json` with initial state and context references.
|
|
39
|
+
4. **Finalize**: Confirm the creation of files and guide the user to the next step (`/mindforge:plan-phase 1`).
|
|
40
|
+
</process>
|
|
@@ -1,15 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
---
|
|
2
|
+
name: mindforge:install-skill
|
|
3
|
+
description: Install a skill from a remote registry or package
|
|
4
|
+
argument-hint: [skill-name|package-name] [--tier 1|2|3] [--registry URL]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- run_command
|
|
7
|
+
- list_dir
|
|
8
|
+
- write_to_file
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Enable the rapid extension of agent capabilities by resolving, downloading, validating, and registering pre-built skills from official or private registries.
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<execution_context>
|
|
16
|
+
.claude/commands/mindforge/install-skill.md
|
|
17
|
+
</execution_context>
|
|
18
|
+
|
|
19
|
+
<context>
|
|
20
|
+
Registry Client: registry-client.md
|
|
21
|
+
Validation: Level 1 + Level 2 via skill-validator.md.
|
|
22
|
+
Security: Enforces injection guards before installation.
|
|
23
|
+
</context>
|
|
24
|
+
|
|
25
|
+
<process>
|
|
26
|
+
1. **Resolve**: Map the skill name to its registry package name.
|
|
27
|
+
2. **Fetch**: Download the package to a secure temporary directory.
|
|
28
|
+
3. **Validate**: Run strict structural and security checks (Injection guards, frontmatter validation).
|
|
29
|
+
4. **Deploy**: Move the skill to the target tier directory (Default: Tier 2).
|
|
30
|
+
5. **Register**: Append the skill to `MANIFEST.md`.
|
|
31
|
+
6. **Audit**: Log `skill_installed` event.
|
|
32
|
+
</process>
|
|
@@ -1,142 +1,36 @@
|
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
### Learn from npm package docs
|
|
38
|
-
```
|
|
39
|
-
/mindforge:learn npm:zod
|
|
40
|
-
/mindforge:learn npm:drizzle-orm
|
|
41
|
-
/mindforge:learn npm:@tanstack/react-query
|
|
42
|
-
```
|
|
43
|
-
→ Fetches README from npm registry
|
|
44
|
-
→ Extracts patterns from the package documentation
|
|
45
|
-
|
|
46
|
-
### Learn from current session
|
|
47
|
-
```
|
|
48
|
-
/mindforge:learn --session
|
|
49
|
-
```
|
|
50
|
-
→ Analyses SUMMARY files from the most recent phase
|
|
51
|
-
→ Finds patterns that appeared across 2+ tasks
|
|
52
|
-
→ Generates up to 3 skills from what was learned (focused: quality over quantity)
|
|
53
|
-
→ Does NOT repeat patterns already in the knowledge base
|
|
54
|
-
|
|
55
|
-
## Flags
|
|
56
|
-
|
|
57
|
-
### --name [skill-name]
|
|
58
|
-
Override the auto-generated skill name (kebab-case).
|
|
59
|
-
Default: inferred from the URL domain/path or file name.
|
|
60
|
-
Example: `/mindforge:learn ./docs/prisma-patterns.md --name prisma-advanced`
|
|
61
|
-
|
|
62
|
-
### --tier [project|org|core]
|
|
63
|
-
Where to install the skill (default: project).
|
|
64
|
-
- project: only loads in this project (T3)
|
|
65
|
-
- org: loads in all projects using this org config (T2)
|
|
66
|
-
- core: loads everywhere (T1 — use sparingly)
|
|
67
|
-
|
|
68
|
-
### --model [model-id]
|
|
69
|
-
Override the model used for analysis.
|
|
70
|
-
Default: RESEARCH_MODEL for large content (>50K chars), EXECUTOR_MODEL for small.
|
|
71
|
-
|
|
72
|
-
## Output format
|
|
73
|
-
|
|
74
|
-
```
|
|
75
|
-
📚 Learning from: https://docs.prisma.io/...
|
|
76
|
-
|
|
77
|
-
🔍 Fetching content... done (148K chars)
|
|
78
|
-
🧠 Extracting patterns (gemini-2.5-pro)...
|
|
79
|
-
Step 1/3 — Extracting patterns... done (10 patterns)
|
|
80
|
-
Step 2/3 — Generating triggers... done (22 triggers)
|
|
81
|
-
Step 3/3 — Writing SKILL.md... done
|
|
82
|
-
|
|
83
|
-
📊 Skill Quality Score: 84/100 (Good — can register + publish)
|
|
84
|
-
trigger_coverage : 26/30 ✅
|
|
85
|
-
mandatory_actions : 21/25 ✅
|
|
86
|
-
code_examples : 17/20 ✅
|
|
87
|
-
self_check : 12/15 ✅
|
|
88
|
-
injection_safe : 10/10 ✅
|
|
89
|
-
no_placeholders : 9/10 ✅
|
|
90
|
-
version_history : 8/10 ⚠️
|
|
91
|
-
|
|
92
|
-
Preview (top 3 patterns):
|
|
93
|
-
1. [CRITICAL] Always define explicit cascade behaviour
|
|
94
|
-
"Set onDelete on every @relation — never rely on database defaults"
|
|
95
|
-
2. [HIGH] Use compound indexes for cursor pagination
|
|
96
|
-
"Always index (createdAt, id) together for reliable cursor pagination"
|
|
97
|
-
3. [HIGH] Never use String for UUID fields in Prisma schema
|
|
98
|
-
"Use @id @default(uuid()) with the String type — Prisma handles this"
|
|
99
|
-
|
|
100
|
-
Triggers (22): prisma schema, schema.prisma, @relation, prisma migrate,
|
|
101
|
-
@id @default, prisma.findMany, prisma generate, model definition...
|
|
102
|
-
|
|
103
|
-
Skill file: .mindforge/skills/prisma-schema/SKILL.md
|
|
104
|
-
|
|
105
|
-
[ y ] Register in project tier and commit
|
|
106
|
-
[ n ] Discard
|
|
107
|
-
[ e ] Edit SKILL.md before registering
|
|
108
|
-
[ p ] Register AND publish to community marketplace (score ≥ 80 ✅)
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
## After registration
|
|
112
|
-
|
|
113
|
-
```
|
|
114
|
-
✅ Skill registered: prisma-schema (T3 Project)
|
|
115
|
-
|
|
116
|
-
Will auto-load when tasks contain:
|
|
117
|
-
"prisma schema", "schema.prisma", "@relation", "prisma migrate"...
|
|
118
|
-
|
|
119
|
-
Committed: feat(skills): learn prisma-schema from docs.prisma.io
|
|
120
|
-
|
|
121
|
-
Next: /mindforge:skills info prisma-schema
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
## Integration with auto-capture
|
|
125
|
-
When `AUTO_CAPTURE_SKILLS=true` in MINDFORGE.md:
|
|
126
|
-
`/mindforge:learn --session` is called automatically after each phase completion.
|
|
127
|
-
The prompt is shown; if no patterns found, it exits silently (no noise).
|
|
128
|
-
|
|
129
|
-
## AUDIT entry
|
|
130
|
-
```json
|
|
131
|
-
{
|
|
132
|
-
"event": "skill_learned",
|
|
133
|
-
"source_type": "url|local|session|npm",
|
|
134
|
-
"source": "[url or path]",
|
|
135
|
-
"skill_name": "prisma-schema",
|
|
136
|
-
"quality_score": 84,
|
|
137
|
-
"pattern_count": 10,
|
|
138
|
-
"trigger_count": 22,
|
|
139
|
-
"tier": "project",
|
|
140
|
-
"cost_usd": 0.31
|
|
141
|
-
}
|
|
142
|
-
```
|
|
1
|
+
---
|
|
2
|
+
name: mindforge:learn
|
|
3
|
+
description: Convert any knowledge source into a reusable, validated MindForge skill
|
|
4
|
+
argument-hint: [url|path|--session|npm:package] [--name name] [--tier T]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- read_url_content
|
|
7
|
+
- run_command
|
|
8
|
+
- view_file
|
|
9
|
+
- write_to_file
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Capture institutional or technical knowledge from external documentation, local files, npm packages, or the current session and transform it into a structured, validated, and automatically-loading `SKILL.md` file.
|
|
14
|
+
</objective>
|
|
15
|
+
|
|
16
|
+
<execution_context>
|
|
17
|
+
.claude/commands/mindforge/learn.md
|
|
18
|
+
</execution_context>
|
|
19
|
+
|
|
20
|
+
<context>
|
|
21
|
+
Sources: URLs (with SSRF protection), local markdown/directories, npm READMEs, or session summaries.
|
|
22
|
+
Models: Gemini 2.0 Pro (for large docs), Claude 3.5 Sonnet (for analysis).
|
|
23
|
+
Tiers: project (T3), org (T2), core (T1).
|
|
24
|
+
</context>
|
|
25
|
+
|
|
26
|
+
<process>
|
|
27
|
+
1. **Ingest Content**: Fetch the URL, read the local path, or pull the npm README.
|
|
28
|
+
2. **Analyze Patterns**:
|
|
29
|
+
- Use high-context models to extract key architectural patterns.
|
|
30
|
+
- Generate 15-25 trigger keywords for automatic activation.
|
|
31
|
+
3. **Draft Skill**: Write the initial `SKILL.md` following the standard template.
|
|
32
|
+
4. **Score Quality**: Audit the draft against the quality rubric (triggers, actions, examples, safety).
|
|
33
|
+
5. **Review**: Present the skill and its score (0-100) to the user for approval, editing, or registration.
|
|
34
|
+
6. **Register**: Add the skill to the appropriate manifest tier and commit the change.
|
|
35
|
+
7. **Audit**: Log `skill_learned` with source, name, quality score, and cost.
|
|
36
|
+
</process>
|