monomind 2.5.0 → 2.5.2
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/package.json +2 -1
- package/packages/@monomind/cli/.claude/agents/design/design-monodesign.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/_repeat.md +4 -4
- package/packages/@monomind/cli/.claude/commands/mastermind/approvev1.md +4 -4
- package/packages/@monomind/cli/.claude/commands/mastermind/architect.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/autodev.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/brain.md +2 -2
- package/packages/@monomind/cli/.claude/commands/mastermind/build.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/code-review.md +2 -2
- package/packages/@monomind/cli/.claude/commands/mastermind/content.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/createorg.md +4 -4
- package/packages/@monomind/cli/.claude/commands/mastermind/createtask.md +3 -3
- package/packages/@monomind/cli/.claude/commands/mastermind/debug.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/design.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/do.md +2 -2
- package/packages/@monomind/cli/.claude/commands/mastermind/execute.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/finance.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/finish.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/idea.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/ideate.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/improve.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/marketing.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/master.md +54 -54
- package/packages/@monomind/cli/.claude/commands/mastermind/ops.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/orgs.md +2 -2
- package/packages/@monomind/cli/.claude/commands/mastermind/orgstatus.md +2 -2
- package/packages/@monomind/cli/.claude/commands/mastermind/plan.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/receive-review.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/release.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/research.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/review.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/runorg.md +4 -4
- package/packages/@monomind/cli/.claude/commands/mastermind/runorgv1.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/sales.md +6 -6
- package/packages/@monomind/cli/.claude/commands/mastermind/skill-builder.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/stoporg.md +3 -3
- package/packages/@monomind/cli/.claude/commands/mastermind/taskdev.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/tdd.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/techport.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/verify.md +5 -5
- package/packages/@monomind/cli/.claude/commands/mastermind/worktree.md +5 -5
- package/packages/@monomind/cli/.claude/helpers/control-start.cjs +30 -0
- package/packages/@monomind/cli/.claude/helpers/utils/monograph.cjs +44 -12
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/access.md → mastermind-access/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/activity.md → mastermind-activity/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/adapter-manager.md → mastermind-adapter-manager/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/adapters.md → mastermind-adapters/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/agent-detail.md → mastermind-agent-detail/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/agents.md → mastermind-agents/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/approval-detail.md → mastermind-approval-detail/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/approvev1.md → mastermind-approvev1/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/architect.md → mastermind-architect/SKILL.md} +7 -7
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/autodev.md → mastermind-autodev/SKILL.md} +10 -10
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/backup.md → mastermind-backup/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/bootstrap.md → mastermind-bootstrap/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/budgets.md → mastermind-budgets/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/build.md → mastermind-build/SKILL.md} +5 -5
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/companies.md → mastermind-companies/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/content.md → mastermind-content/SKILL.md} +5 -5
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/costs.md → mastermind-costs/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/createorg.md → mastermind-createorg/SKILL.md} +3 -3
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/debug.md → mastermind-debug/SKILL.md} +4 -4
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/_delegation.md → mastermind-delegation/SKILL.md} +1 -1
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/design.md → mastermind-design/SKILL.md} +9 -9
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/diagnose.md → mastermind-diagnose/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/env.md → mastermind-env/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/environments.md → mastermind-environments/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/execute.md → mastermind-execute/SKILL.md} +10 -10
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/export.md → mastermind-export/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/finance.md → mastermind-finance/SKILL.md} +5 -5
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/goal-detail.md → mastermind-goal-detail/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/goals.md → mastermind-goals/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/heartbeatv1.md → mastermind-heartbeatv1/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/idea.md → mastermind-idea/SKILL.md} +7 -7
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/import.md → mastermind-import/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/inbox.md → mastermind-inbox/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/instance.md → mastermind-instance/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/instance-settings.md → mastermind-instance-settings/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/invite-landing.md → mastermind-invite-landing/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/invites.md → mastermind-invites/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/issue-detail.md → mastermind-issue-detail/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/issues.md → mastermind-issues/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/join-queue.md → mastermind-join-queue/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/liveness.md → mastermind-liveness/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/marketing.md → mastermind-marketing/SKILL.md} +8 -8
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/memory.md → mastermind-memory/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/monitor.md → mastermind-monitor/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/my-issues.md → mastermind-my-issues/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/new-agent.md → mastermind-new-agent/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/ops.md → mastermind-ops/SKILL.md} +5 -5
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/org-chart.md → mastermind-org-chart/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/org-settings.md → mastermind-org-settings/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/orgs.md → mastermind-orgs/SKILL.md} +1 -1
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/orgstatus.md → mastermind-orgstatus/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/plan.md → mastermind-plan/SKILL.md} +7 -7
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/plan-to-tasks.md → mastermind-plan-to-tasks/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/plugin-manager.md → mastermind-plugin-manager/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/plugin-settings.md → mastermind-plugin-settings/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/plugins.md → mastermind-plugins/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/profile.md → mastermind-profile/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/project-detail.md → mastermind-project-detail/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/project-workspace.md → mastermind-project-workspace/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/projects.md → mastermind-projects/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/_protocol.md → mastermind-protocol/SKILL.md} +3 -3
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/release.md → mastermind-release/SKILL.md} +5 -5
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/_repeat.md → mastermind-repeat/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/research.md → mastermind-research/SKILL.md} +5 -5
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/review.md → mastermind-review/SKILL.md} +5 -5
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/routine-detail.md → mastermind-routine-detail/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/routines.md → mastermind-routines/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/runorgv1.md → mastermind-runorgv1/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/sales.md → mastermind-sales/SKILL.md} +5 -5
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/search.md → mastermind-search/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/secrets.md → mastermind-secrets/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/skill-builder.md → mastermind-skill-builder/SKILL.md} +16 -14
- package/packages/@monomind/cli/.claude/skills/mastermind-skills/{skills.md → SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/stoporg.md → mastermind-stoporg/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/taskdev.md → mastermind-taskdev/SKILL.md} +6 -6
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills → mastermind-taskdev}/implementer-prompt.md +1 -1
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/tasks.md → mastermind-tasks/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/tdd.md → mastermind-tdd/SKILL.md} +4 -4
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/techport.md → mastermind-techport/SKILL.md} +5 -5
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/threads.md → mastermind-threads/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/tree-control.md → mastermind-tree-control/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/verify.md → mastermind-verify/SKILL.md} +1 -1
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/wiki.md → mastermind-wiki/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/workspace-detail.md → mastermind-workspace-detail/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/{mastermind-skills/workspaces.md → mastermind-workspaces/SKILL.md} +2 -2
- package/packages/@monomind/cli/.claude/skills/monodesign/SKILL.md +114 -190
- package/packages/@monomind/cli/.claude/skills/monodesign/adapt.md +1 -1
- package/packages/@monomind/cli/.claude/skills/monodesign/agents/monodesign-asset-producer.md +4 -4
- package/packages/@monomind/cli/.claude/skills/monodesign/agents/monodesign-manual-edit-applier.md +103 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/audit.md +1 -1
- package/packages/@monomind/cli/.claude/skills/monodesign/craft.md +2 -2
- package/packages/@monomind/cli/.claude/skills/monodesign/critique.md +1 -1
- package/packages/@monomind/cli/.claude/skills/monodesign/init.md +30 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/layout.md +36 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/live.md +19 -44
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/adapt.md +122 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/adapt.native.md +58 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/android.md +40 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/animate.md +39 -11
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/antipatterns-catalog.md +22 -16
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/audit.md +5 -3
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/audit.native.md +139 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/bolder.md +71 -64
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/brand.md +12 -18
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/clarify.md +114 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/codex.md +4 -6
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/colorize.md +108 -5
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/craft.md +70 -143
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/critique.md +635 -68
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/delight.md +1 -1
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/distill.md +1 -1
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/document.md +24 -22
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/extract.md +1 -1
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/hooks.md +22 -29
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/init.md +221 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/interaction-design.md +0 -6
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/ios.md +45 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/layout.md +57 -13
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/live.md +159 -63
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/overdrive.md +1 -1
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/personas.md +1 -1
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/polish.md +16 -8
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/pre-delivery-checklist.md +1 -1
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/product.md +1 -3
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/quieter.md +1 -1
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/shape.md +27 -13
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/teach.md +6 -152
- package/packages/@monomind/cli/.claude/skills/monodesign/reference/typeset.md +180 -3
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/command-metadata.json +94 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/context-signals.mjs +227 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/context.mjs +1062 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/critique-storage.mjs +243 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detect-csp.mjs +199 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detect.mjs +34 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/browser/injected/index.mjs +1938 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/cli/main.mjs +322 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/design-system.mjs +815 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/detect-antipatterns-browser.js +5246 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/detect-antipatterns.mjs +51 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/engines/browser/detect-url.mjs +260 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/engines/browser/drivers.mjs +259 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/engines/regex/detect-text.mjs +574 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/engines/static-html/css-cascade.mjs +1016 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/engines/static-html/detect-html.mjs +235 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/engines/visual/screenshot-contrast.mjs +199 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/findings.mjs +13 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/node/file-system.mjs +199 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/profile/profiler.mjs +167 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/registry/antipatterns.mjs +515 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/rules/checks.mjs +2704 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/shared/color.mjs +125 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/shared/constants.mjs +102 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/shared/fonts.mjs +31 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/shared/inline-ignores.mjs +149 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/detector/shared/page.mjs +8 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/hook-admin.mjs +662 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/hook-before-edit.mjs +517 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/hook-lib.mjs +1777 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/hook.mjs +62 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/lib/design-parser.mjs +843 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/lib/is-generated.mjs +70 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/lib/monodesign-config.mjs +641 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/lib/monodesign-paths.mjs +130 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/lib/provider.mjs +5 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/lib/target-args.mjs +43 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live/browser-script-parts.mjs +51 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live/completion.mjs +20 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live/event-validation.mjs +138 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live/insert-ui.mjs +459 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live/manual-apply.mjs +940 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live/manual-edit-routes.mjs +358 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live/manual-edits-buffer.mjs +153 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live/session-store.mjs +290 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live/svelte-component.mjs +827 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live/sveltekit-adapter.mjs +275 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live/ui-core.mjs +181 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live/vocabulary.mjs +37 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-accept.mjs +813 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-browser-dom.js +147 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-browser-session.js +124 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-browser.js +11241 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-commit-manual-edits.mjs +1242 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-complete.mjs +76 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-copy-edit-agent.mjs +684 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-discard-manual-edits.mjs +52 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-inject.mjs +584 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-insert.mjs +273 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-manual-edit-evidence.mjs +364 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-poll.mjs +385 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-resume.mjs +95 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-server.mjs +1138 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-status.mjs +62 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-target.mjs +31 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live-wrap.mjs +895 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/live.mjs +298 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/modern-screenshot.umd.js +15 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/palette.mjs +634 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/scripts/pin.mjs +222 -0
- package/packages/@monomind/cli/.claude/skills/monodesign/teach.md +7 -58
- package/packages/@monomind/cli/dist/src/commands/design-detect.d.ts +7 -1
- package/packages/@monomind/cli/dist/src/commands/design-detect.js +70 -38
- package/packages/@monomind/cli/dist/src/commands/design-palette.d.ts +1 -1
- package/packages/@monomind/cli/dist/src/commands/design-palette.js +3 -3
- package/packages/@monomind/cli/dist/src/commands/doc.js +72 -15
- package/packages/@monomind/cli/dist/src/commands/doctor-project-checks.d.ts +4 -0
- package/packages/@monomind/cli/dist/src/commands/doctor-project-checks.js +23 -0
- package/packages/@monomind/cli/dist/src/commands/doctor.js +3 -3
- package/packages/@monomind/cli/dist/src/commands/org.js +109 -9
- package/packages/@monomind/cli/dist/src/init/executor.js +14 -3
- package/packages/@monomind/cli/dist/src/knowledge/document-pipeline.d.ts +2 -0
- package/packages/@monomind/cli/dist/src/knowledge/document-pipeline.js +1 -0
- package/packages/@monomind/cli/dist/src/mcp-tools/knowledge-tools.js +38 -7
- package/packages/@monomind/cli/dist/src/mcp-tools/memory-tools.d.ts +8 -3
- package/packages/@monomind/cli/dist/src/mcp-tools/memory-tools.js +193 -31
- package/packages/@monomind/cli/dist/src/memory/memory-bridge.d.ts +33 -0
- package/packages/@monomind/cli/dist/src/memory/memory-bridge.js +169 -18
- package/packages/@monomind/cli/dist/src/memory/memory-kg.d.ts +185 -0
- package/packages/@monomind/cli/dist/src/memory/memory-kg.js +449 -0
- package/packages/@monomind/cli/dist/src/memory/query-router.d.ts +44 -0
- package/packages/@monomind/cli/dist/src/memory/query-router.js +113 -0
- package/packages/@monomind/cli/dist/src/orgrt/daemon.d.ts +18 -0
- package/packages/@monomind/cli/dist/src/orgrt/daemon.js +249 -12
- package/packages/@monomind/cli/dist/src/orgrt/migrate.js +7 -0
- package/packages/@monomind/cli/dist/src/orgrt/policy.js +7 -0
- package/packages/@monomind/cli/dist/src/orgrt/session.d.ts +24 -1
- package/packages/@monomind/cli/dist/src/orgrt/session.js +18 -3
- package/packages/@monomind/cli/dist/src/orgrt/templates.d.ts +1 -0
- package/packages/@monomind/cli/dist/src/orgrt/templates.js +9 -4
- package/packages/@monomind/cli/dist/src/orgrt/types.d.ts +15 -0
- package/packages/@monomind/cli/dist/src/orgrt/types.js +2 -0
- package/packages/@monomind/cli/dist/src/ui/dashboard.html +154 -6
- package/packages/@monomind/cli/dist/src/ui/orgs.html +24 -0
- package/packages/@monomind/cli/dist/src/ui/server.mjs +211 -13
- package/packages/@monomind/cli/package.json +6 -4
- /package/packages/@monomind/cli/.claude/skills/{mastermind-skills/_agent-select.md → mastermind-agent-select/SKILL.md} +0 -0
- /package/packages/@monomind/cli/.claude/skills/{mastermind-skills/finish.md → mastermind-finish/SKILL.md} +0 -0
- /package/packages/@monomind/cli/.claude/skills/{mastermind-skills/_intake.md → mastermind-intake/SKILL.md} +0 -0
- /package/packages/@monomind/cli/.claude/skills/{mastermind-skills → mastermind-marketing}/references/copywriting-frameworks.md +0 -0
- /package/packages/@monomind/cli/.claude/skills/{mastermind-skills → mastermind-marketing}/references/persuasion-psychology.md +0 -0
- /package/packages/@monomind/cli/.claude/skills/{mastermind-skills/monotask.md → mastermind-monotask/SKILL.md} +0 -0
- /package/packages/@monomind/cli/.claude/skills/{mastermind-skills/receive-review.md → mastermind-receive-review/SKILL.md} +0 -0
- /package/packages/@monomind/cli/.claude/skills/{mastermind-skills/runorg.md → mastermind-runorg/SKILL.md} +0 -0
- /package/packages/@monomind/cli/.claude/skills/{mastermind-skills → mastermind-taskdev}/code-quality-reviewer-prompt.md +0 -0
- /package/packages/@monomind/cli/.claude/skills/{mastermind-skills → mastermind-taskdev}/final-reviewer-prompt.md +0 -0
- /package/packages/@monomind/cli/.claude/skills/{mastermind-skills → mastermind-taskdev}/spec-reviewer-prompt.md +0 -0
- /package/packages/@monomind/cli/.claude/skills/{mastermind-skills/worktree.md → mastermind-worktree/SKILL.md} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Mastermind marketing domain — campaigns, copy, SEO, social media. Default mode: confirm. -->
|
|
2
2
|
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `
|
|
3
|
+
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-prompt check and intake below.
|
|
4
4
|
|
|
5
5
|
Parse `$ARGUMENTS` for:
|
|
6
6
|
- `--auto` flag → mode = auto
|
|
@@ -10,14 +10,14 @@ Parse `$ARGUMENTS` for:
|
|
|
10
10
|
|
|
11
11
|
If prompt is empty: ask "What marketing task would you like to tackle?"
|
|
12
12
|
|
|
13
|
-
Load brain context for the `marketing` domain (follow
|
|
13
|
+
Load brain context for the `marketing` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure).
|
|
14
14
|
|
|
15
|
-
Run intake if prompt is vague (follow
|
|
15
|
+
Run intake if prompt is vague (follow mastermind-intake/SKILL.md — stop at Q3, domain is already known as `marketing`).
|
|
16
16
|
|
|
17
17
|
Default mode for this command: **confirm** (unless `--auto` flag present or intake Q4 says auto).
|
|
18
18
|
|
|
19
|
-
Invoke `Skill("mastermind-
|
|
19
|
+
Invoke `Skill("mastermind-marketing")` passing: brain_context, prompt, project_name, board_id (create if needed), mode.
|
|
20
20
|
|
|
21
|
-
After skill returns: follow
|
|
21
|
+
After skill returns: follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `marketing`.
|
|
22
22
|
|
|
23
|
-
Invoke `Skill("mastermind-
|
|
23
|
+
Invoke `Skill("mastermind-repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
|
|
@@ -90,38 +90,38 @@ digraph mastermind_routing {
|
|
|
90
90
|
|
|
91
91
|
| Situation | Skill to invoke |
|
|
92
92
|
|---|---|
|
|
93
|
-
| Debug a bug, test failure, unexpected behavior | `Skill("mastermind-
|
|
94
|
-
| Verify a claim — tests pass, feature works, fix resolved | `Skill("mastermind-
|
|
95
|
-
| Write tests first, enforce Red-Green-Refactor | `Skill("mastermind-
|
|
96
|
-
| Write a structured implementation plan (no placeholders) | `Skill("mastermind-
|
|
97
|
-
| Execute a written plan step-by-step with stop-on-blocker | `Skill("mastermind-
|
|
98
|
-
| Execute a plan via fresh subagents with 2-stage review | `Skill("mastermind-
|
|
99
|
-
| Fix or investigate 2+ independent problems concurrently (different files, subsystems, or bugs) | dispatch parallel subagents in one message — one per independent domain; use `Skill("mastermind-
|
|
100
|
-
| Ingest a prompt/spec/folder and generate agent-optimized tasks | `Skill("mastermind-
|
|
101
|
-
| Execute tasks from a task file or monotask board (parallel/sequential/minimal modes, review cycles, loop) | `Skill("mastermind-
|
|
102
|
-
| Design first — spec, approaches, approval gate before code | `Skill("mastermind-
|
|
103
|
-
| Build a feature, fix a bug, implement anything | `Skill("mastermind-
|
|
104
|
-
| Code review, content critique, strategy audit | `Skill("mastermind-
|
|
105
|
-
| Receive a code review and apply it correctly | `Skill("mastermind-
|
|
106
|
-
| System architecture, DDD, technical design | `Skill("mastermind-
|
|
107
|
-
| Market research, competitive analysis, user insights | `Skill("mastermind-
|
|
108
|
-
| Ideas, feature generation, opportunity framing | `Skill("mastermind-
|
|
109
|
-
| Research ideas, evaluate with PM lens, decompose into subtasks | `Skill("mastermind-
|
|
110
|
-
| Analyze a component, research improvements, generate improvement tasks | `Skill("mastermind-
|
|
111
|
-
| Marketing campaign, copy, SEO | `Skill("mastermind-
|
|
112
|
-
| Sales outreach, proposals, pipeline | `Skill("mastermind-
|
|
113
|
-
| Blog, docs, newsletters, threads | `Skill("mastermind-
|
|
114
|
-
| Versioning, changelogs, deployment | `Skill("mastermind-
|
|
115
|
-
| Finish a branch — tests, options menu, merge/PR/discard | `Skill("mastermind-
|
|
116
|
-
| Workflow, process, reporting | `Skill("mastermind-
|
|
117
|
-
| Invoicing, forecasting, cost | `Skill("mastermind-
|
|
118
|
-
| Inspect or manage brain memory | `Skill("mastermind-
|
|
119
|
-
| Technical portfolio, project state assessment | `Skill("mastermind-
|
|
120
|
-
| Define/run an agent organization | `Skill("mastermind-
|
|
121
|
-
| Review and action pending agent approval requests | `Skill("mastermind-
|
|
122
|
-
| Autonomous build + review until clean | `Skill("mastermind-
|
|
123
|
-
| Isolate work in a git worktree | `Skill("mastermind-
|
|
124
|
-
| Write or improve a mastermind skill | `Skill("mastermind-
|
|
93
|
+
| Debug a bug, test failure, unexpected behavior | `Skill("mastermind-debug")` |
|
|
94
|
+
| Verify a claim — tests pass, feature works, fix resolved | `Skill("mastermind-verify")` |
|
|
95
|
+
| Write tests first, enforce Red-Green-Refactor | `Skill("mastermind-tdd")` |
|
|
96
|
+
| Write a structured implementation plan (no placeholders) | `Skill("mastermind-plan")` |
|
|
97
|
+
| Execute a written plan step-by-step with stop-on-blocker | `Skill("mastermind-execute")` |
|
|
98
|
+
| Execute a plan via fresh subagents with 2-stage review | `Skill("mastermind-taskdev")` |
|
|
99
|
+
| Fix or investigate 2+ independent problems concurrently (different files, subsystems, or bugs) | dispatch parallel subagents in one message — one per independent domain; use `Skill("mastermind-taskdev")` for plan-driven parallel work |
|
|
100
|
+
| Ingest a prompt/spec/folder and generate agent-optimized tasks | `Skill("mastermind-createtask")` |
|
|
101
|
+
| Execute tasks from a task file or monotask board (parallel/sequential/minimal modes, review cycles, loop) | `Skill("mastermind-do")` |
|
|
102
|
+
| Design first — spec, approaches, approval gate before code | `Skill("mastermind-design")` |
|
|
103
|
+
| Build a feature, fix a bug, implement anything | `Skill("mastermind-build")` |
|
|
104
|
+
| Code review, content critique, strategy audit | `Skill("mastermind-review")` |
|
|
105
|
+
| Receive a code review and apply it correctly | `Skill("mastermind-receive-review")` |
|
|
106
|
+
| System architecture, DDD, technical design | `Skill("mastermind-architect")` |
|
|
107
|
+
| Market research, competitive analysis, user insights | `Skill("mastermind-research")` |
|
|
108
|
+
| Ideas, feature generation, opportunity framing | `Skill("mastermind-idea")` |
|
|
109
|
+
| Research ideas, evaluate with PM lens, decompose into subtasks | `Skill("mastermind-ideate")` |
|
|
110
|
+
| Analyze a component, research improvements, generate improvement tasks | `Skill("mastermind-improve")` |
|
|
111
|
+
| Marketing campaign, copy, SEO | `Skill("mastermind-marketing")` |
|
|
112
|
+
| Sales outreach, proposals, pipeline | `Skill("mastermind-sales")` |
|
|
113
|
+
| Blog, docs, newsletters, threads | `Skill("mastermind-content")` |
|
|
114
|
+
| Versioning, changelogs, deployment | `Skill("mastermind-release")` |
|
|
115
|
+
| Finish a branch — tests, options menu, merge/PR/discard | `Skill("mastermind-finish")` |
|
|
116
|
+
| Workflow, process, reporting | `Skill("mastermind-ops")` |
|
|
117
|
+
| Invoicing, forecasting, cost | `Skill("mastermind-finance")` |
|
|
118
|
+
| Inspect or manage brain memory | `Skill("mastermind-brain")` |
|
|
119
|
+
| Technical portfolio, project state assessment | `Skill("mastermind-techport")` |
|
|
120
|
+
| Define/run an agent organization | `Skill("mastermind-createorg")` / `Skill("mastermind-runorg")` |
|
|
121
|
+
| Review and action pending agent approval requests | `Skill("mastermind-approvev1")` (v1 orgs only — v2 approvals arrive in the dashboard Human Input tab) |
|
|
122
|
+
| Autonomous build + review until clean | `Skill("mastermind-autodev")` |
|
|
123
|
+
| Isolate work in a git worktree | `Skill("mastermind-worktree")` |
|
|
124
|
+
| Write or improve a mastermind skill | `Skill("mastermind-skill-builder")` |
|
|
125
125
|
|
|
126
126
|
### Skill Execution Order
|
|
127
127
|
|
|
@@ -290,7 +290,7 @@ project_name="${project_name:-$(basename "$PWD")}"
|
|
|
290
290
|
|
|
291
291
|
### Step 2 — Brain Load
|
|
292
292
|
|
|
293
|
-
Follow the Brain Load Procedure from `
|
|
293
|
+
Follow the Brain Load Procedure from `mastermind-protocol/SKILL.md`:
|
|
294
294
|
|
|
295
295
|
1. Call `mcp__monomind__lancedb_hierarchical-recall` namespace `mastermind:principles` (limit 20)
|
|
296
296
|
2. For each domain that appears relevant to the prompt, call `mcp__monomind__lancedb_context-synthesize` namespace `mastermind:<domain>:weekly`
|
|
@@ -300,7 +300,7 @@ Assemble the BRAIN CONTEXT block from results.
|
|
|
300
300
|
|
|
301
301
|
### Step 3 — Intake
|
|
302
302
|
|
|
303
|
-
Invoke the intake logic from `
|
|
303
|
+
Invoke the intake logic from `mastermind-intake/SKILL.md`:
|
|
304
304
|
|
|
305
305
|
- Check if prompt is rich (≥20 words + domain signals + goal phrase)
|
|
306
306
|
- If vague: ask intake questions one at a time (Q1–Q5, stop when enough context)
|
|
@@ -349,7 +349,7 @@ curl -s -o /dev/null -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-t
|
|
|
349
349
|
<HARD-GATE>
|
|
350
350
|
STOP before Step 4. If `domains_needed` includes `build` (or any code/feature/fix work):
|
|
351
351
|
|
|
352
|
-
1. Invoke `Skill("mastermind-
|
|
352
|
+
1. Invoke `Skill("mastermind-design")` NOW — pass `resolved_prompt` as the task description
|
|
353
353
|
2. Do NOT write any code, do NOT spawn any domain managers, do NOT proceed to Step 4 until the design skill returns with an approved spec
|
|
354
354
|
3. When design returns: save the approved spec as `build_spec` in `current.json`
|
|
355
355
|
4. Only then continue to Step 4
|
|
@@ -364,7 +364,7 @@ Rationale: without a design gate, master spawns agents before the user has confi
|
|
|
364
364
|
<HARD-GATE>
|
|
365
365
|
If the Design Gate ran (build work), do NOT skip planning. After `mastermind:design` returns with an approved spec:
|
|
366
366
|
|
|
367
|
-
1. Invoke `Skill("mastermind-
|
|
367
|
+
1. Invoke `Skill("mastermind-plan")` NOW — pass `build_spec`, the brain context, and mode
|
|
368
368
|
2. The plan skill produces `docs/mastermind/plans/YYYY-MM-DD-<feature>.md` with the complete header (Goal, Architecture, Tech Stack, Global Constraints), right-sized tasks with Interfaces (Consumes/Produces) blocks, bite-sized TDD steps, and no placeholders — then runs its self-review (spec coverage, placeholder scan, type consistency)
|
|
369
369
|
3. The plan skill's Execution Handoff resolves the execution mode. Record it: `build_exec_mode` = `taskdev` (subagent-driven) or `execute` (inline), and save the plan path as `build_plan` in `current.json`
|
|
370
370
|
4. Step 5 MUST NOT re-ask the execution-mode question when this gate already resolved `build_exec_mode`
|
|
@@ -387,7 +387,7 @@ Complexity threshold for manager agent: any of these is true:
|
|
|
387
387
|
- Has external dependencies (APIs, services)
|
|
388
388
|
- Is estimated to take more than one conversation turn
|
|
389
389
|
|
|
390
|
-
**DOMAIN EXCEPTION — `idea`:** The `idea` domain MUST always be handled by the master invoking `Skill("mastermind-
|
|
390
|
+
**DOMAIN EXCEPTION — `idea`:** The `idea` domain MUST always be handled by the master invoking `Skill("mastermind-idea")` directly — NEVER by spawning a Task agent. Spawned agents do not have Skill tool access, so delegating `idea` to a Task agent silently degrades to raw analysis with no pipeline execution. After `mastermind:idea` returns, treat its output as the `idea` domain's unified output schema and proceed to the next domain.
|
|
391
391
|
|
|
392
392
|
**Per-domain goal extraction:** For each activated domain, extract a one-sentence goal from the prompt describing what that domain must accomplish. Then **run the following Bash block**, substituting `<domain_goals_json>` with a JSON object mapping each domain name to its one-sentence goal (use the full `resolved_prompt` as the value for any domain where no specific goal is extractable):
|
|
393
393
|
|
|
@@ -489,7 +489,7 @@ echo "build_exec_mode=$build_exec_mode written to current.json"
|
|
|
489
489
|
|
|
490
490
|
**Skip this step entirely if `use_monotask` is false** (the default). Domain tracking uses session JSON files only — no boards are created. Set `monotask_available: false` in `current.json` so Step 7 runs without board IDs.
|
|
491
491
|
|
|
492
|
-
If `use_monotask` is true: follow the Monotask Space+Board Setup Procedure from `
|
|
492
|
+
If `use_monotask` is true: follow the Monotask Space+Board Setup Procedure from `mastermind-protocol/SKILL.md`. Resolve the space **once**, then create one board per active domain. Use `project_name` as the space name so all boards across repos and domains share the same space.
|
|
493
493
|
|
|
494
494
|
**Board naming convention:** Every board is named `<project_name>-<domain>` (e.g. `factory-idea`, `factory-build`). This canonical name is stable across runs — mastermind finds the existing board instead of creating a new one every time.
|
|
495
495
|
|
|
@@ -596,7 +596,7 @@ echo "Session state saved to current.json"
|
|
|
596
596
|
|
|
597
597
|
### Step 7 — Spawn Domain Managers
|
|
598
598
|
|
|
599
|
-
**BEFORE THIS STEP:** If `idea` is in `domains_needed`, invoke `Skill("mastermind-
|
|
599
|
+
**BEFORE THIS STEP:** If `idea` is in `domains_needed`, invoke `Skill("mastermind-idea")` directly now (master context has Skill tool access). Pass the resolved prompt, project path, and mode. The idea skill's Step 7 writes its output to `$MONO_DIR/sessions/<SESSION_ID>/idea.json` automatically — do not write it again. Mark the `idea` domain as handled. Do NOT include `idea` in the Task spawning below.
|
|
600
600
|
|
|
601
601
|
**IDEA PIPELINE REQUIREMENT:** `mastermind:idea` runs a multi-step pipeline (Steps 3–6 inside idea.md). You MUST follow all of those steps — do NOT shortcut to manually creating cards. The full pipeline is:
|
|
602
602
|
- Step 3: Board setup — find-or-create `<project_name>-idea` board (master's Step 6 already created it with correct columns: New → Evaluated → Elaborated → Tasked → Iced → Rejected). Load column IDs from existing board.
|
|
@@ -753,15 +753,15 @@ done
|
|
|
753
753
|
|
|
754
754
|
Use each `MANAGER` value as `subagent_type`, `BOARD`/`TODO`/`DOING`/`DONE` as board and column IDs. Do NOT use placeholder strings.
|
|
755
755
|
|
|
756
|
-
Each Task call must include a complete briefing following the Monotask Task Briefing Standard from `
|
|
756
|
+
Each Task call must include a complete briefing following the Monotask Task Briefing Standard from `mastermind-protocol/SKILL.md`. Include:
|
|
757
757
|
- The full BRAIN CONTEXT block
|
|
758
758
|
- The board ID (from `current.json` above)
|
|
759
759
|
- The specific goal for this domain
|
|
760
760
|
- The project name and run context
|
|
761
761
|
- Instruction to create monotask cards directly using `monotask card create $BOARD_ID $COL_TODO_ID "<title>" --json` for all sub-tasks
|
|
762
|
-
- Instruction to use `Skill("mastermind-
|
|
762
|
+
- Instruction to use `Skill("mastermind-do")` to execute tasks (Task agents have Skill tool access — do NOT use slash command syntax)
|
|
763
763
|
- Instruction to spawn specialized agents using the domain-appropriate swarm topology
|
|
764
|
-
- **For the `build` domain only:** include `build_exec_mode` (value: `"taskdev"` or `"execute"`) and instruct the manager: "Use `Skill("mastermind-
|
|
764
|
+
- **For the `build` domain only:** include `build_exec_mode` (value: `"taskdev"` or `"execute"`) and instruct the manager: "Use `Skill("mastermind-taskdev")` if build_exec_mode is `taskdev`, or `Skill("mastermind-execute")` if `execute`. This was resolved in the Step 3.6 Plan Gate (or Step 5)." If `build_plan` is set in `current.json`, include the plan path and instruct the manager to execute THAT plan task-by-task rather than re-deriving tasks from the goal.
|
|
765
765
|
- Instruction to return the unified output schema when done
|
|
766
766
|
|
|
767
767
|
Example Task call for Development Manager. Substitute all **pre-known** `<…>` placeholders (project_name, SESSION_ID, board/col IDs, goals, manager name) before calling Task. Placeholders like `<status>`, `<path1>`, `<action1>` are filled at runtime by the spawned agent — do not attempt to substitute them. `subagent_type` is the **string value** of `$domain_manager_build` (e.g. `"Backend Architect"`), not a variable reference.
|
|
@@ -929,7 +929,7 @@ Monotask boards:
|
|
|
929
929
|
|
|
930
930
|
### Step 10 — Brain Write
|
|
931
931
|
|
|
932
|
-
Follow the Brain Write Procedure from `
|
|
932
|
+
Follow the Brain Write Procedure from `mastermind-protocol/SKILL.md` for each domain that ran:
|
|
933
933
|
1. Score all decisions from this run
|
|
934
934
|
2. Append to Tier 1 raw log (LanceDB)
|
|
935
935
|
3. Check and trigger weekly compaction if threshold met
|
|
@@ -1021,7 +1021,7 @@ After Step 11, run N autonomous improvement cycles. Each cycle is a full self-di
|
|
|
1021
1021
|
|
|
1022
1022
|
#### 12a — Assess Current State
|
|
1023
1023
|
|
|
1024
|
-
Load fresh brain context (repeat Brain Load Procedure from `
|
|
1024
|
+
Load fresh brain context (repeat Brain Load Procedure from `mastermind-protocol/SKILL.md`). Load the persisted session state:
|
|
1025
1025
|
|
|
1026
1026
|
```bash
|
|
1027
1027
|
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
|
|
@@ -1083,16 +1083,16 @@ Log this as a decision in the cycle's output schema with `confidence` set accord
|
|
|
1083
1083
|
|
|
1084
1084
|
#### 12c — Execute
|
|
1085
1085
|
|
|
1086
|
-
Execute the chosen activity by invoking the appropriate domain skill via the `Skill` tool (Steps 4–10 of the main flow, condensed). Use `Skill("mastermind
|
|
1086
|
+
Execute the chosen activity by invoking the appropriate domain skill via the `Skill` tool (Steps 4–10 of the main flow, condensed). Use `Skill("mastermind-<domain>")` — do NOT use slash command syntax (`/<name>`), which only works when typed interactively in the Claude Code CLI, not within an executing command or skill:
|
|
1087
1087
|
|
|
1088
|
-
- Test → `Skill("mastermind-
|
|
1089
|
-
- Debug/Fix → `Skill("mastermind-
|
|
1090
|
-
- Review → `Skill("mastermind-
|
|
1091
|
-
- Improve/Refactor → `Skill("mastermind-
|
|
1092
|
-
- Add feature → `Skill("mastermind-
|
|
1093
|
-
- Research → `Skill("mastermind-
|
|
1094
|
-
- Content/Docs → `Skill("mastermind-
|
|
1095
|
-
- Release → `Skill("mastermind-
|
|
1088
|
+
- Test → `Skill("mastermind-tdd")` with the untested artifacts as prompt (enforce Red-Green-Refactor)
|
|
1089
|
+
- Debug/Fix → `Skill("mastermind-debug")` with the failing test or error as prompt (root-cause first, then fix)
|
|
1090
|
+
- Review → `Skill("mastermind-review")` with scope = artifacts from last run
|
|
1091
|
+
- Improve/Refactor → `Skill("mastermind-build")` with refactor prompt
|
|
1092
|
+
- Add feature → `Skill("mastermind-build")` with the next feature from the `next_actions` array printed by the Step 12a output above
|
|
1093
|
+
- Research → `Skill("mastermind-research")` with the open question as prompt
|
|
1094
|
+
- Content/Docs → `Skill("mastermind-content")` with scope = new artifacts
|
|
1095
|
+
- Release → `Skill("mastermind-release")` with project scope
|
|
1096
1096
|
|
|
1097
1097
|
Always pass: the current brain_context, project_name (from the `project_name` field above), the relevant board_id, and mode = auto (iteration cycles never pause for confirmation).
|
|
1098
1098
|
|
|
@@ -1107,7 +1107,7 @@ Always pass: the current brain_context, project_name (from the `project_name` fi
|
|
|
1107
1107
|
|
|
1108
1108
|
#### 12d — Brain Write
|
|
1109
1109
|
|
|
1110
|
-
Follow Brain Write Procedure from `
|
|
1110
|
+
Follow Brain Write Procedure from `mastermind-protocol/SKILL.md` for this cycle's domain. Score and append.
|
|
1111
1111
|
|
|
1112
1112
|
#### 12e — Cycle Summary
|
|
1113
1113
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Mastermind ops domain — workflow automation, reporting, process optimization. Default mode: auto. -->
|
|
2
2
|
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `
|
|
3
|
+
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-prompt check and intake below.
|
|
4
4
|
|
|
5
5
|
Parse `$ARGUMENTS` for:
|
|
6
6
|
- `--auto` flag → mode = auto
|
|
@@ -10,14 +10,14 @@ Parse `$ARGUMENTS` for:
|
|
|
10
10
|
|
|
11
11
|
If prompt is empty: ask "What operations task would you like to automate or optimize?"
|
|
12
12
|
|
|
13
|
-
Load brain context for the `ops` domain (follow
|
|
13
|
+
Load brain context for the `ops` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure).
|
|
14
14
|
|
|
15
|
-
Run intake if prompt is vague (follow
|
|
15
|
+
Run intake if prompt is vague (follow mastermind-intake/SKILL.md — stop at Q3, domain is already known as `ops`).
|
|
16
16
|
|
|
17
17
|
Default mode for this command: **auto** (unless `--confirm` flag present or intake Q4 says confirm).
|
|
18
18
|
|
|
19
|
-
Invoke `Skill("mastermind-
|
|
19
|
+
Invoke `Skill("mastermind-ops")` passing: brain_context, prompt, project_name, board_id (create if needed), mode.
|
|
20
20
|
|
|
21
|
-
After skill returns: follow
|
|
21
|
+
After skill returns: follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `ops`.
|
|
22
22
|
|
|
23
|
-
Invoke `Skill("mastermind-
|
|
23
|
+
Invoke `Skill("mastermind-repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
|
|
@@ -13,6 +13,6 @@ Lists all saved orgs.
|
|
|
13
13
|
Parse `$ARGUMENTS` for:
|
|
14
14
|
- No flags expected — this command takes no arguments.
|
|
15
15
|
|
|
16
|
-
Execute `Skill("mastermind-
|
|
16
|
+
Execute `Skill("mastermind-orgs")` passing: caller: "command".
|
|
17
17
|
|
|
18
|
-
Invoke `Skill("mastermind-
|
|
18
|
+
Invoke `Skill("mastermind-repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
|
|
@@ -51,6 +51,6 @@ session_id="mm-$(date -u +%Y%m%dT%H%M%S)"
|
|
|
51
51
|
CTRL_URL=$(jq -r '.url // "http://localhost:4242"' "$REPO_ROOT/.monomind/control.json" 2>/dev/null || echo "http://localhost:4242")
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
Invoke `Skill("mastermind-
|
|
54
|
+
Invoke `Skill("mastermind-orgstatus")` passing: org_name: `$org_name`, caller: "command".
|
|
55
55
|
|
|
56
|
-
Invoke `Skill("mastermind-
|
|
56
|
+
Invoke `Skill("mastermind-repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Write a comprehensive implementation plan from a spec or requirements. Saves to docs/mastermind/plans/. Default mode: confirm. -->
|
|
2
2
|
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `
|
|
3
|
+
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-prompt check and intake below.
|
|
4
4
|
|
|
5
5
|
Parse `$ARGUMENTS` for:
|
|
6
6
|
- `--auto` flag → mode = auto
|
|
@@ -10,14 +10,14 @@ Parse `$ARGUMENTS` for:
|
|
|
10
10
|
|
|
11
11
|
If spec is empty: ask "What would you like a plan for? (provide a spec, requirements, or feature description)"
|
|
12
12
|
|
|
13
|
-
Load brain context (follow `
|
|
13
|
+
Load brain context (follow `mastermind-protocol/SKILL.md` Brain Load Procedure).
|
|
14
14
|
|
|
15
15
|
Default mode: **confirm** (unless `--auto` flag is present).
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
Invoke `Skill("mastermind-
|
|
19
|
+
Invoke `Skill("mastermind-plan")` passing: brain_context, params, project_name, mode.
|
|
20
20
|
|
|
21
|
-
After skill returns: follow `
|
|
21
|
+
After skill returns: follow `mastermind-protocol/SKILL.md` Brain Write Procedure.
|
|
22
22
|
|
|
23
|
-
**MANDATORY — invoke `Skill("mastermind-
|
|
23
|
+
**MANDATORY — invoke `Skill("mastermind-repeat")` now.** This is required regardless of how the skill above completed, regardless of whether you think the work is done, regardless of whether you plan to end your response. For `--repeat N`: the count is non-negotiable — all N runs must happen. For `--tillend`: only a verified empty round (confirmed by git diff) stops the loop. Do not end your response without invoking this skill.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<!-- Use when receiving code review feedback to evaluate and implement it with technical rigor — verifies before implementing, clarifies unclear items first, applies reasoned pushback when warranted -->
|
|
2
2
|
|
|
3
|
-
**First — extract repeat flags:** Follow REPEAT PREAMBLE from `
|
|
3
|
+
**First — extract repeat flags:** Follow REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`.
|
|
4
4
|
|
|
5
5
|
Parse `$ARGUMENTS` for `--auto`, `--confirm`, `--project <name>`, and remaining text.
|
|
6
6
|
|
|
7
|
-
Load brain context (follow `
|
|
7
|
+
Load brain context (follow `mastermind-protocol/SKILL.md` Brain Load Procedure).
|
|
8
8
|
|
|
9
9
|
Default mode: **confirm**.
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
Invoke `Skill("mastermind-
|
|
13
|
+
Invoke `Skill("mastermind-receive-review")` passing: brain_context, params, mode.
|
|
14
14
|
|
|
15
|
-
After skill returns: follow `
|
|
15
|
+
After skill returns: follow `mastermind-protocol/SKILL.md` Brain Write Procedure.
|
|
16
16
|
|
|
17
|
-
Invoke `Skill("mastermind-
|
|
17
|
+
Invoke `Skill("mastermind-repeat")` now. Required — do not skip.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Mastermind release domain — versioning, changelog, deployment. Default mode: auto. -->
|
|
2
2
|
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `
|
|
3
|
+
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-prompt check and intake below.
|
|
4
4
|
|
|
5
5
|
Parse `$ARGUMENTS` for:
|
|
6
6
|
- `--auto` flag → mode = auto
|
|
@@ -10,14 +10,14 @@ Parse `$ARGUMENTS` for:
|
|
|
10
10
|
|
|
11
11
|
If prompt is empty: ask "What would you like to release or deploy?"
|
|
12
12
|
|
|
13
|
-
Load brain context for the `release` domain (follow
|
|
13
|
+
Load brain context for the `release` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure).
|
|
14
14
|
|
|
15
|
-
Run intake if prompt is vague (follow
|
|
15
|
+
Run intake if prompt is vague (follow mastermind-intake/SKILL.md — stop at Q3, domain is already known as `release`).
|
|
16
16
|
|
|
17
17
|
Default mode for this command: **auto** (unless `--confirm` flag present or intake Q4 says confirm).
|
|
18
18
|
|
|
19
|
-
Invoke `Skill("mastermind-
|
|
19
|
+
Invoke `Skill("mastermind-release")` passing: brain_context, prompt, project_name, board_id (create if needed), mode.
|
|
20
20
|
|
|
21
|
-
After skill returns: follow
|
|
21
|
+
After skill returns: follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `release`.
|
|
22
22
|
|
|
23
|
-
Invoke `Skill("mastermind-
|
|
23
|
+
Invoke `Skill("mastermind-repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Mastermind research domain — market research, competitor analysis, user research, trend scanning. Default mode: auto. -->
|
|
2
2
|
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `
|
|
3
|
+
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-prompt check and intake below.
|
|
4
4
|
|
|
5
5
|
Parse `$ARGUMENTS` for:
|
|
6
6
|
- `--auto` flag → mode = auto
|
|
@@ -10,14 +10,14 @@ Parse `$ARGUMENTS` for:
|
|
|
10
10
|
|
|
11
11
|
If prompt is empty: ask "What would you like researched?"
|
|
12
12
|
|
|
13
|
-
Load brain context for the `research` domain (follow
|
|
13
|
+
Load brain context for the `research` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure).
|
|
14
14
|
|
|
15
|
-
Run intake if prompt is vague (follow
|
|
15
|
+
Run intake if prompt is vague (follow mastermind-intake/SKILL.md — stop at Q3, domain is already known as `research`).
|
|
16
16
|
|
|
17
17
|
Default mode for this command: **auto** (unless `--confirm` flag present or intake Q4 says confirm).
|
|
18
18
|
|
|
19
|
-
Invoke `Skill("mastermind-
|
|
19
|
+
Invoke `Skill("mastermind-research")` passing: brain_context, prompt, project_name, board_id (create if needed), mode.
|
|
20
20
|
|
|
21
|
-
After skill returns: follow
|
|
21
|
+
After skill returns: follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `research`.
|
|
22
22
|
|
|
23
|
-
**MANDATORY — invoke `Skill("mastermind-
|
|
23
|
+
**MANDATORY — invoke `Skill("mastermind-repeat")` now.** This is required regardless of how the skill above completed, regardless of whether you think the work is done, regardless of whether you plan to end your response. For `--repeat N`: the count is non-negotiable — all N runs must happen. For `--tillend`: only a verified empty round (confirmed by git diff) stops the loop. Do not end your response without invoking this skill.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Mastermind review domain — code review, security audit, content and strategy review. Default mode: auto. -->
|
|
2
2
|
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `
|
|
3
|
+
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-prompt check and intake below.
|
|
4
4
|
|
|
5
5
|
Parse `$ARGUMENTS` for:
|
|
6
6
|
- `--auto` flag → mode = auto
|
|
@@ -10,13 +10,13 @@ Parse `$ARGUMENTS` for:
|
|
|
10
10
|
|
|
11
11
|
If prompt is empty: ask "What would you like reviewed?"
|
|
12
12
|
|
|
13
|
-
Load brain context for the `review` domain (follow
|
|
13
|
+
Load brain context for the `review` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure).
|
|
14
14
|
|
|
15
|
-
Run intake if prompt is vague (follow
|
|
15
|
+
Run intake if prompt is vague (follow mastermind-intake/SKILL.md — stop at Q3, domain is already known as `review`).
|
|
16
16
|
|
|
17
17
|
Default mode for this command: **auto** (unless `--confirm` flag present or intake Q4 says confirm).
|
|
18
18
|
|
|
19
|
-
Invoke `Skill("mastermind-
|
|
19
|
+
Invoke `Skill("mastermind-review")` passing: brain_context, prompt, project_name, board_id (create if needed), mode.
|
|
20
20
|
|
|
21
21
|
**After review findings are collected — AUTO-FIX STEP (mode = auto only):**
|
|
22
22
|
|
|
@@ -29,6 +29,6 @@ When `mode = confirm`: present findings and ask the user which to fix. This is t
|
|
|
29
29
|
|
|
30
30
|
**When `--tillend` is active:** auto-fix is especially critical. Without it, the loop finds the same unfixed issues every round and either loops forever or the AI falsely declares an empty round. The tillend contract is: find → fix → verify (next round) → stop when clean.
|
|
31
31
|
|
|
32
|
-
After skill returns: follow
|
|
32
|
+
After skill returns: follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `review`.
|
|
33
33
|
|
|
34
|
-
**MANDATORY — invoke `Skill("mastermind-
|
|
34
|
+
**MANDATORY — invoke `Skill("mastermind-repeat")` now.** This is required regardless of how the skill above completed, regardless of whether you think the work is done, regardless of whether you plan to end your response. For `--repeat N`: the count is non-negotiable — all N runs must happen. For `--tillend`: only a verified empty round (confirmed by git diff) stops the loop. Do not end your response without invoking this skill.
|
|
@@ -45,7 +45,7 @@ If `--org` is not provided, list saved orgs and ask which to run:
|
|
|
45
45
|
npx -y monomind@latest org list 2>/dev/null || echo "(none — run /mastermind:createorg to define one)"
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
Load brain context for the `ops` domain (follow
|
|
48
|
+
Load brain context for the `ops` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure, namespace: `ops`).
|
|
49
49
|
|
|
50
50
|
Generate a session ID:
|
|
51
51
|
```bash
|
|
@@ -54,7 +54,7 @@ session_id="mm-$(date -u +%Y%m%dT%H%M%S)"
|
|
|
54
54
|
CTRL_URL=$(jq -r '.url // "http://localhost:4242"' "$REPO_ROOT/.monomind/control.json" 2>/dev/null || echo "http://localhost:4242")
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
Invoke `Skill("mastermind-
|
|
57
|
+
Invoke `Skill("mastermind-runorg")` passing: org_name: `$org_name`, task: task_override, session_id: `$session_id`, caller: "command".
|
|
58
58
|
|
|
59
59
|
After skill returns: emit `session:complete`:
|
|
60
60
|
```bash
|
|
@@ -66,6 +66,6 @@ curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "
|
|
|
66
66
|
'{type:"session:complete",session:$session,domain:"ops",status:$status,domains:["ops"],ts:(now*1000|floor)}')" || true
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
Follow
|
|
69
|
+
Follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `ops`.
|
|
70
70
|
|
|
71
|
-
Invoke `Skill("mastermind-
|
|
71
|
+
Invoke `Skill("mastermind-repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
|
|
@@ -60,7 +60,7 @@ Scan `$ARGUMENTS` for these flags and store their values. Remove them from the a
|
|
|
60
60
|
| `--wait <N>` | `wait_seconds = N` | 60 |
|
|
61
61
|
| `--repeat <N>` | `repeat_count = N` | 0 |
|
|
62
62
|
|
|
63
|
-
⚠️ **CRITICAL — CONTINUATION RUNS DO NOT SKIP WORK.** When `--rep N` is present, this is a scheduled continuation triggered by ScheduleWakeup. The org's FULL work cycle MUST still execute every time: session variables → session:start event → Skill("mastermind-
|
|
63
|
+
⚠️ **CRITICAL — CONTINUATION RUNS DO NOT SKIP WORK.** When `--rep N` is present, this is a scheduled continuation triggered by ScheduleWakeup. The org's FULL work cycle MUST still execute every time: session variables → session:start event → Skill("mastermind-runorgv1") → session:complete event. NEVER short-circuit or skip the org work because `--rep` is present. The `--rep` / `--loop` flags are only consumed by `Skill("mastermind-repeat")` at the end.
|
|
64
64
|
|
|
65
65
|
---
|
|
66
66
|
|
|
@@ -88,7 +88,7 @@ Verify the org file exists before proceeding:
|
|
|
88
88
|
```
|
|
89
89
|
If the file does not exist, stop and suggest running `/mastermind:createorg --name ${org_name}`.
|
|
90
90
|
|
|
91
|
-
Load brain context for the `ops` domain (follow
|
|
91
|
+
Load brain context for the `ops` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure, namespace: `ops`).
|
|
92
92
|
|
|
93
93
|
Resolve session ID and project root:
|
|
94
94
|
```bash
|
|
@@ -123,7 +123,7 @@ curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "
|
|
|
123
123
|
'{type:"domain:dispatch",session:$session,domain:"ops",cmd:("Starting org "+$org+" as persistent daemon"),project:$proj,ts:(now*1000|floor)}')" || true
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
Invoke `Skill("mastermind-
|
|
126
|
+
Invoke `Skill("mastermind-runorgv1")` passing: brain_context, org_name: `$org_name`, session_id: `$session_id`, task: task_override, caller: "command".
|
|
127
127
|
|
|
128
128
|
After the skill spawns the boss agent and returns: note the status. Emit `session:complete`:
|
|
129
129
|
```bash
|
|
@@ -136,10 +136,10 @@ curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "
|
|
|
136
136
|
'{type:"session:complete",session:$session,domain:"ops",status:$status,domains:["ops"],project:$proj,ts:(now*1000|floor)}')" || true
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
Follow
|
|
139
|
+
Follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `ops`.
|
|
140
140
|
|
|
141
141
|
|
|
142
|
-
**MANDATORY — invoke `Skill("mastermind-
|
|
142
|
+
**MANDATORY — invoke `Skill("mastermind-repeat")` now.** This is required regardless of how the skill above completed, regardless of whether you think the work is done, regardless of whether you plan to end your response. For `--repeat N`: the count is non-negotiable — all N runs must happen. For `--tillend`: only a verified empty round (confirmed by git diff) stops the loop. Do not end your response without invoking this skill.
|
|
143
143
|
|
|
144
144
|
After the REPEAT POSTAMBLE completes, if a loop was started or continued (LOOP_ID is set), write the org name into the loop state file so the dashboard can detect running status:
|
|
145
145
|
```bash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Mastermind sales domain — outreach sequences, proposals, pipeline management. Default mode: confirm. -->
|
|
2
2
|
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `
|
|
3
|
+
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-prompt check and intake below.
|
|
4
4
|
|
|
5
5
|
Parse `$ARGUMENTS` for:
|
|
6
6
|
- `--auto` flag → mode = auto
|
|
@@ -10,14 +10,14 @@ Parse `$ARGUMENTS` for:
|
|
|
10
10
|
|
|
11
11
|
If prompt is empty: ask "What sales task would you like to tackle?"
|
|
12
12
|
|
|
13
|
-
Load brain context for the `sales` domain (follow
|
|
13
|
+
Load brain context for the `sales` domain (follow mastermind-protocol/SKILL.md Brain Load Procedure).
|
|
14
14
|
|
|
15
|
-
Run intake if prompt is vague (follow
|
|
15
|
+
Run intake if prompt is vague (follow mastermind-intake/SKILL.md — stop at Q3, domain is already known as `sales`).
|
|
16
16
|
|
|
17
17
|
Default mode for this command: **confirm** (unless `--auto` flag present or intake Q4 says auto).
|
|
18
18
|
|
|
19
|
-
Invoke `Skill("mastermind-
|
|
19
|
+
Invoke `Skill("mastermind-sales")` passing: brain_context, prompt, project_name, board_id (create if needed), mode.
|
|
20
20
|
|
|
21
|
-
After skill returns: follow
|
|
21
|
+
After skill returns: follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `sales`.
|
|
22
22
|
|
|
23
|
-
Invoke `Skill("mastermind-
|
|
23
|
+
Invoke `Skill("mastermind-repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<!-- Use when creating, editing, or verifying mastermind skills — guides the full TDD-for-docs cycle from baseline test through deployment -->
|
|
2
2
|
|
|
3
|
-
**First — extract repeat flags:** Follow REPEAT PREAMBLE from `
|
|
3
|
+
**First — extract repeat flags:** Follow REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`.
|
|
4
4
|
|
|
5
5
|
Parse `$ARGUMENTS` for `--auto`, `--confirm`, `--project <name>`, and remaining text.
|
|
6
6
|
|
|
7
|
-
Load brain context (follow `
|
|
7
|
+
Load brain context (follow `mastermind-protocol/SKILL.md` Brain Load Procedure).
|
|
8
8
|
|
|
9
9
|
Default mode: **auto**.
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
Invoke `Skill("mastermind-
|
|
13
|
+
Invoke `Skill("mastermind-skill-builder")` passing: brain_context, params, mode.
|
|
14
14
|
|
|
15
|
-
After skill returns: follow `
|
|
15
|
+
After skill returns: follow `mastermind-protocol/SKILL.md` Brain Write Procedure.
|
|
16
16
|
|
|
17
|
-
Invoke `Skill("mastermind-
|
|
17
|
+
Invoke `Skill("mastermind-repeat")` now. Required — do not skip.
|
|
@@ -62,7 +62,7 @@ session_id="mm-$(date -u +%Y%m%dT%H%M%S)"
|
|
|
62
62
|
CTRL_URL=$(jq -r '.url // "http://localhost:4242"' "$REPO_ROOT/.monomind/control.json" 2>/dev/null || echo "http://localhost:4242")
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
Invoke `Skill("mastermind-
|
|
65
|
+
Invoke `Skill("mastermind-stoporg")` passing: org_name: `$org_name`, session_id: `$session_id`, caller: "command".
|
|
66
66
|
|
|
67
67
|
After skill returns: emit `session:complete`:
|
|
68
68
|
```bash
|
|
@@ -73,6 +73,6 @@ curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "
|
|
|
73
73
|
'{type:"session:complete",session:$session,domain:"ops",status:"complete",domains:["ops"],ts:(now*1000|floor)}')" || true
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
Follow
|
|
76
|
+
Follow mastermind-protocol/SKILL.md Brain Write Procedure for domain `ops`.
|
|
77
77
|
|
|
78
|
-
Invoke `Skill("mastermind-
|
|
78
|
+
Invoke `Skill("mastermind-repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Execute an implementation plan task-by-task using fresh subagents with two-stage review per task. Default mode: auto. -->
|
|
2
2
|
|
|
3
|
-
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `
|
|
3
|
+
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `mastermind-repeat/SKILL.md`. Extracts `--repeat`, `--tillend`, `--maxruns`, `--wait`, `--rep`, `--loop` from `$ARGUMENTS` before all other parsing. If `is_continuation = true`, skip the empty-prompt check and intake below.
|
|
4
4
|
|
|
5
5
|
Parse `$ARGUMENTS` for:
|
|
6
6
|
- `--auto` flag → mode = auto
|
|
@@ -10,14 +10,14 @@ Parse `$ARGUMENTS` for:
|
|
|
10
10
|
|
|
11
11
|
If plan_file is empty: ask "Which plan file should I execute? (provide an absolute path)"
|
|
12
12
|
|
|
13
|
-
Load brain context (follow `
|
|
13
|
+
Load brain context (follow `mastermind-protocol/SKILL.md` Brain Load Procedure).
|
|
14
14
|
|
|
15
15
|
Default mode: **auto** (unless `--confirm` flag is present).
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
Invoke `Skill("mastermind-
|
|
19
|
+
Invoke `Skill("mastermind-taskdev")` passing: brain_context, plan_file, project_name, mode.
|
|
20
20
|
|
|
21
|
-
After skill returns: follow `
|
|
21
|
+
After skill returns: follow `mastermind-protocol/SKILL.md` Brain Write Procedure.
|
|
22
22
|
|
|
23
|
-
**MANDATORY — invoke `Skill("mastermind-
|
|
23
|
+
**MANDATORY — invoke `Skill("mastermind-repeat")` now.** This is required regardless of how the skill above completed, regardless of whether you think the work is done, regardless of whether you plan to end your response. For `--repeat N`: the count is non-negotiable — all N runs must happen. For `--tillend`: only a verified empty round (confirmed by git diff) stops the loop. Do not end your response without invoking this skill.
|