@bonesofspring/ai-rules 0.2.80 → 0.2.84
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/CHANGELOG.md +50 -0
- package/bin/lib/merged-config.js +49 -0
- package/bin/lib/seed-ai-local-team.js +2 -0
- package/bin/mavis-install.js +53 -3
- package/docs/MAVIS-COMPATIBILITY.md +136 -8
- package/docs/PRESET-CONTRIBUTION.md +9 -0
- package/package.json +4 -1
- package/presets/_shared/ai-local/scripts/check-task-repositories.mjs +20 -2
- package/presets/_shared/ai-local/scripts/check-verification.mjs +13 -6
- package/presets/_shared/ai-local/scripts/rr-migrate-repositories.mjs +66 -16
- package/presets/_shared/ai-local/scripts/run-compact.mjs +38 -10
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -0
- package/presets/_shared/core/review/code-review-mr.md +19 -4
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +40 -0
- package/presets/_shared/hooks/compact-shell-output.mjs +16 -1
- package/presets/claude/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/claude/android-kotlin/commands/update.md +1 -0
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/claude/go/agents/code-reviewer.md +5 -1
- package/presets/claude/go/commands/update.md +1 -0
- package/presets/claude/go/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/go/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/go/skills/code-review/SKILL.md +2 -1
- package/presets/claude/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/claude/ios-swift/commands/update.md +1 -0
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/claude/java/agents/code-reviewer.md +5 -1
- package/presets/claude/java/commands/update.md +1 -0
- package/presets/claude/java/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/java/skills/code-review/SKILL.md +2 -1
- package/presets/claude/mcp-ts/commands/update.md +1 -0
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/mol/REPO_AGENTS.md +1 -1
- package/presets/claude/mol/agents/code-reviewer.md +5 -1
- package/presets/claude/mol/agents/task-router.md +1 -1
- package/presets/claude/mol/commands/update.md +1 -0
- package/presets/claude/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/mol/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/mol/skills/code-review/SKILL.md +2 -1
- package/presets/claude/next/REPO_AGENTS.md +1 -1
- package/presets/claude/next/agents/code-reviewer.md +5 -1
- package/presets/claude/next/agents/task-router.md +1 -1
- package/presets/claude/next/commands/update.md +1 -0
- package/presets/claude/next/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/next/skills/code-review/SKILL.md +2 -1
- package/presets/claude/nuxt/agents/code-reviewer.md +5 -1
- package/presets/claude/nuxt/agents/task-router.md +1 -1
- package/presets/claude/nuxt/commands/update.md +1 -0
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/nuxt/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/claude/php-hexagonal/commands/update.md +1 -0
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/claude/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/claude/php-laravel/commands/update.md +1 -0
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/code-review.md +19 -4
- package/presets/claude/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/claude/svelte/agents/code-reviewer.md +5 -1
- package/presets/claude/svelte/agents/task-router.md +1 -1
- package/presets/claude/svelte/commands/update.md +1 -0
- package/presets/claude/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +1 -0
- package/presets/claude/svelte/rules/tooling-and-review/code-review-mr.md +19 -4
- package/presets/claude/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/cursor/android-kotlin/commands/update.md +1 -0
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/android-kotlin/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/android-kotlin/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/go/agents/code-reviewer.md +5 -1
- package/presets/cursor/go/commands/update.md +1 -0
- package/presets/cursor/go/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/go/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/go/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/go/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/cursor/ios-swift/commands/update.md +1 -0
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/ios-swift/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/ios-swift/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/java/agents/code-reviewer.md +5 -1
- package/presets/cursor/java/commands/update.md +1 -0
- package/presets/cursor/java/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/java/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/java/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/java/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/mcp-ts/commands/update.md +1 -0
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/mcp-ts/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/mcp-ts/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/mol/REPO_AGENTS.md +1 -1
- package/presets/cursor/mol/agents/code-reviewer.md +5 -1
- package/presets/cursor/mol/agents/task-router.md +1 -1
- package/presets/cursor/mol/commands/update.md +1 -0
- package/presets/cursor/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/mol/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/mol/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/mol/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/next/REPO_AGENTS.md +1 -1
- package/presets/cursor/next/agents/code-reviewer.md +5 -1
- package/presets/cursor/next/agents/task-router.md +1 -1
- package/presets/cursor/next/commands/update.md +1 -0
- package/presets/cursor/next/hooks/README.md +2 -0
- package/presets/cursor/next/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/next/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/next/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/next/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/nuxt/agents/code-reviewer.md +5 -1
- package/presets/cursor/nuxt/agents/task-router.md +1 -1
- package/presets/cursor/nuxt/commands/update.md +1 -0
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/nuxt/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/nuxt/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/cursor/php-hexagonal/commands/update.md +1 -0
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/php-hexagonal/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/php-hexagonal/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/cursor/php-laravel/commands/update.md +1 -0
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/php-laravel/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/php-laravel/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/cursor/svelte/agents/code-reviewer.md +5 -1
- package/presets/cursor/svelte/agents/task-router.md +1 -1
- package/presets/cursor/svelte/commands/update.md +1 -0
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/cursor/svelte/hooks/compact-shell-output.mjs +16 -1
- package/presets/cursor/svelte/rules/code-review-mr.mdc +19 -4
- package/presets/cursor/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/android-kotlin/MAVIS.md +9 -3
- package/presets/mavis/android-kotlin/README.md +3 -1
- package/presets/mavis/android-kotlin/adapter-map.json +104 -44
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/mavis/android-kotlin/commands/update.md +1 -0
- package/presets/mavis/android-kotlin/hooks/README.md +29 -7
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/android-kotlin/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/android-kotlin/hooks/run-hook.mjs +103 -0
- package/presets/mavis/android-kotlin/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/android-kotlin/native-skills/README.md +15 -0
- package/presets/mavis/android-kotlin/native-skills/ci-investigation/SKILL.md +53 -0
- package/presets/mavis/android-kotlin/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/android-kotlin/native-skills/debug-investigation/SKILL.md +72 -0
- package/presets/mavis/android-kotlin/native-skills/feature-delivery/SKILL.md +51 -0
- package/presets/mavis/android-kotlin/native-skills/instrumentation-ui-e2e/SKILL.md +23 -0
- package/presets/mavis/android-kotlin/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/android-kotlin/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/android-kotlin/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/android-kotlin/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/android-kotlin/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/android-kotlin/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/android-kotlin/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/android-kotlin/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/android-kotlin/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/android-kotlin/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/android-kotlin/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/android-kotlin/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/android-kotlin/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/android-kotlin/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/mavis/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/go/MAVIS.md +9 -3
- package/presets/mavis/go/README.md +3 -1
- package/presets/mavis/go/adapter-map.json +94 -40
- package/presets/mavis/go/agents/code-reviewer.md +5 -1
- package/presets/mavis/go/commands/update.md +1 -0
- package/presets/mavis/go/hooks/README.md +29 -7
- package/presets/mavis/go/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/go/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/go/hooks/run-hook.mjs +103 -0
- package/presets/mavis/go/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/go/native-skills/README.md +15 -0
- package/presets/mavis/go/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/go/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/go/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/go/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/go/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/go/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/go/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/go/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/go/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/go/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/go/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/go/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/go/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/go/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/go/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/go/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/go/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/go/rules/code-review-mr.md +19 -4
- package/presets/mavis/go/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/ios-swift/MAVIS.md +9 -3
- package/presets/mavis/ios-swift/README.md +3 -1
- package/presets/mavis/ios-swift/adapter-map.json +104 -44
- package/presets/mavis/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/mavis/ios-swift/commands/update.md +1 -0
- package/presets/mavis/ios-swift/hooks/README.md +29 -7
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/ios-swift/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/ios-swift/hooks/run-hook.mjs +103 -0
- package/presets/mavis/ios-swift/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/ios-swift/native-skills/README.md +15 -0
- package/presets/mavis/ios-swift/native-skills/ci-investigation/SKILL.md +53 -0
- package/presets/mavis/ios-swift/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/ios-swift/native-skills/debug-investigation/SKILL.md +72 -0
- package/presets/mavis/ios-swift/native-skills/feature-delivery/SKILL.md +51 -0
- package/presets/mavis/ios-swift/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/ios-swift/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/ios-swift/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/ios-swift/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/ios-swift/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/ios-swift/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/ios-swift/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/ios-swift/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/ios-swift/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/ios-swift/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/ios-swift/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/ios-swift/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/ios-swift/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/ios-swift/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/ios-swift/native-skills/xcuitest-e2e/SKILL.md +39 -0
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/mavis/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/java/MAVIS.md +9 -3
- package/presets/mavis/java/README.md +3 -1
- package/presets/mavis/java/adapter-map.json +94 -40
- package/presets/mavis/java/agents/code-reviewer.md +5 -1
- package/presets/mavis/java/commands/update.md +1 -0
- package/presets/mavis/java/hooks/README.md +29 -7
- package/presets/mavis/java/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/java/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/java/hooks/run-hook.mjs +103 -0
- package/presets/mavis/java/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/java/native-skills/README.md +15 -0
- package/presets/mavis/java/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/java/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/java/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/java/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/java/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/java/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/java/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/java/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/java/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/java/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/java/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/java/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/java/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/java/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/java/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/java/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/java/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/java/rules/code-review-mr.md +19 -4
- package/presets/mavis/java/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/mcp-ts/MAVIS.md +9 -3
- package/presets/mavis/mcp-ts/README.md +3 -1
- package/presets/mavis/mcp-ts/adapter-map.json +77 -32
- package/presets/mavis/mcp-ts/commands/update.md +1 -0
- package/presets/mavis/mcp-ts/hooks/README.md +29 -7
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/mcp-ts/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/mcp-ts/hooks/run-hook.mjs +103 -0
- package/presets/mavis/mcp-ts/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/mcp-ts/native-skills/README.md +15 -0
- package/presets/mavis/mcp-ts/native-skills/code-review/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/debug-investigation/SKILL.md +51 -0
- package/presets/mavis/mcp-ts/native-skills/feature-delivery/SKILL.md +42 -0
- package/presets/mavis/mcp-ts/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/mcp-ts/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/mcp-ts/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/mcp-ts/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/mcp-ts/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/mcp-ts/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/mcp-ts/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/mcp-ts/native-skills/technical-retro/SKILL.md +95 -0
- package/presets/mavis/mcp-ts/native-skills/unit-testing/SKILL.md +22 -0
- package/presets/mavis/mcp-ts/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/mavis/mol/MAVIS.md +9 -3
- package/presets/mavis/mol/README.md +3 -1
- package/presets/mavis/mol/REPO_AGENTS.md +1 -1
- package/presets/mavis/mol/adapter-map.json +94 -40
- package/presets/mavis/mol/agents/code-reviewer.md +5 -1
- package/presets/mavis/mol/agents/task-router.md +1 -1
- package/presets/mavis/mol/commands/update.md +1 -0
- package/presets/mavis/mol/hooks/README.md +29 -7
- package/presets/mavis/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/mol/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/mol/hooks/run-hook.mjs +103 -0
- package/presets/mavis/mol/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/mol/native-skills/README.md +15 -0
- package/presets/mavis/mol/native-skills/ci-investigation/SKILL.md +49 -0
- package/presets/mavis/mol/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/mol/native-skills/debug-investigation/SKILL.md +63 -0
- package/presets/mavis/mol/native-skills/feature-delivery/SKILL.md +44 -0
- package/presets/mavis/mol/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/mol/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/mol/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/mol/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/mol/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/mol/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/mol/native-skills/task/SKILL.md +82 -0
- package/presets/mavis/mol/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/mol/native-skills/task-evil/SKILL.md +89 -0
- package/presets/mavis/mol/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/mol/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/mol/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/mol/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/mol/rules/code-review-mr.md +19 -4
- package/presets/mavis/mol/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/next/MAVIS.md +9 -3
- package/presets/mavis/next/README.md +3 -1
- package/presets/mavis/next/REPO_AGENTS.md +1 -1
- package/presets/mavis/next/adapter-map.json +128 -53
- package/presets/mavis/next/agents/code-reviewer.md +5 -1
- package/presets/mavis/next/agents/task-router.md +1 -1
- package/presets/mavis/next/commands/update.md +1 -0
- package/presets/mavis/next/hooks/README.md +29 -7
- package/presets/mavis/next/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/next/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/next/hooks/run-hook.mjs +103 -0
- package/presets/mavis/next/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/next/native-skills/README.md +15 -0
- package/presets/mavis/next/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/next/native-skills/code-review/SKILL.md +62 -0
- package/presets/mavis/next/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/next/native-skills/feature-delivery/SKILL.md +45 -0
- package/presets/mavis/next/native-skills/figma-fidelity/SKILL.md +131 -0
- package/presets/mavis/next/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/next/native-skills/mockup-review/SKILL.md +44 -0
- package/presets/mavis/next/native-skills/playwright-e2e/SKILL.md +39 -0
- package/presets/mavis/next/native-skills/react-performance/SKILL.md +49 -0
- package/presets/mavis/next/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/next/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/next/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/next/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/next/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/next/native-skills/task/SKILL.md +88 -0
- package/presets/mavis/next/native-skills/task-continue/SKILL.md +87 -0
- package/presets/mavis/next/native-skills/task-evil/SKILL.md +89 -0
- package/presets/mavis/next/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/next/native-skills/ui-start/SKILL.md +64 -0
- package/presets/mavis/next/native-skills/ui-stop/SKILL.md +48 -0
- package/presets/mavis/next/native-skills/unit-testing/SKILL.md +40 -0
- package/presets/mavis/next/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/next/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/next/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/next/rules/code-review-mr.md +19 -4
- package/presets/mavis/next/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/nuxt/MAVIS.md +9 -3
- package/presets/mavis/nuxt/README.md +3 -1
- package/presets/mavis/nuxt/adapter-map.json +109 -46
- package/presets/mavis/nuxt/agents/code-reviewer.md +5 -1
- package/presets/mavis/nuxt/agents/task-router.md +1 -1
- package/presets/mavis/nuxt/commands/update.md +1 -0
- package/presets/mavis/nuxt/hooks/README.md +29 -7
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/nuxt/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/nuxt/hooks/run-hook.mjs +103 -0
- package/presets/mavis/nuxt/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/nuxt/native-skills/README.md +15 -0
- package/presets/mavis/nuxt/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/nuxt/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/nuxt/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/nuxt/native-skills/feature-delivery/SKILL.md +52 -0
- package/presets/mavis/nuxt/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/nuxt/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/nuxt/native-skills/playwright-e2e/SKILL.md +43 -0
- package/presets/mavis/nuxt/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/nuxt/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/nuxt/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/nuxt/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/nuxt/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/nuxt/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/nuxt/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/nuxt/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/nuxt/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/nuxt/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/nuxt/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/nuxt/native-skills/vue-performance/SKILL.md +58 -0
- package/presets/mavis/nuxt/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/nuxt/rules/code-review-mr.md +19 -4
- package/presets/mavis/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/php-hexagonal/MAVIS.md +9 -3
- package/presets/mavis/php-hexagonal/README.md +3 -1
- package/presets/mavis/php-hexagonal/adapter-map.json +94 -40
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/mavis/php-hexagonal/commands/update.md +1 -0
- package/presets/mavis/php-hexagonal/hooks/README.md +29 -7
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/php-hexagonal/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/php-hexagonal/hooks/run-hook.mjs +103 -0
- package/presets/mavis/php-hexagonal/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/php-hexagonal/native-skills/README.md +15 -0
- package/presets/mavis/php-hexagonal/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/php-hexagonal/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/php-hexagonal/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/php-hexagonal/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/php-hexagonal/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/php-hexagonal/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/php-hexagonal/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/php-hexagonal/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/php-hexagonal/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/php-hexagonal/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/php-hexagonal/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/php-hexagonal/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/php-hexagonal/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/php-hexagonal/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/php-hexagonal/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/mavis/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/php-laravel/MAVIS.md +9 -3
- package/presets/mavis/php-laravel/README.md +3 -1
- package/presets/mavis/php-laravel/adapter-map.json +94 -40
- package/presets/mavis/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/mavis/php-laravel/commands/update.md +1 -0
- package/presets/mavis/php-laravel/hooks/README.md +29 -7
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/php-laravel/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/php-laravel/hooks/run-hook.mjs +103 -0
- package/presets/mavis/php-laravel/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/php-laravel/native-skills/README.md +15 -0
- package/presets/mavis/php-laravel/native-skills/ci-investigation/SKILL.md +24 -0
- package/presets/mavis/php-laravel/native-skills/code-review/SKILL.md +48 -0
- package/presets/mavis/php-laravel/native-skills/debug-investigation/SKILL.md +55 -0
- package/presets/mavis/php-laravel/native-skills/feature-delivery/SKILL.md +43 -0
- package/presets/mavis/php-laravel/native-skills/integration-testing/SKILL.md +21 -0
- package/presets/mavis/php-laravel/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/php-laravel/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/php-laravel/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/php-laravel/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/php-laravel/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/php-laravel/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/php-laravel/native-skills/task/SKILL.md +77 -0
- package/presets/mavis/php-laravel/native-skills/task-continue/SKILL.md +72 -0
- package/presets/mavis/php-laravel/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/php-laravel/native-skills/unit-testing/SKILL.md +20 -0
- package/presets/mavis/php-laravel/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/php-laravel/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/mavis/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/mavis/platform-contract.json +18 -5
- package/presets/mavis/svelte/MAVIS.md +9 -3
- package/presets/mavis/svelte/README.md +3 -1
- package/presets/mavis/svelte/adapter-map.json +109 -46
- package/presets/mavis/svelte/agents/code-reviewer.md +5 -1
- package/presets/mavis/svelte/agents/task-router.md +1 -1
- package/presets/mavis/svelte/commands/update.md +1 -0
- package/presets/mavis/svelte/hooks/README.md +29 -7
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/mavis/svelte/hooks/mavis-chain-hook.mjs +143 -0
- package/presets/mavis/svelte/hooks/run-hook.mjs +103 -0
- package/presets/mavis/svelte/minimax-hooks/hooks.json +28 -0
- package/presets/mavis/svelte/native-skills/README.md +15 -0
- package/presets/mavis/svelte/native-skills/ci-investigation/SKILL.md +50 -0
- package/presets/mavis/svelte/native-skills/code-review/SKILL.md +61 -0
- package/presets/mavis/svelte/native-skills/debug-investigation/SKILL.md +64 -0
- package/presets/mavis/svelte/native-skills/feature-delivery/SKILL.md +52 -0
- package/presets/mavis/svelte/native-skills/migrate-tasks/SKILL.md +43 -0
- package/presets/mavis/svelte/native-skills/mockup-review/SKILL.md +34 -0
- package/presets/mavis/svelte/native-skills/playwright-e2e/SKILL.md +43 -0
- package/presets/mavis/svelte/native-skills/rr-migrate-repositories/SKILL.md +61 -0
- package/presets/mavis/svelte/native-skills/rr-scheduler-start/SKILL.md +34 -0
- package/presets/mavis/svelte/native-skills/spec-authoring/SKILL.md +31 -0
- package/presets/mavis/svelte/native-skills/spec-discovery/SKILL.md +63 -0
- package/presets/mavis/svelte/native-skills/spec-start/SKILL.md +31 -0
- package/presets/mavis/svelte/native-skills/svelte-performance/SKILL.md +57 -0
- package/presets/mavis/svelte/native-skills/task/SKILL.md +79 -0
- package/presets/mavis/svelte/native-skills/task-continue/SKILL.md +74 -0
- package/presets/mavis/svelte/native-skills/technical-retro/SKILL.md +72 -0
- package/presets/mavis/svelte/native-skills/unit-testing/SKILL.md +38 -0
- package/presets/mavis/svelte/native-skills/update/SKILL.md +44 -0
- package/presets/mavis/svelte/native-skills/ux-design/SKILL.md +41 -0
- package/presets/mavis/svelte/native-skills/write-adr/SKILL.md +46 -0
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/mavis/svelte/rules/code-review-mr.md +19 -4
- package/presets/mavis/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/opencode/android-kotlin/commands/update.md +1 -0
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/opencode/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/agents/code-reviewer.md +5 -1
- package/presets/opencode/go/commands/update.md +1 -0
- package/presets/opencode/go/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/go/rules/code-review-mr.md +19 -4
- package/presets/opencode/go/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/opencode/ios-swift/commands/update.md +1 -0
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/opencode/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/agents/code-reviewer.md +5 -1
- package/presets/opencode/java/commands/update.md +1 -0
- package/presets/opencode/java/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/java/rules/code-review-mr.md +19 -4
- package/presets/opencode/java/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/commands/update.md +1 -0
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/opencode/mol/REPO_AGENTS.md +1 -1
- package/presets/opencode/mol/adapter-map.json +1 -1
- package/presets/opencode/mol/agents/code-reviewer.md +5 -1
- package/presets/opencode/mol/agents/task-router.md +1 -1
- package/presets/opencode/mol/commands/update.md +1 -0
- package/presets/opencode/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/mol/rules/code-review-mr.md +19 -4
- package/presets/opencode/mol/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/next/REPO_AGENTS.md +1 -1
- package/presets/opencode/next/adapter-map.json +1 -1
- package/presets/opencode/next/agents/code-reviewer.md +5 -1
- package/presets/opencode/next/agents/task-router.md +1 -1
- package/presets/opencode/next/commands/update.md +1 -0
- package/presets/opencode/next/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/next/rules/code-review-mr.md +19 -4
- package/presets/opencode/next/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/opencode/nuxt/agents/task-router.md +1 -1
- package/presets/opencode/nuxt/commands/update.md +1 -0
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/nuxt/rules/code-review-mr.md +19 -4
- package/presets/opencode/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-hexagonal/commands/update.md +1 -0
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/opencode/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/opencode/php-laravel/commands/update.md +1 -0
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/opencode/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/opencode/plugins/task-status/README.md +3 -2
- package/presets/opencode/plugins/task-status/deepseek.ts +58 -34
- package/presets/opencode/plugins/task-status/tui.tsx +17 -17
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +5 -1
- package/presets/opencode/svelte/agents/task-router.md +1 -1
- package/presets/opencode/svelte/commands/update.md +1 -0
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/opencode/svelte/rules/code-review-mr.md +19 -4
- package/presets/opencode/svelte/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/android-kotlin/adapter-map.json +1 -1
- package/presets/zcode/android-kotlin/agents/code-reviewer.md +5 -1
- package/presets/zcode/android-kotlin/commands/update.md +1 -0
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/android-kotlin/rules/code-review-mr.md +19 -4
- package/presets/zcode/android-kotlin/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/go/adapter-map.json +1 -1
- package/presets/zcode/go/agents/code-reviewer.md +5 -1
- package/presets/zcode/go/commands/update.md +1 -0
- package/presets/zcode/go/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/go/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/go/rules/code-review-mr.md +19 -4
- package/presets/zcode/go/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/ios-swift/adapter-map.json +1 -1
- package/presets/zcode/ios-swift/agents/code-reviewer.md +5 -1
- package/presets/zcode/ios-swift/commands/update.md +1 -0
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/ios-swift/rules/code-review-mr.md +19 -4
- package/presets/zcode/ios-swift/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/java/adapter-map.json +1 -1
- package/presets/zcode/java/agents/code-reviewer.md +5 -1
- package/presets/zcode/java/commands/update.md +1 -0
- package/presets/zcode/java/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/java/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/java/rules/code-review-mr.md +19 -4
- package/presets/zcode/java/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/mcp-ts/adapter-map.json +1 -1
- package/presets/zcode/mcp-ts/commands/update.md +1 -0
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/mcp-ts/rules/code-review-mr.md +19 -4
- package/presets/zcode/mol/REPO_AGENTS.md +1 -1
- package/presets/zcode/mol/adapter-map.json +1 -1
- package/presets/zcode/mol/agents/code-reviewer.md +5 -1
- package/presets/zcode/mol/agents/task-router.md +1 -1
- package/presets/zcode/mol/commands/update.md +1 -0
- package/presets/zcode/mol/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/mol/rules/code-review-mr.md +19 -4
- package/presets/zcode/mol/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/next/REPO_AGENTS.md +1 -1
- package/presets/zcode/next/adapter-map.json +1 -1
- package/presets/zcode/next/agents/code-reviewer.md +5 -1
- package/presets/zcode/next/agents/task-router.md +1 -1
- package/presets/zcode/next/commands/update.md +1 -0
- package/presets/zcode/next/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/next/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/next/rules/code-review-mr.md +19 -4
- package/presets/zcode/next/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/nuxt/adapter-map.json +1 -1
- package/presets/zcode/nuxt/agents/code-reviewer.md +5 -1
- package/presets/zcode/nuxt/agents/task-router.md +1 -1
- package/presets/zcode/nuxt/commands/update.md +1 -0
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/nuxt/rules/code-review-mr.md +19 -4
- package/presets/zcode/nuxt/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
- package/presets/zcode/php-hexagonal/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-hexagonal/commands/update.md +1 -0
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/php-hexagonal/rules/code-review-mr.md +19 -4
- package/presets/zcode/php-hexagonal/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/php-laravel/adapter-map.json +1 -1
- package/presets/zcode/php-laravel/agents/code-reviewer.md +5 -1
- package/presets/zcode/php-laravel/commands/update.md +1 -0
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/php-laravel/rules/code-review-mr.md +19 -4
- package/presets/zcode/php-laravel/skills/code-review/SKILL.md +2 -1
- package/presets/zcode/svelte/adapter-map.json +1 -1
- package/presets/zcode/svelte/agents/code-reviewer.md +5 -1
- package/presets/zcode/svelte/agents/task-router.md +1 -1
- package/presets/zcode/svelte/commands/update.md +1 -0
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +40 -0
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +1 -0
- package/presets/zcode/svelte/rules/code-review-mr.md +19 -4
- package/presets/zcode/svelte/skills/code-review/SKILL.md +2 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "mavis",
|
|
4
4
|
"stack": "mcp-ts",
|
|
5
5
|
"semanticSource": "cursor/mcp-ts",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "6089ac2e53414aa8feab6ba6ecd0d9f2557b799b8c5b00fea91fe6233ddb0cd9",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -105,7 +105,10 @@
|
|
|
105
105
|
"category": "commands",
|
|
106
106
|
"disposition": "transform",
|
|
107
107
|
"loadMode": "manual",
|
|
108
|
-
"reason": "
|
|
108
|
+
"reason": "Procedure file plus a native MiniMax skill copy: MiniMax Code discovers skills, not host command files",
|
|
109
|
+
"extraTargets": [
|
|
110
|
+
"native-skills/migrate-tasks/SKILL.md"
|
|
111
|
+
]
|
|
109
112
|
},
|
|
110
113
|
{
|
|
111
114
|
"source": "commands/rr-migrate-repositories.md",
|
|
@@ -113,7 +116,10 @@
|
|
|
113
116
|
"category": "commands",
|
|
114
117
|
"disposition": "transform",
|
|
115
118
|
"loadMode": "manual",
|
|
116
|
-
"reason": "
|
|
119
|
+
"reason": "Procedure file plus a native MiniMax skill copy: MiniMax Code discovers skills, not host command files",
|
|
120
|
+
"extraTargets": [
|
|
121
|
+
"native-skills/rr-migrate-repositories/SKILL.md"
|
|
122
|
+
]
|
|
117
123
|
},
|
|
118
124
|
{
|
|
119
125
|
"source": "commands/rr-scheduler-start.md",
|
|
@@ -121,7 +127,10 @@
|
|
|
121
127
|
"category": "commands",
|
|
122
128
|
"disposition": "transform",
|
|
123
129
|
"loadMode": "manual",
|
|
124
|
-
"reason": "
|
|
130
|
+
"reason": "Procedure file plus a native MiniMax skill copy: MiniMax Code discovers skills, not host command files",
|
|
131
|
+
"extraTargets": [
|
|
132
|
+
"native-skills/rr-scheduler-start/SKILL.md"
|
|
133
|
+
]
|
|
125
134
|
},
|
|
126
135
|
{
|
|
127
136
|
"source": "commands/spec-start.md",
|
|
@@ -129,7 +138,10 @@
|
|
|
129
138
|
"category": "commands",
|
|
130
139
|
"disposition": "transform",
|
|
131
140
|
"loadMode": "manual",
|
|
132
|
-
"reason": "
|
|
141
|
+
"reason": "Procedure file plus a native MiniMax skill copy: MiniMax Code discovers skills, not host command files",
|
|
142
|
+
"extraTargets": [
|
|
143
|
+
"native-skills/spec-start/SKILL.md"
|
|
144
|
+
]
|
|
133
145
|
},
|
|
134
146
|
{
|
|
135
147
|
"source": "commands/task-continue.md",
|
|
@@ -137,7 +149,10 @@
|
|
|
137
149
|
"category": "commands",
|
|
138
150
|
"disposition": "transform",
|
|
139
151
|
"loadMode": "manual",
|
|
140
|
-
"reason": "
|
|
152
|
+
"reason": "Procedure file plus a native MiniMax skill copy: MiniMax Code discovers skills, not host command files",
|
|
153
|
+
"extraTargets": [
|
|
154
|
+
"native-skills/task-continue/SKILL.md"
|
|
155
|
+
]
|
|
141
156
|
},
|
|
142
157
|
{
|
|
143
158
|
"source": "commands/task.md",
|
|
@@ -145,8 +160,11 @@
|
|
|
145
160
|
"category": "commands",
|
|
146
161
|
"disposition": "transform",
|
|
147
162
|
"loadMode": "manual",
|
|
148
|
-
"reason": "
|
|
149
|
-
"sharedCoreStem": "quality/anti-hallucination-load-line.md"
|
|
163
|
+
"reason": "Procedure file plus a native MiniMax skill copy: MiniMax Code discovers skills, not host command files",
|
|
164
|
+
"sharedCoreStem": "quality/anti-hallucination-load-line.md",
|
|
165
|
+
"extraTargets": [
|
|
166
|
+
"native-skills/task/SKILL.md"
|
|
167
|
+
]
|
|
150
168
|
},
|
|
151
169
|
{
|
|
152
170
|
"source": "commands/technical-retro.md",
|
|
@@ -154,7 +172,10 @@
|
|
|
154
172
|
"category": "commands",
|
|
155
173
|
"disposition": "transform",
|
|
156
174
|
"loadMode": "manual",
|
|
157
|
-
"reason": "
|
|
175
|
+
"reason": "Procedure file plus a native MiniMax skill copy: MiniMax Code discovers skills, not host command files",
|
|
176
|
+
"extraTargets": [
|
|
177
|
+
"native-skills/technical-retro/SKILL.md"
|
|
178
|
+
]
|
|
158
179
|
},
|
|
159
180
|
{
|
|
160
181
|
"source": "commands/update.md",
|
|
@@ -162,15 +183,18 @@
|
|
|
162
183
|
"category": "commands",
|
|
163
184
|
"disposition": "transform",
|
|
164
185
|
"loadMode": "manual",
|
|
165
|
-
"reason": "
|
|
186
|
+
"reason": "Procedure file plus a native MiniMax skill copy: MiniMax Code discovers skills, not host command files",
|
|
187
|
+
"extraTargets": [
|
|
188
|
+
"native-skills/update/SKILL.md"
|
|
189
|
+
]
|
|
166
190
|
},
|
|
167
191
|
{
|
|
168
192
|
"source": "hooks.json",
|
|
169
|
-
"target":
|
|
193
|
+
"target": "minimax-hooks/hooks.json",
|
|
170
194
|
"category": "hooks",
|
|
171
|
-
"disposition": "
|
|
172
|
-
"loadMode": "
|
|
173
|
-
"reason": "
|
|
195
|
+
"disposition": "transform",
|
|
196
|
+
"loadMode": "native-hook",
|
|
197
|
+
"reason": "MiniMax Code reads project hooks from <project>/.minimax/hooks.json; the Cursor document is rewritten into the MiniMax event format"
|
|
174
198
|
},
|
|
175
199
|
{
|
|
176
200
|
"source": "hooks/chain-team-phases.sh",
|
|
@@ -194,7 +218,7 @@
|
|
|
194
218
|
"category": "hooks",
|
|
195
219
|
"disposition": "omit",
|
|
196
220
|
"loadMode": "not-installed",
|
|
197
|
-
"reason": "omit: Cursor preToolUse rewrite; the large-output guard
|
|
221
|
+
"reason": "omit: Cursor preToolUse rewrite; the large-output guard is not wired on MiniMax"
|
|
198
222
|
},
|
|
199
223
|
{
|
|
200
224
|
"source": "hooks/examples/format-edited.example.sh",
|
|
@@ -226,7 +250,7 @@
|
|
|
226
250
|
"category": "hooks",
|
|
227
251
|
"disposition": "omit",
|
|
228
252
|
"loadMode": "not-installed",
|
|
229
|
-
"reason": "omit
|
|
253
|
+
"reason": "omit: the MiniMax PreToolUse event exists, but a tool-blocking guard is a behaviour change; the safety policy stays in entry prose"
|
|
230
254
|
},
|
|
231
255
|
{
|
|
232
256
|
"source": "hooks/list-ai-local.mjs",
|
|
@@ -238,11 +262,14 @@
|
|
|
238
262
|
},
|
|
239
263
|
{
|
|
240
264
|
"source": "hooks/run-hook.mjs",
|
|
241
|
-
"target":
|
|
265
|
+
"target": "hooks/run-hook.mjs",
|
|
242
266
|
"category": "hooks",
|
|
243
|
-
"disposition": "
|
|
244
|
-
"loadMode": "
|
|
245
|
-
"reason": "
|
|
267
|
+
"disposition": "transform",
|
|
268
|
+
"loadMode": "manual",
|
|
269
|
+
"reason": "Chain-hook launcher invoked by the native MiniMax SubagentStop hook and by the manual fallback",
|
|
270
|
+
"extraTargets": [
|
|
271
|
+
"hooks/mavis-chain-hook.mjs"
|
|
272
|
+
]
|
|
246
273
|
},
|
|
247
274
|
{
|
|
248
275
|
"source": "mcp.json",
|
|
@@ -560,8 +587,11 @@
|
|
|
560
587
|
"category": "skills",
|
|
561
588
|
"disposition": "transform",
|
|
562
589
|
"loadMode": "referenced",
|
|
563
|
-
"reason": "
|
|
564
|
-
"sharedCoreStem": "quality/anti-hallucination-load-line.md"
|
|
590
|
+
"reason": "Skill metadata is kept (name/description) and the file is republished in the native MiniMax skill root",
|
|
591
|
+
"sharedCoreStem": "quality/anti-hallucination-load-line.md",
|
|
592
|
+
"extraTargets": [
|
|
593
|
+
"native-skills/code-review/SKILL.md"
|
|
594
|
+
]
|
|
565
595
|
},
|
|
566
596
|
{
|
|
567
597
|
"source": "skills/debug-investigation/SKILL.md",
|
|
@@ -569,8 +599,11 @@
|
|
|
569
599
|
"category": "skills",
|
|
570
600
|
"disposition": "transform",
|
|
571
601
|
"loadMode": "referenced",
|
|
572
|
-
"reason": "
|
|
573
|
-
"sharedCoreStem": "quality/debug-investigation.md"
|
|
602
|
+
"reason": "Skill metadata is kept (name/description) and the file is republished in the native MiniMax skill root",
|
|
603
|
+
"sharedCoreStem": "quality/debug-investigation.md",
|
|
604
|
+
"extraTargets": [
|
|
605
|
+
"native-skills/debug-investigation/SKILL.md"
|
|
606
|
+
]
|
|
574
607
|
},
|
|
575
608
|
{
|
|
576
609
|
"source": "skills/feature-delivery/SKILL.md",
|
|
@@ -578,8 +611,11 @@
|
|
|
578
611
|
"category": "skills",
|
|
579
612
|
"disposition": "transform",
|
|
580
613
|
"loadMode": "referenced",
|
|
581
|
-
"reason": "
|
|
582
|
-
"sharedCoreStem": "quality/anti-hallucination-load-line.md"
|
|
614
|
+
"reason": "Skill metadata is kept (name/description) and the file is republished in the native MiniMax skill root",
|
|
615
|
+
"sharedCoreStem": "quality/anti-hallucination-load-line.md",
|
|
616
|
+
"extraTargets": [
|
|
617
|
+
"native-skills/feature-delivery/SKILL.md"
|
|
618
|
+
]
|
|
583
619
|
},
|
|
584
620
|
{
|
|
585
621
|
"source": "skills/spec-authoring/SKILL.md",
|
|
@@ -587,8 +623,11 @@
|
|
|
587
623
|
"category": "skills",
|
|
588
624
|
"disposition": "transform",
|
|
589
625
|
"loadMode": "referenced",
|
|
590
|
-
"reason": "
|
|
591
|
-
"sharedCoreStem": "quality/anti-hallucination-load-line.md"
|
|
626
|
+
"reason": "Skill metadata is kept (name/description) and the file is republished in the native MiniMax skill root",
|
|
627
|
+
"sharedCoreStem": "quality/anti-hallucination-load-line.md",
|
|
628
|
+
"extraTargets": [
|
|
629
|
+
"native-skills/spec-authoring/SKILL.md"
|
|
630
|
+
]
|
|
592
631
|
},
|
|
593
632
|
{
|
|
594
633
|
"source": "skills/spec-discovery/SKILL.md",
|
|
@@ -596,8 +635,11 @@
|
|
|
596
635
|
"category": "skills",
|
|
597
636
|
"disposition": "transform",
|
|
598
637
|
"loadMode": "referenced",
|
|
599
|
-
"reason": "
|
|
600
|
-
"sharedCoreStem": "quality/anti-hallucination-load-line.md"
|
|
638
|
+
"reason": "Skill metadata is kept (name/description) and the file is republished in the native MiniMax skill root",
|
|
639
|
+
"sharedCoreStem": "quality/anti-hallucination-load-line.md",
|
|
640
|
+
"extraTargets": [
|
|
641
|
+
"native-skills/spec-discovery/SKILL.md"
|
|
642
|
+
]
|
|
601
643
|
},
|
|
602
644
|
{
|
|
603
645
|
"source": "skills/unit-testing/SKILL.md",
|
|
@@ -605,8 +647,11 @@
|
|
|
605
647
|
"category": "skills",
|
|
606
648
|
"disposition": "transform",
|
|
607
649
|
"loadMode": "referenced",
|
|
608
|
-
"reason": "
|
|
609
|
-
"sharedCoreStem": "quality/anti-hallucination-load-line.md"
|
|
650
|
+
"reason": "Skill metadata is kept (name/description) and the file is republished in the native MiniMax skill root",
|
|
651
|
+
"sharedCoreStem": "quality/anti-hallucination-load-line.md",
|
|
652
|
+
"extraTargets": [
|
|
653
|
+
"native-skills/unit-testing/SKILL.md"
|
|
654
|
+
]
|
|
610
655
|
},
|
|
611
656
|
{
|
|
612
657
|
"source": "team/fixtures/bugfix-standard.json",
|
|
@@ -13,6 +13,7 @@ npx @bonesofspring/ai-rules update
|
|
|
13
13
|
2. Report the CLI summary to the user in their native language. It names each tool and the preset it kept.
|
|
14
14
|
3. State the outcome in plain words. Exit code 0 means the update finished successfully. Any other exit means it did not finish successfully: quote stderr and stop.
|
|
15
15
|
4. Do not report the numeric exit code.
|
|
16
|
+
5. Commit the update on its own. Managed trees (`.cursor/`, `.claude/`, `.mavis/`, `.opencode/`, `.zcode/`, `.ai.local/scripts/`) and app work never share a commit or a merge request.
|
|
16
17
|
|
|
17
18
|
## Record
|
|
18
19
|
|
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
# Mavis hooks
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MiniMax Code reads project hooks from `<project>/.minimax/hooks.json` — the project
|
|
4
|
+
file lives in the repository, so the preset ships it. Two handlers:
|
|
5
|
+
|
|
6
|
+
- `SessionStart` → `node .mavis/hooks/check-preset-update.mjs`: prints the preset-update
|
|
7
|
+
notice; with exit code 0 the text is added as agent context.
|
|
8
|
+
- `SubagentStop` → `node .mavis/hooks/mavis-chain-hook.mjs`: reconciles
|
|
9
|
+
`status.json` / `metrics.json` after a producer receipt.
|
|
10
|
+
|
|
11
|
+
`mavis-chain-hook.mjs` is the MiniMax adapter for the chain hook. It adds the
|
|
12
|
+
producer receipt the chain hook waits for (the MiniMax `SubagentStop` payload has
|
|
13
|
+
no `status` field) and turns the chain receipt into a MiniMax wire decision, so
|
|
14
|
+
the runtime does not report invalid output. A chain `followup_message`, and a
|
|
15
|
+
refusal `reason` when `ok` is false, become `hookSpecificOutput.additionalContext`:
|
|
16
|
+
the runtime hands it to the agent as a continuation prompt. Any other receipt
|
|
17
|
+
becomes `{}`. A re-entrant stop (`stop_hook_active`) or a non-kebab `agent_type`
|
|
18
|
+
does not run the chain.
|
|
19
|
+
|
|
20
|
+
A project hook does not run until the user turns it on in Settings → Hooks → Project
|
|
21
|
+
(once per project, on that machine). Until then the chain runs by hand. The
|
|
22
|
+
enablement is bound to the hook id — a digest of the event and the command — so a
|
|
23
|
+
preset update that changes the command needs the hook switched on again.
|
|
4
24
|
|
|
5
25
|
## Shipped
|
|
6
26
|
|
|
@@ -15,14 +35,16 @@ printf '%s\n' '{"status":"completed","attemptId":"<runtime-attempt-id>"}' \
|
|
|
15
35
|
Do not invent it. Agents never write lifecycle fields in `status.json` or
|
|
16
36
|
`metrics.json`.
|
|
17
37
|
|
|
18
|
-
`
|
|
19
|
-
|
|
38
|
+
`mavis-chain-hook.mjs` — the native `SubagentStop` adapter. The native hook
|
|
39
|
+
calls it; it calls `run-hook.mjs chain-team-phases`.
|
|
20
40
|
|
|
21
|
-
`
|
|
41
|
+
`check-preset-update.mjs` — run on the first reply when the hook is off: `node .mavis/hooks/check-preset-update.mjs`.
|
|
42
|
+
When the recorded package is older than the npm latest, open the reply with a level-2 heading and a blockquote naming the installed version, the latest version, and `/update`. Do not fold it into the task text.
|
|
43
|
+
|
|
44
|
+
`list-ai-local.mjs` — run before reading or editing paths: `node .mavis/hooks/list-ai-local.mjs`. Pass the repo-relative paths. Not auto-registered: the probe is path-scoped, so a hook cannot reproduce it faithfully.
|
|
22
45
|
|
|
23
46
|
## Omitted
|
|
24
47
|
|
|
25
|
-
- `
|
|
26
|
-
- `
|
|
27
|
-
- `run-hook.mjs` — not wired; no native hook schema, the chain hook stays a manual runner
|
|
48
|
+
- `guard-shell-command.mjs` — the MiniMax `PreToolUse` event exists, but a tool-blocking guard is a behaviour change; the safety policy stays in entry prose
|
|
49
|
+
- `compact-shell-output.mjs` — Cursor preToolUse rewrite
|
|
28
50
|
- `hooks/examples/**` — no confirmed Mavis event API
|
|
@@ -1381,6 +1381,40 @@ function missingConsumerArtifacts() {
|
|
|
1381
1381
|
);
|
|
1382
1382
|
return ids.filter((id) => !done.has(id));
|
|
1383
1383
|
}
|
|
1384
|
+
// A step that names a gate agent is a promise the plan made to the diff. The
|
|
1385
|
+
// consumer config is optional, but a declared gate is not: an unreviewed diff
|
|
1386
|
+
// completed while the plan said "code-reviewer" reads as a passed review.
|
|
1387
|
+
// A step the run skipped (status.skippedSteps) or skipIf-matched never promised
|
|
1388
|
+
// anything, so it is not required here.
|
|
1389
|
+
const GATE_AGENTS = new Set([
|
|
1390
|
+
'build-verifier',
|
|
1391
|
+
'code-reviewer',
|
|
1392
|
+
'mockup-reviewer',
|
|
1393
|
+
'security-reviewer',
|
|
1394
|
+
'accessibility-reviewer',
|
|
1395
|
+
'api-contract-reviewer',
|
|
1396
|
+
'performance-auditor',
|
|
1397
|
+
]);
|
|
1398
|
+
function missingDeclaredGateArtifacts() {
|
|
1399
|
+
if (steps.length === 0) return [];
|
|
1400
|
+
let manifest = { artifacts: [] };
|
|
1401
|
+
try { manifest = JSON.parse(fs.readFileSync(path.join(taskDir, 'artifact-manifest.json'), 'utf8')); } catch {}
|
|
1402
|
+
const done = new Set(
|
|
1403
|
+
(manifest.artifacts || [])
|
|
1404
|
+
.filter((artifact) => artifact && artifact.status === 'completed')
|
|
1405
|
+
.map((artifact) => artifact.id),
|
|
1406
|
+
);
|
|
1407
|
+
const missing = [];
|
|
1408
|
+
steps.forEach((step, index) => {
|
|
1409
|
+
if (!step || isStepSkipped(index)) return;
|
|
1410
|
+
for (const agent of getStepAgents(step)) {
|
|
1411
|
+
if (!GATE_AGENTS.has(agent)) continue;
|
|
1412
|
+
const id = artifactOutputIdFor(step, agent);
|
|
1413
|
+
if (!done.has(id)) missing.push(`${id} (${agent}${step.id ? `, step ${step.id}` : ''})`);
|
|
1414
|
+
}
|
|
1415
|
+
});
|
|
1416
|
+
return [...new Set(missing)];
|
|
1417
|
+
}
|
|
1384
1418
|
function completePipeline(statusPatch) {
|
|
1385
1419
|
const missing = missingConsumerArtifacts();
|
|
1386
1420
|
if (missing.length > 0) {
|
|
@@ -1388,6 +1422,12 @@ function completePipeline(statusPatch) {
|
|
|
1388
1422
|
out(`Pipeline blocked for "${slug}": .ai.local/pipeline-gates.json requireArtifacts missing completed receipt(s): ${missing.join(', ')}.`);
|
|
1389
1423
|
process.exit(0);
|
|
1390
1424
|
}
|
|
1425
|
+
const missingGates = missingDeclaredGateArtifacts();
|
|
1426
|
+
if (missingGates.length > 0) {
|
|
1427
|
+
writeStatus({ ...statusPatch, phase: 'blocked', state: 'blocked', currentAgent: null, awaitingHumanGate: false });
|
|
1428
|
+
out(`Pipeline blocked for "${slug}": pipeline.json declares gate step(s) with no completed receipt: ${missingGates.join(', ')}. Run the step, or record it under status.skippedSteps with its reason, then resume with /task-continue ${slug}.`);
|
|
1429
|
+
process.exit(0);
|
|
1430
|
+
}
|
|
1391
1431
|
// task_completed is written only on this branch. A missing receipt blocks
|
|
1392
1432
|
// above and must not be counted as a finished task.
|
|
1393
1433
|
status.state = 'completed';
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* MiniMax native-hook adapter for the team chain.
|
|
4
|
+
*
|
|
5
|
+
* Three differences between the Cursor/Claude hook contract and the MiniMax
|
|
6
|
+
* hook protocol are closed here:
|
|
7
|
+
*
|
|
8
|
+
* 1. Trigger. The chain hook acts only when its stdin payload carries the
|
|
9
|
+
* producer receipt (status "completed"). The MiniMax SubagentStop payload
|
|
10
|
+
* carries agent_type / agent_id / last_assistant_message instead, so the
|
|
11
|
+
* adapter adds the trigger and forwards the payload unchanged.
|
|
12
|
+
* 2. Guards. A MiniMax stop is not automatically a producer receipt. A
|
|
13
|
+
* re-entrant stop (stop_hook_active) and a stop from one of the runtime's
|
|
14
|
+
* own agents must not advance the pipeline. This mirrors the Claude twin's
|
|
15
|
+
* SubagentStop block; the chain script here is the Cursor variant and has
|
|
16
|
+
* neither guard, and MiniMax has no hook loop limit to fall back on.
|
|
17
|
+
* 3. Output. The chain hook answers with its own receipt JSON (ok / action /
|
|
18
|
+
* followup_message), which is not a MiniMax wire decision: the runtime
|
|
19
|
+
* would reject it as HOOK_INVALID_OUTPUT. The adapter translates it - a
|
|
20
|
+
* followup_message, or a refusal reason when ok is false, becomes
|
|
21
|
+
* hookSpecificOutput.additionalContext (the runtime carries it into the
|
|
22
|
+
* agent as a continuation prompt). Anything else becomes an empty object,
|
|
23
|
+
* so the runtime does not see an undocumented key.
|
|
24
|
+
*
|
|
25
|
+
* The adapter never blocks the agent: it keeps the chain hook stderr and
|
|
26
|
+
* exits with its code.
|
|
27
|
+
*/
|
|
28
|
+
import { spawn } from 'node:child_process';
|
|
29
|
+
import fs from 'node:fs';
|
|
30
|
+
import path from 'node:path';
|
|
31
|
+
import { fileURLToPath } from 'node:url';
|
|
32
|
+
|
|
33
|
+
const hookDir = path.dirname(fileURLToPath(import.meta.url));
|
|
34
|
+
const launcher = path.join(hookDir, 'run-hook.mjs');
|
|
35
|
+
|
|
36
|
+
function readStdin() {
|
|
37
|
+
try {
|
|
38
|
+
return fs.readFileSync(0, 'utf8');
|
|
39
|
+
} catch {
|
|
40
|
+
return '';
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** Preset roles are kebab-case; the runtime's own agents are not. */
|
|
45
|
+
const ROLE_NAME_RE = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The receipt to forward, or null when this stop is not a producer receipt.
|
|
49
|
+
* A missing or non-kebab agent_type means an internal agent, and
|
|
50
|
+
* stop_hook_active means this hook already continued the turn.
|
|
51
|
+
*/
|
|
52
|
+
function buildReceipt(raw) {
|
|
53
|
+
let payload = {};
|
|
54
|
+
try {
|
|
55
|
+
const parsed = JSON.parse(raw);
|
|
56
|
+
if (parsed && typeof parsed === 'object' && !Array.isArray(parsed)) {
|
|
57
|
+
payload = parsed;
|
|
58
|
+
}
|
|
59
|
+
} catch {
|
|
60
|
+
payload = {};
|
|
61
|
+
}
|
|
62
|
+
if (payload.stop_hook_active === true) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
const agentType = typeof payload.agent_type === 'string' ? payload.agent_type : '';
|
|
66
|
+
if (!ROLE_NAME_RE.test(agentType)) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
// The agent binding stays in the forwarded payload.
|
|
70
|
+
return { ...payload, status: 'completed' };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function additionalContext(message) {
|
|
74
|
+
return JSON.stringify({
|
|
75
|
+
hookSpecificOutput: {
|
|
76
|
+
hookEventName: 'SubagentStop',
|
|
77
|
+
additionalContext: message,
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* MiniMax wire decision. The runtime rejects unknown keys, so the only
|
|
84
|
+
* documented carrier is hookSpecificOutput.additionalContext.
|
|
85
|
+
* A followup_message wins. A refusal reason (ok: false) uses the same field.
|
|
86
|
+
* Anything else is {}.
|
|
87
|
+
*/
|
|
88
|
+
function toWireDecision(raw) {
|
|
89
|
+
const text = raw.trim();
|
|
90
|
+
if (!text) {
|
|
91
|
+
return '{}';
|
|
92
|
+
}
|
|
93
|
+
let parsed = null;
|
|
94
|
+
try {
|
|
95
|
+
parsed = JSON.parse(text);
|
|
96
|
+
} catch {
|
|
97
|
+
return '{}';
|
|
98
|
+
}
|
|
99
|
+
const message =
|
|
100
|
+
parsed && typeof parsed.followup_message === 'string' ? parsed.followup_message : '';
|
|
101
|
+
if (message) {
|
|
102
|
+
return additionalContext(message);
|
|
103
|
+
}
|
|
104
|
+
// A refusal carries a reason instead of a handoff; dropping it hides why the
|
|
105
|
+
// chain hook declined to advance. The reason rides the same documented key.
|
|
106
|
+
const reason =
|
|
107
|
+
parsed && parsed.ok === false && typeof parsed.reason === 'string' ? parsed.reason : '';
|
|
108
|
+
if (reason) {
|
|
109
|
+
return additionalContext(reason);
|
|
110
|
+
}
|
|
111
|
+
return '{}';
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const receipt = buildReceipt(readStdin());
|
|
115
|
+
if (receipt === null) {
|
|
116
|
+
console.log('{}');
|
|
117
|
+
process.exit(0);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
const child = spawn(process.execPath, [launcher, 'chain-team-phases'], {
|
|
121
|
+
cwd: process.cwd(),
|
|
122
|
+
stdio: ['pipe', 'pipe', 'inherit'],
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
let output = '';
|
|
126
|
+
child.stdout.on('data', (chunk) => {
|
|
127
|
+
output += chunk.toString('utf8');
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
child.on('error', () => {
|
|
131
|
+
console.log('{}');
|
|
132
|
+
process.exit(0);
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
child.on('close', (code) => {
|
|
136
|
+
console.log(toWireDecision(output));
|
|
137
|
+
process.exit(code === null ? 0 : code);
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
child.stdin.on('error', () => {
|
|
141
|
+
// The chain hook may exit before it reads stdin; the receipt is optional.
|
|
142
|
+
});
|
|
143
|
+
child.stdin.end(JSON.stringify(receipt));
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Chain-hook launcher. Resolves bash, then runs `<hook-name>.sh` next to this
|
|
4
|
+
* file with stdin/stdout forwarded. Fail-open: a missing bash, a missing script,
|
|
5
|
+
* or a spawn failure prints `{}` and exits 0 so a host without a POSIX shell
|
|
6
|
+
* never blocks the agent; a bash that starts and then dies on a signal
|
|
7
|
+
* propagates exit 1. Registered as
|
|
8
|
+
* `node .mavis/hooks/run-hook.mjs chain-team-phases` (and the Claude twin).
|
|
9
|
+
*/
|
|
10
|
+
import fs from 'node:fs';
|
|
11
|
+
import os from 'node:os';
|
|
12
|
+
import path from 'node:path';
|
|
13
|
+
import { spawn } from 'node:child_process';
|
|
14
|
+
import { fileURLToPath } from 'node:url';
|
|
15
|
+
|
|
16
|
+
const HOOK_NAME_RE = /^[a-z0-9][a-z0-9-]*$/;
|
|
17
|
+
const BASH_MISSING_LINE =
|
|
18
|
+
'[ai-rules] chain hook skipped: bash not found. Install Git Bash on Windows or add bash to PATH.';
|
|
19
|
+
|
|
20
|
+
const expandHome = (value) => {
|
|
21
|
+
if (!value || value[0] !== '~') return value;
|
|
22
|
+
if (value === '~') return os.homedir();
|
|
23
|
+
if (value[1] === '/' || value[1] === '\\') return path.join(os.homedir(), value.slice(2));
|
|
24
|
+
return value;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* `AI_RULES_BASH` → `CLAUDE_CODE_GIT_BASH_PATH` → `OPENCODE_GIT_BASH_PATH`, then
|
|
29
|
+
* the usual Git for Windows locations. POSIX falls back to `bash` and lets
|
|
30
|
+
* `spawn` resolve PATH; win32 returns `null` when no candidate exists.
|
|
31
|
+
*/
|
|
32
|
+
export function resolveBash({ platform = process.platform, env = process.env } = {}) {
|
|
33
|
+
for (const name of ['AI_RULES_BASH', 'CLAUDE_CODE_GIT_BASH_PATH', 'OPENCODE_GIT_BASH_PATH']) {
|
|
34
|
+
const configured = expandHome((env[name] || '').trim());
|
|
35
|
+
if (!configured) continue;
|
|
36
|
+
// A bare name (`bash`) is resolved through PATH by `spawn`.
|
|
37
|
+
if (!configured.includes('/') && !configured.includes('\\')) return configured;
|
|
38
|
+
if (fs.existsSync(configured)) return configured;
|
|
39
|
+
}
|
|
40
|
+
if (platform !== 'win32') return 'bash';
|
|
41
|
+
const candidates = [
|
|
42
|
+
env.ProgramFiles && path.join(env.ProgramFiles, 'Git', 'bin', 'bash.exe'),
|
|
43
|
+
env['ProgramFiles(x86)'] && path.join(env['ProgramFiles(x86)'], 'Git', 'bin', 'bash.exe'),
|
|
44
|
+
env.LOCALAPPDATA && path.join(env.LOCALAPPDATA, 'Programs', 'Git', 'bin', 'bash.exe'),
|
|
45
|
+
].filter(Boolean);
|
|
46
|
+
return candidates.find((candidate) => fs.existsSync(candidate)) || null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const skip = (message) => {
|
|
50
|
+
process.stdout.write('{}\n');
|
|
51
|
+
process.stderr.write(`${message}\n`);
|
|
52
|
+
process.exit(0);
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** A bare `bash` returned on POSIX is only usable when it resolves on PATH. */
|
|
56
|
+
const bashOnPath = (name, env = process.env) =>
|
|
57
|
+
(env.PATH || '')
|
|
58
|
+
.split(path.delimiter)
|
|
59
|
+
.filter(Boolean)
|
|
60
|
+
.some((directory) => fs.existsSync(path.join(directory, name)));
|
|
61
|
+
|
|
62
|
+
const main = (argv) => {
|
|
63
|
+
const hookName = argv[0] || '';
|
|
64
|
+
if (!HOOK_NAME_RE.test(hookName)) {
|
|
65
|
+
skip(
|
|
66
|
+
`[ai-rules] chain hook skipped: invalid hook name "${hookName}". Re-run ai-rules init to restore the registration.`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
const script = path.join(path.dirname(fileURLToPath(import.meta.url)), `${hookName}.sh`);
|
|
70
|
+
const bash = resolveBash();
|
|
71
|
+
if (!bash) {
|
|
72
|
+
skip(BASH_MISSING_LINE);
|
|
73
|
+
}
|
|
74
|
+
if (
|
|
75
|
+
process.platform !== 'win32' &&
|
|
76
|
+
!bash.includes('/') &&
|
|
77
|
+
!bash.includes('\\') &&
|
|
78
|
+
!bashOnPath(bash)
|
|
79
|
+
) {
|
|
80
|
+
skip(BASH_MISSING_LINE);
|
|
81
|
+
}
|
|
82
|
+
if (!fs.existsSync(script)) {
|
|
83
|
+
skip(
|
|
84
|
+
`[ai-rules] chain hook skipped: ${path.basename(script)} not found. Re-run ai-rules init to restore the hook.`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
const child = spawn(bash, [script], { stdio: 'inherit' });
|
|
88
|
+
child.on('error', () => skip(BASH_MISSING_LINE));
|
|
89
|
+
child.on('exit', (code) => process.exit(code === null ? 1 : code));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const isDirectRun = () => {
|
|
93
|
+
if (!process.argv[1]) return false;
|
|
94
|
+
try {
|
|
95
|
+
return fs.realpathSync(process.argv[1]) === fs.realpathSync(fileURLToPath(import.meta.url));
|
|
96
|
+
} catch {
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
if (isDirectRun()) {
|
|
102
|
+
main(process.argv.slice(2));
|
|
103
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"SessionStart": [
|
|
4
|
+
{
|
|
5
|
+
"hooks": [
|
|
6
|
+
{
|
|
7
|
+
"type": "command",
|
|
8
|
+
"name": "ai-rules preset version check",
|
|
9
|
+
"command": "node .mavis/hooks/check-preset-update.mjs",
|
|
10
|
+
"timeout": 8
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"SubagentStop": [
|
|
16
|
+
{
|
|
17
|
+
"hooks": [
|
|
18
|
+
{
|
|
19
|
+
"type": "command",
|
|
20
|
+
"name": "ai-rules team chain",
|
|
21
|
+
"command": "node .mavis/hooks/mavis-chain-hook.mjs",
|
|
22
|
+
"timeout": 10
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Native MiniMax Code skills (mcp-ts preset)
|
|
2
|
+
|
|
3
|
+
MiniMax Code discovers workspace skills under `<root>/.minimax/skills` (workspace
|
|
4
|
+
root, priority 65 — above `.claude/skills`). This tree is installed there by
|
|
5
|
+
`ai-rules init mavis --preset mcp-ts`.
|
|
6
|
+
|
|
7
|
+
Every entry is a skill: `SKILL.md` with `name` and `description` frontmatter.
|
|
8
|
+
The workflow skills ship here unchanged; the command procedures ship as skills
|
|
9
|
+
too, so `task`, `task-continue`, `update` and the rest resolve in MiniMax Code
|
|
10
|
+
without a slash-command API. Where a command and a skill share a name
|
|
11
|
+
(`technical-retro`), the skill owns the slot and the command stays the procedure.
|
|
12
|
+
|
|
13
|
+
MiniMax Code has no file-defined slash-command surface, so a command name is a
|
|
14
|
+
skill name: the agent loads the skill by description match and receives the
|
|
15
|
+
trailing user text as `User: <args>`.
|