@monoes/monomindcli 2.16.3 → 2.16.5
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/github/repo-architect.md +1 -1
- package/.claude/agents/specialists/integration-architect.md +9 -13
- package/.claude/commands/agents/agent-capabilities.md +1 -0
- package/.claude/commands/agents/agent-coordination.md +1 -0
- package/.claude/commands/agents/agent-spawning.md +1 -0
- package/.claude/commands/agents/agent-types.md +1 -0
- package/.claude/commands/analysis/bottleneck-detect.md +1 -0
- package/.claude/commands/analysis/performance-bottlenecks.md +1 -0
- package/.claude/commands/analysis/performance-report.md +1 -0
- package/.claude/commands/analysis/token-usage.md +1 -0
- package/.claude/commands/automation/README.md +1 -1
- package/.claude/commands/automation/auto-agent.md +1 -0
- package/.claude/commands/automation/self-healing.md +1 -0
- package/.claude/commands/automation/session-memory.md +1 -0
- package/.claude/commands/automation/smart-agents.md +1 -0
- package/.claude/commands/automation/smart-spawn.md +1 -0
- package/.claude/commands/automation/workflow-select.md +22 -27
- package/.claude/commands/coordination/README.md +2 -2
- package/.claude/commands/coordination/agent-spawn.md +1 -0
- package/.claude/commands/coordination/monoswarm-init.md +9 -8
- package/.claude/commands/coordination/task-orchestrate.md +6 -5
- package/.claude/commands/github/README.md +1 -1
- package/.claude/commands/github/github-modes.md +1 -0
- package/.claude/commands/github/issue-tracker.md +1 -0
- package/.claude/commands/github/pr-manager.md +1 -0
- package/.claude/commands/github/release-manager.md +1 -2
- package/.claude/commands/github/repo-architect.md +1 -0
- package/.claude/commands/github/sync-coordinator.md +1 -0
- package/.claude/commands/hooks/overview.md +1 -0
- package/.claude/commands/hooks/post-edit.md +1 -0
- package/.claude/commands/hooks/post-task.md +1 -0
- package/.claude/commands/hooks/pre-edit.md +1 -0
- package/.claude/commands/hooks/pre-task.md +1 -0
- package/.claude/commands/hooks/session-end.md +1 -0
- package/.claude/commands/hooks/setup.md +1 -0
- package/.claude/commands/mastermind/adr.md +3 -1
- package/.claude/commands/mastermind/brain.md +3 -1
- package/.claude/commands/mastermind/budget.md +3 -1
- package/.claude/commands/mastermind/code-review.md +3 -1
- package/.claude/commands/mastermind/content.md +3 -1
- package/.claude/commands/mastermind/createorg.md +4 -2
- package/.claude/commands/mastermind/createtask.md +6 -4
- package/.claude/commands/mastermind/debug.md +3 -1
- package/.claude/commands/mastermind/design.md +3 -1
- package/.claude/commands/mastermind/do.md +5 -3
- package/.claude/commands/mastermind/execute.md +3 -1
- package/.claude/commands/mastermind/finance.md +3 -1
- package/.claude/commands/mastermind/graph-status.md +3 -1
- package/.claude/commands/mastermind/help.md +17 -20
- package/.claude/commands/mastermind/idea.md +3 -1
- package/.claude/commands/mastermind/ideate.md +4 -2
- package/.claude/commands/mastermind/improve.md +4 -2
- package/.claude/commands/mastermind/loops.md +3 -1
- package/.claude/commands/mastermind/marketing.md +3 -1
- package/.claude/commands/mastermind/master.md +4 -3
- package/.claude/commands/mastermind/memory.md +8 -36
- package/.claude/commands/mastermind/monoswarm.md +3 -2
- package/.claude/commands/mastermind/okf-export.md +3 -1
- package/.claude/commands/mastermind/okf-import.md +3 -1
- package/.claude/commands/mastermind/ops.md +3 -1
- package/.claude/commands/mastermind/orgs.md +3 -1
- package/.claude/commands/mastermind/orgstatus.md +3 -1
- package/.claude/commands/mastermind/plan.md +3 -1
- package/.claude/commands/mastermind/receive-review.md +3 -1
- package/.claude/commands/mastermind/release.md +3 -1
- package/.claude/commands/mastermind/repeat.md +3 -1
- package/.claude/commands/mastermind/research.md +3 -1
- package/.claude/commands/mastermind/review.md +3 -1
- package/.claude/commands/mastermind/runorg.md +4 -2
- package/.claude/commands/mastermind/sales.md +3 -1
- package/.claude/commands/mastermind/skill-builder.md +3 -1
- package/.claude/commands/mastermind/specialagents.md +3 -1
- package/.claude/commands/mastermind/stoporg.md +9 -11
- package/.claude/commands/mastermind/techport.md +3 -1
- package/.claude/commands/mastermind/topology.md +4 -3
- package/.claude/commands/mastermind/understand.md +3 -1
- package/.claude/commands/mastermind/worktree.md +3 -1
- package/.claude/commands/memory/memory-search.md +1 -0
- package/.claude/commands/monitoring/README.md +1 -1
- package/.claude/commands/monitoring/agent-metrics.md +1 -0
- package/.claude/commands/monitoring/agents.md +1 -0
- package/.claude/commands/monitoring/status.md +1 -0
- package/.claude/commands/monoswarm/README.md +3 -3
- package/.claude/commands/monoswarm/analysis.md +2 -2
- package/.claude/commands/monoswarm/consensus.md +1 -0
- package/.claude/commands/monoswarm/development.md +3 -3
- package/.claude/commands/monoswarm/examples.md +4 -4
- package/.claude/commands/monoswarm/init.md +2 -1
- package/.claude/commands/monoswarm/maintenance.md +2 -2
- package/.claude/commands/monoswarm/memory.md +1 -0
- package/.claude/commands/monoswarm/monoswarm.md +5 -5
- package/.claude/commands/monoswarm/optimization.md +2 -2
- package/.claude/commands/monoswarm/research.md +2 -2
- package/.claude/commands/monoswarm/spawn.md +1 -0
- package/.claude/commands/monoswarm/status.md +2 -1
- package/.claude/commands/monoswarm/stop.md +2 -1
- package/.claude/commands/monoswarm/testing.md +2 -2
- package/.claude/commands/pair/README.md +8 -9
- package/.claude/commands/pair/examples.md +3 -4
- package/.claude/commands/pair/session.md +1 -1
- package/.claude/commands/workflows/README.md +45 -40
- package/.claude/commands/workflows/development.md +42 -55
- package/.claude/commands/workflows/research.md +41 -57
- package/.claude/commands/workflows/workflow-create.md +43 -45
- package/.claude/commands/workflows/workflow-execute.md +58 -68
- package/.claude/commands/workflows/workflow-export.md +37 -63
- package/.claude/helpers/agent-registry.cjs +434 -0
- package/.claude/helpers/build-skill-registry.cjs +10 -6
- package/.claude/helpers/handlers/pick-core.cjs +55 -26
- package/.claude/helpers/handlers/route-handler.cjs +11 -3
- package/.claude/helpers/handlers/session-restore-handler.cjs +4 -1
- package/.claude/helpers/hook-handler.cjs +4 -2
- package/.claude/helpers/jev-catalog.cjs +14 -6
- package/.claude/helpers/jev-picker.cjs +52 -8
- package/.claude/helpers/pick-rank.cjs +184 -6
- package/.claude/helpers/pick-stats.cjs +86 -2
- package/.claude/skills/agentic-jujutsu/SKILL.md +2 -3
- package/.claude/skills/github-toolkit/SKILL.md +1 -1
- package/.claude/skills/hooks-automation/SKILL.md +243 -938
- package/.claude/skills/mastermind-agent-detail/SKILL.md +1 -1
- package/.claude/skills/mastermind-agent-select/SKILL.md +16 -1
- package/.claude/skills/mastermind-agents/SKILL.md +31 -38
- package/.claude/skills/mastermind-createorg/SKILL.md +3 -3
- package/.claude/skills/mastermind-env/SKILL.md +4 -18
- package/.claude/skills/mastermind-inbox/SKILL.md +31 -52
- package/.claude/skills/mastermind-instance/SKILL.md +7 -5
- package/.claude/skills/mastermind-new-agent/SKILL.md +3 -3
- package/.claude/skills/mastermind-org-settings/SKILL.md +3 -4
- package/.claude/skills/mastermind-orgs/SKILL.md +26 -32
- package/.claude/skills/mastermind-orgstatus/SKILL.md +49 -140
- package/.claude/skills/mastermind-plugins/SKILL.md +1 -1
- package/.claude/skills/mastermind-release/SKILL.md +9 -1
- package/.claude/skills/mastermind-research/SKILL.md +9 -1
- package/.claude/skills/mastermind-review/SKILL.md +9 -1
- package/.claude/skills/mastermind-routine-detail/SKILL.md +1 -1
- package/.claude/skills/mastermind-runorg/SKILL.md +13 -13
- package/.claude/skills/mastermind-stoporg/SKILL.md +7 -62
- package/.claude/skills/mastermind-tasks/SKILL.md +6 -8
- package/.claude/skills/monodesign/SKILL.md +257 -0
- package/.claude/skills/monodesign/adapt.md +53 -0
- package/.claude/skills/monodesign/agents/monodesign-asset-producer.md +100 -0
- package/.claude/skills/monodesign/agents/monodesign-manual-edit-applier.md +103 -0
- package/.claude/skills/monodesign/animate.md +65 -0
- package/.claude/skills/monodesign/audit.md +89 -0
- package/.claude/skills/monodesign/bolder.md +50 -0
- package/.claude/skills/monodesign/clarify.md +64 -0
- package/.claude/skills/monodesign/colorize.md +68 -0
- package/.claude/skills/monodesign/craft.md +51 -0
- package/.claude/skills/monodesign/critique.md +66 -0
- package/.claude/skills/monodesign/delight.md +47 -0
- package/.claude/skills/monodesign/distill.md +56 -0
- package/.claude/skills/monodesign/document.md +83 -0
- package/.claude/skills/monodesign/extract.md +74 -0
- package/.claude/skills/monodesign/harden.md +65 -0
- package/.claude/skills/monodesign/init.md +30 -0
- package/.claude/skills/monodesign/layout.md +36 -0
- package/.claude/skills/monodesign/live.md +34 -0
- package/.claude/skills/monodesign/onboard.md +50 -0
- package/.claude/skills/monodesign/optimize.md +64 -0
- package/.claude/skills/monodesign/overdrive.md +56 -0
- package/.claude/skills/monodesign/polish.md +68 -0
- package/.claude/skills/monodesign/quieter.md +57 -0
- package/.claude/skills/monodesign/reference/adapt.md +312 -0
- package/.claude/skills/monodesign/reference/adapt.native.md +58 -0
- package/.claude/skills/monodesign/reference/android.md +40 -0
- package/.claude/skills/monodesign/reference/animate.md +203 -0
- package/.claude/skills/monodesign/reference/antipatterns-catalog.md +410 -0
- package/.claude/skills/monodesign/reference/audit.md +135 -0
- package/.claude/skills/monodesign/reference/audit.native.md +139 -0
- package/.claude/skills/monodesign/reference/bolder.md +120 -0
- package/.claude/skills/monodesign/reference/brand-workflow.md +180 -0
- package/.claude/skills/monodesign/reference/brand.md +108 -0
- package/.claude/skills/monodesign/reference/clarify.md +288 -0
- package/.claude/skills/monodesign/reference/codex.md +105 -0
- package/.claude/skills/monodesign/reference/cognitive-load.md +106 -0
- package/.claude/skills/monodesign/reference/color-and-contrast.md +105 -0
- package/.claude/skills/monodesign/reference/colorize.md +257 -0
- package/.claude/skills/monodesign/reference/component-specs.md +260 -0
- package/.claude/skills/monodesign/reference/component-states.md +274 -0
- package/.claude/skills/monodesign/reference/component-system.md +358 -0
- package/.claude/skills/monodesign/reference/copy-formulas.md +160 -0
- package/.claude/skills/monodesign/reference/craft.md +123 -0
- package/.claude/skills/monodesign/reference/critique.md +780 -0
- package/.claude/skills/monodesign/reference/delight.md +302 -0
- package/.claude/skills/monodesign/reference/design-principles.md +246 -0
- package/.claude/skills/monodesign/reference/distill.md +111 -0
- package/.claude/skills/monodesign/reference/document.md +429 -0
- package/.claude/skills/monodesign/reference/extract.md +69 -0
- package/.claude/skills/monodesign/reference/harden.md +347 -0
- package/.claude/skills/monodesign/reference/heuristics-scoring.md +234 -0
- package/.claude/skills/monodesign/reference/hooks.md +92 -0
- package/.claude/skills/monodesign/reference/image-prompts.md +130 -0
- package/.claude/skills/monodesign/reference/init.md +221 -0
- package/.claude/skills/monodesign/reference/interaction-design.md +189 -0
- package/.claude/skills/monodesign/reference/ios.md +45 -0
- package/.claude/skills/monodesign/reference/layout.md +185 -0
- package/.claude/skills/monodesign/reference/live.md +710 -0
- package/.claude/skills/monodesign/reference/motion-design.md +109 -0
- package/.claude/skills/monodesign/reference/onboard.md +234 -0
- package/.claude/skills/monodesign/reference/optimize.md +258 -0
- package/.claude/skills/monodesign/reference/overdrive.md +130 -0
- package/.claude/skills/monodesign/reference/personas.md +179 -0
- package/.claude/skills/monodesign/reference/polish.md +241 -0
- package/.claude/skills/monodesign/reference/pre-delivery-checklist.md +108 -0
- package/.claude/skills/monodesign/reference/product.md +60 -0
- package/.claude/skills/monodesign/reference/quieter.md +99 -0
- package/.claude/skills/monodesign/reference/responsive-design.md +114 -0
- package/.claude/skills/monodesign/reference/shape.md +165 -0
- package/.claude/skills/monodesign/reference/spatial-design.md +100 -0
- package/.claude/skills/monodesign/reference/teach.md +10 -0
- package/.claude/skills/monodesign/reference/token-architecture.md +222 -0
- package/.claude/skills/monodesign/reference/typeset.md +301 -0
- package/.claude/skills/monodesign/reference/typography.md +159 -0
- package/.claude/skills/monodesign/reference/ux-research.md +143 -0
- package/.claude/skills/monodesign/reference/ux-rules.md +211 -0
- package/.claude/skills/monodesign/reference/ux-writing.md +107 -0
- package/.claude/skills/monodesign/scripts/command-metadata.json +94 -0
- package/.claude/skills/monodesign/scripts/context-signals.mjs +260 -0
- package/.claude/skills/monodesign/scripts/context.mjs +1065 -0
- package/.claude/skills/monodesign/scripts/critique-storage.mjs +416 -0
- package/.claude/skills/monodesign/scripts/detect-csp.mjs +193 -0
- package/.claude/skills/monodesign/scripts/detect.mjs +33 -0
- package/.claude/skills/monodesign/scripts/detector/browser/injected/index.mjs +1960 -0
- package/.claude/skills/monodesign/scripts/detector/cli/main.mjs +321 -0
- package/.claude/skills/monodesign/scripts/detector/design-system.mjs +814 -0
- package/.claude/skills/monodesign/scripts/detector/detect-antipatterns-browser.js +5628 -0
- package/.claude/skills/monodesign/scripts/detector/detect-antipatterns.mjs +50 -0
- package/.claude/skills/monodesign/scripts/detector/engines/browser/detect-url.mjs +259 -0
- package/.claude/skills/monodesign/scripts/detector/engines/browser/drivers.mjs +339 -0
- package/.claude/skills/monodesign/scripts/detector/engines/regex/detect-text.mjs +636 -0
- package/.claude/skills/monodesign/scripts/detector/engines/static-html/css-cascade.mjs +1016 -0
- package/.claude/skills/monodesign/scripts/detector/engines/static-html/detect-html.mjs +253 -0
- package/.claude/skills/monodesign/scripts/detector/engines/visual/screenshot-contrast.mjs +198 -0
- package/.claude/skills/monodesign/scripts/detector/findings.mjs +12 -0
- package/.claude/skills/monodesign/scripts/detector/fix/css-regions.mjs +181 -0
- package/.claude/skills/monodesign/scripts/detector/fix/fixers.mjs +373 -0
- package/.claude/skills/monodesign/scripts/detector/fix/index.mjs +426 -0
- package/.claude/skills/monodesign/scripts/detector/node/file-system.mjs +198 -0
- package/.claude/skills/monodesign/scripts/detector/profile/profiler.mjs +166 -0
- package/.claude/skills/monodesign/scripts/detector/registry/antipatterns.mjs +563 -0
- package/.claude/skills/monodesign/scripts/detector/rules/checks.mjs +3024 -0
- package/.claude/skills/monodesign/scripts/detector/shared/color.mjs +124 -0
- package/.claude/skills/monodesign/scripts/detector/shared/constants.mjs +101 -0
- package/.claude/skills/monodesign/scripts/detector/shared/fonts.mjs +30 -0
- package/.claude/skills/monodesign/scripts/detector/shared/inline-ignores.mjs +148 -0
- package/.claude/skills/monodesign/scripts/detector/shared/page.mjs +7 -0
- package/.claude/skills/monodesign/scripts/hook-admin.mjs +694 -0
- package/.claude/skills/monodesign/scripts/hook-before-edit.mjs +516 -0
- package/.claude/skills/monodesign/scripts/hook-lib.mjs +1785 -0
- package/.claude/skills/monodesign/scripts/hook.mjs +61 -0
- package/.claude/skills/monodesign/scripts/lib/design-parser.mjs +809 -0
- package/.claude/skills/monodesign/scripts/lib/is-generated.mjs +69 -0
- package/.claude/skills/monodesign/scripts/lib/monodesign-config.mjs +640 -0
- package/.claude/skills/monodesign/scripts/lib/monodesign-paths.mjs +129 -0
- package/.claude/skills/monodesign/scripts/lib/provider.mjs +4 -0
- package/.claude/skills/monodesign/scripts/lib/target-args.mjs +42 -0
- package/.claude/skills/monodesign/scripts/live/browser-script-parts.mjs +50 -0
- package/.claude/skills/monodesign/scripts/live/completion.mjs +19 -0
- package/.claude/skills/monodesign/scripts/live/event-validation.mjs +137 -0
- package/.claude/skills/monodesign/scripts/live/insert-ui.mjs +458 -0
- package/.claude/skills/monodesign/scripts/live/manual-apply.mjs +939 -0
- package/.claude/skills/monodesign/scripts/live/manual-edit-routes.mjs +357 -0
- package/.claude/skills/monodesign/scripts/live/manual-edits-buffer.mjs +152 -0
- package/.claude/skills/monodesign/scripts/live/session-store.mjs +293 -0
- package/.claude/skills/monodesign/scripts/live/svelte-component.mjs +826 -0
- package/.claude/skills/monodesign/scripts/live/sveltekit-adapter.mjs +279 -0
- package/.claude/skills/monodesign/scripts/live/ui-core.mjs +180 -0
- package/.claude/skills/monodesign/scripts/live/vocabulary.mjs +36 -0
- package/.claude/skills/monodesign/scripts/live-accept.mjs +812 -0
- package/.claude/skills/monodesign/scripts/live-browser-dom.js +147 -0
- package/.claude/skills/monodesign/scripts/live-browser-session.js +124 -0
- package/.claude/skills/monodesign/scripts/live-browser.js +11213 -0
- package/.claude/skills/monodesign/scripts/live-commit-manual-edits.mjs +1241 -0
- package/.claude/skills/monodesign/scripts/live-complete.mjs +75 -0
- package/.claude/skills/monodesign/scripts/live-copy-edit-agent.mjs +683 -0
- package/.claude/skills/monodesign/scripts/live-discard-manual-edits.mjs +51 -0
- package/.claude/skills/monodesign/scripts/live-inject.mjs +596 -0
- package/.claude/skills/monodesign/scripts/live-insert.mjs +272 -0
- package/.claude/skills/monodesign/scripts/live-manual-edit-evidence.mjs +363 -0
- package/.claude/skills/monodesign/scripts/live-poll.mjs +384 -0
- package/.claude/skills/monodesign/scripts/live-resume.mjs +94 -0
- package/.claude/skills/monodesign/scripts/live-server.mjs +1210 -0
- package/.claude/skills/monodesign/scripts/live-status.mjs +61 -0
- package/.claude/skills/monodesign/scripts/live-target.mjs +30 -0
- package/.claude/skills/monodesign/scripts/live-wrap.mjs +884 -0
- package/.claude/skills/monodesign/scripts/live.mjs +297 -0
- package/.claude/skills/monodesign/scripts/modern-screenshot.umd.js +14 -0
- package/.claude/skills/monodesign/scripts/palette.mjs +635 -0
- package/.claude/skills/monodesign/scripts/pin.mjs +221 -0
- package/.claude/skills/monodesign/shape.md +71 -0
- package/.claude/skills/monodesign/teach.md +18 -0
- package/.claude/skills/monodesign/typeset.md +59 -0
- package/.claude/skills/monolean-audit/SKILL.md +4 -6
- package/.claude/skills/monolean-help/SKILL.md +0 -1
- package/.claude/skills/monoswarm/SKILL.md +17 -17
- package/.claude/skills/pair-programming/SKILL.md +127 -1100
- package/README.md +28 -43
- package/dist/src/agents/registry-builder.d.ts +58 -22
- package/dist/src/agents/registry-builder.d.ts.map +1 -1
- package/dist/src/agents/registry-builder.js +41 -341
- package/dist/src/agents/registry-builder.js.map +1 -1
- package/dist/src/agents/registry-freshness.d.ts +4 -4
- package/dist/src/agents/registry-freshness.d.ts.map +1 -1
- package/dist/src/agents/registry-freshness.js +11 -60
- package/dist/src/agents/registry-freshness.js.map +1 -1
- package/dist/src/commands/doc.d.ts.map +1 -1
- package/dist/src/commands/doc.js +6 -15
- package/dist/src/commands/doc.js.map +1 -1
- package/dist/src/commands/doctor-pick-checks.d.ts +20 -3
- package/dist/src/commands/doctor-pick-checks.d.ts.map +1 -1
- package/dist/src/commands/doctor-pick-checks.js +138 -45
- package/dist/src/commands/doctor-pick-checks.js.map +1 -1
- package/dist/src/commands/doctor-project-checks.d.ts +2 -2
- package/dist/src/commands/doctor-project-checks.d.ts.map +1 -1
- package/dist/src/commands/doctor-project-checks.js +21 -17
- package/dist/src/commands/doctor-project-checks.js.map +1 -1
- package/dist/src/commands/doctor.d.ts.map +1 -1
- package/dist/src/commands/doctor.js +6 -4
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/hooks-routing-commands.d.ts.map +1 -1
- package/dist/src/commands/hooks-routing-commands.js +4 -3
- package/dist/src/commands/hooks-routing-commands.js.map +1 -1
- package/dist/src/commands/init-upgrade.d.ts.map +1 -1
- package/dist/src/commands/init-upgrade.js +10 -0
- package/dist/src/commands/init-upgrade.js.map +1 -1
- package/dist/src/commands/init-wizard.d.ts.map +1 -1
- package/dist/src/commands/init-wizard.js +7 -2
- package/dist/src/commands/init-wizard.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +27 -27
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/monograph.d.ts.map +1 -1
- package/dist/src/commands/monograph.js +16 -21
- package/dist/src/commands/monograph.js.map +1 -1
- package/dist/src/commands/org.js +1 -1
- package/dist/src/commands/org.js.map +1 -1
- package/dist/src/commands/pick.d.ts.map +1 -1
- package/dist/src/commands/pick.js +4 -3
- package/dist/src/commands/pick.js.map +1 -1
- package/dist/src/decision/jev.d.ts +20 -0
- package/dist/src/decision/jev.d.ts.map +1 -1
- package/dist/src/decision/jev.js +12 -0
- package/dist/src/decision/jev.js.map +1 -1
- package/dist/src/decision/pick-eval.d.ts +23 -0
- package/dist/src/decision/pick-eval.d.ts.map +1 -1
- package/dist/src/decision/pick-eval.js +24 -1
- package/dist/src/decision/pick-eval.js.map +1 -1
- package/dist/src/decision/pick-real.d.ts +93 -0
- package/dist/src/decision/pick-real.d.ts.map +1 -0
- package/dist/src/decision/pick-real.js +253 -0
- package/dist/src/decision/pick-real.js.map +1 -0
- package/dist/src/decision/picks.d.ts +6 -0
- package/dist/src/decision/picks.d.ts.map +1 -1
- package/dist/src/decision/picks.js +34 -11
- package/dist/src/decision/picks.js.map +1 -1
- package/dist/src/init/claudemd-generator.d.ts.map +1 -1
- package/dist/src/init/claudemd-generator.js +1 -0
- package/dist/src/init/claudemd-generator.js.map +1 -1
- package/dist/src/init/copy-assets.d.ts.map +1 -1
- package/dist/src/init/copy-assets.js +17 -9
- package/dist/src/init/copy-assets.js.map +1 -1
- package/dist/src/init/embeddings-step.d.ts +23 -0
- package/dist/src/init/embeddings-step.d.ts.map +1 -0
- package/dist/src/init/embeddings-step.js +53 -0
- package/dist/src/init/embeddings-step.js.map +1 -0
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +35 -5
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/file-guard.d.ts +93 -0
- package/dist/src/init/file-guard.d.ts.map +1 -0
- package/dist/src/init/file-guard.js +239 -0
- package/dist/src/init/file-guard.js.map +1 -0
- package/dist/src/init/helpers-generator.d.ts +7 -0
- package/dist/src/init/helpers-generator.d.ts.map +1 -1
- package/dist/src/init/helpers-generator.js +13 -0
- package/dist/src/init/helpers-generator.js.map +1 -1
- package/dist/src/init/init-memory.d.ts +10 -0
- package/dist/src/init/init-memory.d.ts.map +1 -1
- package/dist/src/init/init-memory.js +44 -1
- package/dist/src/init/init-memory.js.map +1 -1
- package/dist/src/init/managed-block.d.ts +3 -1
- package/dist/src/init/managed-block.d.ts.map +1 -1
- package/dist/src/init/managed-block.js +9 -2
- package/dist/src/init/managed-block.js.map +1 -1
- package/dist/src/init/mcp-generator.d.ts +9 -0
- package/dist/src/init/mcp-generator.d.ts.map +1 -1
- package/dist/src/init/mcp-generator.js +28 -0
- package/dist/src/init/mcp-generator.js.map +1 -1
- package/dist/src/init/project-indexes.d.ts +19 -0
- package/dist/src/init/project-indexes.d.ts.map +1 -0
- package/dist/src/init/project-indexes.js +44 -0
- package/dist/src/init/project-indexes.js.map +1 -0
- package/dist/src/init/runtime-config-merge.d.ts +21 -0
- package/dist/src/init/runtime-config-merge.d.ts.map +1 -0
- package/dist/src/init/runtime-config-merge.js +88 -0
- package/dist/src/init/runtime-config-merge.js.map +1 -0
- package/dist/src/init/settings-generator.js +1 -1
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/shared-instructions-generator.d.ts +3 -1
- package/dist/src/init/shared-instructions-generator.d.ts.map +1 -1
- package/dist/src/init/shared-instructions-generator.js +14 -39
- package/dist/src/init/shared-instructions-generator.js.map +1 -1
- package/dist/src/init/shared.d.ts +17 -2
- package/dist/src/init/shared.d.ts.map +1 -1
- package/dist/src/init/shared.js +39 -7
- package/dist/src/init/shared.js.map +1 -1
- package/dist/src/init/types.d.ts +22 -2
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +11 -3
- package/dist/src/init/types.js.map +1 -1
- package/dist/src/init/upgrade.d.ts +7 -0
- package/dist/src/init/upgrade.d.ts.map +1 -1
- package/dist/src/init/upgrade.js +60 -48
- package/dist/src/init/upgrade.js.map +1 -1
- package/dist/src/init/write-antigravity.d.ts +1 -0
- package/dist/src/init/write-antigravity.d.ts.map +1 -1
- package/dist/src/init/write-antigravity.js +28 -4
- package/dist/src/init/write-antigravity.js.map +1 -1
- package/dist/src/init/write-claude.d.ts.map +1 -1
- package/dist/src/init/write-claude.js +47 -23
- package/dist/src/init/write-claude.js.map +1 -1
- package/dist/src/init/write-kimicode.d.ts +27 -0
- package/dist/src/init/write-kimicode.d.ts.map +1 -1
- package/dist/src/init/write-kimicode.js +119 -92
- package/dist/src/init/write-kimicode.js.map +1 -1
- package/dist/src/init/write-opencode.d.ts.map +1 -1
- package/dist/src/init/write-opencode.js +45 -6
- package/dist/src/init/write-opencode.js.map +1 -1
- package/dist/src/init/write-runtime-config.d.ts.map +1 -1
- package/dist/src/init/write-runtime-config.js +108 -81
- package/dist/src/init/write-runtime-config.js.map +1 -1
- package/dist/src/knowledge/eval/golden-set.js +0 -15
- package/dist/src/knowledge/eval/golden-set.js.map +1 -1
- package/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/embeddings-tools.js +14 -5
- package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
- package/dist/src/mcp-tools/hooks-routing.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-routing.js +4 -3
- package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
- package/dist/src/mcp-tools/monograph/build-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph/build-tools.js +16 -9
- package/dist/src/mcp-tools/monograph/build-tools.js.map +1 -1
- package/dist/src/mcp-tools/org-skill-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/org-skill-tools.js +6 -2
- package/dist/src/mcp-tools/org-skill-tools.js.map +1 -1
- package/dist/src/mcp-tools/pick-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/pick-tools.js +13 -4
- package/dist/src/mcp-tools/pick-tools.js.map +1 -1
- package/dist/src/memory/embedding-operations.d.ts +0 -4
- package/dist/src/memory/embedding-operations.d.ts.map +1 -1
- package/dist/src/memory/embedding-operations.js +11 -85
- package/dist/src/memory/embedding-operations.js.map +1 -1
- package/dist/src/memory/memory-bridge.d.ts +7 -0
- package/dist/src/memory/memory-bridge.d.ts.map +1 -1
- package/dist/src/memory/memory-bridge.js +15 -0
- package/dist/src/memory/memory-bridge.js.map +1 -1
- package/dist/src/orgrt/bash-timeout.d.ts +17 -0
- package/dist/src/orgrt/bash-timeout.d.ts.map +1 -1
- package/dist/src/orgrt/bash-timeout.js +15 -0
- package/dist/src/orgrt/bash-timeout.js.map +1 -1
- package/dist/src/orgrt/session.d.ts.map +1 -1
- package/dist/src/orgrt/session.js +5 -2
- package/dist/src/orgrt/session.js.map +1 -1
- package/dist/src/orgrt/task-match.d.ts +3 -1
- package/dist/src/orgrt/task-match.d.ts.map +1 -1
- package/dist/src/orgrt/task-match.js +12 -4
- package/dist/src/orgrt/task-match.js.map +1 -1
- package/dist/src/platform-adapters/merge.d.ts +4 -3
- package/dist/src/platform-adapters/merge.d.ts.map +1 -1
- package/dist/src/platform-adapters/merge.js +18 -8
- package/dist/src/platform-adapters/merge.js.map +1 -1
- package/dist/src/platform-adapters/mutation.d.ts +6 -1
- package/dist/src/platform-adapters/mutation.d.ts.map +1 -1
- package/dist/src/platform-adapters/mutation.js +9 -3
- package/dist/src/platform-adapters/mutation.js.map +1 -1
- package/dist/src/platform-adapters/operations.d.ts.map +1 -1
- package/dist/src/platform-adapters/operations.js +14 -6
- package/dist/src/platform-adapters/operations.js.map +1 -1
- package/dist/src/platform-adapters/types.d.ts +5 -0
- package/dist/src/platform-adapters/types.d.ts.map +1 -1
- package/dist/src/routing/agent-pick.d.ts +9 -7
- package/dist/src/routing/agent-pick.d.ts.map +1 -1
- package/dist/src/routing/agent-pick.js +17 -17
- package/dist/src/routing/agent-pick.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/.claude/skills/github-issue-triage/SKILL.md +0 -354
- package/.claude/skills/github-repo-recap/SKILL.md +0 -207
|
@@ -1,1202 +1,229 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pair-programming
|
|
3
|
-
description: AI
|
|
3
|
+
description: AI pair programming workflow with Claude as driver, navigator, reviewer, or mentor. Supports TDD, debugging, refactoring, review, and learning sessions using Claude Code tools, Task-tool agents, and real monomind commands (hooks, memory, session) for tracking and continuity. There is no pair CLI; the session is run in the conversation.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Pair Programming
|
|
7
7
|
|
|
8
|
-
Collaborative
|
|
8
|
+
Collaborative pair programming where Claude acts as your partner in a defined role. The CLI has no `pair` command: the session lives in the conversation. Claude uses its normal tools (Read, Edit, Bash, the Task tool) plus real `monomind` commands for task tracking, shared memory, and continuity across sessions.
|
|
9
9
|
|
|
10
10
|
## What This Skill Does
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
**
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
17
|
-
- **Role Management**: Seamless switching between driver/navigator roles
|
|
18
|
-
- **Testing Integration**: Auto-generate tests, track coverage, continuous testing
|
|
19
|
-
- **Code Review**: Security scanning, performance analysis, best practice enforcement
|
|
20
|
-
- **Session Persistence**: Auto-save, recovery, export, and sharing
|
|
12
|
+
- **Role management**: Claude takes a clear role (driver, navigator, reviewer, mentor) and switches when asked
|
|
13
|
+
- **Continuous review**: every change is reviewed for correctness, security, and readability before moving on
|
|
14
|
+
- **Test discipline**: tests run after each meaningful change; TDD sessions write failing tests first
|
|
15
|
+
- **Specialist help**: Claude can spawn Task-tool agents (tester, reviewer, Security Engineer) for focused checks
|
|
16
|
+
- **Continuity**: decisions go into `monomind memory`; outcomes go into `monomind hooks` so routing learns
|
|
21
17
|
|
|
22
18
|
## Prerequisites
|
|
23
19
|
|
|
24
20
|
**Required:**
|
|
25
|
-
-
|
|
26
|
-
- Git repository (
|
|
21
|
+
- Claude Code
|
|
22
|
+
- Git repository (recommended, so every step can be diffed and reverted)
|
|
27
23
|
|
|
28
|
-
**
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
- Code formatter (Prettier, Black, etc.)
|
|
24
|
+
**Optional:**
|
|
25
|
+
- Monomind CLI (`npm install -g monomind@latest`, or `npx monomind`) for tracking and memory
|
|
26
|
+
- Test framework, linter, and formatter configured in the project
|
|
32
27
|
|
|
33
28
|
## Quick Start
|
|
34
29
|
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
# Start simple pair programming
|
|
38
|
-
monomind pair --start
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### TDD Session
|
|
42
|
-
```bash
|
|
43
|
-
# Test-driven development
|
|
44
|
-
monomind pair --start \
|
|
45
|
-
--mode tdd \
|
|
46
|
-
--test-first \
|
|
47
|
-
--coverage 90
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Complete Guide
|
|
53
|
-
|
|
54
|
-
### Session Control Commands
|
|
55
|
-
|
|
56
|
-
#### Starting Sessions
|
|
57
|
-
```bash
|
|
58
|
-
# Basic start
|
|
59
|
-
monomind pair --start
|
|
60
|
-
|
|
61
|
-
# Expert refactoring session
|
|
62
|
-
monomind pair --start \
|
|
63
|
-
--agent senior-dev \
|
|
64
|
-
--focus refactor \
|
|
65
|
-
--verify \
|
|
66
|
-
--threshold 0.98
|
|
67
|
-
|
|
68
|
-
# Debugging session
|
|
69
|
-
monomind pair --start \
|
|
70
|
-
--agent debugger-expert \
|
|
71
|
-
--focus debug \
|
|
72
|
-
--review
|
|
73
|
-
|
|
74
|
-
# Learning session
|
|
75
|
-
monomind pair --start \
|
|
76
|
-
--mode mentor \
|
|
77
|
-
--pace slow \
|
|
78
|
-
--examples
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
#### Session Management
|
|
82
|
-
```bash
|
|
83
|
-
# Check status
|
|
84
|
-
monomind pair --status
|
|
85
|
-
|
|
86
|
-
# View history
|
|
87
|
-
monomind pair --history
|
|
88
|
-
|
|
89
|
-
# Pause session
|
|
90
|
-
/pause [--reason <reason>]
|
|
91
|
-
|
|
92
|
-
# Resume session
|
|
93
|
-
/resume
|
|
94
|
-
|
|
95
|
-
# End session
|
|
96
|
-
monomind pair --end [--save] [--report]
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### Available Modes
|
|
100
|
-
|
|
101
|
-
#### Driver Mode
|
|
102
|
-
You write code while AI provides guidance.
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
monomind pair --start --mode driver
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
**Your Responsibilities:**
|
|
109
|
-
- Write actual code
|
|
110
|
-
- Implement solutions
|
|
111
|
-
- Make immediate decisions
|
|
112
|
-
- Handle syntax and structure
|
|
113
|
-
|
|
114
|
-
**AI Navigator:**
|
|
115
|
-
- Strategic guidance
|
|
116
|
-
- Spot potential issues
|
|
117
|
-
- Suggest improvements
|
|
118
|
-
- Real-time review
|
|
119
|
-
- Track overall direction
|
|
120
|
-
|
|
121
|
-
**Best For:**
|
|
122
|
-
- Learning new patterns
|
|
123
|
-
- Implementing familiar features
|
|
124
|
-
- Quick iterations
|
|
125
|
-
- Hands-on debugging
|
|
126
|
-
|
|
127
|
-
**Commands:**
|
|
128
|
-
```
|
|
129
|
-
/suggest - Get implementation suggestions
|
|
130
|
-
/review - Request code review
|
|
131
|
-
/explain - Ask for explanations
|
|
132
|
-
/optimize - Request optimization ideas
|
|
133
|
-
/patterns - Get pattern recommendations
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
#### Navigator Mode
|
|
137
|
-
AI writes code while you provide direction.
|
|
138
|
-
|
|
139
|
-
```bash
|
|
140
|
-
monomind pair --start --mode navigator
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
**Your Responsibilities:**
|
|
144
|
-
- Provide high-level direction
|
|
145
|
-
- Review generated code
|
|
146
|
-
- Make architectural decisions
|
|
147
|
-
- Ensure business requirements
|
|
148
|
-
|
|
149
|
-
**AI Driver:**
|
|
150
|
-
- Write implementation code
|
|
151
|
-
- Handle syntax details
|
|
152
|
-
- Implement your guidance
|
|
153
|
-
- Manage boilerplate
|
|
154
|
-
- Execute refactoring
|
|
155
|
-
|
|
156
|
-
**Best For:**
|
|
157
|
-
- Rapid prototyping
|
|
158
|
-
- Boilerplate generation
|
|
159
|
-
- Learning from AI patterns
|
|
160
|
-
- Exploring solutions
|
|
161
|
-
|
|
162
|
-
**Commands:**
|
|
163
|
-
```
|
|
164
|
-
/implement - Direct implementation
|
|
165
|
-
/refactor - Request refactoring
|
|
166
|
-
/test - Generate tests
|
|
167
|
-
/document - Add documentation
|
|
168
|
-
/alternate - See alternative approaches
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
#### Switch Mode
|
|
172
|
-
Automatically alternates roles at intervals.
|
|
173
|
-
|
|
174
|
-
```bash
|
|
175
|
-
# Default 10-minute intervals
|
|
176
|
-
monomind pair --start --mode switch
|
|
177
|
-
|
|
178
|
-
# 5-minute intervals (rapid)
|
|
179
|
-
monomind pair --start --mode switch --interval 5m
|
|
180
|
-
|
|
181
|
-
# 15-minute intervals (deep focus)
|
|
182
|
-
monomind pair --start --mode switch --interval 15m
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
**Handoff Process:**
|
|
186
|
-
1. 30-second warning before switch
|
|
187
|
-
2. Current driver completes thought
|
|
188
|
-
3. Context summary generated
|
|
189
|
-
4. Roles swap smoothly
|
|
190
|
-
5. New driver continues
|
|
191
|
-
|
|
192
|
-
**Best For:**
|
|
193
|
-
- Balanced collaboration
|
|
194
|
-
- Knowledge sharing
|
|
195
|
-
- Complex features
|
|
196
|
-
- Extended sessions
|
|
197
|
-
|
|
198
|
-
#### Specialized Modes
|
|
199
|
-
|
|
200
|
-
**TDD Mode** - Test-Driven Development:
|
|
201
|
-
```bash
|
|
202
|
-
monomind pair --start \
|
|
203
|
-
--mode tdd \
|
|
204
|
-
--test-first \
|
|
205
|
-
--coverage 100
|
|
206
|
-
```
|
|
207
|
-
Workflow: Write failing test → Implement → Refactor → Repeat
|
|
208
|
-
|
|
209
|
-
**Review Mode** - Continuous code review:
|
|
210
|
-
```bash
|
|
211
|
-
monomind pair --start \
|
|
212
|
-
--mode review \
|
|
213
|
-
--strict \
|
|
214
|
-
--security
|
|
215
|
-
```
|
|
216
|
-
Features: Real-time feedback, security scanning, performance analysis
|
|
217
|
-
|
|
218
|
-
**Mentor Mode** - Learning-focused:
|
|
219
|
-
```bash
|
|
220
|
-
monomind pair --start \
|
|
221
|
-
--mode mentor \
|
|
222
|
-
--explain-all \
|
|
223
|
-
--pace slow
|
|
224
|
-
```
|
|
225
|
-
Features: Detailed explanations, step-by-step guidance, pattern teaching
|
|
226
|
-
|
|
227
|
-
**Debug Mode** - Problem-solving:
|
|
228
|
-
```bash
|
|
229
|
-
monomind pair --start \
|
|
230
|
-
--mode debug \
|
|
231
|
-
--verbose \
|
|
232
|
-
--trace
|
|
233
|
-
```
|
|
234
|
-
Features: Issue identification, root cause analysis, fix suggestions
|
|
235
|
-
|
|
236
|
-
### In-Session Commands
|
|
237
|
-
|
|
238
|
-
#### Code Commands
|
|
239
|
-
```
|
|
240
|
-
/explain [--level basic|detailed|expert]
|
|
241
|
-
Explain the current code or selection
|
|
242
|
-
|
|
243
|
-
/suggest [--type refactor|optimize|security|style]
|
|
244
|
-
Get improvement suggestions
|
|
245
|
-
|
|
246
|
-
/implement <description>
|
|
247
|
-
Request implementation (navigator mode)
|
|
248
|
-
|
|
249
|
-
/refactor [--pattern <pattern>] [--scope function|file|module]
|
|
250
|
-
Refactor selected code
|
|
251
|
-
|
|
252
|
-
/optimize [--target speed|memory|both]
|
|
253
|
-
Optimize code for performance
|
|
254
|
-
|
|
255
|
-
/document [--format jsdoc|markdown|inline]
|
|
256
|
-
Add documentation to code
|
|
257
|
-
|
|
258
|
-
/comment [--verbose]
|
|
259
|
-
Add inline comments
|
|
260
|
-
|
|
261
|
-
/pattern <pattern-name> [--example]
|
|
262
|
-
Apply a design pattern
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
#### Testing Commands
|
|
266
|
-
```
|
|
267
|
-
/test [--watch] [--coverage] [--only <pattern>]
|
|
268
|
-
Run test suite
|
|
269
|
-
|
|
270
|
-
/test-gen [--type unit|integration|e2e]
|
|
271
|
-
Generate tests for current code
|
|
272
|
-
|
|
273
|
-
/coverage [--report html|json|terminal]
|
|
274
|
-
Check test coverage
|
|
275
|
-
|
|
276
|
-
/mock <target> [--realistic]
|
|
277
|
-
Generate mock data or functions
|
|
278
|
-
|
|
279
|
-
/test-watch [--on-save]
|
|
280
|
-
Enable test watching
|
|
281
|
-
|
|
282
|
-
/snapshot [--update]
|
|
283
|
-
Create test snapshots
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
#### Review Commands
|
|
287
|
-
```
|
|
288
|
-
/review [--scope current|file|changes] [--strict]
|
|
289
|
-
Perform code review
|
|
290
|
-
|
|
291
|
-
/security [--deep] [--fix]
|
|
292
|
-
Security analysis
|
|
293
|
-
|
|
294
|
-
/perf [--profile] [--suggestions]
|
|
295
|
-
Performance analysis
|
|
296
|
-
|
|
297
|
-
/quality [--detailed]
|
|
298
|
-
Check code quality metrics
|
|
299
|
-
|
|
300
|
-
/lint [--fix] [--config <config>]
|
|
301
|
-
Run linters
|
|
302
|
-
|
|
303
|
-
/complexity [--threshold <value>]
|
|
304
|
-
Analyze code complexity
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
#### Navigation Commands
|
|
308
|
-
```
|
|
309
|
-
/goto <file>[:line[:column]]
|
|
310
|
-
Navigate to file or location
|
|
311
|
-
|
|
312
|
-
/find <pattern> [--regex] [--case-sensitive]
|
|
313
|
-
Search in project
|
|
314
|
-
|
|
315
|
-
/recent [--limit <n>]
|
|
316
|
-
Show recent files
|
|
317
|
-
|
|
318
|
-
/bookmark [add|list|goto|remove] [<name>]
|
|
319
|
-
Manage bookmarks
|
|
320
|
-
|
|
321
|
-
/history [--limit <n>] [--filter <pattern>]
|
|
322
|
-
Show command history
|
|
323
|
-
|
|
324
|
-
/tree [--depth <n>] [--filter <pattern>]
|
|
325
|
-
Show project structure
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
#### Git Commands
|
|
329
|
-
```
|
|
330
|
-
/diff [--staged] [--file <file>]
|
|
331
|
-
Show git diff
|
|
332
|
-
|
|
333
|
-
/commit [--message <msg>] [--amend]
|
|
334
|
-
Commit with verification
|
|
335
|
-
|
|
336
|
-
/branch [create|switch|delete|list] [<name>]
|
|
337
|
-
Branch operations
|
|
338
|
-
|
|
339
|
-
/stash [save|pop|list|apply] [<message>]
|
|
340
|
-
Stash operations
|
|
341
|
-
|
|
342
|
-
/log [--oneline] [--limit <n>]
|
|
343
|
-
View git log
|
|
344
|
-
|
|
345
|
-
/blame [<file>]
|
|
346
|
-
Show git blame
|
|
347
|
-
```
|
|
348
|
-
|
|
349
|
-
#### AI Partner Commands
|
|
350
|
-
```
|
|
351
|
-
/agent [switch|info|config] [<agent-name>]
|
|
352
|
-
Manage AI agent
|
|
353
|
-
|
|
354
|
-
/teach <preference>
|
|
355
|
-
Teach the AI your preferences
|
|
356
|
-
|
|
357
|
-
/feedback [positive|negative] <message>
|
|
358
|
-
Provide feedback to AI
|
|
359
|
-
|
|
360
|
-
/personality [professional|friendly|concise|verbose]
|
|
361
|
-
Adjust AI personality
|
|
362
|
-
|
|
363
|
-
/expertise [add|remove|list] [<domain>]
|
|
364
|
-
Set AI expertise focus
|
|
365
|
-
```
|
|
366
|
-
|
|
367
|
-
#### Metrics Commands
|
|
368
|
-
```
|
|
369
|
-
/metrics [--period today|session|week|all]
|
|
370
|
-
Show session metrics
|
|
371
|
-
|
|
372
|
-
/score [--breakdown]
|
|
373
|
-
Show quality scores
|
|
30
|
+
Tell Claude the goal and the role:
|
|
374
31
|
|
|
375
|
-
|
|
376
|
-
Show productivity metrics
|
|
32
|
+
> "Pair with me on JWT auth. You navigate: I write the code, you review each piece and flag issues."
|
|
377
33
|
|
|
378
|
-
|
|
379
|
-
Show improvement leaderboard
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
#### Role & Mode Commands
|
|
383
|
-
```
|
|
384
|
-
/switch [--immediate]
|
|
385
|
-
Switch driver/navigator roles
|
|
386
|
-
|
|
387
|
-
/mode <type>
|
|
388
|
-
Change mode (driver|navigator|switch|tdd|review|mentor|debug)
|
|
389
|
-
|
|
390
|
-
/role
|
|
391
|
-
Show current role
|
|
392
|
-
|
|
393
|
-
/handoff
|
|
394
|
-
Prepare role handoff
|
|
395
|
-
```
|
|
396
|
-
|
|
397
|
-
### Command Shortcuts
|
|
398
|
-
|
|
399
|
-
| Alias | Full Command |
|
|
400
|
-
|-------|-------------|
|
|
401
|
-
| `/s` | `/suggest` |
|
|
402
|
-
| `/e` | `/explain` |
|
|
403
|
-
| `/t` | `/test` |
|
|
404
|
-
| `/r` | `/review` |
|
|
405
|
-
| `/c` | `/commit` |
|
|
406
|
-
| `/g` | `/goto` |
|
|
407
|
-
| `/f` | `/find` |
|
|
408
|
-
| `/h` | `/help` |
|
|
409
|
-
| `/sw` | `/switch` |
|
|
410
|
-
| `/st` | `/status` |
|
|
411
|
-
|
|
412
|
-
### Configuration
|
|
413
|
-
|
|
414
|
-
#### Basic Configuration
|
|
415
|
-
Create `.monomind/pair-config.json`:
|
|
416
|
-
|
|
417
|
-
```json
|
|
418
|
-
{
|
|
419
|
-
"pair": {
|
|
420
|
-
"enabled": true,
|
|
421
|
-
"defaultMode": "switch",
|
|
422
|
-
"defaultAgent": "auto",
|
|
423
|
-
"autoStart": false,
|
|
424
|
-
"theme": "professional"
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
```
|
|
428
|
-
|
|
429
|
-
#### Complete Configuration
|
|
430
|
-
|
|
431
|
-
```json
|
|
432
|
-
{
|
|
433
|
-
"pair": {
|
|
434
|
-
"general": {
|
|
435
|
-
"enabled": true,
|
|
436
|
-
"defaultMode": "switch",
|
|
437
|
-
"defaultAgent": "senior-dev",
|
|
438
|
-
"language": "javascript",
|
|
439
|
-
"timezone": "UTC"
|
|
440
|
-
},
|
|
441
|
-
|
|
442
|
-
"modes": {
|
|
443
|
-
"driver": {
|
|
444
|
-
"enabled": true,
|
|
445
|
-
"suggestions": true,
|
|
446
|
-
"realTimeReview": true,
|
|
447
|
-
"autoComplete": false
|
|
448
|
-
},
|
|
449
|
-
"navigator": {
|
|
450
|
-
"enabled": true,
|
|
451
|
-
"codeGeneration": true,
|
|
452
|
-
"explanations": true,
|
|
453
|
-
"alternatives": true
|
|
454
|
-
},
|
|
455
|
-
"switch": {
|
|
456
|
-
"enabled": true,
|
|
457
|
-
"interval": "10m",
|
|
458
|
-
"warning": "30s",
|
|
459
|
-
"autoSwitch": true,
|
|
460
|
-
"pauseOnIdle": true
|
|
461
|
-
}
|
|
462
|
-
},
|
|
463
|
-
|
|
464
|
-
"verification": {
|
|
465
|
-
"enabled": true,
|
|
466
|
-
"threshold": 0.95,
|
|
467
|
-
"autoRollback": true,
|
|
468
|
-
"preCommitCheck": true,
|
|
469
|
-
"continuousMonitoring": true,
|
|
470
|
-
"blockOnFailure": true
|
|
471
|
-
},
|
|
472
|
-
|
|
473
|
-
"testing": {
|
|
474
|
-
"enabled": true,
|
|
475
|
-
"autoRun": true,
|
|
476
|
-
"framework": "jest",
|
|
477
|
-
"onSave": true,
|
|
478
|
-
"coverage": {
|
|
479
|
-
"enabled": true,
|
|
480
|
-
"minimum": 80,
|
|
481
|
-
"enforce": true,
|
|
482
|
-
"reportFormat": "html"
|
|
483
|
-
}
|
|
484
|
-
},
|
|
485
|
-
|
|
486
|
-
"review": {
|
|
487
|
-
"enabled": true,
|
|
488
|
-
"continuous": true,
|
|
489
|
-
"preCommit": true,
|
|
490
|
-
"security": true,
|
|
491
|
-
"performance": true,
|
|
492
|
-
"style": true,
|
|
493
|
-
"complexity": {
|
|
494
|
-
"maxComplexity": 10,
|
|
495
|
-
"maxDepth": 4,
|
|
496
|
-
"maxLines": 100
|
|
497
|
-
}
|
|
498
|
-
},
|
|
499
|
-
|
|
500
|
-
"git": {
|
|
501
|
-
"enabled": true,
|
|
502
|
-
"autoCommit": false,
|
|
503
|
-
"commitTemplate": "feat: {message}",
|
|
504
|
-
"signCommits": false,
|
|
505
|
-
"pushOnEnd": false,
|
|
506
|
-
"branchProtection": true
|
|
507
|
-
},
|
|
508
|
-
|
|
509
|
-
"session": {
|
|
510
|
-
"autoSave": true,
|
|
511
|
-
"saveInterval": "5m",
|
|
512
|
-
"maxDuration": "4h",
|
|
513
|
-
"idleTimeout": "15m",
|
|
514
|
-
"breakReminder": "45m",
|
|
515
|
-
"metricsInterval": "1m"
|
|
516
|
-
},
|
|
517
|
-
|
|
518
|
-
"ai": {
|
|
519
|
-
"model": "advanced",
|
|
520
|
-
"temperature": 0.7,
|
|
521
|
-
"maxTokens": 4000,
|
|
522
|
-
"personality": "professional",
|
|
523
|
-
"expertise": ["backend", "testing", "security"],
|
|
524
|
-
"learningEnabled": true
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
```
|
|
529
|
-
|
|
530
|
-
#### Built-in Agents
|
|
531
|
-
|
|
532
|
-
```json
|
|
533
|
-
{
|
|
534
|
-
"agents": {
|
|
535
|
-
"senior-dev": {
|
|
536
|
-
"expertise": ["architecture", "patterns", "optimization"],
|
|
537
|
-
"style": "thorough",
|
|
538
|
-
"reviewLevel": "strict"
|
|
539
|
-
},
|
|
540
|
-
"tdd-specialist": {
|
|
541
|
-
"expertise": ["testing", "mocks", "coverage"],
|
|
542
|
-
"style": "test-first",
|
|
543
|
-
"reviewLevel": "comprehensive"
|
|
544
|
-
},
|
|
545
|
-
"debugger-expert": {
|
|
546
|
-
"expertise": ["debugging", "profiling", "tracing"],
|
|
547
|
-
"style": "analytical",
|
|
548
|
-
"reviewLevel": "focused"
|
|
549
|
-
},
|
|
550
|
-
"junior-dev": {
|
|
551
|
-
"expertise": ["learning", "basics", "documentation"],
|
|
552
|
-
"style": "questioning",
|
|
553
|
-
"reviewLevel": "educational"
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
```
|
|
558
|
-
|
|
559
|
-
#### CLI Configuration
|
|
560
|
-
```bash
|
|
561
|
-
# Set configuration
|
|
562
|
-
monomind pair config set defaultMode switch
|
|
563
|
-
monomind pair config set verification.threshold 0.98
|
|
564
|
-
|
|
565
|
-
# Get configuration
|
|
566
|
-
monomind pair config get
|
|
567
|
-
monomind pair config get defaultMode
|
|
34
|
+
> "Pair with me on the shopping cart, TDD. You write the failing tests first, I implement."
|
|
568
35
|
|
|
569
|
-
|
|
570
|
-
monomind pair config export > config.json
|
|
571
|
-
monomind pair config import config.json
|
|
572
|
-
|
|
573
|
-
# Reset
|
|
574
|
-
monomind pair config reset
|
|
575
|
-
```
|
|
576
|
-
|
|
577
|
-
#### Profile Management
|
|
578
|
-
|
|
579
|
-
Create reusable profiles:
|
|
36
|
+
Optionally register the task so the hooks system can suggest agents and record the outcome:
|
|
580
37
|
|
|
581
38
|
```bash
|
|
582
|
-
|
|
583
|
-
monomind pair profile create refactoring \
|
|
584
|
-
--mode driver \
|
|
585
|
-
--verify true \
|
|
586
|
-
--threshold 0.98 \
|
|
587
|
-
--focus refactor
|
|
588
|
-
|
|
589
|
-
# Use profile
|
|
590
|
-
monomind pair --start --profile refactoring
|
|
591
|
-
|
|
592
|
-
# List profiles
|
|
593
|
-
monomind pair profile list
|
|
39
|
+
npx monomind hooks pre-task --description "Pair: implement JWT auth" --task-id pair-jwt
|
|
594
40
|
```
|
|
595
41
|
|
|
596
|
-
|
|
597
|
-
```json
|
|
598
|
-
{
|
|
599
|
-
"profiles": {
|
|
600
|
-
"refactoring": {
|
|
601
|
-
"mode": "driver",
|
|
602
|
-
"verification": {
|
|
603
|
-
"enabled": true,
|
|
604
|
-
"threshold": 0.98
|
|
605
|
-
},
|
|
606
|
-
"focus": "refactor"
|
|
607
|
-
},
|
|
608
|
-
"debugging": {
|
|
609
|
-
"mode": "navigator",
|
|
610
|
-
"agent": "debugger-expert",
|
|
611
|
-
"trace": true,
|
|
612
|
-
"verbose": true
|
|
613
|
-
},
|
|
614
|
-
"learning": {
|
|
615
|
-
"mode": "mentor",
|
|
616
|
-
"pace": "slow",
|
|
617
|
-
"explanations": "detailed",
|
|
618
|
-
"examples": true
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
```
|
|
42
|
+
## Roles and Modes
|
|
623
43
|
|
|
624
|
-
###
|
|
44
|
+
### Driver (Claude writes, you guide)
|
|
625
45
|
|
|
626
|
-
|
|
46
|
+
Claude writes the code with Edit/Write; you set direction and approve each step.
|
|
627
47
|
|
|
628
|
-
|
|
48
|
+
**Claude's protocol:**
|
|
49
|
+
1. State the plan for the next small step (one function, one endpoint)
|
|
50
|
+
2. Implement it
|
|
51
|
+
3. Run the relevant tests or build
|
|
52
|
+
4. Show the diff and wait for your review before the next step
|
|
629
53
|
|
|
630
|
-
|
|
631
|
-
# Session setup
|
|
632
|
-
monomind pair --start \
|
|
633
|
-
--mode switch \
|
|
634
|
-
--agent senior-dev \
|
|
635
|
-
--focus implement \
|
|
636
|
-
--verify \
|
|
637
|
-
--test
|
|
638
|
-
```
|
|
54
|
+
**Best for:** scaffolding, boilerplate, rapid prototyping, exploring an unfamiliar library.
|
|
639
55
|
|
|
640
|
-
|
|
641
|
-
```
|
|
642
|
-
👥 Starting pair programming for authentication feature...
|
|
56
|
+
### Navigator (you write, Claude reviews)
|
|
643
57
|
|
|
644
|
-
|
|
645
|
-
/explain JWT authentication flow
|
|
646
|
-
> AI explains JWT concepts and best practices
|
|
58
|
+
You write the code; Claude reads each change (Read, `git diff`) and reviews it.
|
|
647
59
|
|
|
648
|
-
|
|
649
|
-
|
|
60
|
+
**Claude's protocol:**
|
|
61
|
+
1. Keep the overall direction and the list of open concerns
|
|
62
|
+
2. Review each change for bugs, edge cases, security, and naming
|
|
63
|
+
3. Suggest the next step, but do not edit files unless asked
|
|
650
64
|
|
|
651
|
-
|
|
65
|
+
**Best for:** learning, work you want to own, debugging with a hypothesis.
|
|
652
66
|
|
|
653
|
-
|
|
67
|
+
### Switch
|
|
654
68
|
|
|
655
|
-
|
|
656
|
-
/implement JWT token generation with refresh tokens
|
|
657
|
-
> AI generates secure token implementation
|
|
69
|
+
Alternate roles at natural breakpoints (after a complete unit, before changing subsystems), or on request:
|
|
658
70
|
|
|
659
|
-
|
|
660
|
-
> AI creates comprehensive test suite
|
|
71
|
+
> "Switch - you drive the refresh-token endpoint."
|
|
661
72
|
|
|
662
|
-
|
|
73
|
+
### TDD
|
|
663
74
|
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
75
|
+
Red, green, refactor:
|
|
76
|
+
1. Claude writes one failing test and runs it to confirm it fails for the right reason
|
|
77
|
+
2. The driver writes the minimal code to pass
|
|
78
|
+
3. Run the tests; refactor together with the tests green
|
|
79
|
+
4. Repeat for the next behavior
|
|
668
80
|
|
|
669
|
-
|
|
670
|
-
✅ Truth Score: 0.98 - Committed successfully
|
|
671
|
-
```
|
|
81
|
+
For bug-driven TDD, load the `mastermind-debug` skill (failing test first, then fix).
|
|
672
82
|
|
|
673
|
-
|
|
83
|
+
### Review
|
|
674
84
|
|
|
675
|
-
|
|
85
|
+
Claude reviews existing code or a diff and reports issues by severity (critical, major, minor) with file and line. For a thorough multi-angle review, load `mastermind-review`; for working through review feedback you received, load `mastermind-receive-review`.
|
|
676
86
|
|
|
677
|
-
|
|
678
|
-
# Session setup
|
|
679
|
-
monomind pair --start \
|
|
680
|
-
--mode navigator \
|
|
681
|
-
--agent debugger-expert \
|
|
682
|
-
--focus debug \
|
|
683
|
-
--trace
|
|
684
|
-
```
|
|
87
|
+
### Debug
|
|
685
88
|
|
|
686
|
-
|
|
687
|
-
```
|
|
688
|
-
👥 Starting debugging session...
|
|
89
|
+
Claude asks targeted questions, forms hypotheses, and verifies each with a test, log, or reproduction before proposing a fix. Load `mastermind-debug` for the full root-cause protocol.
|
|
689
90
|
|
|
690
|
-
|
|
691
|
-
> Analyzing application for memory issues...
|
|
91
|
+
### Mentor
|
|
692
92
|
|
|
693
|
-
|
|
694
|
-
> Memory usage growing: 150MB → 450MB over 10 minutes
|
|
93
|
+
Claude explains the reasoning behind each suggestion, offers alternatives with trade-offs, and lets you do the implementation.
|
|
695
94
|
|
|
696
|
-
|
|
697
|
-
> Found 3 instances of EventEmitter creation
|
|
95
|
+
## Using Specialist Agents
|
|
698
96
|
|
|
699
|
-
|
|
700
|
-
> Discovering listeners not being removed
|
|
97
|
+
For focused checks during a session, Claude spawns Task-tool agents and reports back:
|
|
701
98
|
|
|
702
|
-
|
|
703
|
-
|
|
99
|
+
```javascript
|
|
100
|
+
Task({
|
|
101
|
+
subagent_type: "tester",
|
|
102
|
+
prompt: "Write unit tests for src/auth/token.ts: valid, expired, tampered, and rotated tokens. Run them and report failures.",
|
|
103
|
+
})
|
|
704
104
|
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
> Memory stable at 150MB ✅
|
|
710
|
-
|
|
711
|
-
/commit --message "fix: memory leak in event emitters"
|
|
105
|
+
Task({
|
|
106
|
+
subagent_type: "Security Engineer",
|
|
107
|
+
prompt: "Review the diff in src/auth/ for auth and token-handling vulnerabilities. Report findings with file and line.",
|
|
108
|
+
})
|
|
712
109
|
```
|
|
713
110
|
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
Building shopping cart with test-driven development:
|
|
111
|
+
To get agent suggestions for a task:
|
|
717
112
|
|
|
718
113
|
```bash
|
|
719
|
-
|
|
720
|
-
monomind
|
|
721
|
-
--mode tdd \
|
|
722
|
-
--agent tdd-specialist \
|
|
723
|
-
--test-first
|
|
724
|
-
```
|
|
725
|
-
|
|
726
|
-
**Session Flow:**
|
|
727
|
-
```
|
|
728
|
-
👥 TDD Session: Shopping Cart Feature
|
|
729
|
-
|
|
730
|
-
[RED PHASE]
|
|
731
|
-
/test-gen "add item to cart"
|
|
732
|
-
> AI writes failing test:
|
|
733
|
-
✗ should add item to cart
|
|
734
|
-
✗ should update quantity for existing item
|
|
735
|
-
✗ should calculate total price
|
|
736
|
-
|
|
737
|
-
[GREEN PHASE]
|
|
738
|
-
/implement minimal cart functionality
|
|
739
|
-
> You write just enough code to pass tests
|
|
740
|
-
|
|
741
|
-
/test
|
|
742
|
-
> Tests passing: 3/3 ✅
|
|
743
|
-
|
|
744
|
-
[REFACTOR PHASE]
|
|
745
|
-
/refactor --pattern repository
|
|
746
|
-
> AI refactors to repository pattern
|
|
747
|
-
|
|
748
|
-
/test
|
|
749
|
-
> Tests still passing: 3/3 ✅
|
|
750
|
-
|
|
751
|
-
[NEXT CYCLE]
|
|
752
|
-
/test-gen "remove item from cart"
|
|
753
|
-
> AI writes new failing tests...
|
|
114
|
+
npx monomind hooks route --task "Review JWT refresh token rotation"
|
|
115
|
+
npx monomind pick --task "Review JWT refresh token rotation" --agents
|
|
754
116
|
```
|
|
755
117
|
|
|
756
|
-
|
|
118
|
+
## Session Workflow
|
|
757
119
|
|
|
758
|
-
|
|
120
|
+
### 1. Set Context
|
|
759
121
|
|
|
760
|
-
```bash
|
|
761
|
-
# Session setup
|
|
762
|
-
monomind pair --start \
|
|
763
|
-
--mode driver \
|
|
764
|
-
--focus refactor \
|
|
765
|
-
--verify \
|
|
766
|
-
--threshold 0.98
|
|
767
122
|
```
|
|
768
|
-
|
|
769
|
-
|
|
123
|
+
Goal: [what we're building]
|
|
124
|
+
Mode: [driver / navigator / switch / TDD / review / debug / mentor]
|
|
125
|
+
Stack: [language, framework, key libraries]
|
|
126
|
+
Constraints: [decisions already made]
|
|
127
|
+
Focus: [correctness / speed / learning]
|
|
770
128
|
```
|
|
771
|
-
👥 Refactoring Session: Modernizing UserService
|
|
772
129
|
|
|
773
|
-
|
|
774
|
-
> AI identifies:
|
|
775
|
-
- Callback hell (5 levels deep)
|
|
776
|
-
- No error handling
|
|
777
|
-
- Tight coupling
|
|
778
|
-
- No tests
|
|
779
|
-
|
|
780
|
-
/suggest refactoring plan
|
|
781
|
-
> AI suggests:
|
|
782
|
-
1. Convert callbacks to async/await
|
|
783
|
-
2. Add error boundaries
|
|
784
|
-
3. Extract dependencies
|
|
785
|
-
4. Add unit tests
|
|
786
|
-
|
|
787
|
-
/test-gen --before-refactor
|
|
788
|
-
> AI generates tests for current behavior
|
|
789
|
-
|
|
790
|
-
/refactor callbacks to async/await
|
|
791
|
-
# You refactor with AI guidance
|
|
792
|
-
|
|
793
|
-
/test
|
|
794
|
-
> All tests passing ✅
|
|
795
|
-
|
|
796
|
-
/review --compare
|
|
797
|
-
> AI shows before/after comparison
|
|
798
|
-
> Code complexity: 35 → 12
|
|
799
|
-
> Truth score: 0.99 ✅
|
|
800
|
-
|
|
801
|
-
/commit --message "refactor: modernize UserService with async/await"
|
|
802
|
-
```
|
|
803
|
-
|
|
804
|
-
#### Example 5: Performance Optimization
|
|
805
|
-
|
|
806
|
-
Optimizing slow React application:
|
|
130
|
+
Load relevant prior decisions:
|
|
807
131
|
|
|
808
132
|
```bash
|
|
809
|
-
|
|
810
|
-
monomind pair --start \
|
|
811
|
-
--mode switch \
|
|
812
|
-
--agent performance-expert \
|
|
813
|
-
--focus optimize \
|
|
814
|
-
--profile
|
|
815
|
-
```
|
|
816
|
-
|
|
817
|
-
**Session Flow:**
|
|
133
|
+
npx monomind memory search --query "auth token decisions" --namespace decisions
|
|
818
134
|
```
|
|
819
|
-
👥 Performance Optimization Session
|
|
820
|
-
|
|
821
|
-
/perf --profile
|
|
822
|
-
> React DevTools Profiler Results:
|
|
823
|
-
- ProductList: 450ms render
|
|
824
|
-
- CartSummary: 200ms render
|
|
825
|
-
- Unnecessary re-renders: 15
|
|
826
|
-
|
|
827
|
-
/suggest optimizations for ProductList
|
|
828
|
-
> AI suggests:
|
|
829
|
-
1. Add React.memo
|
|
830
|
-
2. Use useMemo for expensive calculations
|
|
831
|
-
3. Implement virtualization for long lists
|
|
832
135
|
|
|
833
|
-
|
|
834
|
-
# You implement with AI guidance
|
|
136
|
+
### 2. Work in Small Steps
|
|
835
137
|
|
|
836
|
-
|
|
837
|
-
|
|
138
|
+
- One concern at a time
|
|
139
|
+
- Run tests after every meaningful change (`npm test`, `pytest`, ...)
|
|
140
|
+
- Show diffs (`git diff`) at each breakpoint
|
|
141
|
+
- Summarize state before switching roles or subsystems
|
|
838
142
|
|
|
839
|
-
|
|
840
|
-
> AI implements virtual scrolling
|
|
841
|
-
|
|
842
|
-
/perf --profile
|
|
843
|
-
> ProductList: 12ms render (97% improvement!) ✅
|
|
844
|
-
> FPS: 60 stable ✅
|
|
845
|
-
|
|
846
|
-
/commit --message "perf: optimize ProductList with memoization and virtualization"
|
|
847
|
-
```
|
|
848
|
-
|
|
849
|
-
#### Example 6: API Development
|
|
850
|
-
|
|
851
|
-
Building RESTful API with Express:
|
|
143
|
+
### 3. Capture Decisions
|
|
852
144
|
|
|
853
145
|
```bash
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
--
|
|
857
|
-
--agent backend-expert \
|
|
858
|
-
--focus implement \
|
|
859
|
-
--test
|
|
860
|
-
```
|
|
861
|
-
|
|
862
|
-
**Session Flow:**
|
|
146
|
+
npx monomind memory store --key "pair-jwt-refresh-storage" \
|
|
147
|
+
--value "Refresh tokens stored in Redis, rotated on every refresh" \
|
|
148
|
+
--namespace decisions
|
|
863
149
|
```
|
|
864
|
-
👥 API Development Session
|
|
865
|
-
|
|
866
|
-
/design REST API for blog platform
|
|
867
|
-
> AI designs endpoints:
|
|
868
|
-
POST /api/posts
|
|
869
|
-
GET /api/posts
|
|
870
|
-
GET /api/posts/:id
|
|
871
|
-
PUT /api/posts/:id
|
|
872
|
-
DELETE /api/posts/:id
|
|
873
|
-
|
|
874
|
-
/implement CRUD endpoints with validation
|
|
875
|
-
> AI implements with Express + Joi validation
|
|
876
|
-
|
|
877
|
-
/test-gen --integration
|
|
878
|
-
> AI generates integration tests
|
|
879
|
-
|
|
880
|
-
/security --api
|
|
881
|
-
> AI adds:
|
|
882
|
-
- Rate limiting
|
|
883
|
-
- Input sanitization
|
|
884
|
-
- JWT authentication
|
|
885
|
-
- CORS configuration
|
|
886
|
-
|
|
887
|
-
/document --openapi
|
|
888
|
-
> AI generates OpenAPI documentation
|
|
889
|
-
|
|
890
|
-
/test --integration
|
|
891
|
-
> All endpoints tested: 15/15 ✅
|
|
892
|
-
```
|
|
893
|
-
|
|
894
|
-
### Session Templates
|
|
895
150
|
|
|
896
|
-
|
|
151
|
+
### 4. Record Edits and Outcomes (optional)
|
|
897
152
|
|
|
898
153
|
```bash
|
|
899
|
-
|
|
900
|
-
monomind pair --
|
|
901
|
-
# Focus: Code improvement
|
|
902
|
-
# Verification: High (0.98)
|
|
903
|
-
# Testing: After each change
|
|
904
|
-
# Review: Continuous
|
|
905
|
-
|
|
906
|
-
# Feature template
|
|
907
|
-
monomind pair --template feature
|
|
908
|
-
# Focus: Implementation
|
|
909
|
-
# Verification: Standard (0.95)
|
|
910
|
-
# Testing: On completion
|
|
911
|
-
# Review: Pre-commit
|
|
912
|
-
|
|
913
|
-
# Debug template
|
|
914
|
-
monomind pair --template debug
|
|
915
|
-
# Focus: Problem solving
|
|
916
|
-
# Verification: Moderate (0.90)
|
|
917
|
-
# Testing: Regression tests
|
|
918
|
-
# Review: Root cause
|
|
919
|
-
|
|
920
|
-
# Learning template
|
|
921
|
-
monomind pair --template learn
|
|
922
|
-
# Mode: Mentor
|
|
923
|
-
# Pace: Slow
|
|
924
|
-
# Explanations: Detailed
|
|
925
|
-
# Examples: Many
|
|
154
|
+
npx monomind hooks post-edit --file "src/auth/token.ts" --success true
|
|
155
|
+
npx monomind hooks post-task --task-id pair-jwt --success true --outcome "JWT auth with refresh rotation"
|
|
926
156
|
```
|
|
927
157
|
|
|
928
|
-
### Session
|
|
158
|
+
### 5. Close the Session
|
|
929
159
|
|
|
930
|
-
|
|
160
|
+
> "Summarize: what we built, the decisions we made, and what's left."
|
|
931
161
|
|
|
932
162
|
```bash
|
|
933
|
-
|
|
934
|
-
|
|
163
|
+
# Persist session state for the next conversation
|
|
164
|
+
npx monomind hooks session-end
|
|
935
165
|
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
👥 Pair Programming Session
|
|
939
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
940
|
-
|
|
941
|
-
Session ID: pair_1755021234567
|
|
942
|
-
Duration: 45 minutes
|
|
943
|
-
Status: Active
|
|
944
|
-
|
|
945
|
-
Partner: senior-dev
|
|
946
|
-
Current Role: DRIVER (you)
|
|
947
|
-
Mode: Switch (10m intervals)
|
|
948
|
-
Next Switch: in 3 minutes
|
|
949
|
-
|
|
950
|
-
📊 Metrics:
|
|
951
|
-
├── Truth Score: 0.982 ✅
|
|
952
|
-
├── Lines Changed: 234
|
|
953
|
-
├── Files Modified: 5
|
|
954
|
-
├── Tests Added: 12
|
|
955
|
-
├── Coverage: 87% ↑3%
|
|
956
|
-
└── Commits: 3
|
|
957
|
-
|
|
958
|
-
🎯 Focus: Implementation
|
|
959
|
-
📝 Current File: src/auth/login.js
|
|
166
|
+
# Or save a named checkpoint
|
|
167
|
+
npx monomind session save --name "pair-jwt" --description "token utils done, refresh endpoint next"
|
|
960
168
|
```
|
|
961
169
|
|
|
962
|
-
|
|
170
|
+
Next time:
|
|
963
171
|
|
|
964
172
|
```bash
|
|
965
|
-
monomind
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
**Output:**
|
|
969
|
-
```
|
|
970
|
-
📚 Session History
|
|
971
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
972
|
-
|
|
973
|
-
1. 2024-01-15 14:30 - 16:45 (2h 15m)
|
|
974
|
-
Partner: expert-coder
|
|
975
|
-
Focus: Refactoring
|
|
976
|
-
Truth Score: 0.975
|
|
977
|
-
Changes: +340 -125 lines
|
|
978
|
-
|
|
979
|
-
2. 2024-01-14 10:00 - 11:30 (1h 30m)
|
|
980
|
-
Partner: tdd-specialist
|
|
981
|
-
Focus: Testing
|
|
982
|
-
Truth Score: 0.991
|
|
983
|
-
Tests Added: 24
|
|
984
|
-
|
|
985
|
-
3. 2024-01-13 15:00 - 17:00 (2h)
|
|
986
|
-
Partner: debugger-expert
|
|
987
|
-
Focus: Bug Fixing
|
|
988
|
-
Truth Score: 0.968
|
|
989
|
-
Issues Fixed: 5
|
|
990
|
-
```
|
|
991
|
-
|
|
992
|
-
#### Session Persistence
|
|
993
|
-
|
|
994
|
-
```bash
|
|
995
|
-
# Save session
|
|
996
|
-
monomind pair --save [--name <name>]
|
|
997
|
-
|
|
998
|
-
# Load session
|
|
999
|
-
monomind pair --load <session-id>
|
|
1000
|
-
|
|
1001
|
-
# Export session
|
|
1002
|
-
monomind pair --export <session-id> [--format json|md]
|
|
1003
|
-
|
|
1004
|
-
# Generate report
|
|
1005
|
-
monomind pair --report <session-id>
|
|
1006
|
-
```
|
|
1007
|
-
|
|
1008
|
-
#### Background Sessions
|
|
1009
|
-
|
|
1010
|
-
```bash
|
|
1011
|
-
# Start in background
|
|
1012
|
-
monomind pair --start --background
|
|
1013
|
-
|
|
1014
|
-
# Monitor background session
|
|
1015
|
-
monomind pair --monitor
|
|
1016
|
-
|
|
1017
|
-
# Attach to background session
|
|
1018
|
-
monomind pair --attach <session-id>
|
|
1019
|
-
|
|
1020
|
-
# End background session
|
|
1021
|
-
monomind pair --end <session-id>
|
|
173
|
+
npx monomind hooks session-restore
|
|
174
|
+
npx monomind session list
|
|
1022
175
|
```
|
|
1023
176
|
|
|
1024
|
-
|
|
177
|
+
## Real-World Examples
|
|
1025
178
|
|
|
1026
|
-
|
|
179
|
+
### Feature Implementation (Claude drives)
|
|
1027
180
|
|
|
1028
|
-
|
|
181
|
+
> "Pair on JWT auth for Express, you drive. Access token 15 min, refresh token 7 days, rotation on refresh, revocation list. Start with token utilities; stop after each piece for my review."
|
|
1029
182
|
|
|
1030
|
-
|
|
1031
|
-
{
|
|
1032
|
-
"customCommands": {
|
|
1033
|
-
"tdd": "/test-gen && /test --watch",
|
|
1034
|
-
"full-review": "/lint --fix && /test && /review --strict",
|
|
1035
|
-
"quick-fix": "/suggest --type fix && /implement && /test"
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
```
|
|
183
|
+
Claude implements the utilities, runs tests, shows the diff. You review:
|
|
1039
184
|
|
|
1040
|
-
|
|
1041
|
-
```
|
|
1042
|
-
/custom tdd
|
|
1043
|
-
/custom full-review
|
|
1044
|
-
```
|
|
185
|
+
> "Store refresh tokens in Redis, not in memory. Fix that, then do the middleware."
|
|
1045
186
|
|
|
1046
|
-
|
|
187
|
+
### Bug Fixing (debug)
|
|
1047
188
|
|
|
1048
|
-
|
|
1049
|
-
/test && /commit && /push
|
|
1050
|
-
/lint --fix && /test && /review --strict
|
|
1051
|
-
```
|
|
189
|
+
> "Debug with me: the service grows from 150MB to 450MB in 10 minutes and crashes. Ask me questions to narrow it down."
|
|
1052
190
|
|
|
1053
|
-
|
|
191
|
+
Claude narrows it to event listeners that are never removed, writes a test that checks listener counts, confirms it fails, then fixes it.
|
|
1054
192
|
|
|
1055
|
-
|
|
1056
|
-
# Start with recording
|
|
1057
|
-
monomind pair --start --record
|
|
193
|
+
### TDD
|
|
1058
194
|
|
|
1059
|
-
|
|
1060
|
-
monomind pair --replay <session-id>
|
|
195
|
+
> "TDD the shopping cart: add, remove, update quantity, total, discount. Write one failing test at a time; I implement."
|
|
1061
196
|
|
|
1062
|
-
|
|
1063
|
-
monomind pair --analytics <session-id>
|
|
1064
|
-
```
|
|
197
|
+
### Refactoring (you drive)
|
|
1065
198
|
|
|
1066
|
-
|
|
199
|
+
> "I'm converting UserService.js from callbacks to async/await. Navigate: review each function as I change it and run the tests after each."
|
|
1067
200
|
|
|
1068
|
-
|
|
1069
|
-
```bash
|
|
1070
|
-
monomind pair --start --git --auto-commit
|
|
1071
|
-
```
|
|
201
|
+
### Performance
|
|
1072
202
|
|
|
1073
|
-
|
|
1074
|
-
```bash
|
|
1075
|
-
monomind pair --start --ci --non-interactive
|
|
1076
|
-
```
|
|
203
|
+
> "Pair on the slow /search endpoint. Profile first, then propose one change at a time with a before/after measurement."
|
|
1077
204
|
|
|
1078
|
-
|
|
1079
|
-
```bash
|
|
1080
|
-
monomind pair --start --ide vscode
|
|
1081
|
-
```
|
|
205
|
+
## Best Practices
|
|
1082
206
|
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
4. **Regular Testing** - Maintain quality continuously
|
|
1090
|
-
5. **Session Notes** - Document important decisions
|
|
1091
|
-
6. **Regular Breaks** - Take breaks every 45-60 minutes
|
|
1092
|
-
|
|
1093
|
-
#### Code Practices
|
|
1094
|
-
1. **Test Early** - Run tests after each change
|
|
1095
|
-
2. **Verify Before Commit** - Check truth scores
|
|
1096
|
-
3. **Review Security** - Always for sensitive code
|
|
1097
|
-
4. **Profile Performance** - Use `/perf` for optimization
|
|
1098
|
-
5. **Save Sessions** - For complex work
|
|
1099
|
-
6. **Learn from AI** - Ask questions frequently
|
|
1100
|
-
|
|
1101
|
-
#### Mode Selection
|
|
1102
|
-
- **Driver Mode**: When learning, controlling implementation
|
|
1103
|
-
- **Navigator Mode**: For rapid prototyping, generation
|
|
1104
|
-
- **Switch Mode**: Long sessions, balanced collaboration
|
|
1105
|
-
- **TDD Mode**: Building with tests
|
|
1106
|
-
- **Review Mode**: Quality focus
|
|
1107
|
-
- **Mentor Mode**: Learning priority
|
|
1108
|
-
- **Debug Mode**: Fixing issues
|
|
1109
|
-
|
|
1110
|
-
### Troubleshooting
|
|
1111
|
-
|
|
1112
|
-
#### Session Won't Start
|
|
1113
|
-
- Check agent availability
|
|
1114
|
-
- Verify configuration file syntax
|
|
1115
|
-
- Ensure clean workspace
|
|
1116
|
-
- Review log files
|
|
1117
|
-
|
|
1118
|
-
#### Session Disconnected
|
|
1119
|
-
- Use `--recover` to restore
|
|
1120
|
-
- Check network connection
|
|
1121
|
-
- Verify background processes
|
|
1122
|
-
- Review auto-save files
|
|
1123
|
-
|
|
1124
|
-
#### Poor Performance
|
|
1125
|
-
- Reduce verification threshold
|
|
1126
|
-
- Disable continuous testing
|
|
1127
|
-
- Check system resources
|
|
1128
|
-
- Use lighter AI model
|
|
1129
|
-
|
|
1130
|
-
#### Configuration Issues
|
|
1131
|
-
- Validate JSON syntax
|
|
1132
|
-
- Check file permissions
|
|
1133
|
-
- Review priority order (CLI > env > project > user > global)
|
|
1134
|
-
- Run `monomind pair config validate`
|
|
1135
|
-
|
|
1136
|
-
### Quality Metrics
|
|
1137
|
-
|
|
1138
|
-
#### Truth Score Thresholds
|
|
1139
|
-
```
|
|
1140
|
-
Error: < 0.90 ❌
|
|
1141
|
-
Warning: 0.90 - 0.95 ⚠️
|
|
1142
|
-
Good: 0.95 - 0.98 ✅
|
|
1143
|
-
Excellent: > 0.98 🌟
|
|
1144
|
-
```
|
|
207
|
+
1. **Clear goal and role** - state both at the start
|
|
208
|
+
2. **Small steps** - one reviewable change at a time
|
|
209
|
+
3. **Test continuously** - never stack untested changes
|
|
210
|
+
4. **Review before commit** - read the full diff together
|
|
211
|
+
5. **Record decisions** - `memory store` for anything the next session needs
|
|
212
|
+
6. **End with a recap** - what's done, what's decided, what's next
|
|
1145
213
|
|
|
1146
|
-
|
|
1147
|
-
```
|
|
1148
|
-
Error: < 70% ❌
|
|
1149
|
-
Warning: 70% - 80% ⚠️
|
|
1150
|
-
Good: 80% - 90% ✅
|
|
1151
|
-
Excellent: > 90% 🌟
|
|
1152
|
-
```
|
|
1153
|
-
|
|
1154
|
-
#### Complexity Thresholds
|
|
1155
|
-
```
|
|
1156
|
-
Error: > 15 ❌
|
|
1157
|
-
Warning: 10 - 15 ⚠️
|
|
1158
|
-
Good: 5 - 10 ✅
|
|
1159
|
-
Excellent: < 5 🌟
|
|
1160
|
-
```
|
|
214
|
+
## Anti-Patterns
|
|
1161
215
|
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
export CLAUDE_PAIR_THRESHOLD=0.98
|
|
1170
|
-
export CLAUDE_PAIR_AGENT=senior-dev
|
|
1171
|
-
export CLAUDE_PAIR_AUTO_TEST=true
|
|
1172
|
-
```
|
|
1173
|
-
|
|
1174
|
-
### Command History
|
|
1175
|
-
|
|
1176
|
-
Navigate history:
|
|
1177
|
-
- `↑/↓` - Navigate through command history
|
|
1178
|
-
- `Ctrl+R` - Search command history
|
|
1179
|
-
- `!!` - Repeat last command
|
|
1180
|
-
- `!<n>` - Run command n from history
|
|
1181
|
-
|
|
1182
|
-
### Keyboard Shortcuts (Configurable)
|
|
1183
|
-
|
|
1184
|
-
Default shortcuts:
|
|
1185
|
-
```json
|
|
1186
|
-
{
|
|
1187
|
-
"shortcuts": {
|
|
1188
|
-
"switch": "ctrl+shift+s",
|
|
1189
|
-
"suggest": "ctrl+space",
|
|
1190
|
-
"review": "ctrl+r",
|
|
1191
|
-
"test": "ctrl+t"
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
```
|
|
216
|
+
| Anti-pattern | Instead |
|
|
217
|
+
|---|---|
|
|
218
|
+
| Asking for five things at once | One step at a time |
|
|
219
|
+
| No upfront context | Set goal, mode, stack, constraints first |
|
|
220
|
+
| Accepting code without running it | Run tests after each change |
|
|
221
|
+
| Letting the session drift | Return to the stated goal |
|
|
222
|
+
| Skipping the recap | Always summarize before ending |
|
|
1195
223
|
|
|
1196
|
-
|
|
224
|
+
## Related
|
|
1197
225
|
|
|
1198
|
-
-
|
|
1199
|
-
- `
|
|
1200
|
-
- `
|
|
1201
|
-
- `monomind
|
|
1202
|
-
- `monomind pair agents` - List available agents
|
|
226
|
+
- `.claude/commands/pair/` - modes, session lifecycle, and examples
|
|
227
|
+
- `mastermind-debug`, `mastermind-review`, `mastermind-receive-review` skills
|
|
228
|
+
- `hooks-automation` skill - hook wiring and outcome recording
|
|
229
|
+
- `npx monomind memory --help`, `npx monomind session --help`, `npx monomind hooks --help`
|