mindforge-cc 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/CLAUDE.md +462 -0
- package/.agent/forge/help.md +7 -0
- package/.agent/forge/init-project.md +32 -0
- package/.agent/forge/plan-phase.md +30 -0
- package/.agent/mindforge/approve.md +18 -0
- package/.agent/mindforge/audit.md +30 -0
- package/.agent/mindforge/benchmark.md +33 -0
- package/.agent/mindforge/complete-milestone.md +18 -0
- package/.agent/mindforge/debug.md +126 -0
- package/.agent/mindforge/discuss-phase.md +138 -0
- package/.agent/mindforge/execute-phase.md +165 -0
- package/.agent/mindforge/health.md +21 -0
- package/.agent/mindforge/help.md +23 -0
- package/.agent/mindforge/init-org.md +131 -0
- package/.agent/mindforge/init-project.md +155 -0
- package/.agent/mindforge/install-skill.md +15 -0
- package/.agent/mindforge/map-codebase.md +298 -0
- package/.agent/mindforge/metrics.md +22 -0
- package/.agent/mindforge/migrate.md +40 -0
- package/.agent/mindforge/milestone.md +12 -0
- package/.agent/mindforge/next.md +105 -0
- package/.agent/mindforge/plan-phase.md +125 -0
- package/.agent/mindforge/plugins.md +40 -0
- package/.agent/mindforge/pr-review.md +41 -0
- package/.agent/mindforge/profile-team.md +23 -0
- package/.agent/mindforge/publish-skill.md +19 -0
- package/.agent/mindforge/quick.md +135 -0
- package/.agent/mindforge/release.md +10 -0
- package/.agent/mindforge/retrospective.md +26 -0
- package/.agent/mindforge/review.md +157 -0
- package/.agent/mindforge/security-scan.md +233 -0
- package/.agent/mindforge/ship.md +100 -0
- package/.agent/mindforge/skills.md +141 -0
- package/.agent/mindforge/status.md +104 -0
- package/.agent/mindforge/sync-confluence.md +11 -0
- package/.agent/mindforge/sync-jira.md +12 -0
- package/.agent/mindforge/tokens.md +8 -0
- package/.agent/mindforge/update.md +42 -0
- package/.agent/mindforge/verify-phase.md +62 -0
- package/.agent/mindforge/workspace.md +29 -0
- package/.claude/CLAUDE.md +462 -0
- package/.claude/commands/forge/help.md +7 -0
- package/.claude/commands/forge/init-project.md +32 -0
- package/.claude/commands/forge/plan-phase.md +30 -0
- package/.claude/commands/mindforge/approve.md +18 -0
- package/.claude/commands/mindforge/audit.md +30 -0
- package/.claude/commands/mindforge/benchmark.md +33 -0
- package/.claude/commands/mindforge/complete-milestone.md +18 -0
- package/.claude/commands/mindforge/debug.md +126 -0
- package/.claude/commands/mindforge/discuss-phase.md +138 -0
- package/.claude/commands/mindforge/execute-phase.md +165 -0
- package/.claude/commands/mindforge/health.md +21 -0
- package/.claude/commands/mindforge/help.md +23 -0
- package/.claude/commands/mindforge/init-org.md +131 -0
- package/.claude/commands/mindforge/init-project.md +155 -0
- package/.claude/commands/mindforge/install-skill.md +15 -0
- package/.claude/commands/mindforge/map-codebase.md +298 -0
- package/.claude/commands/mindforge/metrics.md +22 -0
- package/.claude/commands/mindforge/migrate.md +40 -0
- package/.claude/commands/mindforge/milestone.md +12 -0
- package/.claude/commands/mindforge/next.md +105 -0
- package/.claude/commands/mindforge/plan-phase.md +125 -0
- package/.claude/commands/mindforge/plugins.md +40 -0
- package/.claude/commands/mindforge/pr-review.md +41 -0
- package/.claude/commands/mindforge/profile-team.md +23 -0
- package/.claude/commands/mindforge/publish-skill.md +19 -0
- package/.claude/commands/mindforge/quick.md +135 -0
- package/.claude/commands/mindforge/release.md +10 -0
- package/.claude/commands/mindforge/retrospective.md +26 -0
- package/.claude/commands/mindforge/review.md +157 -0
- package/.claude/commands/mindforge/security-scan.md +233 -0
- package/.claude/commands/mindforge/ship.md +100 -0
- package/.claude/commands/mindforge/skills.md +141 -0
- package/.claude/commands/mindforge/status.md +104 -0
- package/.claude/commands/mindforge/sync-confluence.md +11 -0
- package/.claude/commands/mindforge/sync-jira.md +12 -0
- package/.claude/commands/mindforge/tokens.md +8 -0
- package/.claude/commands/mindforge/update.md +42 -0
- package/.claude/commands/mindforge/verify-phase.md +62 -0
- package/.claude/commands/mindforge/workspace.md +29 -0
- package/.forge/org/CONVENTIONS.md +0 -0
- package/.forge/org/ORG.md +0 -0
- package/.forge/org/SECURITY.md +0 -0
- package/.forge/org/TOOLS.md +0 -0
- package/.forge/personas/analyst.md +0 -0
- package/.forge/personas/architect.md +0 -0
- package/.forge/personas/debug-specialist.md +0 -0
- package/.forge/personas/developer.md +26 -0
- package/.forge/personas/qa-engineer.md +0 -0
- package/.forge/personas/release-manager.md +0 -0
- package/.forge/personas/security-reviewer.md +33 -0
- package/.forge/personas/tech-writer.md +0 -0
- package/.forge/skills/api-design/SKILL.md +0 -0
- package/.forge/skills/code-quality/SKILL.md +0 -0
- package/.forge/skills/documentation/SKILL.md +0 -0
- package/.forge/skills/security-review/SKILL.md +23 -0
- package/.forge/skills/testing-standards/SKILL.md +27 -0
- package/.github/workflows/mindforge-ci.yml +224 -0
- package/.gitlab-ci-mindforge.yml +18 -0
- package/.mindforge/MINDFORGE-SCHEMA.json +165 -0
- package/.mindforge/audit/AUDIT-SCHEMA.md +451 -0
- package/.mindforge/ci/ci-config-schema.md +21 -0
- package/.mindforge/ci/ci-mode.md +179 -0
- package/.mindforge/ci/github-actions-adapter.md +224 -0
- package/.mindforge/ci/gitlab-ci-adapter.md +31 -0
- package/.mindforge/ci/jenkins-adapter.md +44 -0
- package/.mindforge/distribution/registry-client.md +166 -0
- package/.mindforge/distribution/registry-schema.md +96 -0
- package/.mindforge/distribution/skill-publisher.md +44 -0
- package/.mindforge/distribution/skill-validator.md +74 -0
- package/.mindforge/engine/compaction-protocol.md +182 -0
- package/.mindforge/engine/context-injector.md +128 -0
- package/.mindforge/engine/dependency-parser.md +113 -0
- package/.mindforge/engine/skills/conflict-resolver.md +69 -0
- package/.mindforge/engine/skills/loader.md +184 -0
- package/.mindforge/engine/skills/registry.md +98 -0
- package/.mindforge/engine/skills/versioning.md +75 -0
- package/.mindforge/engine/verification-pipeline.md +111 -0
- package/.mindforge/engine/wave-executor.md +235 -0
- package/.mindforge/governance/GOVERNANCE-CONFIG.md +17 -0
- package/.mindforge/governance/approval-workflow.md +37 -0
- package/.mindforge/governance/change-classifier.md +63 -0
- package/.mindforge/governance/compliance-gates.md +31 -0
- package/.mindforge/integrations/confluence.md +27 -0
- package/.mindforge/integrations/connection-manager.md +163 -0
- package/.mindforge/integrations/github.md +25 -0
- package/.mindforge/integrations/gitlab.md +13 -0
- package/.mindforge/integrations/jira.md +102 -0
- package/.mindforge/integrations/slack.md +41 -0
- package/.mindforge/intelligence/antipattern-detector.md +75 -0
- package/.mindforge/intelligence/difficulty-scorer.md +55 -0
- package/.mindforge/intelligence/health-engine.md +208 -0
- package/.mindforge/intelligence/skill-gap-analyser.md +40 -0
- package/.mindforge/intelligence/smart-compaction.md +71 -0
- package/.mindforge/metrics/METRICS-SCHEMA.md +42 -0
- package/.mindforge/metrics/quality-tracker.md +32 -0
- package/.mindforge/monorepo/cross-package-planner.md +114 -0
- package/.mindforge/monorepo/dependency-graph-builder.md +32 -0
- package/.mindforge/monorepo/workspace-detector.md +129 -0
- package/.mindforge/org/CONVENTIONS.md +62 -0
- package/.mindforge/org/ORG.md +51 -0
- package/.mindforge/org/SECURITY.md +50 -0
- package/.mindforge/org/TOOLS.md +53 -0
- package/.mindforge/org/integrations/INTEGRATIONS-CONFIG.md +58 -0
- package/.mindforge/org/skills/MANIFEST.md +38 -0
- package/.mindforge/personas/analyst.md +52 -0
- package/.mindforge/personas/architect.md +75 -0
- package/.mindforge/personas/debug-specialist.md +52 -0
- package/.mindforge/personas/developer.md +85 -0
- package/.mindforge/personas/overrides/README.md +85 -0
- package/.mindforge/personas/qa-engineer.md +61 -0
- package/.mindforge/personas/release-manager.md +76 -0
- package/.mindforge/personas/security-reviewer.md +91 -0
- package/.mindforge/personas/tech-writer.md +51 -0
- package/.mindforge/plugins/PLUGINS-MANIFEST.md +23 -0
- package/.mindforge/plugins/plugin-loader.md +93 -0
- package/.mindforge/plugins/plugin-registry.md +44 -0
- package/.mindforge/plugins/plugin-schema.md +68 -0
- package/.mindforge/pr-review/ai-reviewer.md +266 -0
- package/.mindforge/pr-review/finding-formatter.md +46 -0
- package/.mindforge/pr-review/review-prompt-templates.md +44 -0
- package/.mindforge/production/compatibility-layer.md +39 -0
- package/.mindforge/production/migration-engine.md +52 -0
- package/.mindforge/production/production-checklist.md +165 -0
- package/.mindforge/production/token-optimiser.md +68 -0
- package/.mindforge/skills/accessibility/SKILL.md +106 -0
- package/.mindforge/skills/api-design/SKILL.md +98 -0
- package/.mindforge/skills/code-quality/SKILL.md +88 -0
- package/.mindforge/skills/data-privacy/SKILL.md +126 -0
- package/.mindforge/skills/database-patterns/SKILL.md +192 -0
- package/.mindforge/skills/documentation/SKILL.md +91 -0
- package/.mindforge/skills/incident-response/SKILL.md +180 -0
- package/.mindforge/skills/performance/SKILL.md +120 -0
- package/.mindforge/skills/security-review/SKILL.md +83 -0
- package/.mindforge/skills/testing-standards/SKILL.md +97 -0
- package/.mindforge/team/TEAM-PROFILE.md +42 -0
- package/.mindforge/team/multi-handoff.md +23 -0
- package/.mindforge/team/profiles/README.md +13 -0
- package/.mindforge/team/session-merger.md +18 -0
- package/.planning/ARCHITECTURE.md +0 -0
- package/.planning/AUDIT.jsonl +0 -0
- package/.planning/HANDOFF.json +28 -0
- package/.planning/PROJECT.md +33 -0
- package/.planning/RELEASE-CHECKLIST.md +68 -0
- package/.planning/REQUIREMENTS.md +0 -0
- package/.planning/ROADMAP.md +0 -0
- package/.planning/STATE.md +31 -0
- package/.planning/approvals/.gitkeep +1 -0
- package/.planning/archive/.gitkeep +1 -0
- package/.planning/audit-archive/.gitkeep +1 -0
- package/.planning/decisions/.gitkeep +0 -0
- package/.planning/decisions/ADR-001-handoff-tracking.md +41 -0
- package/.planning/decisions/ADR-002-markdown-commands.md +46 -0
- package/.planning/decisions/ADR-003-skills-trigger-model.md +37 -0
- package/.planning/decisions/ADR-004-wave-parallelism-model.md +45 -0
- package/.planning/decisions/ADR-005-append-only-audit-log.md +51 -0
- package/.planning/decisions/ADR-006-tiered-skills-system.md +22 -0
- package/.planning/decisions/ADR-007-trigger-keyword-model.md +22 -0
- package/.planning/decisions/ADR-008-just-in-time-skill-loading.md +29 -0
- package/.planning/decisions/ADR-009-enterprise-integration-retry-policy.md +8 -0
- package/.planning/decisions/ADR-010-governance-tier-escalation.md +8 -0
- package/.planning/decisions/ADR-011-multi-developer-handoff-contract.md +8 -0
- package/.planning/decisions/ADR-012-intelligence-feedback-loops.md +19 -0
- package/.planning/decisions/ADR-013-mindforge-md-constitution.md +16 -0
- package/.planning/decisions/ADR-014-metrics-as-signals-not-evaluation.md +15 -0
- package/.planning/decisions/ADR-015-npm-based-skill-registry.md +26 -0
- package/.planning/decisions/ADR-016-ci-exit-code-0-on-timeout.md +27 -0
- package/.planning/decisions/ADR-017-sdk-localhost-only.md +28 -0
- package/.planning/decisions/ADR-018-installer-self-install-detection.md +15 -0
- package/.planning/decisions/ADR-019-self-update-scope-preservation.md +14 -0
- package/.planning/decisions/ADR-020-v1.0.0-stable-interface-contract.md +23 -0
- package/.planning/jira-sync.json +9 -0
- package/.planning/milestones/.gitkeep +1 -0
- package/.planning/phases/day1/REVIEW-DAY1.md +50 -0
- package/.planning/phases/day1/SECURITY-REVIEW-DAY1.md +15 -0
- package/.planning/phases/day2/REVIEW-DAY2.md +521 -0
- package/.planning/phases/day3/REVIEW-DAY3.md +234 -0
- package/.planning/slack-threads.json +6 -0
- package/CHANGELOG.md +175 -0
- package/LICENSE +21 -0
- package/MINDFORGE.md +76 -0
- package/README.md +182 -0
- package/RELEASENOTES.md +41 -0
- package/SECURITY.md +4 -0
- package/bin/install.js +120 -0
- package/bin/installer-core.js +292 -0
- package/bin/migrations/0.1.0-to-0.5.0.js +37 -0
- package/bin/migrations/0.5.0-to-0.6.0.js +17 -0
- package/bin/migrations/0.6.0-to-1.0.0.js +100 -0
- package/bin/migrations/migrate.js +151 -0
- package/bin/migrations/schema-versions.js +64 -0
- package/bin/updater/changelog-fetcher.js +62 -0
- package/bin/updater/self-update.js +169 -0
- package/bin/updater/version-comparator.js +68 -0
- package/bin/validate-config.js +92 -0
- package/bin/wizard/config-generator.js +112 -0
- package/bin/wizard/environment-detector.js +76 -0
- package/bin/wizard/setup-wizard.js +237 -0
- package/docs/Context/Master-Context.md +701 -0
- package/docs/architecture/README.md +35 -0
- package/docs/architecture/decision-records-index.md +26 -0
- package/docs/ci-cd-integration.md +30 -0
- package/docs/ci-quickstart.md +78 -0
- package/docs/commands-reference.md +11 -0
- package/docs/contributing/CONTRIBUTING.md +38 -0
- package/docs/contributing/plugin-authoring.md +50 -0
- package/docs/contributing/skill-authoring.md +41 -0
- package/docs/enterprise-setup.md +25 -0
- package/docs/faq.md +38 -0
- package/docs/getting-started.md +36 -0
- package/docs/governance-guide.md +23 -0
- package/docs/mindforge-md-reference.md +53 -0
- package/docs/monorepo-guide.md +26 -0
- package/docs/persona-customisation.md +56 -0
- package/docs/quick-verify.md +33 -0
- package/docs/reference/audit-events.md +53 -0
- package/docs/reference/commands.md +82 -0
- package/docs/reference/config-reference.md +64 -0
- package/docs/reference/sdk-api.md +48 -0
- package/docs/reference/skills-api.md +57 -0
- package/docs/release-checklist-guide.md +37 -0
- package/docs/requirements.md +29 -0
- package/docs/sdk-reference.md +27 -0
- package/docs/security/SECURITY.md +42 -0
- package/docs/security/penetration-test-results.md +31 -0
- package/docs/security/threat-model.md +142 -0
- package/docs/skills-authoring-guide.md +119 -0
- package/docs/skills-publishing-guide.md +21 -0
- package/docs/team-setup-guide.md +21 -0
- package/docs/troubleshooting.md +119 -0
- package/docs/tutorial.md +195 -0
- package/docs/upgrade.md +44 -0
- package/docs/user-guide.md +131 -0
- package/docs/usp-features.md +214 -0
- package/eslint.config.mjs +31 -0
- package/examples/starter-project/.planning/AUDIT.jsonl +1 -0
- package/examples/starter-project/.planning/HANDOFF.json +23 -0
- package/examples/starter-project/.planning/PROJECT.md +27 -0
- package/examples/starter-project/.planning/STATE.md +10 -0
- package/examples/starter-project/MINDFORGE.md +40 -0
- package/examples/starter-project/README.md +14 -0
- package/implementation-roadmap/day-1-imp/DAY1-HARDEN.md +823 -0
- package/implementation-roadmap/day-1-imp/DAY1-IMPLEMENT.md +2459 -0
- package/implementation-roadmap/day-1-imp/DAY1-REVIEW.md +288 -0
- package/implementation-roadmap/day-2-imp/DAY2-HARDEN.md +954 -0
- package/implementation-roadmap/day-2-imp/DAY2-IMPLEMENT.md +2347 -0
- package/implementation-roadmap/day-2-imp/DAY2-REVIEW.md +422 -0
- package/implementation-roadmap/day-3-imp/DAY3-HARDEN.md +870 -0
- package/implementation-roadmap/day-3-imp/DAY3-IMPLEMENT.md +2798 -0
- package/implementation-roadmap/day-3-imp/DAY3-REVIEW.md +484 -0
- package/implementation-roadmap/day-4-imp/DAY4-HARDEN.md +1087 -0
- package/implementation-roadmap/day-4-imp/DAY4-IMPLEMENT.md +2874 -0
- package/implementation-roadmap/day-4-imp/DAY4-REVIEW.md +386 -0
- package/implementation-roadmap/day-5-imp/DAY5-HARDEN.md +1078 -0
- package/implementation-roadmap/day-5-imp/DAY5-IMPLEMENT.md +3151 -0
- package/implementation-roadmap/day-5-imp/DAY5-REVIEW.md +345 -0
- package/implementation-roadmap/day-6-imp/DAY6-COMPLETE.md +3919 -0
- package/implementation-roadmap/day-7-imp-prod/DAY7-PRODUCTION-FINAL.md +4513 -0
- package/package.json +31 -0
- package/sdk/README.md +69 -0
- package/sdk/eslint.config.mjs +34 -0
- package/sdk/package-lock.json +1507 -0
- package/sdk/package.json +30 -0
- package/sdk/src/client.ts +133 -0
- package/sdk/src/commands.ts +63 -0
- package/sdk/src/events.ts +166 -0
- package/sdk/src/index.ts +22 -0
- package/sdk/src/types.ts +87 -0
- package/sdk/tsconfig.json +13 -0
- package/tests/audit.test.js +206 -0
- package/tests/ci-mode.test.js +162 -0
- package/tests/compaction.test.js +161 -0
- package/tests/distribution.test.js +205 -0
- package/tests/e2e.test.js +618 -0
- package/tests/governance.test.js +130 -0
- package/tests/install.test.js +209 -0
- package/tests/integrations.test.js +128 -0
- package/tests/intelligence.test.js +117 -0
- package/tests/metrics.test.js +96 -0
- package/tests/migration.test.js +309 -0
- package/tests/production.test.js +416 -0
- package/tests/sdk.test.js +200 -0
- package/tests/skills-platform.test.js +403 -0
- package/tests/wave-engine.test.js +338 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MindForge Skills Publishing Guide
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
Skills are distributed as npm packages with the `mindforge-skill-` prefix.
|
|
5
|
+
|
|
6
|
+
## Required files
|
|
7
|
+
- `SKILL.md`
|
|
8
|
+
- `package.json` with `mindforge` metadata
|
|
9
|
+
- `README.md`
|
|
10
|
+
- `CHANGELOG.md`
|
|
11
|
+
|
|
12
|
+
## Publish checklist
|
|
13
|
+
1. Run `npx mindforge-cc validate-skill ./SKILL.md --quality`
|
|
14
|
+
2. Verify `package.json` metadata is complete
|
|
15
|
+
3. Ensure `CHANGELOG.md` includes the current version
|
|
16
|
+
4. Run `npm pack --dry-run` to inspect files
|
|
17
|
+
5. Publish with `npm publish --access public`
|
|
18
|
+
|
|
19
|
+
## Private registries
|
|
20
|
+
Set `MINDFORGE_SKILL_REGISTRY` in `.mindforge/org/integrations/INTEGRATIONS-CONFIG.md`
|
|
21
|
+
for private registries (Verdaccio, Artifactory, GitHub Packages).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MindForge Team Setup Guide
|
|
2
|
+
|
|
3
|
+
## Step 1 — Configure approvers
|
|
4
|
+
Set approvers in `.mindforge/org/integrations/INTEGRATIONS-CONFIG.md` and
|
|
5
|
+
governance config.
|
|
6
|
+
|
|
7
|
+
## Step 2 — Profile team
|
|
8
|
+
Run:
|
|
9
|
+
`/mindforge:profile-team --questionnaire`
|
|
10
|
+
|
|
11
|
+
## Step 3 — Branch strategy
|
|
12
|
+
Set branch strategy in `MINDFORGE.md`, for example:
|
|
13
|
+
- `BRANCHING_STRATEGY=phase`
|
|
14
|
+
- `PHASE_BRANCH_TEMPLATE=feat/phase-{N}-{slug}`
|
|
15
|
+
|
|
16
|
+
## Step 4 — Coordinate ownership
|
|
17
|
+
Use `HANDOFF.json` and plan files to avoid overlapping write scopes.
|
|
18
|
+
|
|
19
|
+
## Ethics policy
|
|
20
|
+
Per ADR-014 and TEAM-PROFILE policy, metrics are for process and system
|
|
21
|
+
improvement only, not individual performance evaluation.
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# MindForge Troubleshooting (v1.0.0)
|
|
2
|
+
|
|
3
|
+
This page lists common issues and fast fixes. If you get stuck, start with
|
|
4
|
+
`/mindforge:health`.
|
|
5
|
+
|
|
6
|
+
## 1. Install issues
|
|
7
|
+
|
|
8
|
+
### Installer exits immediately
|
|
9
|
+
**Symptom:** `npx mindforge-cc` returns without installing.
|
|
10
|
+
**Fix:** Ensure Node.js 18+.
|
|
11
|
+
```bash
|
|
12
|
+
node -v
|
|
13
|
+
```
|
|
14
|
+
Upgrade if below 18.
|
|
15
|
+
|
|
16
|
+
### Existing CLAUDE.md overwritten
|
|
17
|
+
**Symptom:** Custom instructions seem missing.
|
|
18
|
+
**Fix:** The installer creates a backup if the old file didn’t include MindForge.
|
|
19
|
+
Look for `CLAUDE.md.backup-<timestamp>` and merge your content.
|
|
20
|
+
|
|
21
|
+
### Commands not showing
|
|
22
|
+
**Symptom:** `/mindforge:help` doesn’t list commands.
|
|
23
|
+
**Fix:** Verify the install location:
|
|
24
|
+
- Claude Code: `~/.claude/commands/mindforge/`
|
|
25
|
+
- Antigravity: `~/.gemini/antigravity/mindforge/`
|
|
26
|
+
Run `/mindforge:health --repair`.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 2. Health check failures
|
|
31
|
+
|
|
32
|
+
### CLAUDE.md drift detected
|
|
33
|
+
**Fix:**
|
|
34
|
+
```
|
|
35
|
+
/mindforge:health --repair
|
|
36
|
+
```
|
|
37
|
+
This restores the canonical MindForge CLAUDE.md.
|
|
38
|
+
|
|
39
|
+
### Missing .planning files
|
|
40
|
+
**Fix:**
|
|
41
|
+
```
|
|
42
|
+
/mindforge:init-project
|
|
43
|
+
```
|
|
44
|
+
If you already have a project, run `/mindforge:map-codebase` instead.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## 3. Migration / update problems
|
|
49
|
+
|
|
50
|
+
### Update available but fails to apply
|
|
51
|
+
**Fix:** Retry with explicit scope:
|
|
52
|
+
```bash
|
|
53
|
+
npx mindforge-cc@latest --claude --local --force
|
|
54
|
+
```
|
|
55
|
+
Then run:
|
|
56
|
+
```
|
|
57
|
+
/mindforge:migrate --from v0.6.0 --to v1.0.0
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Schema mismatch warning on startup
|
|
61
|
+
**Fix:**
|
|
62
|
+
```
|
|
63
|
+
/mindforge:migrate --dry-run
|
|
64
|
+
/mindforge:migrate --from vX.Y.Z --to v1.0.0
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### AUDIT.jsonl parse errors
|
|
68
|
+
**Fix:** Migration preserves invalid lines. If a line is corrupt, archive it and
|
|
69
|
+
rerun migration. See `.mindforge/audit/AUDIT-SCHEMA.md` for expected format.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 4. CI mode issues
|
|
74
|
+
|
|
75
|
+
### CI silently skips interactive steps
|
|
76
|
+
**Expected:** In CI, MindForge runs non-interactive by design.
|
|
77
|
+
**Fix:** Ensure `CI=true` is set only in CI. Locally, unset it.
|
|
78
|
+
|
|
79
|
+
### CI pipeline fails on Tier 3 changes
|
|
80
|
+
**Expected:** Tier 3 changes fail CI by design.
|
|
81
|
+
**Fix:** Route Tier 3 changes through approvals.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 5. Plugin issues
|
|
86
|
+
|
|
87
|
+
### Plugin not loading
|
|
88
|
+
**Fix:**
|
|
89
|
+
- Run `/mindforge:plugins validate`
|
|
90
|
+
- Check `plugin.json` for `mindforge_plugin_api_version: 1.0.0`
|
|
91
|
+
- Ensure `min_mindforge_version` is <= your version
|
|
92
|
+
|
|
93
|
+
### Command name conflicts
|
|
94
|
+
**Expected:** Conflicting commands are renamed as `plugin-name-command`.
|
|
95
|
+
**Fix:** Use the renamed command shown in output.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## 6. Token usage too high
|
|
100
|
+
**Fix:**
|
|
101
|
+
- Reduce file reads or limit to ranges
|
|
102
|
+
- Keep PLAN `<action>` lean (150–400 words)
|
|
103
|
+
- Limit full skill injections to 3
|
|
104
|
+
- Use `/mindforge:tokens --profile`
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## 7. Security scan failures
|
|
109
|
+
**Fix:**
|
|
110
|
+
- Review `.planning/phases/<N>/SECURITY-REVIEW-<N>.md`
|
|
111
|
+
- Resolve CRITICAL/HIGH findings first
|
|
112
|
+
- Re-run `/mindforge:security-scan --deep --secrets --deps`
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## 8. Getting help
|
|
117
|
+
If the above doesn’t resolve it:
|
|
118
|
+
- Review `docs/user-guide.md`
|
|
119
|
+
- Check `docs/security/SECURITY.md` for security issues
|
package/docs/tutorial.md
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# MindForge v1.0.0 — Full Tutorial (Install → Advanced Usage)
|
|
2
|
+
|
|
3
|
+
This tutorial walks a new user from installation to advanced usage. It is
|
|
4
|
+
written for engineers who want to adopt MindForge in a real codebase.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. Install MindForge
|
|
9
|
+
|
|
10
|
+
### Claude Code (global)
|
|
11
|
+
```bash
|
|
12
|
+
npx mindforge-cc@latest --claude --global
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Claude Code (local, per repo)
|
|
16
|
+
```bash
|
|
17
|
+
npx mindforge-cc@latest --claude --local
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Antigravity
|
|
21
|
+
```bash
|
|
22
|
+
npx mindforge-cc@latest --antigravity --global
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 2. Verify installation
|
|
28
|
+
Open Claude Code or Antigravity in your repo and run:
|
|
29
|
+
```
|
|
30
|
+
/mindforge:health
|
|
31
|
+
```
|
|
32
|
+
If anything is wrong:
|
|
33
|
+
```
|
|
34
|
+
/mindforge:health --repair
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 3. Create a new project
|
|
40
|
+
```
|
|
41
|
+
/mindforge:init-project
|
|
42
|
+
```
|
|
43
|
+
This creates:
|
|
44
|
+
- `.planning/PROJECT.md`
|
|
45
|
+
- `.planning/REQUIREMENTS.md`
|
|
46
|
+
- `.planning/STATE.md`
|
|
47
|
+
- `.planning/HANDOFF.json`
|
|
48
|
+
- `.planning/AUDIT.jsonl`
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 4. Brownfield onboarding (existing codebase)
|
|
53
|
+
```
|
|
54
|
+
/mindforge:map-codebase
|
|
55
|
+
```
|
|
56
|
+
This generates:
|
|
57
|
+
- `.planning/ARCHITECTURE.md`
|
|
58
|
+
- `.mindforge/org/CONVENTIONS.md`
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 5. Standard workflow (Phase 1)
|
|
63
|
+
```
|
|
64
|
+
/mindforge:plan-phase 1
|
|
65
|
+
/mindforge:execute-phase 1
|
|
66
|
+
/mindforge:verify-phase 1
|
|
67
|
+
/mindforge:ship 1
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
What each step does:
|
|
71
|
+
- **plan**: creates atomic task plans with dependencies
|
|
72
|
+
- **execute**: runs tasks in waves
|
|
73
|
+
- **verify**: runs automated + human gates
|
|
74
|
+
- **ship**: generates release output
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 6. Using skills
|
|
79
|
+
Skills load automatically by keyword triggers. You can also manage them:
|
|
80
|
+
```
|
|
81
|
+
/mindforge:skills list
|
|
82
|
+
/mindforge:skills validate
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Best practice: keep `ALWAYS_LOAD_SKILLS` minimal to avoid token bloat.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## 7. Security & governance
|
|
90
|
+
MindForge enforces compliance gates by design.
|
|
91
|
+
|
|
92
|
+
Run a deep security scan:
|
|
93
|
+
```
|
|
94
|
+
/mindforge:security-scan --deep --secrets --deps
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
If Tier 3 compliance changes appear, approvals are required.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## 8. Plugins (advanced extension)
|
|
102
|
+
Plugins add commands, skills, personas, and hooks.
|
|
103
|
+
|
|
104
|
+
Install a plugin:
|
|
105
|
+
```
|
|
106
|
+
/mindforge:plugins install mindforge-plugin-<name>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Validate installed plugins:
|
|
110
|
+
```
|
|
111
|
+
/mindforge:plugins validate
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## 9. Token usage profiling
|
|
117
|
+
```
|
|
118
|
+
/mindforge:tokens --profile
|
|
119
|
+
/mindforge:tokens --summary
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Use this to reduce wasted tokens and improve session quality.
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 10. Updates and migrations
|
|
127
|
+
Check for updates:
|
|
128
|
+
```
|
|
129
|
+
/mindforge:update
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Apply updates:
|
|
133
|
+
```
|
|
134
|
+
/mindforge:update --apply
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Migrate schema:
|
|
138
|
+
```
|
|
139
|
+
/mindforge:migrate --from v0.6.0 --to v1.0.0
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 11. CI integration
|
|
145
|
+
In CI, MindForge is non‑interactive by default.
|
|
146
|
+
|
|
147
|
+
Set environment:
|
|
148
|
+
```bash
|
|
149
|
+
CI=true
|
|
150
|
+
MINDFORGE_CI=true
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Run tests:
|
|
154
|
+
```bash
|
|
155
|
+
node tests/install.test.js
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
See `docs/ci-quickstart.md` for full pipelines.
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## 12. SDK usage (advanced)
|
|
163
|
+
Use the SDK in tooling or CI:
|
|
164
|
+
|
|
165
|
+
```ts
|
|
166
|
+
import { MindForgeClient } from '@mindforge/sdk';
|
|
167
|
+
|
|
168
|
+
const client = new MindForgeClient({ projectRoot: '.' });
|
|
169
|
+
const report = await client.health();
|
|
170
|
+
console.log(report);
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## 13. Best practices checklist
|
|
176
|
+
- Run `/mindforge:health` after install and upgrades
|
|
177
|
+
- Keep PLAN `<action>` fields lean (150–400 words)
|
|
178
|
+
- Use local install per repo for isolation
|
|
179
|
+
- Pin plugin versions in production workflows
|
|
180
|
+
- Review `.planning/AUDIT.jsonl` for traceability
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## 14. Troubleshooting
|
|
185
|
+
If you hit issues, see:
|
|
186
|
+
- `docs/troubleshooting.md`
|
|
187
|
+
- `docs/faq.md`
|
|
188
|
+
- `docs/upgrade.md`
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## 15. Next steps
|
|
193
|
+
- Add your org defaults in `.mindforge/org/ORG.md`
|
|
194
|
+
- Configure `MINDFORGE.md` for your team
|
|
195
|
+
- Start Phase 2 planning
|
package/docs/upgrade.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# MindForge Upgrade Guide (v1.0.0)
|
|
2
|
+
|
|
3
|
+
This guide covers upgrades from v0.6.0 to v1.0.0.
|
|
4
|
+
|
|
5
|
+
## 1. Check version
|
|
6
|
+
```bash
|
|
7
|
+
node -e "console.log(require('./package.json').version)"
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## 2. Update MindForge
|
|
11
|
+
```
|
|
12
|
+
/mindforge:update
|
|
13
|
+
/mindforge:update --apply
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
If the update fails, run:
|
|
17
|
+
```bash
|
|
18
|
+
npx mindforge-cc@latest --claude --local --force
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 3. Migrate schema files
|
|
22
|
+
```
|
|
23
|
+
/mindforge:migrate --from v0.6.0 --to v1.0.0
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## 4. Verify
|
|
27
|
+
```
|
|
28
|
+
/mindforge:health
|
|
29
|
+
/mindforge:status
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 5. Known breaking changes
|
|
33
|
+
- `VERIFY_PASS_RATE_WARNING_THRESHOLD` now uses 0.0–1.0 (was 0–100)
|
|
34
|
+
- `AUDIT.jsonl` now requires `session_id` (auto-backfilled)
|
|
35
|
+
- `HANDOFF.json` now requires `plugin_api_version`
|
|
36
|
+
|
|
37
|
+
## 6. Rollback
|
|
38
|
+
If anything goes wrong, restore the migration backup:
|
|
39
|
+
```
|
|
40
|
+
ls .planning/migration-backup-*
|
|
41
|
+
cp .planning/migration-backup-<timestamp>/* .planning/
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Then re-run `/mindforge:migrate --dry-run`.
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# MindForge User Guide (v1.0.0)
|
|
2
|
+
|
|
3
|
+
This guide gets you from install to productive, with the minimum needed to run
|
|
4
|
+
MindForge in a real project. It assumes Node.js 18+.
|
|
5
|
+
|
|
6
|
+
## 1. Install
|
|
7
|
+
|
|
8
|
+
### Claude Code (global)
|
|
9
|
+
```bash
|
|
10
|
+
npx mindforge-cc@latest --claude --global
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Claude Code (local, per project)
|
|
14
|
+
```bash
|
|
15
|
+
npx mindforge-cc@latest --claude --local
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Antigravity
|
|
19
|
+
```bash
|
|
20
|
+
npx mindforge-cc@latest --antigravity --global
|
|
21
|
+
# or
|
|
22
|
+
npx mindforge-cc@latest --antigravity --local
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Both runtimes
|
|
26
|
+
```bash
|
|
27
|
+
npx mindforge-cc@latest --all --global
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## 2. Verify installation
|
|
31
|
+
Open Claude Code or Antigravity in your project directory and run:
|
|
32
|
+
```
|
|
33
|
+
/mindforge:health
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
If health reports issues, run:
|
|
37
|
+
```
|
|
38
|
+
/mindforge:health --repair
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## 3. Initialize a new project
|
|
42
|
+
```
|
|
43
|
+
/mindforge:init-project
|
|
44
|
+
```
|
|
45
|
+
This creates the core planning artifacts in `.planning/`.
|
|
46
|
+
|
|
47
|
+
## 4. Brownfield onboarding (existing codebase)
|
|
48
|
+
```
|
|
49
|
+
/mindforge:map-codebase
|
|
50
|
+
```
|
|
51
|
+
This generates `.planning/ARCHITECTURE.md` and an inferred conventions file.
|
|
52
|
+
|
|
53
|
+
## 5. Standard workflow
|
|
54
|
+
```
|
|
55
|
+
/mindforge:plan-phase 1
|
|
56
|
+
/mindforge:execute-phase 1
|
|
57
|
+
/mindforge:verify-phase 1
|
|
58
|
+
/mindforge:ship 1
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## 6. Update and migration
|
|
62
|
+
### Check for updates
|
|
63
|
+
```
|
|
64
|
+
/mindforge:update
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Apply updates
|
|
68
|
+
```
|
|
69
|
+
/mindforge:update --apply
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Run schema migrations manually
|
|
73
|
+
```
|
|
74
|
+
/mindforge:migrate --from v0.6.0 --to v1.0.0
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 7. Plugins
|
|
78
|
+
### List / validate
|
|
79
|
+
```
|
|
80
|
+
/mindforge:plugins list
|
|
81
|
+
/mindforge:plugins validate
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Install
|
|
85
|
+
```
|
|
86
|
+
/mindforge:plugins install mindforge-plugin-<name>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## 8. Skills
|
|
90
|
+
```
|
|
91
|
+
/mindforge:skills list
|
|
92
|
+
/mindforge:skills validate
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
To publish or install a skill, see `docs/skills-publishing-guide.md`.
|
|
96
|
+
|
|
97
|
+
## 9. Token usage profiling
|
|
98
|
+
```
|
|
99
|
+
/mindforge:tokens --profile
|
|
100
|
+
/mindforge:tokens --summary
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Token optimization policies are defined in:
|
|
104
|
+
- `.mindforge/production/token-optimiser.md`
|
|
105
|
+
|
|
106
|
+
## 10. Configuration (MINDFORGE.md)
|
|
107
|
+
Key settings live in `MINDFORGE.md`. See:
|
|
108
|
+
- `docs/reference/config-reference.md`
|
|
109
|
+
|
|
110
|
+
Common settings:
|
|
111
|
+
- `PLANNER_MODEL`, `EXECUTOR_MODEL`, `REVIEWER_MODEL`
|
|
112
|
+
- `VERIFY_PASS_RATE_WARNING_THRESHOLD`
|
|
113
|
+
- `TOKEN_WARN_THRESHOLD`, `TOKEN_LEAN_MODE`
|
|
114
|
+
- `MINDFORGE_AUTO_CHECK_UPDATES`
|
|
115
|
+
|
|
116
|
+
## 11. Troubleshooting
|
|
117
|
+
- Health issues: run `/mindforge:health --repair`
|
|
118
|
+
- Schema drift: run `/mindforge:migrate --dry-run` then apply
|
|
119
|
+
- Installer issues: re-run with `--force`
|
|
120
|
+
- CI mode: set `CI=true` and check `.mindforge/ci/` docs
|
|
121
|
+
|
|
122
|
+
## 12. Security
|
|
123
|
+
MindForge never stores credentials in files. See:
|
|
124
|
+
- `docs/security/SECURITY.md`
|
|
125
|
+
- `docs/security/threat-model.md`
|
|
126
|
+
|
|
127
|
+
## 13. Reference docs
|
|
128
|
+
- Commands: `docs/reference/commands.md`
|
|
129
|
+
- SDK: `docs/reference/sdk-api.md`
|
|
130
|
+
- Skills: `docs/reference/skills-api.md`
|
|
131
|
+
- Audit events: `docs/reference/audit-events.md`
|