@monoes/monomindcli 1.10.54 → 1.10.55
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/.claude/agents/optimization/benchmark-suite.md +2 -0
- package/.claude/agents/optimization/load-balancer.md +2 -0
- package/.claude/agents/optimization/performance-monitor.md +2 -0
- package/.claude/agents/optimization/resource-allocator.md +3 -1
- package/.claude/agents/optimization/topology-optimizer.md +2 -0
- package/.claude/commands/mastermind/_repeat.md +21 -0
- package/.claude/commands/mastermind/_taskfile.md +235 -0
- package/.claude/commands/mastermind/adr.md +11 -0
- package/.claude/commands/mastermind/approve.md +94 -0
- package/.claude/commands/mastermind/autodev.md +32 -0
- package/.claude/commands/mastermind/budget.md +7 -0
- package/.claude/commands/mastermind/code-review.md +317 -0
- package/.claude/commands/mastermind/createorg.md +40 -1
- package/.claude/commands/mastermind/createtask.md +383 -0
- package/.claude/commands/mastermind/debug.md +22 -0
- package/.claude/commands/mastermind/design.md +20 -0
- package/.claude/commands/mastermind/do.md +526 -0
- package/.claude/commands/mastermind/execute.md +20 -0
- package/.claude/commands/mastermind/finish.md +20 -0
- package/.claude/commands/mastermind/graph-status.md +7 -0
- package/.claude/commands/mastermind/help.md +118 -0
- package/.claude/commands/mastermind/ideate.md +261 -0
- package/.claude/commands/mastermind/improve.md +345 -0
- package/.claude/commands/mastermind/loops.md +7 -0
- package/.claude/commands/mastermind/master.md +186 -6
- package/.claude/commands/mastermind/memory.md +230 -0
- package/.claude/commands/mastermind/plan.md +26 -0
- package/.claude/commands/mastermind/receive-review.md +20 -0
- package/.claude/commands/mastermind/repeat.md +257 -0
- package/.claude/commands/mastermind/runorg.md +3 -0
- package/.claude/commands/mastermind/skill-builder.md +20 -0
- package/.claude/commands/mastermind/specialagents.md +125 -0
- package/.claude/commands/mastermind/swarm.md +161 -0
- package/.claude/commands/mastermind/taskdev.md +26 -0
- package/.claude/commands/mastermind/tdd.md +22 -0
- package/.claude/commands/mastermind/techport.md +4 -0
- package/.claude/commands/mastermind/understand.md +139 -0
- package/.claude/commands/mastermind/verify.md +22 -0
- package/.claude/commands/mastermind/worktree.md +20 -0
- package/.claude/helpers/handlers/graph-status-handler.cjs +2 -1
- package/.claude/helpers/hook-handler.cjs +19 -0
- package/.claude/helpers/skill-registry.json +23 -0
- package/.claude/helpers/statusline.cjs +1 -1
- package/.claude/skills/mastermind/approve.md +15 -7
- package/.claude/skills/mastermind/autodev.md +534 -0
- package/.claude/skills/mastermind/createorg.md +21 -5
- package/.claude/skills/mastermind/debug.md +232 -0
- package/.claude/skills/mastermind/design.md +187 -0
- package/.claude/skills/mastermind/execute.md +104 -0
- package/.claude/skills/mastermind/finish.md +251 -0
- package/.claude/skills/mastermind/plan.md +180 -0
- package/.claude/skills/mastermind/receive-review.md +213 -0
- package/.claude/skills/mastermind/runorg.md +23 -8
- package/.claude/skills/mastermind/skill-builder.md +274 -0
- package/.claude/skills/mastermind/taskdev.md +307 -0
- package/.claude/skills/mastermind/tdd.md +394 -0
- package/.claude/skills/mastermind/verify.md +196 -0
- package/.claude/skills/mastermind/worktree.md +160 -132
- package/README.md +320 -253
- package/dist/src/commands/analyze.d.ts.map +1 -1
- package/dist/src/commands/analyze.js +9 -2
- package/dist/src/commands/analyze.js.map +1 -1
- package/dist/src/commands/benchmark.js.map +1 -1
- package/dist/src/commands/completions.js +1 -1
- package/dist/src/commands/guidance.js +7 -7
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +16 -3
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/index.d.ts +3 -2
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +7 -0
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +47 -13
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/neural.d.ts.map +1 -1
- package/dist/src/commands/neural.js +100 -14
- package/dist/src/commands/neural.js.map +1 -1
- package/dist/src/commands/platforms.d.ts +11 -0
- package/dist/src/commands/platforms.d.ts.map +1 -0
- package/dist/src/commands/platforms.js +195 -0
- package/dist/src/commands/platforms.js.map +1 -0
- package/dist/src/commands/ruvector/backup.js.map +1 -1
- package/dist/src/commands/ruvector/benchmark.js.map +1 -1
- package/dist/src/commands/ruvector/init.js.map +1 -1
- package/dist/src/commands/ruvector/migrate.js.map +1 -1
- package/dist/src/commands/ruvector/optimize.js.map +1 -1
- package/dist/src/commands/ruvector/status.js.map +1 -1
- package/dist/src/commands/update.js +6 -6
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +28 -0
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/statusline-generator.js +1 -1
- package/dist/src/init/types.d.ts +1 -0
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/mcp-server.d.ts.map +1 -1
- package/dist/src/mcp-server.js +92 -0
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +52 -0
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +106 -5
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/mcp-tools/index.d.ts +0 -5
- package/dist/src/mcp-tools/index.d.ts.map +1 -1
- package/dist/src/mcp-tools/index.js +0 -5
- package/dist/src/mcp-tools/index.js.map +1 -1
- package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph-tools.js +507 -5587
- package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
- package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/neural-tools.js +64 -4
- package/dist/src/mcp-tools/neural-tools.js.map +1 -1
- package/dist/src/mcp-tools/security-tools.js +4 -4
- package/dist/src/memory/intelligence.d.ts +2 -2
- package/dist/src/memory/intelligence.d.ts.map +1 -1
- package/dist/src/memory/intelligence.js +108 -3
- package/dist/src/memory/intelligence.js.map +1 -1
- package/dist/src/memory/memory-bridge.js +1 -1
- package/dist/src/memory/memory-bridge.js.map +1 -1
- package/dist/src/memory/sona-optimizer.d.ts +1 -10
- package/dist/src/memory/sona-optimizer.d.ts.map +1 -1
- package/dist/src/memory/sona-optimizer.js +0 -46
- package/dist/src/memory/sona-optimizer.js.map +1 -1
- package/dist/src/runtime/headless.js +3 -3
- package/dist/src/ruvector/diff-classifier.d.ts +0 -2
- package/dist/src/ruvector/diff-classifier.d.ts.map +1 -1
- package/dist/src/ruvector/diff-classifier.js +2 -14
- package/dist/src/ruvector/diff-classifier.js.map +1 -1
- package/dist/src/ruvector/index.d.ts +26 -9
- package/dist/src/ruvector/index.d.ts.map +1 -1
- package/dist/src/ruvector/index.js +3 -21
- package/dist/src/ruvector/index.js.map +1 -1
- package/dist/src/ruvector/ruvllm-wasm.js +2 -2
- package/dist/src/ruvector/ruvllm-wasm.js.map +1 -1
- package/dist/src/types.d.ts +0 -15
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +0 -18
- package/dist/src/types.js.map +1 -1
- package/dist/src/ui/dashboard.html +8763 -9766
- package/dist/src/ui/orgs.html +1 -1
- package/dist/src/ui/server.mjs +504 -35
- package/dist/src/update/index.js +1 -1
- package/dist/src/update/validator.js +8 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/.claude/agents/academic/academic-anthropologist.md +0 -126
- package/.claude/agents/academic/academic-geographer.md +0 -128
- package/.claude/agents/academic/academic-historian.md +0 -124
- package/.claude/agents/academic/academic-narratologist.md +0 -119
- package/.claude/agents/academic/academic-psychologist.md +0 -119
- package/.claude/agents/analysis/analyze-code-quality.md +0 -58
- package/.claude/agents/analysis/code-analyzer.md +0 -189
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -58
- package/.claude/agents/consensus/performance-benchmarker.md +0 -831
- package/.claude/agents/data/ml/data-ml-model.md +0 -76
- package/.claude/agents/development/dev-backend-api.md +0 -178
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -52
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -63
- package/.claude/agents/game-development/blender/blender-addon-engineer.md +0 -235
- package/.claude/agents/game-development/game-audio-engineer.md +0 -265
- package/.claude/agents/game-development/game-designer.md +0 -168
- package/.claude/agents/game-development/godot/godot-gameplay-scripter.md +0 -335
- package/.claude/agents/game-development/godot/godot-multiplayer-engineer.md +0 -298
- package/.claude/agents/game-development/godot/godot-shader-developer.md +0 -267
- package/.claude/agents/game-development/level-designer.md +0 -209
- package/.claude/agents/game-development/narrative-designer.md +0 -244
- package/.claude/agents/game-development/roblox-studio/roblox-avatar-creator.md +0 -298
- package/.claude/agents/game-development/roblox-studio/roblox-experience-designer.md +0 -306
- package/.claude/agents/game-development/roblox-studio/roblox-systems-scripter.md +0 -326
- package/.claude/agents/game-development/technical-artist.md +0 -230
- package/.claude/agents/game-development/unity/unity-architect.md +0 -272
- package/.claude/agents/game-development/unity/unity-editor-tool-developer.md +0 -311
- package/.claude/agents/game-development/unity/unity-multiplayer-engineer.md +0 -322
- package/.claude/agents/game-development/unity/unity-shader-graph-artist.md +0 -270
- package/.claude/agents/game-development/unreal-engine/unreal-multiplayer-architect.md +0 -314
- package/.claude/agents/game-development/unreal-engine/unreal-systems-engineer.md +0 -311
- package/.claude/agents/game-development/unreal-engine/unreal-technical-artist.md +0 -257
- package/.claude/agents/game-development/unreal-engine/unreal-world-builder.md +0 -274
- package/.claude/agents/github/release-swarm.md +0 -597
- package/.claude/agents/goal/agent.md +0 -804
- package/.claude/agents/goal/code-goal-planner.md +0 -445
- package/.claude/agents/marketing/marketing-ai-citation-strategist.md +0 -171
- package/.claude/agents/marketing/marketing-app-store-optimizer.md +0 -322
- package/.claude/agents/marketing/marketing-baidu-seo-specialist.md +0 -227
- package/.claude/agents/marketing/marketing-bilibili-content-strategist.md +0 -200
- package/.claude/agents/marketing/marketing-book-co-author.md +0 -111
- package/.claude/agents/marketing/marketing-carousel-growth-engine.md +0 -200
- package/.claude/agents/marketing/marketing-china-ecommerce-operator.md +0 -284
- package/.claude/agents/marketing/marketing-content-creator.md +0 -67
- package/.claude/agents/marketing/marketing-cross-border-ecommerce.md +0 -260
- package/.claude/agents/marketing/marketing-douyin-strategist.md +0 -150
- package/.claude/agents/marketing/marketing-growth-hacker.md +0 -54
- package/.claude/agents/marketing/marketing-instagram-curator.md +0 -114
- package/.claude/agents/marketing/marketing-kuaishou-strategist.md +0 -224
- package/.claude/agents/marketing/marketing-linkedin-content-creator.md +0 -215
- package/.claude/agents/marketing/marketing-livestream-commerce-coach.md +0 -306
- package/.claude/agents/marketing/marketing-podcast-strategist.md +0 -278
- package/.claude/agents/marketing/marketing-private-domain-operator.md +0 -309
- package/.claude/agents/marketing/marketing-reddit-community-builder.md +0 -124
- package/.claude/agents/marketing/marketing-seo-specialist.md +0 -279
- package/.claude/agents/marketing/marketing-short-video-editing-coach.md +0 -413
- package/.claude/agents/marketing/marketing-social-media-strategist.md +0 -125
- package/.claude/agents/marketing/marketing-tiktok-strategist.md +0 -126
- package/.claude/agents/marketing/marketing-twitter-engager.md +0 -127
- package/.claude/agents/marketing/marketing-wechat-official-account.md +0 -146
- package/.claude/agents/marketing/marketing-weibo-strategist.md +0 -241
- package/.claude/agents/marketing/marketing-xiaohongshu-specialist.md +0 -139
- package/.claude/agents/marketing/marketing-zhihu-strategist.md +0 -163
- package/.claude/agents/neural/safla-neural.md +0 -74
- package/.claude/agents/paid-media/paid-media-auditor.md +0 -71
- package/.claude/agents/paid-media/paid-media-creative-strategist.md +0 -71
- package/.claude/agents/paid-media/paid-media-paid-social-strategist.md +0 -71
- package/.claude/agents/paid-media/paid-media-ppc-strategist.md +0 -71
- package/.claude/agents/paid-media/paid-media-programmatic-buyer.md +0 -71
- package/.claude/agents/paid-media/paid-media-search-query-analyst.md +0 -71
- package/.claude/agents/paid-media/paid-media-tracking-specialist.md +0 -71
- package/.claude/agents/payments/agentic-payments.md +0 -126
- package/.claude/agents/product/product-behavioral-nudge-engine.md +0 -81
- package/.claude/agents/product/product-feedback-synthesizer.md +0 -119
- package/.claude/agents/product/product-manager.md +0 -469
- package/.claude/agents/product/product-sprint-prioritizer.md +0 -154
- package/.claude/agents/product/product-trend-researcher.md +0 -159
- package/.claude/agents/project-management/project-management-experiment-tracker.md +0 -199
- package/.claude/agents/project-management/project-management-jira-workflow-steward.md +0 -231
- package/.claude/agents/project-management/project-management-project-shepherd.md +0 -195
- package/.claude/agents/project-management/project-management-studio-operations.md +0 -201
- package/.claude/agents/project-management/project-management-studio-producer.md +0 -204
- package/.claude/agents/project-management/project-manager-senior.md +0 -136
- package/.claude/agents/reasoning/agent.md +0 -804
- package/.claude/agents/reasoning/goal-planner.md +0 -73
- package/.claude/agents/sales/sales-account-strategist.md +0 -228
- package/.claude/agents/sales/sales-coach.md +0 -272
- package/.claude/agents/sales/sales-deal-strategist.md +0 -181
- package/.claude/agents/sales/sales-discovery-coach.md +0 -226
- package/.claude/agents/sales/sales-engineer.md +0 -183
- package/.claude/agents/sales/sales-outbound-strategist.md +0 -202
- package/.claude/agents/sales/sales-pipeline-analyst.md +0 -268
- package/.claude/agents/sales/sales-proposal-strategist.md +0 -218
- package/.claude/agents/sona/sona-learning-optimizer.md +0 -65
- package/.claude/agents/spatial-computing/macos-spatial-metal-engineer.md +0 -338
- package/.claude/agents/spatial-computing/terminal-integration-specialist.md +0 -71
- package/.claude/agents/spatial-computing/visionos-spatial-engineer.md +0 -55
- package/.claude/agents/specialists/memory-specialist.md +0 -298
- package/.claude/agents/specialists/performance-engineer.md +0 -387
- package/.claude/agents/specialists/queen-coordinator.md +0 -67
- package/.claude/agents/specialists/security-architect.md +0 -154
- package/.claude/agents/specialized/accounts-payable-agent.md +0 -186
- package/.claude/agents/specialized/corporate-training-designer.md +0 -193
- package/.claude/agents/specialized/data-consolidation-agent.md +0 -61
- package/.claude/agents/specialized/government-digital-presales-consultant.md +0 -364
- package/.claude/agents/specialized/healthcare-marketing-compliance.md +0 -396
- package/.claude/agents/specialized/recruitment-specialist.md +0 -510
- package/.claude/agents/specialized/report-distribution-agent.md +0 -66
- package/.claude/agents/specialized/sales-data-extraction-agent.md +0 -68
- package/.claude/agents/specialized/specialized-french-consulting-market.md +0 -193
- package/.claude/agents/specialized/specialized-korean-business-navigator.md +0 -217
- package/.claude/agents/specialized/specialized-salesforce-architect.md +0 -181
- package/.claude/agents/specialized/study-abroad-advisor.md +0 -283
- package/.claude/agents/specialized/supply-chain-strategist.md +0 -583
- package/.claude/agents/sublinear/consensus-coordinator.md +0 -333
- package/.claude/agents/sublinear/matrix-optimizer.md +0 -180
- package/.claude/agents/sublinear/pagerank-analyzer.md +0 -295
- package/.claude/agents/sublinear/performance-optimizer.md +0 -363
- package/.claude/agents/sublinear/trading-predictor.md +0 -242
- package/.claude/agents/support/support-analytics-reporter.md +0 -366
- package/.claude/agents/support/support-executive-summary-generator.md +0 -213
- package/.claude/agents/support/support-finance-tracker.md +0 -443
- package/.claude/agents/support/support-infrastructure-maintainer.md +0 -619
- package/.claude/agents/support/support-legal-compliance-checker.md +0 -589
- package/.claude/agents/support/support-support-responder.md +0 -586
- package/.claude/agents/swarm/adaptive-coordinator.md +0 -364
- package/.claude/agents/swarm/hierarchical-coordinator.md +0 -318
- package/.claude/agents/templates/github-pr-manager.md +0 -155
- package/.claude/agents/templates/memory-coordinator.md +0 -163
- package/.claude/agents/templates/migration-plan.md +0 -724
- package/.claude/agents/templates/orchestrator-task.md +0 -120
- package/.claude/agents/templates/performance-analyzer.md +0 -179
- package/.claude/agents/templates/sparc-coordinator.md +0 -163
- package/.claude/agents/testing/testing-reality-checker.md +0 -237
- package/.claude/commands/analysis/token-efficiency.md +0 -42
- package/.claude/commands/optimization/README.md +0 -73
- package/.claude/commands/optimization/parallel-execution.md +0 -76
- package/.claude/commands/swarm/swarm-analysis.md +0 -62
- package/.claude/commands/swarm/swarm-background.md +0 -65
- package/.claude/commands/swarm/swarm-modes.md +0 -67
- package/.claude/commands/swarm/swarm-monitor.md +0 -54
- package/.claude/commands/swarm/swarm-status.md +0 -44
- package/.claude/commands/swarm/swarm-strategies.md +0 -76
- package/.claude/commands/training/model-update.md +0 -78
- package/.claude/commands/training/pattern-learn.md +0 -69
- package/.claude/commands/training/specialization.md +0 -92
- package/.claude/commands/verify/check.md +0 -106
- package/.claude/commands/verify/start.md +0 -105
- package/.claude/helpers/README.md +0 -105
- package/.claude/helpers/context-persistence-hook.mjs +0 -1988
- package/.claude/helpers/intelligence.cjs +0 -247
- package/.claude/helpers/learning-service.mjs +0 -1302
- package/.claude/helpers/memory-palace.cjs +0 -461
- package/.claude/helpers/memory.cjs +0 -84
- package/.claude/helpers/metrics-db.mjs +0 -488
- package/.claude/helpers/router.cjs +0 -559
- package/.claude/helpers/session.cjs +0 -126
- package/.claude/helpers/swarm-hooks.sh +0 -761
- package/.claude/helpers/toggle-statusline.cjs +0 -58
- package/.claude/helpers/token-tracker.cjs +0 -934
- package/.claude/skills/agentdb-advanced/SKILL.md +0 -549
- package/.claude/skills/agentdb-learning/SKILL.md +0 -544
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -337
- package/.claude/skills/agentdb-optimization/SKILL.md +0 -508
- package/.claude/skills/agentdb-vector-search/SKILL.md +0 -335
- package/.claude/skills/agentic-integration/SKILL.md +0 -265
- package/.claude/skills/cli-modernization/SKILL.md +0 -950
- package/.claude/skills/core-implementation/SKILL.md +0 -892
- package/.claude/skills/ddd-architecture/SKILL.md +0 -444
- package/.claude/skills/github-code-review/SKILL.md +0 -1147
- package/.claude/skills/github-multi-repo/SKILL.md +0 -912
- package/.claude/skills/github-project-management/SKILL.md +0 -1245
- package/.claude/skills/github-release-management/SKILL.md +0 -1118
- package/.claude/skills/github-workflow-automation/SKILL.md +0 -1107
- package/.claude/skills/mcp-optimization/SKILL.md +0 -837
- package/.claude/skills/memory-unification/SKILL.md +0 -196
- package/.claude/skills/performance-optimization/SKILL.md +0 -416
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -444
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -199
- package/.claude/skills/security-hardening/SKILL.md +0 -101
- package/.claude/skills/stream-chain/SKILL.md +0 -560
- package/.claude/skills/swarm-coordination/SKILL.md +0 -451
- package/bundled-graph/dist/src/analyze.d.ts +0 -32
- package/bundled-graph/dist/src/analyze.d.ts.map +0 -1
- package/bundled-graph/dist/src/analyze.js +0 -297
- package/bundled-graph/dist/src/analyze.js.map +0 -1
- package/bundled-graph/dist/src/build.d.ts +0 -8
- package/bundled-graph/dist/src/build.d.ts.map +0 -1
- package/bundled-graph/dist/src/build.js.map +0 -1
- package/bundled-graph/dist/src/cache.d.ts +0 -12
- package/bundled-graph/dist/src/cache.d.ts.map +0 -1
- package/bundled-graph/dist/src/cache.js +0 -43
- package/bundled-graph/dist/src/cache.js.map +0 -1
- package/bundled-graph/dist/src/cluster.d.ts +0 -5
- package/bundled-graph/dist/src/cluster.d.ts.map +0 -1
- package/bundled-graph/dist/src/cluster.js.map +0 -1
- package/bundled-graph/dist/src/detect.d.ts +0 -21
- package/bundled-graph/dist/src/detect.d.ts.map +0 -1
- package/bundled-graph/dist/src/detect.js +0 -195
- package/bundled-graph/dist/src/detect.js.map +0 -1
- package/bundled-graph/dist/src/export.d.ts +0 -21
- package/bundled-graph/dist/src/export.d.ts.map +0 -1
- package/bundled-graph/dist/src/export.js +0 -68
- package/bundled-graph/dist/src/export.js.map +0 -1
- package/bundled-graph/dist/src/extract/index.d.ts +0 -20
- package/bundled-graph/dist/src/extract/index.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/index.js +0 -158
- package/bundled-graph/dist/src/extract/index.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/c.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/c.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/c.js +0 -88
- package/bundled-graph/dist/src/extract/languages/c.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/cpp.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/cpp.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/cpp.js +0 -121
- package/bundled-graph/dist/src/extract/languages/cpp.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/csharp.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/csharp.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/csharp.js +0 -121
- package/bundled-graph/dist/src/extract/languages/csharp.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/go.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/go.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/go.js +0 -181
- package/bundled-graph/dist/src/extract/languages/go.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/java.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/java.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/java.js +0 -117
- package/bundled-graph/dist/src/extract/languages/java.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/kotlin.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/kotlin.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/kotlin.js +0 -112
- package/bundled-graph/dist/src/extract/languages/kotlin.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/php.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/php.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/php.js +0 -130
- package/bundled-graph/dist/src/extract/languages/php.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/python.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/python.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/python.js +0 -230
- package/bundled-graph/dist/src/extract/languages/python.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/ruby.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/ruby.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/ruby.js +0 -120
- package/bundled-graph/dist/src/extract/languages/ruby.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/rust.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/rust.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/rust.js +0 -195
- package/bundled-graph/dist/src/extract/languages/rust.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/scala.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/scala.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/scala.js +0 -110
- package/bundled-graph/dist/src/extract/languages/scala.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/swift.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/swift.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/swift.js +0 -122
- package/bundled-graph/dist/src/extract/languages/swift.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/typescript.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/typescript.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/typescript.js +0 -295
- package/bundled-graph/dist/src/extract/languages/typescript.js.map +0 -1
- package/bundled-graph/dist/src/extract/semantic.d.ts +0 -38
- package/bundled-graph/dist/src/extract/semantic.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/semantic.js +0 -242
- package/bundled-graph/dist/src/extract/semantic.js.map +0 -1
- package/bundled-graph/dist/src/extract/tree-sitter-runner.d.ts +0 -48
- package/bundled-graph/dist/src/extract/tree-sitter-runner.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/tree-sitter-runner.js +0 -137
- package/bundled-graph/dist/src/extract/tree-sitter-runner.js.map +0 -1
- package/bundled-graph/dist/src/extract/types.d.ts +0 -7
- package/bundled-graph/dist/src/extract/types.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/types.js +0 -2
- package/bundled-graph/dist/src/extract/types.js.map +0 -1
- package/bundled-graph/dist/src/index.d.ts +0 -28
- package/bundled-graph/dist/src/index.d.ts.map +0 -1
- package/bundled-graph/dist/src/index.js +0 -26
- package/bundled-graph/dist/src/index.js.map +0 -1
- package/bundled-graph/dist/src/pipeline.d.ts +0 -27
- package/bundled-graph/dist/src/pipeline.d.ts.map +0 -1
- package/bundled-graph/dist/src/pipeline.js +0 -269
- package/bundled-graph/dist/src/pipeline.js.map +0 -1
- package/bundled-graph/dist/src/report.d.ts +0 -26
- package/bundled-graph/dist/src/report.d.ts.map +0 -1
- package/bundled-graph/dist/src/report.js +0 -214
- package/bundled-graph/dist/src/report.js.map +0 -1
- package/bundled-graph/dist/src/types.d.ts +0 -124
- package/bundled-graph/dist/src/types.d.ts.map +0 -1
- package/bundled-graph/dist/src/types.js +0 -2
- package/bundled-graph/dist/src/types.js.map +0 -1
- package/bundled-graph/dist/src/visualize.d.ts +0 -4
- package/bundled-graph/dist/src/visualize.d.ts.map +0 -1
- package/bundled-graph/dist/src/visualize.js +0 -574
- package/bundled-graph/dist/src/visualize.js.map +0 -1
- package/bundled-graph/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/src/ui/dashboard-v2.html +0 -5316
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mastermind:ideate
|
|
3
|
+
description: "Mastermind — Research ideas from a prompt, evaluate them with a PM lens, elaborate, and decompose into subtasks saved to docs/ideas/ (default) or monotask boards (--monotask flag)"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `_repeat.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-arguments check below.
|
|
7
|
+
|
|
8
|
+
If `$ARGUMENTS` is empty, output this and STOP:
|
|
9
|
+
|
|
10
|
+
> **Usage:** `/mastermind:ideate <prompt>`
|
|
11
|
+
>
|
|
12
|
+
> Example: `/mastermind:ideate add real-time collaboration to the editor`
|
|
13
|
+
>
|
|
14
|
+
> By default, ideas are saved to `docs/ideas/YYYY-MM-DD-<slug>.md`. Add `--monotask` to write to a monotask board instead.
|
|
15
|
+
|
|
16
|
+
Do NOT proceed further if no arguments were provided.
|
|
17
|
+
|
|
18
|
+
**Extract `--monotask` flag:** If present, set `USE_MONOTASK=true` and remove from `$ARGUMENTS`. Default: `USE_MONOTASK=false`.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Step 0: Check monotask CLI *(skip unless `--monotask` was passed)*
|
|
23
|
+
|
|
24
|
+
**Only run this step if `USE_MONOTASK=true`.**
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
command -v monotask || (command -v cargo && cargo install monotask)
|
|
28
|
+
```
|
|
29
|
+
If neither exists, tell user to install Rust + monotask and STOP.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Step 1: Gather Project Context
|
|
34
|
+
|
|
35
|
+
Collect ALL of the following in parallel (skip any that error):
|
|
36
|
+
|
|
37
|
+
1. **Repo name**: Run `git remote get-url origin`, extract the last path segment, strip `.git`. Fallback: `basename` of the current working directory. Store as `REPO_NAME`.
|
|
38
|
+
|
|
39
|
+
2. **README**: Read `README.md` (first 200 lines). Skip if missing.
|
|
40
|
+
|
|
41
|
+
3. **Package manifest**: Read whichever exists first: `package.json`, `Cargo.toml`, `pyproject.toml`, `go.mod`. Extract name, description, and keywords/tags.
|
|
42
|
+
|
|
43
|
+
4. **Knowledge graph**: Call `mcp__monomind__monograph_suggest` with the user's prompt (`$ARGUMENTS`). Skip if it errors or returns empty.
|
|
44
|
+
|
|
45
|
+
5. **Memory search**: Call `mcp__monomind__memory_search` with the user's prompt (`$ARGUMENTS`). Use the top 5 results.
|
|
46
|
+
|
|
47
|
+
Bundle all gathered information into a single `PROJECT_CONTEXT` string for downstream agents.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Step 2: Setup Storage
|
|
52
|
+
|
|
53
|
+
**File mode (default):**
|
|
54
|
+
```bash
|
|
55
|
+
DATE=$(date +%Y-%m-%d)
|
|
56
|
+
SLUG=$(echo "$ARGUMENTS" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g; s/-\+/-/g; s/^-//; s/-$//' | cut -c1-40)
|
|
57
|
+
IDEA_FILE="docs/ideas/${DATE}-${SLUG}.md"
|
|
58
|
+
mkdir -p docs/ideas
|
|
59
|
+
```
|
|
60
|
+
Write the file header using the Write tool:
|
|
61
|
+
```markdown
|
|
62
|
+
---
|
|
63
|
+
source: mastermind:ideate
|
|
64
|
+
repo: <REPO_NAME>
|
|
65
|
+
created: <DATE>
|
|
66
|
+
prompt: <first 100 chars of $ARGUMENTS>
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
# Ideas: <$ARGUMENTS>
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
Store `IDEA_FILE`.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
**Monotask mode:**
|
|
77
|
+
- Find or create space `$REPO_NAME` → store `SPACE_ID`
|
|
78
|
+
- Find or create `monomind-idea` board with columns: `New`, `Evaluated`, `Elaborated`, `Tasked`, `Iced`, `Rejected` → store `BOARD_ID` and all column IDs
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Step 3: Research Swarm -- Generate Ideas
|
|
83
|
+
|
|
84
|
+
Spawn 3-5 `researcher` agents in parallel using the Agent tool (mesh topology). Each agent receives:
|
|
85
|
+
|
|
86
|
+
- The user's prompt: `$ARGUMENTS`
|
|
87
|
+
- The `PROJECT_CONTEXT` string from Step 1
|
|
88
|
+
|
|
89
|
+
Each agent should generate ideas as a JSON array. There is no hard cap — generate as many or as few as the topic warrants. Ideas should span **two categories**:
|
|
90
|
+
|
|
91
|
+
1. **Feature/capability ideas** — what to build, what problem it solves, why it matters.
|
|
92
|
+
2. **Technical stack & baseline decisions** — foundational choices that must be made before implementation (e.g., "Use PostgreSQL vs SQLite for persistence", "Adopt event-driven architecture vs request-response", "Choose WebSocket vs SSE for real-time updates", "Define the API versioning strategy"). These are the "how" decisions that shape everything downstream.
|
|
93
|
+
|
|
94
|
+
```json
|
|
95
|
+
[
|
|
96
|
+
{
|
|
97
|
+
"title": "Short idea title",
|
|
98
|
+
"description": "2-3 sentence description of the idea, what it solves, and why it matters.",
|
|
99
|
+
"category": "feature | technical-baseline"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
After all agents complete:
|
|
105
|
+
1. Merge all idea arrays.
|
|
106
|
+
2. Deduplicate by title similarity (fuzzy match — drop ideas whose titles are >80% similar to an already-kept idea).
|
|
107
|
+
3. Persist each unique idea:
|
|
108
|
+
|
|
109
|
+
**File mode:** Append to `IDEA_FILE` using the idea section format from `_taskfile.md`:
|
|
110
|
+
```markdown
|
|
111
|
+
### <Idea Title>
|
|
112
|
+
> status: new
|
|
113
|
+
> category: <feature|technical-baseline>
|
|
114
|
+
|
|
115
|
+
<description>
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**Monotask mode:**
|
|
121
|
+
```bash
|
|
122
|
+
monotask card create $BOARD_ID $COL_NEW "<title>" --json
|
|
123
|
+
monotask card comment add $BOARD_ID $CARD_ID "<description>"
|
|
124
|
+
monotask card label add $BOARD_ID $CARD_ID "monomind-idea"
|
|
125
|
+
monotask card label add $BOARD_ID $CARD_ID "<category>"
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
If zero ideas were generated after deduplication, report "No ideas generated by the research swarm." and STOP.
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Step 4: Evaluator -- Assess Each Idea
|
|
133
|
+
|
|
134
|
+
Spawn a single `Product Manager` agent via the Agent tool. Provide it with:
|
|
135
|
+
- All ideas (titles + descriptions)
|
|
136
|
+
- The `PROJECT_CONTEXT`
|
|
137
|
+
- The user's original prompt: `$ARGUMENTS`
|
|
138
|
+
|
|
139
|
+
For EACH idea, the agent must return one of three verdicts, along with an **impact** score (0-10) and an **effort** score (0-10):
|
|
140
|
+
|
|
141
|
+
| Verdict | Action |
|
|
142
|
+
|---------|--------|
|
|
143
|
+
| **evaluated** | Idea is worth pursuing. Include a `skipElaboration` boolean: `true` if the idea is straightforward and needs no further research, `false` if edge cases should be explored. Include a 1-2 sentence value statement. Include `impact` (0-10, how much value it adds) and `effort` (0-10, how much work it requires). |
|
|
144
|
+
| **iced** | Idea might have potential but needs a question answered first. Include the blocking question. Include `impact` and `effort` estimates. |
|
|
145
|
+
| **rejected** | Idea is out of scope, infeasible, or low value. Include a 1-sentence reason. |
|
|
146
|
+
|
|
147
|
+
For each verdict, update the storage:
|
|
148
|
+
|
|
149
|
+
**File mode:** Use the Edit tool on `IDEA_FILE` to update the `> status:` line for the idea, then add the relevant fields. For `evaluated`: change to `> status: evaluated`, add `> impact: N`, `> effort: N`, `> skip_elaboration: true|false`, append `**Value:** <value statement>`. For `iced`: change to `> status: iced`, append `**Blocked by:** <question>`. For `rejected`: change to `> status: rejected`, append `**Rejected reason:** <reason>`.
|
|
150
|
+
|
|
151
|
+
**Monotask mode:**
|
|
152
|
+
- *evaluated:* `monotask card move $BOARD_ID $CARD_ID $COL_EVALUATED --json` + set impact/effort + add value comment
|
|
153
|
+
- *iced:* `monotask card move $BOARD_ID $CARD_ID $COL_ICED --json` + set impact/effort + add blocking question comment
|
|
154
|
+
- *rejected:* `monotask card move $BOARD_ID $CARD_ID $COL_REJECTED --json` + add reason comment
|
|
155
|
+
|
|
156
|
+
If ALL ideas were iced or rejected, output a summary table of verdicts and STOP.
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Step 5: Elaborator -- Add Edge Cases (conditional)
|
|
161
|
+
|
|
162
|
+
Check if ANY evaluated ideas have `skipElaboration: false`.
|
|
163
|
+
|
|
164
|
+
**If ALL evaluated ideas have `skipElaboration: true`:**
|
|
165
|
+
- *File mode:* Change each idea's `> status: evaluated` → `> status: elaborated` in `IDEA_FILE`
|
|
166
|
+
- *Monotask mode:* `monotask card move $BOARD_ID $CARD_ID $COL_ELABORATED --json`
|
|
167
|
+
- Skip spawning the elaborator agent entirely.
|
|
168
|
+
|
|
169
|
+
**Otherwise**, spawn two agents in parallel via the Agent tool:
|
|
170
|
+
|
|
171
|
+
1. A `feature-dev:code-explorer` agent — deep-dives into the existing codebase to trace execution paths, map dependencies, and surface internal constraints relevant to each idea.
|
|
172
|
+
2. A `researcher` agent (with WebSearch capability) — searches the internet for prior art, external edge cases, and potential technical pitfalls.
|
|
173
|
+
|
|
174
|
+
Provide both agents with:
|
|
175
|
+
- All evaluated ideas that have `skipElaboration: false`
|
|
176
|
+
- The `PROJECT_CONTEXT`
|
|
177
|
+
|
|
178
|
+
After both agents complete, merge their findings per idea. For each idea needing elaboration:
|
|
179
|
+
1. Research edge cases, prior art, codebase constraints, and technical pitfalls.
|
|
180
|
+
2. Persist findings:
|
|
181
|
+
- *File mode:* Edit `IDEA_FILE` — append `**Edge cases:** <findings>` and `**Technical notes:** <notes>` under the idea section. If no blocking issues: change `> status: evaluated` → `> status: elaborated`. If blocking issue found: change to `> status: iced` and append `**Blocked by:** <issue>`.
|
|
182
|
+
- *Monotask mode:* `monotask card comment add` for findings. Move to `Elaborated` or `Iced` accordingly.
|
|
183
|
+
|
|
184
|
+
Also mark `skipElaboration: true` ideas as `elaborated`.
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Step 6: Task Decomposer — Break Ideas into Subtasks
|
|
189
|
+
|
|
190
|
+
### Generate the TASKS Array
|
|
191
|
+
|
|
192
|
+
Spawn a single `Software Architect` agent via the Agent tool. Provide it with:
|
|
193
|
+
- All ideas in the `Elaborated` column (titles, descriptions, and all comments)
|
|
194
|
+
- The `PROJECT_CONTEXT`
|
|
195
|
+
- **The Task Grouping Rules and Card Format from `/mastermind:createtask` Step 5** — include them verbatim in the agent prompt so it produces correctly structured tasks
|
|
196
|
+
|
|
197
|
+
The agent MUST produce a `TASKS` array following the `/mastermind:createtask` task card format (Step 5). Each task must comply with all 7 grouping rules. For each elaborated idea, decompose into 2-6 subtasks.
|
|
198
|
+
|
|
199
|
+
**If the architect has doubts** about decomposing an idea (unclear scope, missing info), they should:
|
|
200
|
+
- Add a comment with the question
|
|
201
|
+
- Move the idea to `Iced` instead of `Tasked`
|
|
202
|
+
|
|
203
|
+
Store the result as `TASKS` array.
|
|
204
|
+
|
|
205
|
+
### Persist Task Decomposition
|
|
206
|
+
|
|
207
|
+
**File mode:** Follow `/mastermind:createtask` Steps 6–7 (file mode) to write a new task file. Use:
|
|
208
|
+
- `SOURCE_TAG` = `"mastermind:ideate"`
|
|
209
|
+
- `SOURCE_SUMMARY` = first 100 chars of `$ARGUMENTS`
|
|
210
|
+
|
|
211
|
+
After writing the task file, update `IDEA_FILE`:
|
|
212
|
+
- For each parent idea: change `> status: elaborated` → `> status: tasked`, append `**Subtasks file:** <TASK_FILE> (N tasks created)`
|
|
213
|
+
|
|
214
|
+
**Monotask mode:** Follow `/mastermind:createtask` Steps 6–7 (monotask mode) with:
|
|
215
|
+
- `SOURCE_TAG` = `"mastermind:ideate"`
|
|
216
|
+
- After cards created: `monotask card comment add $BOARD_ID $IDEA_CARD_ID "Subtasks created:\n- <title>..."` and `monotask card move $BOARD_ID $IDEA_CARD_ID $COL_TASKED --json`
|
|
217
|
+
|
|
218
|
+
Then follow `/mastermind:createtask` Step 8 (Final Dependency Review) and report results.
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Step 7: Final Summary
|
|
223
|
+
|
|
224
|
+
Output a summary table:
|
|
225
|
+
|
|
226
|
+
```
|
|
227
|
+
| # | Idea | Category | Status | Subtasks | Total Effort | Agents |
|
|
228
|
+
|---|-----------------------------|--------------------|----- ----|----------|--------------|--------|
|
|
229
|
+
| 1 | <title> | feature | Tasked | 4 | 18/40 | coder, backend-dev, tester |
|
|
230
|
+
| 2 | <title> | technical-baseline | Iced | -- | -- | -- |
|
|
231
|
+
| 3 | <title> | feature | Rejected | -- | -- | -- |
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Then output:
|
|
235
|
+
- Total ideas generated: N
|
|
236
|
+
- Ideas tasked: N (with M total subtasks)
|
|
237
|
+
- Total effort points: X
|
|
238
|
+
- Ideas iced: N
|
|
239
|
+
- Ideas rejected: N
|
|
240
|
+
- *File mode:* Idea file: `<IDEA_FILE>` | Task file: `<TASK_FILE>`
|
|
241
|
+
- *Monotask mode:* Space: `$REPO_NAME` | Idea board: `monomind-idea` | Task board: `monomind-task`
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## Step 8: Offer to Execute Tasks
|
|
246
|
+
|
|
247
|
+
If there are todo tasks:
|
|
248
|
+
|
|
249
|
+
*File mode:*
|
|
250
|
+
```
|
|
251
|
+
Skill("mastermind:do", "--file <TASK_FILE> --mode <parallel|minimal|sequential>")
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
*Monotask mode:*
|
|
255
|
+
```
|
|
256
|
+
Skill("mastermind:do", "--monotask --space $SPACE_ID --board $TASK_BOARD_ID --mode <parallel|minimal|sequential>")
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
To repeat this command on a schedule, wrap it with `/mastermind:repeat` or use `--repeat N` / `--tillend` directly.
|
|
260
|
+
|
|
261
|
+
Invoke `Skill("mastermind:_repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mastermind:improve
|
|
3
|
+
description: "Mastermind — Deeply analyze a component, research improvements online, and create improvement tasks saved to docs/improvements/ (default) or monotask boards (--monotask flag)"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `_repeat.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-arguments check below.
|
|
7
|
+
|
|
8
|
+
If `$ARGUMENTS` is empty, output this and STOP:
|
|
9
|
+
|
|
10
|
+
> **Usage:** `/mastermind:improve <component or concept>`
|
|
11
|
+
>
|
|
12
|
+
> Examples:
|
|
13
|
+
> - `/mastermind:improve the authentication flow`
|
|
14
|
+
> - `/mastermind:improve error handling across the codebase`
|
|
15
|
+
> - `/mastermind:improve CLI startup performance`
|
|
16
|
+
> - `/mastermind:improve the MCP server architecture`
|
|
17
|
+
>
|
|
18
|
+
> By default, analysis is saved to `docs/improvements/YYYY-MM-DD-<slug>.md`. Add `--monotask` to write to a monotask board instead.
|
|
19
|
+
|
|
20
|
+
Do NOT proceed further if no arguments were provided.
|
|
21
|
+
|
|
22
|
+
**Extract `--monotask` flag:** If present, set `USE_MONOTASK=true` and remove from `$ARGUMENTS`. Default: `USE_MONOTASK=false`.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Step 0: Check monotask CLI *(skip unless `--monotask` was passed)*
|
|
27
|
+
|
|
28
|
+
**Only run this step if `USE_MONOTASK=true`.**
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
command -v monotask || (command -v cargo && cargo install monotask)
|
|
32
|
+
```
|
|
33
|
+
If neither exists, tell user to install Rust + monotask and STOP.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Step 1: Gather Project Context
|
|
38
|
+
|
|
39
|
+
Collect ALL of the following in parallel (skip any that error):
|
|
40
|
+
|
|
41
|
+
1. **Repo name**: Run `git remote get-url origin`, extract the last path segment, strip `.git`. Fallback: `basename` of the current working directory. Store as `REPO_NAME`.
|
|
42
|
+
|
|
43
|
+
2. **README**: Read `README.md` (first 200 lines). Skip if missing.
|
|
44
|
+
|
|
45
|
+
3. **Package manifest**: Read whichever exists first: `package.json`, `Cargo.toml`, `pyproject.toml`, `go.mod`. Extract name, description, and keywords/tags.
|
|
46
|
+
|
|
47
|
+
4. **Knowledge graph**: Call `mcp__monomind__monograph_suggest` with the user's prompt (`$ARGUMENTS`). Skip if it errors or returns empty.
|
|
48
|
+
|
|
49
|
+
5. **Memory search**: Call `mcp__monomind__memory_search` with the user's prompt (`$ARGUMENTS`). Use the top 5 results.
|
|
50
|
+
|
|
51
|
+
Bundle all gathered information into a single `PROJECT_CONTEXT` string for downstream agents.
|
|
52
|
+
|
|
53
|
+
**DELEGATION RULE:** Every agent spawned in this command MUST include the `== AGENT DELEGATION CAPABILITY ==` block (from `mastermind/_delegation.md`) in its prompt, immediately before `YOUR GOAL:`. This lets each agent spawn its own sub-agents when needed — delegation is recursive.
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Step 2: Deep Component Analysis
|
|
58
|
+
|
|
59
|
+
This is what differentiates `/mastermind:improve` from `/mastermind:ideate`. Before generating improvement ideas, we must deeply understand the current state of the target component.
|
|
60
|
+
|
|
61
|
+
Spawn 2 agents in parallel via the Agent tool:
|
|
62
|
+
|
|
63
|
+
### Agent 1: `feature-dev:code-explorer`
|
|
64
|
+
|
|
65
|
+
Provide it with `$ARGUMENTS` and `PROJECT_CONTEXT`. It must:
|
|
66
|
+
|
|
67
|
+
1. **Trace the component** — find all files, functions, classes, and modules related to the target. Use `mcp__monomind__monograph_query` for each key term found.
|
|
68
|
+
2. **Map dependencies** — what does the component depend on? What depends on it? Use `mcp__monomind__monograph_shortest_path` for key relationships.
|
|
69
|
+
3. **Identify pain points** — look for:
|
|
70
|
+
- Code smells (large files, deep nesting, god objects, duplicated logic)
|
|
71
|
+
- Missing tests or low coverage areas
|
|
72
|
+
- Performance bottlenecks (synchronous I/O, N+1 patterns, unnecessary allocations)
|
|
73
|
+
- Security gaps (unvalidated inputs, missing auth checks, exposed secrets)
|
|
74
|
+
- API inconsistencies (naming, error shapes, response formats)
|
|
75
|
+
- Outdated patterns (callbacks vs async/await, old library versions)
|
|
76
|
+
- Missing error handling or silent failures
|
|
77
|
+
4. **Measure complexity** — count files, lines, dependencies, and circular references.
|
|
78
|
+
|
|
79
|
+
Return a structured analysis:
|
|
80
|
+
```json
|
|
81
|
+
{
|
|
82
|
+
"component": "name",
|
|
83
|
+
"files": ["list of files touched"],
|
|
84
|
+
"total_lines": N,
|
|
85
|
+
"dependency_count": N,
|
|
86
|
+
"pain_points": [
|
|
87
|
+
{ "type": "code-smell|perf|security|api|testing|pattern", "description": "...", "file": "path", "severity": "critical|high|medium|low" }
|
|
88
|
+
],
|
|
89
|
+
"strengths": ["things that are already well done"],
|
|
90
|
+
"architecture_notes": "how it fits into the larger system"
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Agent 2: `researcher` (with WebSearch)
|
|
95
|
+
|
|
96
|
+
Provide it with `$ARGUMENTS` and `PROJECT_CONTEXT`. It must:
|
|
97
|
+
|
|
98
|
+
1. **Search for best practices** related to the component's domain (e.g., "authentication best practices 2025", "CLI performance optimization techniques").
|
|
99
|
+
2. **Find competitor/prior art** — how do similar tools/libraries solve this?
|
|
100
|
+
3. **Search for common improvements** — what do blog posts, conference talks, and docs recommend?
|
|
101
|
+
4. **Identify emerging patterns** — new libraries, frameworks, or techniques relevant to this area.
|
|
102
|
+
|
|
103
|
+
Return structured research:
|
|
104
|
+
```json
|
|
105
|
+
{
|
|
106
|
+
"best_practices": [
|
|
107
|
+
{ "title": "...", "description": "...", "source": "url or reference" }
|
|
108
|
+
],
|
|
109
|
+
"prior_art": [
|
|
110
|
+
{ "project": "name", "approach": "how they solve it", "takeaway": "what we can learn" }
|
|
111
|
+
],
|
|
112
|
+
"emerging_patterns": [
|
|
113
|
+
{ "pattern": "name", "description": "...", "relevance": "why it matters for us" }
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
After both agents complete, merge their outputs into `COMPONENT_ANALYSIS`.
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Step 3: Setup Storage
|
|
123
|
+
|
|
124
|
+
**File mode (default):**
|
|
125
|
+
```bash
|
|
126
|
+
DATE=$(date +%Y-%m-%d)
|
|
127
|
+
SLUG=$(echo "$ARGUMENTS" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g; s/-\+/-/g; s/^-//; s/-$//' | cut -c1-40)
|
|
128
|
+
IMPROVE_FILE="docs/improvements/${DATE}-${SLUG}.md"
|
|
129
|
+
mkdir -p docs/improvements
|
|
130
|
+
```
|
|
131
|
+
Write the file header using the Write tool:
|
|
132
|
+
```markdown
|
|
133
|
+
---
|
|
134
|
+
source: mastermind:improve
|
|
135
|
+
repo: <REPO_NAME>
|
|
136
|
+
created: <DATE>
|
|
137
|
+
component: <$ARGUMENTS>
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
# Improvements: <$ARGUMENTS>
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
Store `IMPROVE_FILE`.
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
**Monotask mode:**
|
|
148
|
+
- Find or create space `$REPO_NAME` → store `SPACE_ID`
|
|
149
|
+
- Find or create `monomind-improve` board with columns: `Discovered`, `Evaluated`, `Approved`, `Tasked`, `Deferred`, `Rejected` → store `BOARD_ID` and all column IDs
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Step 4: Generate Improvement Ideas
|
|
154
|
+
|
|
155
|
+
Spawn a single `Software Architect` agent via the Agent tool. Provide it with:
|
|
156
|
+
- The user's prompt: `$ARGUMENTS`
|
|
157
|
+
- The full `COMPONENT_ANALYSIS` from Step 2
|
|
158
|
+
- The `PROJECT_CONTEXT` from Step 1
|
|
159
|
+
|
|
160
|
+
The agent must synthesize the code analysis and online research into concrete improvement ideas. For each idea, produce:
|
|
161
|
+
|
|
162
|
+
```json
|
|
163
|
+
{
|
|
164
|
+
"title": "Short, action-oriented title",
|
|
165
|
+
"description": "2-3 sentences: what the improvement is, what problem it solves, and the expected benefit.",
|
|
166
|
+
"category": "performance | security | reliability | maintainability | dx | testing | architecture",
|
|
167
|
+
"evidence": "What from the analysis or research supports this (pain point ref, best practice ref, or prior art ref)",
|
|
168
|
+
"estimated_impact": "Concrete expected outcome (e.g., '50% faster CLI startup', 'eliminate 3 code smells', 'cover 5 untested edge cases')"
|
|
169
|
+
}
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Idea generation rules:**
|
|
173
|
+
- Ideas must be grounded in the analysis — no generic "add more tests" without pointing to specific gaps
|
|
174
|
+
- Each idea must reference either a pain point from the code analysis or a best practice from the research
|
|
175
|
+
- Prefer high-impact, low-effort ideas first
|
|
176
|
+
- Include at least one idea from each applicable category (perf, security, testing, etc.)
|
|
177
|
+
- No duplicates — each idea must address a distinct improvement
|
|
178
|
+
|
|
179
|
+
Persist each improvement:
|
|
180
|
+
|
|
181
|
+
**File mode:** Append to `IMPROVE_FILE` using the improvement section format from `_taskfile.md`:
|
|
182
|
+
```markdown
|
|
183
|
+
### <Improvement Title>
|
|
184
|
+
> status: discovered
|
|
185
|
+
> category: <category>
|
|
186
|
+
|
|
187
|
+
<description>
|
|
188
|
+
|
|
189
|
+
**Evidence:** <evidence>
|
|
190
|
+
**Estimated impact:** <estimated_impact>
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
**Monotask mode:**
|
|
196
|
+
```bash
|
|
197
|
+
monotask card create $BOARD_ID $COL_DISCOVERED "<title>" --json
|
|
198
|
+
monotask card comment add $BOARD_ID $CARD_ID "<description>"
|
|
199
|
+
monotask card comment add $BOARD_ID $CARD_ID "Category: <category>\nEvidence: <evidence>\nExpected impact: <estimated_impact>"
|
|
200
|
+
monotask card label add $BOARD_ID $CARD_ID "monomind-improve"
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
If zero improvements were generated, report "No improvement opportunities found for this component." and STOP.
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## Step 5: Evaluate and Prioritize
|
|
208
|
+
|
|
209
|
+
Spawn a single `Product Manager` agent via the Agent tool. Provide it with:
|
|
210
|
+
- All improvement ideas (titles, descriptions, and all comments)
|
|
211
|
+
- The `COMPONENT_ANALYSIS`
|
|
212
|
+
- The `PROJECT_CONTEXT`
|
|
213
|
+
|
|
214
|
+
For EACH idea, the agent must return one of three verdicts, along with **impact** (0-10) and **effort** (0-10) scores:
|
|
215
|
+
|
|
216
|
+
| Verdict | Criteria |
|
|
217
|
+
|---------|----------|
|
|
218
|
+
| **approved** | High value, feasible, aligns with project direction. Include a `skipElaboration` boolean: `true` if straightforward, `false` if needs deeper investigation. |
|
|
219
|
+
| **deferred** | Good idea but wrong timing, blocked by something, or needs more research. Include the reason. |
|
|
220
|
+
| **rejected** | Low value, too risky, or out of scope. Include a 1-sentence reason. |
|
|
221
|
+
|
|
222
|
+
For each verdict, update storage:
|
|
223
|
+
|
|
224
|
+
**File mode:** Edit `IMPROVE_FILE` — update the `> status:` line and append relevant fields:
|
|
225
|
+
- *approved:* `> status: evaluated`, add `> impact: N`, `> effort: N`, `> skip_elaboration: true|false`, append `**Value:** <value statement>`
|
|
226
|
+
- *deferred:* `> status: deferred`, add impact/effort, append `**Deferred reason:** <reason>`
|
|
227
|
+
- *rejected:* `> status: rejected`, append `**Rejected reason:** <reason>`
|
|
228
|
+
|
|
229
|
+
**Monotask mode:**
|
|
230
|
+
- *approved:* move to Evaluated + set impact/effort + add value comment
|
|
231
|
+
- *deferred:* move to Deferred + set impact/effort + add reason comment
|
|
232
|
+
- *rejected:* move to Rejected + add reason comment
|
|
233
|
+
|
|
234
|
+
If ALL improvements were deferred or rejected, output a summary table and STOP.
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
238
|
+
## Step 6: Elaborate Approved Improvements
|
|
239
|
+
|
|
240
|
+
Check if ANY approved ideas have `skipElaboration: false`.
|
|
241
|
+
|
|
242
|
+
**If ALL approved improvements have `skipElaboration: true`:**
|
|
243
|
+
- *File mode:* Change each improvement's `> status: evaluated` → `> status: approved` in `IMPROVE_FILE`
|
|
244
|
+
- *Monotask mode:* `monotask card move $BOARD_ID $CARD_ID $COL_APPROVED --json`
|
|
245
|
+
- Skip spawning agents.
|
|
246
|
+
|
|
247
|
+
**Otherwise**, spawn two agents in parallel via the Agent tool:
|
|
248
|
+
|
|
249
|
+
1. A `feature-dev:code-explorer` agent — traces implementation paths, identifies exactly which files/functions need to change, surfaces hidden constraints and breaking changes.
|
|
250
|
+
2. A `researcher` agent (with WebSearch) — searches for implementation patterns, migration guides, and gotchas specific to each improvement.
|
|
251
|
+
|
|
252
|
+
After both complete, for each improvement needing elaboration:
|
|
253
|
+
1. Persist findings:
|
|
254
|
+
- *File mode:* Edit `IMPROVE_FILE` — append `**Implementation path:** <files>`, `**Risks:** <breaking changes>`, `**Research:** <patterns>` under the improvement section. If no blocking issues: change `> status: evaluated` → `> status: approved`. If blocking issue: change to `> status: deferred`, append `**Deferred reason:** <issue>`.
|
|
255
|
+
- *Monotask mode:* Add three comments for implementation path, risks, research. Move to `Approved` or `Deferred` accordingly.
|
|
256
|
+
|
|
257
|
+
Also mark `skipElaboration: true` improvements as `approved`.
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## Step 7: Task Decomposer — Break Improvements into Subtasks
|
|
262
|
+
|
|
263
|
+
### Generate the TASKS Array
|
|
264
|
+
|
|
265
|
+
Spawn a single `Software Architect` agent via the Agent tool. Provide it with:
|
|
266
|
+
- All ideas in the `Approved` column (titles, descriptions, and all comments including implementation paths and research)
|
|
267
|
+
- The `COMPONENT_ANALYSIS` from Step 2
|
|
268
|
+
- The `PROJECT_CONTEXT`
|
|
269
|
+
- **The Task Grouping Rules and Card Format from `/mastermind:createtask` Step 5** — include them verbatim in the agent prompt so it produces correctly structured tasks
|
|
270
|
+
|
|
271
|
+
The agent MUST produce a `TASKS` array following the `/mastermind:createtask` task card format (Step 5). Each task must comply with all 7 grouping rules. For each approved improvement, decompose into 2-6 subtasks.
|
|
272
|
+
|
|
273
|
+
**If the architect has doubts** about decomposing an improvement (unclear scope, missing info):
|
|
274
|
+
- Add a comment with the question
|
|
275
|
+
- Move the improvement to `Deferred` instead of `Tasked`
|
|
276
|
+
|
|
277
|
+
Store the result as `TASKS` array.
|
|
278
|
+
|
|
279
|
+
### Persist Task Decomposition
|
|
280
|
+
|
|
281
|
+
**File mode:** Follow `/mastermind:createtask` Steps 6–7 (file mode) to write a new task file. Use:
|
|
282
|
+
- `SOURCE_TAG` = `"mastermind:improve"`
|
|
283
|
+
- `SOURCE_SUMMARY` = first 100 chars of `$ARGUMENTS`
|
|
284
|
+
|
|
285
|
+
After writing the task file, update `IMPROVE_FILE`:
|
|
286
|
+
- For each parent improvement: change `> status: approved` → `> status: tasked`, append `**Subtasks file:** <TASK_FILE> (N tasks created)`
|
|
287
|
+
|
|
288
|
+
**Monotask mode:** Follow `/mastermind:createtask` Steps 6–7 (monotask mode) with:
|
|
289
|
+
- `SOURCE_TAG` = `"mastermind:improve"`
|
|
290
|
+
- After cards created: annotate parent card and move it to `Tasked`
|
|
291
|
+
|
|
292
|
+
Then follow `/mastermind:createtask` Step 8 (Final Dependency Review) and report results.
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## Step 8: Final Summary
|
|
297
|
+
|
|
298
|
+
Output a component health report:
|
|
299
|
+
|
|
300
|
+
```
|
|
301
|
+
## Improvement Analysis: <component>
|
|
302
|
+
|
|
303
|
+
### Component Health
|
|
304
|
+
- Files analyzed: N
|
|
305
|
+
- Pain points found: N (X critical, Y high, Z medium)
|
|
306
|
+
- Strengths identified: N
|
|
307
|
+
|
|
308
|
+
### Improvement Pipeline
|
|
309
|
+
| # | Improvement | Category | Status | Impact | Effort | Subtasks |
|
|
310
|
+
|---|-----------------------------|----------------|----------|--------|--------|----------|
|
|
311
|
+
| 1 | <title> | performance | Tasked | 8 | 4 | 3 |
|
|
312
|
+
| 2 | <title> | security | Deferred | 7 | 8 | -- |
|
|
313
|
+
| 3 | <title> | testing | Rejected | -- | -- | -- |
|
|
314
|
+
|
|
315
|
+
### Summary
|
|
316
|
+
- Improvements discovered: N
|
|
317
|
+
- Improvements tasked: N (with M total subtasks)
|
|
318
|
+
- Total effort points: X
|
|
319
|
+
- Improvements deferred: N
|
|
320
|
+
- Improvements rejected: N
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
Output file/board references:
|
|
324
|
+
- *File mode:* Improvement file: `<IMPROVE_FILE>` | Task file: `<TASK_FILE>`
|
|
325
|
+
- *Monotask mode:* Space: `$REPO_NAME` | Improve board: `monomind-improve` | Task board: `monomind-task`
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
## Step 9: Offer to Execute Tasks
|
|
330
|
+
|
|
331
|
+
If there are todo tasks:
|
|
332
|
+
|
|
333
|
+
*File mode:*
|
|
334
|
+
```
|
|
335
|
+
Skill("mastermind:do", "--file <TASK_FILE> --mode <parallel|minimal|sequential>")
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
*Monotask mode:*
|
|
339
|
+
```
|
|
340
|
+
Skill("mastermind:do", "--monotask --space $SPACE_ID --board $TASK_BOARD_ID --mode <parallel|minimal|sequential>")
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
To repeat this command on a schedule, wrap it with `/mastermind:repeat` or use `--repeat N` / `--tillend` directly.
|
|
344
|
+
|
|
345
|
+
Invoke `Skill("mastermind:_repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
|