mindforge-cc 6.2.0-alpha → 6.2.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 +4 -4
- package/.agent/bin/lib/state.cjs +1 -1
- package/.agent/bin/lib/verify.cjs +7 -7
- package/.agent/bin/mindforge-tools.cjs +1 -1
- package/.agent/hooks/mindforge-context-monitor.js +1 -1
- package/.agent/hooks/mindforge-session-init_extended.js +4 -4
- package/.agent/hooks/mindforge-workflow-guard.js +1 -1
- package/.agent/mindforge/debug.md +3 -0
- package/.agent/mindforge/execute-phase.md +6 -0
- package/.agent/mindforge/learning.md +20 -0
- package/.agent/mindforge/plan-phase.md +9 -7
- package/.agent/mindforge/record-learning.md +22 -0
- package/.agent/mindforge/retrospective.md +1 -0
- package/.agent/mindforge/ship.md +7 -0
- package/.claude/CLAUDE.md +16 -7
- package/.claude/commands/mindforge/approve.md +16 -24
- package/.claude/commands/mindforge/audit.md +28 -28
- package/.claude/commands/mindforge/auto.md +20 -27
- package/.claude/commands/mindforge/benchmark.md +31 -24
- package/.claude/commands/mindforge/browse.md +24 -22
- package/.claude/commands/mindforge/complete-milestone.md +16 -26
- package/.claude/commands/mindforge/costs.md +10 -23
- package/.claude/commands/mindforge/cross-review.md +15 -25
- package/.claude/commands/mindforge/dashboard.md +99 -32
- package/.claude/commands/mindforge/debug.md +130 -31
- package/.claude/commands/mindforge/discuss-phase.md +139 -33
- package/.claude/commands/mindforge/execute-phase.md +197 -34
- package/.claude/commands/mindforge/health.md +25 -25
- package/.claude/commands/mindforge/help.md +27 -23
- package/.claude/commands/mindforge/init-org.md +132 -34
- package/.claude/commands/mindforge/init-project.md +167 -37
- package/.claude/commands/mindforge/install-skill.md +24 -28
- package/.claude/commands/mindforge/learn.md +144 -33
- package/.claude/commands/mindforge/learning.md +20 -0
- package/.claude/commands/mindforge/map-codebase.md +299 -33
- package/.claude/commands/mindforge/marketplace.md +121 -30
- package/.claude/commands/mindforge/metrics.md +20 -27
- package/.claude/commands/mindforge/migrate.md +41 -30
- package/.claude/commands/mindforge/milestone.md +11 -30
- package/.claude/commands/mindforge/new-runtime.md +20 -26
- package/.claude/commands/mindforge/next.md +106 -31
- package/.claude/commands/mindforge/plan-phase.md +128 -31
- package/.claude/commands/mindforge/plugins.md +38 -28
- package/.claude/commands/mindforge/pr-review.md +42 -29
- package/.claude/commands/mindforge/profile-team.md +21 -24
- package/.claude/commands/mindforge/publish-skill.md +18 -25
- package/.claude/commands/mindforge/qa.md +14 -25
- package/.claude/commands/mindforge/quick.md +136 -32
- package/.claude/commands/mindforge/record-learning.md +22 -0
- package/.claude/commands/mindforge/release.md +9 -24
- package/.claude/commands/mindforge/remember.md +24 -23
- package/.claude/commands/mindforge/research.md +11 -24
- package/.claude/commands/mindforge/retrospective.md +25 -26
- package/.claude/commands/mindforge/review.md +158 -34
- package/.claude/commands/mindforge/security-scan.md +239 -31
- package/.claude/commands/mindforge/ship.md +108 -31
- package/.claude/commands/mindforge/skills.md +142 -33
- package/.claude/commands/mindforge/status.md +110 -27
- package/.claude/commands/mindforge/steer.md +11 -22
- package/.claude/commands/mindforge/sync-confluence.md +10 -25
- package/.claude/commands/mindforge/sync-jira.md +11 -27
- package/.claude/commands/mindforge/tokens.md +7 -22
- package/.claude/commands/mindforge/update.md +43 -30
- package/.claude/commands/mindforge/verify-phase.md +63 -27
- package/.claude/commands/mindforge/workspace.md +27 -26
- package/.mindforge/engine/shard-controller.md +1 -1
- package/CHANGELOG.md +34 -15
- package/README.md +93 -98
- package/RELEASENOTES.md +6 -6
- package/bin/autonomous/auto-runner.js +1 -1
- package/bin/autonomous/mesh-self-healer.js +2 -2
- package/bin/change-classifier.js +1 -1
- package/bin/dashboard/server.js +4 -4
- package/bin/dashboard/sse-bridge.js +1 -1
- package/bin/engine/learning-manager.js +181 -0
- package/bin/engine/sre-manager.js +1 -1
- package/bin/engine/temporal-cli.js +1 -1
- package/bin/engine/temporal-hindsight.js +4 -4
- package/bin/governance/approve.js +2 -2
- package/bin/governance/policy-engine.js +1 -1
- package/bin/governance/ztai-manager.js +1 -1
- package/bin/hindsight-injector.js +1 -1
- package/bin/installer-core.js +8 -0
- package/bin/memory/federated-sync.js +7 -7
- package/bin/mindforge-cli.js +9 -0
- package/bin/models/cloud-broker.js +1 -1
- package/bin/review/ads-engine.js +6 -6
- package/bin/skill-registry.js +4 -4
- package/bin/skills-builder/marketplace-client.js +2 -2
- package/bin/skills-builder/pattern-detector.js +2 -2
- package/bin/skills-builder/skill-generator.js +1 -1
- package/bin/skills-builder/skill-registrar.js +4 -4
- package/bin/skills-builder/skill-scorer.js +1 -1
- package/bin/skills-builder/source-loader.js +2 -2
- package/bin/wizard/theme.js +1 -1
- package/docs/CAPABILITIES-MANIFEST.md +2 -2
- package/docs/MIND-FORGE-REFERENCE-V6.md +3 -3
- package/docs/Templates/Project/AGENTS_LEARNING.md +88 -0
- package/docs/architecture/V4-SWARM-MESH.md +1 -1
- package/docs/architecture/V5-ENTERPRISE.md +1 -1
- package/docs/ci-cd.md +1 -1
- package/docs/commands-reference.md +106 -48
- package/docs/registry/COMMANDS.md +1 -1
- package/docs/registry/PERSONAS.md +1 -1
- package/docs/registry/README.md +1 -1
- package/docs/registry/SKILLS.md +1 -1
- package/docs/security/ZTAI-OVERVIEW.md +1 -1
- package/docs/user-guide.md +2 -2
- package/docs/workflow-atlas.md +1 -1
- package/package.json +2 -1
|
@@ -1,40 +1,170 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
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
|
|
2
|
+
description: Initialise a new project under the MindForge framework.
|
|
9
3
|
---
|
|
10
4
|
|
|
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
|
-
|
|
5
|
+
Initialise a new project under the MindForge framework.
|
|
6
|
+
|
|
7
|
+
## Pre-check
|
|
8
|
+
Read `.planning/PROJECT.md`. If it already exists and contains content,
|
|
9
|
+
ask: "A project is already initialised. Do you want to reinitialise? (yes/no)"
|
|
10
|
+
Stop if the user says no.
|
|
11
|
+
|
|
12
|
+
## Pre-flight Environment Check
|
|
13
|
+
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):
|
|
14
|
+
```bash
|
|
15
|
+
mkdir -p .claude/commands/mindforge
|
|
16
|
+
cp -r .agent/mindforge/* .claude/commands/mindforge/ 2>/dev/null || true
|
|
17
|
+
cp -r .agents/workflows/* .claude/commands/mindforge/ 2>/dev/null || true
|
|
18
|
+
cp .agent/CLAUDE.md ./CLAUDE.md 2>/dev/null || true
|
|
19
|
+
cp .agent/CLAUDE.md ./.cursorrules 2>/dev/null || true
|
|
20
|
+
cp .agent/CLAUDE.md ./.windsurfrules 2>/dev/null || true
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Step 1 — Requirements interview
|
|
24
|
+
Ask these questions one at a time. Wait for the full answer before asking the next.
|
|
25
|
+
Do not batch them. Do not rush.
|
|
26
|
+
|
|
27
|
+
1. "What is this project? Give me a 1-2 sentence description."
|
|
28
|
+
2. "Who is the primary user? Describe them specifically."
|
|
29
|
+
3. "What problem does this solve for them? What is the pain today?"
|
|
30
|
+
4. "What tech stack do you want to use? (Say 'recommend one' if unsure.)"
|
|
31
|
+
— If they say recommend: ask 3 clarifying questions about team size,
|
|
32
|
+
deployment environment, and performance requirements. Then recommend
|
|
33
|
+
a specific stack with brief rationale for each choice.
|
|
34
|
+
5. "What is explicitly NOT in scope for v1? Name at least 3 things."
|
|
35
|
+
6. "What does a successful v1 look like? How will you know it worked?"
|
|
36
|
+
7. "Are there any compliance requirements? (GDPR, HIPAA, SOC2, PCI-DSS, none)"
|
|
37
|
+
|
|
38
|
+
## Step 2 — Create context files
|
|
39
|
+
|
|
40
|
+
Write `.planning/PROJECT.md`:
|
|
41
|
+
```markdown
|
|
42
|
+
# [Project Name]
|
|
43
|
+
[One-line description]
|
|
44
|
+
|
|
45
|
+
## Problem statement
|
|
46
|
+
[From answer 3]
|
|
47
|
+
|
|
48
|
+
## Target user
|
|
49
|
+
[From answer 2]
|
|
50
|
+
|
|
51
|
+
## Tech stack
|
|
52
|
+
| Layer | Choice | Rationale |
|
|
53
|
+
|------------|-----------------|--------------------------------|
|
|
54
|
+
| [layer] | [technology] | [why] |
|
|
55
|
+
|
|
56
|
+
## v1 scope — IN
|
|
57
|
+
[Bullet list of what is included]
|
|
58
|
+
|
|
59
|
+
## v1 scope — OUT (explicitly excluded)
|
|
60
|
+
[Bullet list from answer 5]
|
|
61
|
+
|
|
62
|
+
## Success criteria
|
|
63
|
+
[From answer 6]
|
|
64
|
+
|
|
65
|
+
## Compliance
|
|
66
|
+
[From answer 7]
|
|
67
|
+
|
|
68
|
+
## Initialised
|
|
69
|
+
[ISO 8601 timestamp]
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Write `.planning/REQUIREMENTS.md`:
|
|
73
|
+
```markdown
|
|
74
|
+
# Requirements — [Project Name]
|
|
75
|
+
|
|
76
|
+
## Functional requirements
|
|
77
|
+
| ID | Requirement | Acceptance criterion | Scope |
|
|
78
|
+
|-------|--------------------------|--------------------------------|-------|
|
|
79
|
+
| FR-01 | | | v1 |
|
|
80
|
+
|
|
81
|
+
## Non-functional requirements
|
|
82
|
+
| ID | Category | Requirement | Measure |
|
|
83
|
+
|--------|---------------|--------------------------------|----------------|
|
|
84
|
+
| NFR-01 | Performance | | |
|
|
85
|
+
| NFR-02 | Security | | |
|
|
86
|
+
| NFR-03 | Availability | | |
|
|
87
|
+
|
|
88
|
+
## Out of scope
|
|
89
|
+
[Items explicitly excluded from v1]
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Write `.planning/STATE.md`:
|
|
93
|
+
```markdown
|
|
94
|
+
# MindForge — Project State
|
|
95
|
+
|
|
96
|
+
## Status
|
|
97
|
+
Project initialised. No phases started.
|
|
98
|
+
|
|
99
|
+
## Current phase
|
|
100
|
+
None
|
|
101
|
+
|
|
102
|
+
## Last completed task
|
|
103
|
+
Project initialisation
|
|
104
|
+
|
|
105
|
+
## Next action
|
|
106
|
+
Run /mindforge:plan-phase 1 to begin planning Phase 1.
|
|
107
|
+
|
|
108
|
+
## Decisions made
|
|
109
|
+
- Project scope defined (see PROJECT.md)
|
|
110
|
+
- Tech stack chosen (see PROJECT.md)
|
|
111
|
+
|
|
112
|
+
## Active blockers
|
|
113
|
+
None
|
|
114
|
+
|
|
115
|
+
## Last updated
|
|
116
|
+
[ISO 8601 timestamp]
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Write `.planning/HANDOFF.json`:
|
|
120
|
+
```json
|
|
121
|
+
{
|
|
122
|
+
"schema_version": "1.0.0",
|
|
123
|
+
"project": "[project name]",
|
|
124
|
+
"phase": null,
|
|
125
|
+
"plan": null,
|
|
126
|
+
"plan_step": null,
|
|
127
|
+
"last_completed_task": {
|
|
128
|
+
"description": "Project initialisation",
|
|
129
|
+
"commit_sha": null,
|
|
130
|
+
"verified": true
|
|
131
|
+
},
|
|
132
|
+
"next_task": "Run /mindforge:plan-phase 1",
|
|
133
|
+
"in_progress": {
|
|
134
|
+
"file": null,
|
|
135
|
+
"intent": null,
|
|
136
|
+
"completed_steps": [],
|
|
137
|
+
"remaining_steps": []
|
|
138
|
+
},
|
|
139
|
+
"blockers": [],
|
|
140
|
+
"decisions_needed": [],
|
|
141
|
+
"context_refs": [
|
|
142
|
+
".planning/PROJECT.md",
|
|
143
|
+
".planning/STATE.md",
|
|
144
|
+
".planning/REQUIREMENTS.md"
|
|
145
|
+
],
|
|
146
|
+
"agent_notes": "Fresh project. Read PROJECT.md and REQUIREMENTS.md before planning.",
|
|
147
|
+
"session_summary": "Project initialised.",
|
|
148
|
+
"recent_files": [
|
|
149
|
+
".planning/PROJECT.md",
|
|
150
|
+
".planning/REQUIREMENTS.md",
|
|
151
|
+
".planning/STATE.md",
|
|
152
|
+
".planning/HANDOFF.json"
|
|
153
|
+
],
|
|
154
|
+
"recent_commits": [],
|
|
155
|
+
"updated_at": "[ISO 8601 timestamp]",
|
|
156
|
+
"_warning": "Never store secrets, tokens, or passwords in this file. It is tracked in git."
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Step 3 — Confirm and guide
|
|
161
|
+
Tell the user:
|
|
162
|
+
"✅ MindForge project initialised.
|
|
163
|
+
|
|
164
|
+
Files created:
|
|
165
|
+
.planning/PROJECT.md
|
|
166
|
+
.planning/REQUIREMENTS.md
|
|
167
|
+
.planning/STATE.md
|
|
168
|
+
.planning/HANDOFF.json
|
|
169
|
+
|
|
170
|
+
Next step: Run /mindforge:plan-phase 1 to plan your first phase."
|
|
@@ -1,32 +1,28 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
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
|
|
2
|
+
description: Follow the full installation protocol from .mindforge/distribution/registry-client.md.
|
|
9
3
|
---
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
Enable the rapid extension of agent capabilities by resolving, downloading, validating, and registering pre-built skills from official or private registries.
|
|
13
|
-
</objective>
|
|
5
|
+
Follow the full installation protocol from `.mindforge/distribution/registry-client.md`.
|
|
14
6
|
|
|
15
|
-
|
|
16
|
-
.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
7
|
+
Steps:
|
|
8
|
+
1. Resolve package name from skill name.
|
|
9
|
+
2. Check if already installed (skip if same version, offer upgrade if newer).
|
|
10
|
+
3. Fetch from registry (npm or private if --registry specified).
|
|
11
|
+
4. Validate the skill:
|
|
12
|
+
```bash
|
|
13
|
+
node bin/mindforge-cli.js validate-skill ./SKILL.md
|
|
14
|
+
```
|
|
15
|
+
5. Run injection guard check (handled by validator).
|
|
16
|
+
6. Install to tier directory:
|
|
17
|
+
```bash
|
|
18
|
+
node bin/mindforge-cli.js install-skill [skill-name] --tier [1|2|3]
|
|
19
|
+
```
|
|
20
|
+
7. Register in MANIFEST.md:
|
|
21
|
+
```bash
|
|
22
|
+
node bin/mindforge-cli.js register-skill [skill-name] [version] [tier]
|
|
23
|
+
```
|
|
24
|
+
8. Write AUDIT entry:
|
|
25
|
+
```bash
|
|
26
|
+
node bin/mindforge-cli.js audit-skill [skill-name] [version] [tier]
|
|
27
|
+
```
|
|
28
|
+
9. Confirm: "Run /mindforge:skills validate to verify installation"
|
|
@@ -1,36 +1,147 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
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
|
|
2
|
+
description: Convert any knowledge source into a reusable, validated, committed MindForge SKILL.md.
|
|
10
3
|
---
|
|
11
4
|
|
|
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
|
-
|
|
5
|
+
# MindForge v2 — Learn Command
|
|
6
|
+
# Usage: /mindforge:learn [url|path|--session|npm:package] [--name skill-name] [--tier project|org|core]
|
|
7
|
+
# Version: v2.0.0-alpha.6
|
|
8
|
+
|
|
9
|
+
## Purpose
|
|
10
|
+
Convert any knowledge source into a reusable, validated, committed MindForge SKILL.md.
|
|
11
|
+
Feed Claude your documentation and it writes down what it learned — for every future session.
|
|
12
|
+
|
|
13
|
+
## The insight
|
|
14
|
+
Every developer on your team already knows how Prisma works, how your internal API
|
|
15
|
+
conventions are structured, how your CI pipeline behaves. That knowledge lives in their
|
|
16
|
+
heads and in documentation. `/mindforge:learn` captures it permanently as skills that
|
|
17
|
+
load automatically whenever relevant work begins.
|
|
18
|
+
|
|
19
|
+
## Usage examples
|
|
20
|
+
|
|
21
|
+
### Learn from external documentation
|
|
22
|
+
```
|
|
23
|
+
/mindforge:learn https://docs.prisma.io/concepts/components/prisma-schema
|
|
24
|
+
/mindforge:learn https://stripe.com/docs/webhooks
|
|
25
|
+
/mindforge:learn https://docs.aws.amazon.com/lambda/latest/dg/nodejs-handler.html
|
|
26
|
+
```
|
|
27
|
+
→ Fetches the page (with SSRF protection)
|
|
28
|
+
→ Uses Gemini 2.5 Pro (1M context) for large docs, claude-sonnet-4-6 for smaller ones
|
|
29
|
+
→ Extracts 10 patterns + 15-25 trigger keywords
|
|
30
|
+
→ Writes SKILL.md + scores it + presents for approval
|
|
31
|
+
|
|
32
|
+
### Learn from local documentation
|
|
33
|
+
```
|
|
34
|
+
/mindforge:learn ./docs/api-conventions.md
|
|
35
|
+
/mindforge:learn ./docs/internal/
|
|
36
|
+
/mindforge:learn ./CONTRIBUTING.md
|
|
37
|
+
```
|
|
38
|
+
→ Reads local files directly (no model call for reading, only for analysis)
|
|
39
|
+
→ Perfect for: internal API docs, team conventions, onboarding guides
|
|
40
|
+
|
|
41
|
+
### Learn from npm package docs
|
|
42
|
+
```
|
|
43
|
+
/mindforge:learn npm:zod
|
|
44
|
+
/mindforge:learn context7:zod
|
|
45
|
+
/mindforge:learn npm:drizzle-orm
|
|
46
|
+
/mindforge:learn context7:drizzle-orm
|
|
47
|
+
```
|
|
48
|
+
→ Fetches README from npm registry or real-time docs from Context7
|
|
49
|
+
→ Extracts patterns from the package documentation
|
|
50
|
+
|
|
51
|
+
### Learn from current session
|
|
52
|
+
```
|
|
53
|
+
/mindforge:learn --session
|
|
54
|
+
```
|
|
55
|
+
→ Analyses SUMMARY files from the most recent phase
|
|
56
|
+
→ Finds patterns that appeared across 2+ tasks
|
|
57
|
+
→ Generates up to 3 skills from what was learned (focused: quality over quantity)
|
|
58
|
+
→ Does NOT repeat patterns already in the knowledge base
|
|
59
|
+
|
|
60
|
+
## Flags
|
|
61
|
+
|
|
62
|
+
### --name [skill-name]
|
|
63
|
+
Override the auto-generated skill name (kebab-case).
|
|
64
|
+
Default: inferred from the URL domain/path or file name.
|
|
65
|
+
Example: `/mindforge:learn ./docs/prisma-patterns.md --name prisma-advanced`
|
|
66
|
+
|
|
67
|
+
### --tier [project|org|core]
|
|
68
|
+
Where to install the skill (default: project).
|
|
69
|
+
- project: only loads in this project (T3)
|
|
70
|
+
- org: loads in all projects using this org config (T2)
|
|
71
|
+
- core: loads everywhere (T1 — use sparingly)
|
|
72
|
+
|
|
73
|
+
### --model [model-id]
|
|
74
|
+
Override the model used for analysis.
|
|
75
|
+
Default: RESEARCH_MODEL for large content (>50K chars), EXECUTOR_MODEL for small.
|
|
76
|
+
|
|
77
|
+
## Output format
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
📚 Learning from: https://docs.prisma.io/...
|
|
81
|
+
|
|
82
|
+
🔍 Fetching content... done (148K chars)
|
|
83
|
+
🧠 Extracting patterns (gemini-2.5-pro)...
|
|
84
|
+
Step 1/3 — Extracting patterns... done (10 patterns)
|
|
85
|
+
Step 2/3 — Generating triggers... done (22 triggers)
|
|
86
|
+
Step 3/3 — Writing SKILL.md... done
|
|
87
|
+
|
|
88
|
+
📊 Skill Quality Score: 84/100 (Good — can register + publish)
|
|
89
|
+
trigger_coverage : 26/30 ✅
|
|
90
|
+
mandatory_actions : 21/25 ✅
|
|
91
|
+
code_examples : 17/20 ✅
|
|
92
|
+
self_check : 12/15 ✅
|
|
93
|
+
injection_safe : 10/10 ✅
|
|
94
|
+
no_placeholders : 9/10 ✅
|
|
95
|
+
version_history : 8/10 ⚠️
|
|
96
|
+
|
|
97
|
+
Preview (top 3 patterns):
|
|
98
|
+
1. [CRITICAL] Always define explicit cascade behaviour
|
|
99
|
+
"Set onDelete on every @relation — never rely on database defaults"
|
|
100
|
+
2. [HIGH] Use compound indexes for cursor pagination
|
|
101
|
+
"Always index (createdAt, id) together for reliable cursor pagination"
|
|
102
|
+
3. [HIGH] Never use String for UUID fields in Prisma schema
|
|
103
|
+
"Use @id @default(uuid()) with the String type — Prisma handles this"
|
|
104
|
+
|
|
105
|
+
Triggers (22): prisma schema, schema.prisma, @relation, prisma migrate,
|
|
106
|
+
@id @default, prisma.findMany, prisma generate, model definition...
|
|
107
|
+
|
|
108
|
+
Skill file: .mindforge/skills/prisma-schema/SKILL.md
|
|
109
|
+
|
|
110
|
+
[ y ] Register in project tier and commit
|
|
111
|
+
[ n ] Discard
|
|
112
|
+
[ e ] Edit SKILL.md before registering
|
|
113
|
+
[ p ] Register AND publish to community marketplace (score ≥ 80 ✅)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## After registration
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
✅ Skill registered: prisma-schema (T3 Project)
|
|
120
|
+
|
|
121
|
+
Will auto-load when tasks contain:
|
|
122
|
+
"prisma schema", "schema.prisma", "@relation", "prisma migrate"...
|
|
123
|
+
|
|
124
|
+
Committed: feat(skills): learn prisma-schema from docs.prisma.io
|
|
125
|
+
|
|
126
|
+
Next: /mindforge:skills info prisma-schema
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Integration with auto-capture
|
|
130
|
+
When `AUTO_CAPTURE_SKILLS=true` in MINDFORGE.md:
|
|
131
|
+
`/mindforge:learn --session` is called automatically after each phase completion.
|
|
132
|
+
The prompt is shown; if no patterns found, it exits silently (no noise).
|
|
133
|
+
|
|
134
|
+
## AUDIT entry
|
|
135
|
+
```json
|
|
136
|
+
{
|
|
137
|
+
"event": "skill_learned",
|
|
138
|
+
"source_type": "url|local|session|npm",
|
|
139
|
+
"source": "[url or path]",
|
|
140
|
+
"skill_name": "prisma-schema",
|
|
141
|
+
"quality_score": 84,
|
|
142
|
+
"pattern_count": 10,
|
|
143
|
+
"trigger_count": 22,
|
|
144
|
+
"tier": "project",
|
|
145
|
+
"cost_usd": 0.31
|
|
146
|
+
}
|
|
147
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Consult or initialize the project agentic learning memory - AGENTS_LEARNING.md
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /mindforge:learning [init]
|
|
6
|
+
|
|
7
|
+
Consult the project's persistent engineering memory to avoid past mistakes and follow established best practices.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
- `/mindforge:learning`: Displays the current learning status and path to the learning file.
|
|
12
|
+
- `/mindforge:learning init`: Initializes a new `AGENTS_LEARNING.md` in the project root if it doesn't already exist.
|
|
13
|
+
|
|
14
|
+
## Why use this?
|
|
15
|
+
Before starting any significant implementation or refactor, you MUST consult the learning memory. It contains project-specific "Anti-Patterns" to avoid and "Best Practices" that have been proven in this specific system.
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
1. Run `/mindforge:learning` to find where the learning file is.
|
|
19
|
+
2. Read the file to understand recent architectural shifts or discovered failure scenarios.
|
|
20
|
+
3. If the project is new, run `/mindforge:learning init` to scaffold the memory.
|