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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-pause-work
|
|
3
|
+
description: Create context handoff when pausing work mid-phase
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Create `.continue-here.md` handoff file to preserve complete work state across sessions.
|
|
9
|
+
|
|
10
|
+
Routes to the pause-work workflow which handles:
|
|
11
|
+
- Current phase detection from recent files
|
|
12
|
+
- Complete state gathering (position, completed work, remaining work, decisions, blockers)
|
|
13
|
+
- Handoff file creation with all context sections
|
|
14
|
+
- Git commit as WIP
|
|
15
|
+
- Resume instructions
|
|
16
|
+
</objective>
|
|
17
|
+
|
|
18
|
+
<execution_context>
|
|
19
|
+
@.agent/workflows/mindforge-pause-work.md
|
|
20
|
+
</execution_context>
|
|
21
|
+
|
|
22
|
+
<context>
|
|
23
|
+
State and phase progress are gathered in-workflow with targeted reads.
|
|
24
|
+
</context>
|
|
25
|
+
|
|
26
|
+
<process>
|
|
27
|
+
**Follow the pause-work workflow** from `@.agent/workflows/mindforge-pause-work.md`.
|
|
28
|
+
|
|
29
|
+
The workflow handles all logic including:
|
|
30
|
+
1. Phase directory detection
|
|
31
|
+
2. State gathering with user clarifications
|
|
32
|
+
3. Handoff file writing with timestamp
|
|
33
|
+
4. Git commit
|
|
34
|
+
5. Confirmation with resume instructions
|
|
35
|
+
</process>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-plan-milestone-gaps
|
|
3
|
+
description: Create phases to close all gaps identified by milestone audit
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<objective>
|
|
7
|
+
Create all phases necessary to close gaps identified by `/mindforge-audit-milestone`.
|
|
8
|
+
|
|
9
|
+
Reads MILESTONE-AUDIT.md, groups gaps into logical phases, creates phase entries in ROADMAP.md, and offers to plan each phase.
|
|
10
|
+
|
|
11
|
+
One command creates all fix phases — no manual `/mindforge-add-phase` per gap.
|
|
12
|
+
</objective>
|
|
13
|
+
|
|
14
|
+
<execution_context>
|
|
15
|
+
@.agent/workflows/mindforge-plan-milestone-gaps.md
|
|
16
|
+
</execution_context>
|
|
17
|
+
|
|
18
|
+
<context>
|
|
19
|
+
**Audit results:**
|
|
20
|
+
Glob: .planning/v*-MILESTONE-AUDIT.md (use most recent)
|
|
21
|
+
|
|
22
|
+
Original intent and current planning state are loaded on demand inside the workflow.
|
|
23
|
+
</context>
|
|
24
|
+
|
|
25
|
+
<process>
|
|
26
|
+
Execute the plan-milestone-gaps workflow from @.agent/workflows/mindforge-plan-milestone-gaps.md end-to-end.
|
|
27
|
+
Preserve all workflow gates (audit loading, prioritization, phase grouping, user confirmation, roadmap updates).
|
|
28
|
+
</process>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-plan-phase
|
|
3
|
+
description: Create detailed phase plan (PLAN.md) with verification loop
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<objective>
|
|
7
|
+
Create executable phase prompts (PLAN.md files) for a roadmap phase with integrated research and verification.
|
|
8
|
+
|
|
9
|
+
**Default flow:** Research (if needed) → Plan → Verify → Done
|
|
10
|
+
|
|
11
|
+
**Orchestrator role:** Parse arguments, validate phase, research domain (unless skipped), spawn mindforge-planner, verify with mindforge-plan-checker, iterate until pass or max iterations, present results.
|
|
12
|
+
</objective>
|
|
13
|
+
|
|
14
|
+
<execution_context>
|
|
15
|
+
@.agent/workflows/mindforge-plan-phase.md
|
|
16
|
+
@.agent/references/ui-brand.md
|
|
17
|
+
</execution_context>
|
|
18
|
+
|
|
19
|
+
<context>
|
|
20
|
+
Phase number: $ARGUMENTS (optional — auto-detects next unplanned phase if omitted)
|
|
21
|
+
|
|
22
|
+
**Flags:**
|
|
23
|
+
- `--research` — Force re-research even if RESEARCH.md exists
|
|
24
|
+
- `--skip-research` — Skip research, go straight to planning
|
|
25
|
+
- `--gaps` — Gap closure mode (reads VERIFICATION.md, skips research)
|
|
26
|
+
- `--skip-verify` — Skip verification loop
|
|
27
|
+
- `--prd <file>` — Use a PRD/acceptance criteria file instead of discuss-phase. Parses requirements into CONTEXT.md automatically. Skips discuss-phase entirely.
|
|
28
|
+
- `--reviews` — Replan incorporating cross-AI review feedback from REVIEWS.md (produced by `/mindforge-review`)
|
|
29
|
+
- `--text` — Use plain-text numbered lists instead of TUI menus (required for `/rc` remote sessions)
|
|
30
|
+
|
|
31
|
+
Normalize phase input in step 2 before any directory lookups.
|
|
32
|
+
</context>
|
|
33
|
+
|
|
34
|
+
<process>
|
|
35
|
+
Execute the plan-phase workflow from @.agent/workflows/mindforge-plan-phase.md end-to-end.
|
|
36
|
+
Preserve all workflow gates (validation, research, planning, verification loop, routing).
|
|
37
|
+
</process>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-plant-seed
|
|
3
|
+
description: Capture a forward-looking idea with trigger conditions — surfaces automatically at the right milestone
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Capture an idea that's too big for now but should surface automatically when the right
|
|
9
|
+
milestone arrives. Seeds solve context rot: instead of a one-liner in Deferred that nobody
|
|
10
|
+
reads, a seed preserves the full WHY, WHEN to surface, and breadcrumbs to details.
|
|
11
|
+
|
|
12
|
+
Creates: .planning/seeds/SEED-NNN-slug.md
|
|
13
|
+
Consumed by: /mindforge-new-milestone (scans seeds and presents matches)
|
|
14
|
+
</objective>
|
|
15
|
+
|
|
16
|
+
<execution_context>
|
|
17
|
+
@.agent/workflows/mindforge-plant-seed.md
|
|
18
|
+
</execution_context>
|
|
19
|
+
|
|
20
|
+
<process>
|
|
21
|
+
Execute the plant-seed workflow from @.agent/workflows/mindforge-plant-seed.md end-to-end.
|
|
22
|
+
</process>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-pr-branch
|
|
3
|
+
description: Create a clean PR branch by filtering out .planning/ commits — ready for code review
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Create a clean branch suitable for pull requests by filtering out .planning/ commits
|
|
9
|
+
from the current branch. Reviewers see only code changes, not MindForge planning artifacts.
|
|
10
|
+
|
|
11
|
+
This solves the problem of PR diffs being cluttered with PLAN.md, SUMMARY.md, STATE.md
|
|
12
|
+
changes that are irrelevant to code review.
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<execution_context>
|
|
16
|
+
@.agent/workflows/mindforge-pr-branch.md
|
|
17
|
+
</execution_context>
|
|
18
|
+
|
|
19
|
+
<process>
|
|
20
|
+
Execute the pr-branch workflow from @.agent/workflows/mindforge-pr-branch.md end-to-end.
|
|
21
|
+
</process>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-profile-user
|
|
3
|
+
description: Generate developer behavioral profile and create Claude-discoverable artifacts
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Generate a developer behavioral profile from session analysis (or questionnaire) and produce artifacts (USER-PROFILE.md, /mindforge-dev-preferences, GEMINI.md section) that personalize the agent's responses.
|
|
9
|
+
|
|
10
|
+
Routes to the profile-user workflow which orchestrates the full flow: consent gate, session analysis or questionnaire fallback, profile generation, result display, and artifact selection.
|
|
11
|
+
</objective>
|
|
12
|
+
|
|
13
|
+
<execution_context>
|
|
14
|
+
@.agent/workflows/mindforge-profile-user.md
|
|
15
|
+
@.agent/references/ui-brand.md
|
|
16
|
+
</execution_context>
|
|
17
|
+
|
|
18
|
+
<context>
|
|
19
|
+
Flags from $ARGUMENTS:
|
|
20
|
+
- `--questionnaire` -- Skip session analysis entirely, use questionnaire-only path
|
|
21
|
+
- `--refresh` -- Rebuild profile even when one exists, backup old profile, show dimension diff
|
|
22
|
+
</context>
|
|
23
|
+
|
|
24
|
+
<process>
|
|
25
|
+
Execute the profile-user workflow end-to-end.
|
|
26
|
+
|
|
27
|
+
The workflow handles all logic including:
|
|
28
|
+
1. Initialization and existing profile detection
|
|
29
|
+
2. Consent gate before session analysis
|
|
30
|
+
3. Session scanning and data sufficiency checks
|
|
31
|
+
4. Session analysis (profiler agent) or questionnaire fallback
|
|
32
|
+
5. Cross-project split resolution
|
|
33
|
+
6. Profile writing to USER-PROFILE.md
|
|
34
|
+
7. Result display with report card and highlights
|
|
35
|
+
8. Artifact selection (dev-preferences, GEMINI.md sections)
|
|
36
|
+
9. Sequential artifact generation
|
|
37
|
+
10. Summary with refresh diff (if applicable)
|
|
38
|
+
</process>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-progress
|
|
3
|
+
description: Check project progress, show context, and route to next action (execute or plan)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<objective>
|
|
7
|
+
Check project progress, summarize recent work and what's ahead, then intelligently route to the next action - either executing an existing plan or creating the next one.
|
|
8
|
+
|
|
9
|
+
Provides situational awareness before continuing work.
|
|
10
|
+
</objective>
|
|
11
|
+
|
|
12
|
+
<execution_context>
|
|
13
|
+
@.agent/workflows/mindforge-progress.md
|
|
14
|
+
</execution_context>
|
|
15
|
+
|
|
16
|
+
<process>
|
|
17
|
+
Execute the progress workflow from @.agent/workflows/mindforge-progress.md end-to-end.
|
|
18
|
+
Preserve all routing logic (Routes A through F) and edge case handling.
|
|
19
|
+
</process>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-quick
|
|
3
|
+
description: Execute a quick task with MindForge guarantees (atomic commits, state tracking) but skip optional agents
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<objective>
|
|
7
|
+
Execute small, ad-hoc tasks with MindForge guarantees (atomic commits, STATE.md tracking).
|
|
8
|
+
|
|
9
|
+
Quick mode is the same system with a shorter path:
|
|
10
|
+
- Spawns mindforge-planner (quick mode) + mindforge-executor(s)
|
|
11
|
+
- Quick tasks live in `.planning/quick/` separate from planned phases
|
|
12
|
+
- Updates STATE.md "Quick Tasks Completed" table (NOT ROADMAP.md)
|
|
13
|
+
|
|
14
|
+
**Default:** Skips research, discussion, plan-checker, verifier. Use when you know exactly what to do.
|
|
15
|
+
|
|
16
|
+
**`--discuss` flag:** Lightweight discussion phase before planning. Surfaces assumptions, clarifies gray areas, captures decisions in CONTEXT.md. Use when the task has ambiguity worth resolving upfront.
|
|
17
|
+
|
|
18
|
+
**`--full` flag:** Enables plan-checking (max 2 iterations) and post-execution verification. Use when you want quality guarantees without full milestone ceremony.
|
|
19
|
+
|
|
20
|
+
**`--research` flag:** Spawns a focused research agent before planning. Investigates implementation approaches, library options, and pitfalls for the task. Use when you're unsure of the best approach.
|
|
21
|
+
|
|
22
|
+
Flags are composable: `--discuss --research --full` gives discussion + research + plan-checking + verification.
|
|
23
|
+
</objective>
|
|
24
|
+
|
|
25
|
+
<execution_context>
|
|
26
|
+
@.agent/workflows/mindforge-quick.md
|
|
27
|
+
</execution_context>
|
|
28
|
+
|
|
29
|
+
<context>
|
|
30
|
+
$ARGUMENTS
|
|
31
|
+
|
|
32
|
+
Context files are resolved inside the workflow (`init quick`) and delegated via `<files_to_read>` blocks.
|
|
33
|
+
</context>
|
|
34
|
+
|
|
35
|
+
<process>
|
|
36
|
+
Execute the quick workflow from @.agent/workflows/mindforge-quick.md end-to-end.
|
|
37
|
+
Preserve all workflow gates (validation, task description, planning, execution, state updates, commits).
|
|
38
|
+
</process>
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-reapply-patches
|
|
3
|
+
description: Reapply local modifications after a MindForge update
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<purpose>
|
|
8
|
+
After a MindForge update wipes and reinstalls files, this command merges user's previously saved local modifications back into the new version. Uses intelligent comparison to handle cases where the upstream file also changed.
|
|
9
|
+
</purpose>
|
|
10
|
+
|
|
11
|
+
<process>
|
|
12
|
+
|
|
13
|
+
## Step 1: Detect backed-up patches
|
|
14
|
+
|
|
15
|
+
Check for local patches directory:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Global install — detect runtime config directory
|
|
19
|
+
if [ -d "$HOME/.config/opencode/mindforge-local-patches" ]; then
|
|
20
|
+
PATCHES_DIR="$HOME/.config/opencode/mindforge-local-patches"
|
|
21
|
+
elif [ -d "$HOME/.opencode/mindforge-local-patches" ]; then
|
|
22
|
+
PATCHES_DIR="$HOME/.opencode/mindforge-local-patches"
|
|
23
|
+
elif [ -d "$HOME/.gemini/mindforge-local-patches" ]; then
|
|
24
|
+
PATCHES_DIR="$HOME/.gemini/mindforge-local-patches"
|
|
25
|
+
else
|
|
26
|
+
PATCHES_DIR=".agent/mindforge-local-patches"
|
|
27
|
+
fi
|
|
28
|
+
# Local install fallback — check all runtime directories
|
|
29
|
+
if [ ! -d "$PATCHES_DIR" ]; then
|
|
30
|
+
for dir in .config/opencode .opencode .gemini .claude; do
|
|
31
|
+
if [ -d "./$dir/mindforge-local-patches" ]; then
|
|
32
|
+
PATCHES_DIR="./$dir/mindforge-local-patches"
|
|
33
|
+
break
|
|
34
|
+
fi
|
|
35
|
+
done
|
|
36
|
+
fi
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Read `backup-meta.json` from the patches directory.
|
|
40
|
+
|
|
41
|
+
**If no patches found:**
|
|
42
|
+
```
|
|
43
|
+
No local patches found. Nothing to reapply.
|
|
44
|
+
|
|
45
|
+
Local patches are automatically saved when you run /mindforge-update
|
|
46
|
+
after modifying any MindForge workflow, command, or agent files.
|
|
47
|
+
```
|
|
48
|
+
Exit.
|
|
49
|
+
|
|
50
|
+
## Step 2: Show patch summary
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
## Local Patches to Reapply
|
|
54
|
+
|
|
55
|
+
**Backed up from:** v{from_version}
|
|
56
|
+
**Current version:** {read VERSION file}
|
|
57
|
+
**Files modified:** {count}
|
|
58
|
+
|
|
59
|
+
| # | File | Status |
|
|
60
|
+
|---|------|--------|
|
|
61
|
+
| 1 | {file_path} | Pending |
|
|
62
|
+
| 2 | {file_path} | Pending |
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Step 3: Merge each file
|
|
66
|
+
|
|
67
|
+
For each file in `backup-meta.json`:
|
|
68
|
+
|
|
69
|
+
1. **Read the backed-up version** (user's modified copy from `mindforge-local-patches/`)
|
|
70
|
+
2. **Read the newly installed version** (current file after update)
|
|
71
|
+
3. **Compare and merge:**
|
|
72
|
+
|
|
73
|
+
- If the new file is identical to the backed-up file: skip (modification was incorporated upstream)
|
|
74
|
+
- If the new file differs: identify the user's modifications and apply them to the new version
|
|
75
|
+
|
|
76
|
+
**Merge strategy:**
|
|
77
|
+
- Read both versions fully
|
|
78
|
+
- Identify sections the user added or modified (look for additions, not just differences from path replacement)
|
|
79
|
+
- Apply user's additions/modifications to the new version
|
|
80
|
+
- If a section the user modified was also changed upstream: flag as conflict, show both versions, ask user which to keep
|
|
81
|
+
|
|
82
|
+
4. **Write merged result** to the installed location
|
|
83
|
+
5. **Report status:**
|
|
84
|
+
- `Merged` — user modifications applied cleanly
|
|
85
|
+
- `Skipped` — modification already in upstream
|
|
86
|
+
- `Conflict` — user chose resolution
|
|
87
|
+
|
|
88
|
+
## Step 4: Update manifest
|
|
89
|
+
|
|
90
|
+
After reapplying, regenerate the file manifest so future updates correctly detect these as user modifications:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
# The manifest will be regenerated on next /mindforge-update
|
|
94
|
+
# For now, just note which files were modified
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Step 5: Cleanup option
|
|
98
|
+
|
|
99
|
+
Ask user:
|
|
100
|
+
- "Keep patch backups for reference?" → preserve `mindforge-local-patches/`
|
|
101
|
+
- "Clean up patch backups?" → remove `mindforge-local-patches/` directory
|
|
102
|
+
|
|
103
|
+
## Step 6: Report
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
## Patches Reapplied
|
|
107
|
+
|
|
108
|
+
| # | File | Status |
|
|
109
|
+
|---|------|--------|
|
|
110
|
+
| 1 | {file_path} | ✓ Merged |
|
|
111
|
+
| 2 | {file_path} | ○ Skipped (already upstream) |
|
|
112
|
+
| 3 | {file_path} | ⚠ Conflict resolved |
|
|
113
|
+
|
|
114
|
+
{count} file(s) updated. Your local modifications are active again.
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
</process>
|
|
118
|
+
|
|
119
|
+
<success_criteria>
|
|
120
|
+
- [ ] All backed-up patches processed
|
|
121
|
+
- [ ] User modifications merged into new version
|
|
122
|
+
- [ ] Conflicts resolved with user input
|
|
123
|
+
- [ ] Status reported for each file
|
|
124
|
+
</success_criteria>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-remove-phase
|
|
3
|
+
description: Remove a future phase from roadmap and renumber subsequent phases
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<objective>
|
|
7
|
+
Remove an unstarted future phase from the roadmap and renumber all subsequent phases to maintain a clean, linear sequence.
|
|
8
|
+
|
|
9
|
+
Purpose: Clean removal of work you've decided not to do, without polluting context with cancelled/deferred markers.
|
|
10
|
+
Output: Phase deleted, all subsequent phases renumbered, git commit as historical record.
|
|
11
|
+
</objective>
|
|
12
|
+
|
|
13
|
+
<execution_context>
|
|
14
|
+
@.agent/workflows/mindforge-remove-phase.md
|
|
15
|
+
</execution_context>
|
|
16
|
+
|
|
17
|
+
<context>
|
|
18
|
+
Phase: $ARGUMENTS
|
|
19
|
+
|
|
20
|
+
Roadmap and state are resolved in-workflow via `init phase-op` and targeted reads.
|
|
21
|
+
</context>
|
|
22
|
+
|
|
23
|
+
<process>
|
|
24
|
+
Execute the remove-phase workflow from @.agent/workflows/mindforge-remove-phase.md end-to-end.
|
|
25
|
+
Preserve all validation gates (future phase check, work check), renumbering logic, and commit.
|
|
26
|
+
</process>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-remove-workspace
|
|
3
|
+
description: Remove a MindForge workspace and clean up worktrees
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<context>
|
|
7
|
+
**Arguments:**
|
|
8
|
+
- `<workspace-name>` (required) — Name of the workspace to remove
|
|
9
|
+
</context>
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Remove a workspace directory after confirmation. For worktree strategy, runs `git worktree remove` for each member repo first. Refuses if any repo has uncommitted changes.
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<execution_context>
|
|
16
|
+
@.agent/workflows/mindforge-remove-workspace.md
|
|
17
|
+
@.agent/references/ui-brand.md
|
|
18
|
+
</execution_context>
|
|
19
|
+
|
|
20
|
+
<process>
|
|
21
|
+
Execute the remove-workspace workflow from @.agent/workflows/mindforge-remove-workspace.md end-to-end.
|
|
22
|
+
</process>
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-research-phase
|
|
3
|
+
description: Research how to implement a phase (standalone - usually use /mindforge-plan-phase instead)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Research how to implement a phase. Spawns mindforge-phase-researcher agent with phase context.
|
|
9
|
+
|
|
10
|
+
**Note:** This is a standalone research command. For most workflows, use `/mindforge-plan-phase` which integrates research automatically.
|
|
11
|
+
|
|
12
|
+
**Use this command when:**
|
|
13
|
+
- You want to research without planning yet
|
|
14
|
+
- You want to re-research after planning is complete
|
|
15
|
+
- You need to investigate before deciding if a phase is feasible
|
|
16
|
+
|
|
17
|
+
**Orchestrator role:** Parse phase, validate against roadmap, check existing research, gather context, spawn researcher agent, present results.
|
|
18
|
+
|
|
19
|
+
**Why subagent:** Research burns context fast (WebSearch, Context7 queries, source verification). Fresh 200k context for investigation. Main context stays lean for user interaction.
|
|
20
|
+
</objective>
|
|
21
|
+
|
|
22
|
+
<context>
|
|
23
|
+
Phase number: $ARGUMENTS (required)
|
|
24
|
+
|
|
25
|
+
Normalize phase input in step 1 before any directory lookups.
|
|
26
|
+
</context>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
|
|
30
|
+
## 0. Initialize Context
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
INIT=$(node ".agent/bin/mindforge-tools.cjs" init phase-op "$ARGUMENTS")
|
|
34
|
+
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Extract from init JSON: `phase_dir`, `phase_number`, `phase_name`, `phase_found`, `commit_docs`, `has_research`, `state_path`, `requirements_path`, `context_path`, `research_path`.
|
|
38
|
+
|
|
39
|
+
Resolve researcher model:
|
|
40
|
+
```bash
|
|
41
|
+
RESEARCHER_MODEL=$(node ".agent/bin/mindforge-tools.cjs" resolve-model mindforge-phase-researcher --raw)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 1. Validate Phase
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
PHASE_INFO=$(node ".agent/bin/mindforge-tools.cjs" roadmap get-phase "${phase_number}")
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**If `found` is false:** Error and exit. **If `found` is true:** Extract `phase_number`, `phase_name`, `goal` from JSON.
|
|
51
|
+
|
|
52
|
+
## 2. Check Existing Research
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
ls .planning/phases/${PHASE}-*/RESEARCH.md 2>/dev/null
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**If exists:** Offer: 1) Update research, 2) View existing, 3) Skip. Wait for response.
|
|
59
|
+
|
|
60
|
+
**If doesn't exist:** Continue.
|
|
61
|
+
|
|
62
|
+
## 3. Gather Phase Context
|
|
63
|
+
|
|
64
|
+
Use paths from INIT (do not inline file contents in orchestrator context):
|
|
65
|
+
- `requirements_path`
|
|
66
|
+
- `context_path`
|
|
67
|
+
- `state_path`
|
|
68
|
+
|
|
69
|
+
Present summary with phase description and what files the researcher will load.
|
|
70
|
+
|
|
71
|
+
## 4. Spawn mindforge-phase-researcher Agent
|
|
72
|
+
|
|
73
|
+
Research modes: ecosystem (default), feasibility, implementation, comparison.
|
|
74
|
+
|
|
75
|
+
```markdown
|
|
76
|
+
<research_type>
|
|
77
|
+
Phase Research — investigating HOW to implement a specific phase well.
|
|
78
|
+
</research_type>
|
|
79
|
+
|
|
80
|
+
<key_insight>
|
|
81
|
+
The question is NOT "which library should I use?"
|
|
82
|
+
|
|
83
|
+
The question is: "What do I not know that I don't know?"
|
|
84
|
+
|
|
85
|
+
For this phase, discover:
|
|
86
|
+
- What's the established architecture pattern?
|
|
87
|
+
- What libraries form the standard stack?
|
|
88
|
+
- What problems do people commonly hit?
|
|
89
|
+
- What's SOTA vs what the agent's training thinks is SOTA?
|
|
90
|
+
- What should NOT be hand-rolled?
|
|
91
|
+
</key_insight>
|
|
92
|
+
|
|
93
|
+
<objective>
|
|
94
|
+
Research implementation approach for Phase {phase_number}: {phase_name}
|
|
95
|
+
Mode: ecosystem
|
|
96
|
+
</objective>
|
|
97
|
+
|
|
98
|
+
<files_to_read>
|
|
99
|
+
- {requirements_path} (Requirements)
|
|
100
|
+
- {context_path} (Phase context from discuss-phase, if exists)
|
|
101
|
+
- {state_path} (Prior project decisions and blockers)
|
|
102
|
+
</files_to_read>
|
|
103
|
+
|
|
104
|
+
<additional_context>
|
|
105
|
+
**Phase description:** {phase_description}
|
|
106
|
+
</additional_context>
|
|
107
|
+
|
|
108
|
+
<downstream_consumer>
|
|
109
|
+
Your RESEARCH.md will be loaded by `/mindforge-plan-phase` which uses specific sections:
|
|
110
|
+
- `## Standard Stack` → Plans use these libraries
|
|
111
|
+
- `## Architecture Patterns` → Task structure follows these
|
|
112
|
+
- `## Don't Hand-Roll` → Tasks NEVER build custom solutions for listed problems
|
|
113
|
+
- `## Common Pitfalls` → Verification steps check for these
|
|
114
|
+
- `## Code Examples` → Task actions reference these patterns
|
|
115
|
+
|
|
116
|
+
Be prescriptive, not exploratory. "Use X" not "Consider X or Y."
|
|
117
|
+
</downstream_consumer>
|
|
118
|
+
|
|
119
|
+
<quality_gate>
|
|
120
|
+
Before declaring complete, verify:
|
|
121
|
+
- [ ] All domains investigated (not just some)
|
|
122
|
+
- [ ] Negative claims verified with official docs
|
|
123
|
+
- [ ] Multiple sources for critical claims
|
|
124
|
+
- [ ] Confidence levels assigned honestly
|
|
125
|
+
- [ ] Section names match what plan-phase expects
|
|
126
|
+
</quality_gate>
|
|
127
|
+
|
|
128
|
+
<output>
|
|
129
|
+
Write to: .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
|
|
130
|
+
</output>
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
```
|
|
134
|
+
Task(
|
|
135
|
+
prompt=filled_prompt,
|
|
136
|
+
subagent_type="mindforge-phase-researcher",
|
|
137
|
+
model="{researcher_model}",
|
|
138
|
+
description="Research Phase {phase}"
|
|
139
|
+
)
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## 5. Handle Agent Return
|
|
143
|
+
|
|
144
|
+
**`## RESEARCH COMPLETE`:** Display summary, offer: Plan phase, Dig deeper, Review full, Done.
|
|
145
|
+
|
|
146
|
+
**`## CHECKPOINT REACHED`:** Present to user, get response, spawn continuation.
|
|
147
|
+
|
|
148
|
+
**`## RESEARCH INCONCLUSIVE`:** Show what was attempted, offer: Add context, Try different mode, Manual.
|
|
149
|
+
|
|
150
|
+
## 6. Spawn Continuation Agent
|
|
151
|
+
|
|
152
|
+
```markdown
|
|
153
|
+
<objective>
|
|
154
|
+
Continue research for Phase {phase_number}: {phase_name}
|
|
155
|
+
</objective>
|
|
156
|
+
|
|
157
|
+
<prior_state>
|
|
158
|
+
<files_to_read>
|
|
159
|
+
- .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md (Existing research)
|
|
160
|
+
</files_to_read>
|
|
161
|
+
</prior_state>
|
|
162
|
+
|
|
163
|
+
<checkpoint_response>
|
|
164
|
+
**Type:** {checkpoint_type}
|
|
165
|
+
**Response:** {user_response}
|
|
166
|
+
</checkpoint_response>
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
Task(
|
|
171
|
+
prompt=continuation_prompt,
|
|
172
|
+
subagent_type="mindforge-phase-researcher",
|
|
173
|
+
model="{researcher_model}",
|
|
174
|
+
description="Continue research Phase {phase}"
|
|
175
|
+
)
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
</process>
|
|
179
|
+
|
|
180
|
+
<success_criteria>
|
|
181
|
+
- [ ] Phase validated against roadmap
|
|
182
|
+
- [ ] Existing research checked
|
|
183
|
+
- [ ] mindforge-phase-researcher spawned with context
|
|
184
|
+
- [ ] Checkpoints handled correctly
|
|
185
|
+
- [ ] User knows next steps
|
|
186
|
+
</success_criteria>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-resume-work
|
|
3
|
+
description: Resume work from previous session with full context restoration
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Restore complete project context and resume work seamlessly from previous session.
|
|
9
|
+
|
|
10
|
+
Routes to the resume-project workflow which handles:
|
|
11
|
+
|
|
12
|
+
- STATE.md loading (or reconstruction if missing)
|
|
13
|
+
- Checkpoint detection (.continue-here files)
|
|
14
|
+
- Incomplete work detection (PLAN without SUMMARY)
|
|
15
|
+
- Status presentation
|
|
16
|
+
- Context-aware next action routing
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
@.agent/workflows/mindforge-resume-project.md
|
|
21
|
+
</execution_context>
|
|
22
|
+
|
|
23
|
+
<process>
|
|
24
|
+
**Follow the resume-project workflow** from `@.agent/workflows/mindforge-resume-project.md`.
|
|
25
|
+
|
|
26
|
+
The workflow handles all resumption logic including:
|
|
27
|
+
|
|
28
|
+
1. Project existence verification
|
|
29
|
+
2. STATE.md loading or reconstruction
|
|
30
|
+
3. Checkpoint and incomplete work detection
|
|
31
|
+
4. Visual status presentation
|
|
32
|
+
5. Context-aware option offering (checks CONTEXT.md before suggesting plan vs discuss)
|
|
33
|
+
6. Routing to appropriate next command
|
|
34
|
+
7. Session continuity updates
|
|
35
|
+
</process>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mindforge-review
|
|
3
|
+
description: Request cross-AI peer review of phase plans from external AI CLIs
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<objective>
|
|
8
|
+
Invoke external AI CLIs (Gemini, the agent, Codex) to independently review phase plans.
|
|
9
|
+
Produces a structured REVIEWS.md with per-reviewer feedback that can be fed back into
|
|
10
|
+
planning via /mindforge-plan-phase --reviews.
|
|
11
|
+
|
|
12
|
+
**Flow:** Detect CLIs → Build review prompt → Invoke each CLI → Collect responses → Write REVIEWS.md
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<execution_context>
|
|
16
|
+
@.agent/workflows/mindforge-review.md
|
|
17
|
+
</execution_context>
|
|
18
|
+
|
|
19
|
+
<context>
|
|
20
|
+
Phase number: extracted from $ARGUMENTS (required)
|
|
21
|
+
|
|
22
|
+
**Flags:**
|
|
23
|
+
- `--gemini` — Include Gemini CLI review
|
|
24
|
+
- `--claude` — Include the agent CLI review (uses separate session)
|
|
25
|
+
- `--codex` — Include Codex CLI review
|
|
26
|
+
- `--all` — Include all available CLIs
|
|
27
|
+
</context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
Execute the review workflow from @.agent/workflows/mindforge-review.md end-to-end.
|
|
31
|
+
</process>
|