@bonesofspring/ai-rules 0.2.71 → 0.2.73
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 +44 -0
- package/README.md +7 -6
- package/bin/lib/ai-local-drift.js +4 -4
- package/bin/lib/engine-scripts.js +11 -0
- package/bin/lib/seed-ai-local-team.js +9 -5
- package/docs/OPENCODE.md +4 -2
- package/docs/TEAM-DB.md +27 -9
- package/package.json +1 -1
- package/presets/_shared/ai-local/scripts/aggregate-agent-task-metrics.mjs +201 -0
- package/presets/_shared/ai-local/scripts/incidents.mjs +452 -0
- package/presets/_shared/ai-local/scripts/manifest.mjs +19 -1
- package/presets/_shared/ai-local/scripts/record-usage.mjs +163 -0
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +75 -11
- package/presets/_shared/ai-local/scripts/team-db.mjs +125 -40
- package/presets/_shared/ai-local/scripts/tracker-planned-drain.mjs +335 -0
- package/presets/_shared/ai-local/scripts/verification.mjs +374 -0
- package/presets/_shared/core/agent-team/agent-artifact-contracts.md +9 -0
- package/presets/_shared/core/agent-team/agent-task-metrics.md +61 -1
- package/presets/_shared/core/agent-team/agent-team-intake.md +2 -2
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +5 -4
- package/presets/_shared/core/agent-team/incident-registry.md +47 -0
- package/presets/_shared/core/architecture/feature-delivery-workflow.md +1 -1
- package/presets/_shared/core/quality/self-review-and-context-hygiene.md +1 -0
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +108 -1
- package/presets/claude/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/claude/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/claude/android-kotlin/agents/debugger.md +1 -1
- package/presets/claude/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/claude/android-kotlin/agents/task-analyst.md +1 -1
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +108 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +5 -4
- package/presets/claude/go/agents/build-verifier.md +1 -1
- package/presets/claude/go/agents/code-reviewer.md +1 -1
- package/presets/claude/go/agents/debugger.md +1 -1
- package/presets/claude/go/agents/feature-developer.md +1 -1
- package/presets/claude/go/agents/task-analyst.md +1 -1
- package/presets/claude/go/hooks/chain-team-phases.sh +108 -1
- package/presets/claude/go/rules/architecture/feature-delivery.md +1 -1
- package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +5 -4
- package/presets/claude/ios-swift/agents/build-verifier.md +1 -1
- package/presets/claude/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/claude/ios-swift/agents/debugger.md +1 -1
- package/presets/claude/ios-swift/agents/feature-developer.md +1 -1
- package/presets/claude/ios-swift/agents/task-analyst.md +1 -1
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +108 -1
- package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +1 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +5 -4
- package/presets/claude/java/agents/build-verifier.md +1 -1
- package/presets/claude/java/agents/code-reviewer.md +1 -1
- package/presets/claude/java/agents/debugger.md +1 -1
- package/presets/claude/java/agents/feature-developer.md +1 -1
- package/presets/claude/java/agents/task-analyst.md +1 -1
- package/presets/claude/java/hooks/chain-team-phases.sh +108 -1
- package/presets/claude/java/rules/architecture/feature-delivery.md +1 -1
- package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +5 -4
- package/presets/claude/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/claude/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/claude/mcp-ts/agents/task-analyst.md +1 -1
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +108 -1
- package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +1 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +5 -4
- package/presets/claude/mol/agents/build-verifier.md +1 -1
- package/presets/claude/mol/agents/code-reviewer.md +1 -1
- package/presets/claude/mol/agents/debugger.md +1 -1
- package/presets/claude/mol/agents/feature-developer.md +1 -1
- package/presets/claude/mol/agents/task-analyst.md +1 -1
- package/presets/claude/mol/hooks/chain-team-phases.sh +108 -1
- package/presets/claude/mol/rules/architecture/feature-delivery-workflow.md +1 -1
- package/presets/claude/mol/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +5 -4
- package/presets/claude/next/REPO_AGENTS.md +16 -0
- package/presets/claude/next/agents/README.md +4 -3
- package/presets/claude/next/agents/accessibility-reviewer.md +4 -1
- package/presets/claude/next/agents/api-contract-reviewer.md +6 -3
- package/presets/claude/next/agents/build-verifier.md +6 -3
- package/presets/claude/next/agents/ci-investigator.md +1 -1
- package/presets/claude/next/agents/code-reviewer.md +7 -4
- package/presets/claude/next/agents/codebase-analyzer.md +4 -1
- package/presets/claude/next/agents/debugger.md +2 -2
- package/presets/claude/next/agents/feature-developer.md +2 -2
- package/presets/claude/next/agents/migration-specialist.md +4 -1
- package/presets/claude/next/agents/mockup-reviewer.md +5 -2
- package/presets/claude/next/agents/openspec-author.md +4 -1
- package/presets/claude/next/agents/performance-auditor.md +4 -1
- package/presets/claude/next/agents/playwright-test-generator.md +5 -2
- package/presets/claude/next/agents/playwright-test-healer.md +5 -2
- package/presets/claude/next/agents/playwright-test-planner.md +5 -2
- package/presets/claude/next/agents/qa-tester.md +5 -2
- package/presets/claude/next/agents/security-reviewer.md +4 -1
- package/presets/claude/next/agents/solution-architect.md +4 -1
- package/presets/claude/next/agents/task-analyst.md +5 -2
- package/presets/claude/next/agents/task-router.md +8 -5
- package/presets/claude/next/agents/tech-writer.md +4 -1
- package/presets/claude/next/agents/unit-test-generator.md +5 -2
- package/presets/claude/next/agents/unit-test-healer.md +5 -2
- package/presets/claude/next/agents/unit-test-planner.md +5 -2
- package/presets/claude/next/ai-local/conventions.md +26 -1
- package/presets/claude/next/hooks/chain-team-phases.sh +108 -1
- package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +2 -2
- package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +5 -4
- package/presets/claude/nuxt/agents/build-verifier.md +1 -1
- package/presets/claude/nuxt/agents/code-reviewer.md +1 -1
- package/presets/claude/nuxt/agents/debugger.md +1 -1
- package/presets/claude/nuxt/agents/feature-developer.md +1 -1
- package/presets/claude/nuxt/agents/task-analyst.md +1 -1
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +108 -1
- package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +1 -1
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +5 -4
- package/presets/claude/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/claude/php-hexagonal/agents/debugger.md +1 -1
- package/presets/claude/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/claude/php-hexagonal/agents/task-analyst.md +1 -1
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +108 -1
- package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +1 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +5 -4
- package/presets/claude/php-laravel/agents/build-verifier.md +1 -1
- package/presets/claude/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/claude/php-laravel/agents/debugger.md +1 -1
- package/presets/claude/php-laravel/agents/feature-developer.md +1 -1
- package/presets/claude/php-laravel/agents/task-analyst.md +1 -1
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +108 -1
- package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +1 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +5 -4
- package/presets/claude/svelte/agents/build-verifier.md +1 -1
- package/presets/claude/svelte/agents/code-reviewer.md +1 -1
- package/presets/claude/svelte/agents/debugger.md +1 -1
- package/presets/claude/svelte/agents/feature-developer.md +1 -1
- package/presets/claude/svelte/agents/task-analyst.md +1 -1
- package/presets/claude/svelte/hooks/chain-team-phases.sh +108 -1
- package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +1 -1
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +2 -2
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +5 -4
- package/presets/cursor/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/cursor/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/cursor/android-kotlin/agents/debugger.md +1 -1
- package/presets/cursor/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/cursor/android-kotlin/agents/task-analyst.md +1 -1
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +108 -1
- package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/go/agents/build-verifier.md +1 -1
- package/presets/cursor/go/agents/code-reviewer.md +1 -1
- package/presets/cursor/go/agents/debugger.md +1 -1
- package/presets/cursor/go/agents/feature-developer.md +1 -1
- package/presets/cursor/go/agents/task-analyst.md +1 -1
- package/presets/cursor/go/hooks/chain-team-phases.sh +108 -1
- package/presets/cursor/go/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/go/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/ios-swift/agents/build-verifier.md +1 -1
- package/presets/cursor/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/cursor/ios-swift/agents/debugger.md +1 -1
- package/presets/cursor/ios-swift/agents/feature-developer.md +1 -1
- package/presets/cursor/ios-swift/agents/task-analyst.md +1 -1
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +108 -1
- package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/java/agents/build-verifier.md +1 -1
- package/presets/cursor/java/agents/code-reviewer.md +1 -1
- package/presets/cursor/java/agents/debugger.md +1 -1
- package/presets/cursor/java/agents/feature-developer.md +1 -1
- package/presets/cursor/java/agents/task-analyst.md +1 -1
- package/presets/cursor/java/hooks/chain-team-phases.sh +108 -1
- package/presets/cursor/java/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/java/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/cursor/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/cursor/mcp-ts/agents/task-analyst.md +1 -1
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +108 -1
- package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/mol/agents/build-verifier.md +1 -1
- package/presets/cursor/mol/agents/code-reviewer.md +1 -1
- package/presets/cursor/mol/agents/debugger.md +1 -1
- package/presets/cursor/mol/agents/feature-developer.md +1 -1
- package/presets/cursor/mol/agents/task-analyst.md +1 -1
- package/presets/cursor/mol/hooks/chain-team-phases.sh +108 -1
- package/presets/cursor/mol/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/mol/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/next/AGENTS.md +2 -1
- package/presets/cursor/next/REPO_AGENTS.md +16 -0
- package/presets/cursor/next/agents/README.md +4 -3
- package/presets/cursor/next/agents/api-contract-reviewer.md +1 -1
- package/presets/cursor/next/agents/build-verifier.md +1 -1
- package/presets/cursor/next/agents/code-reviewer.md +1 -1
- package/presets/cursor/next/agents/debugger.md +1 -1
- package/presets/cursor/next/agents/feature-developer.md +1 -1
- package/presets/cursor/next/agents/mockup-reviewer.md +1 -1
- package/presets/cursor/next/agents/task-analyst.md +1 -1
- package/presets/cursor/next/agents/task-router.md +4 -4
- package/presets/cursor/next/ai-local/conventions.md +6 -1
- package/presets/cursor/next/hooks/chain-team-phases.sh +108 -1
- package/presets/cursor/next/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/next/rules/feature-delivery-workflow.mdc +1 -1
- package/presets/cursor/nuxt/agents/build-verifier.md +1 -1
- package/presets/cursor/nuxt/agents/code-reviewer.md +1 -1
- package/presets/cursor/nuxt/agents/debugger.md +1 -1
- package/presets/cursor/nuxt/agents/feature-developer.md +1 -1
- package/presets/cursor/nuxt/agents/task-analyst.md +1 -1
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +108 -1
- package/presets/cursor/nuxt/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/cursor/php-hexagonal/agents/debugger.md +1 -1
- package/presets/cursor/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/cursor/php-hexagonal/agents/task-analyst.md +1 -1
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +108 -1
- package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/php-laravel/agents/build-verifier.md +1 -1
- package/presets/cursor/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/cursor/php-laravel/agents/debugger.md +1 -1
- package/presets/cursor/php-laravel/agents/feature-developer.md +1 -1
- package/presets/cursor/php-laravel/agents/task-analyst.md +1 -1
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +108 -1
- package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/cursor/svelte/agents/build-verifier.md +1 -1
- package/presets/cursor/svelte/agents/code-reviewer.md +1 -1
- package/presets/cursor/svelte/agents/debugger.md +1 -1
- package/presets/cursor/svelte/agents/feature-developer.md +1 -1
- package/presets/cursor/svelte/agents/task-analyst.md +1 -1
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +108 -1
- package/presets/cursor/svelte/rules/agent-team-intake.mdc +2 -2
- package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +1 -1
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/agents/README.md +3 -3
- package/presets/mavis/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/mavis/android-kotlin/agents/debugger.md +1 -1
- package/presets/mavis/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/mavis/android-kotlin/agents/task-analyst.md +1 -1
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +108 -1
- package/presets/mavis/android-kotlin/rules/agent-team-intake.md +2 -2
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +5 -4
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/agents/README.md +2 -2
- package/presets/mavis/go/agents/build-verifier.md +1 -1
- package/presets/mavis/go/agents/code-reviewer.md +1 -1
- package/presets/mavis/go/agents/debugger.md +1 -1
- package/presets/mavis/go/agents/feature-developer.md +1 -1
- package/presets/mavis/go/agents/task-analyst.md +1 -1
- package/presets/mavis/go/hooks/chain-team-phases.sh +108 -1
- package/presets/mavis/go/rules/agent-team-intake.md +2 -2
- package/presets/mavis/go/rules/agent-team-orchestrator.md +5 -4
- package/presets/mavis/go/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/agents/README.md +3 -3
- package/presets/mavis/ios-swift/agents/build-verifier.md +1 -1
- package/presets/mavis/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/mavis/ios-swift/agents/debugger.md +1 -1
- package/presets/mavis/ios-swift/agents/feature-developer.md +1 -1
- package/presets/mavis/ios-swift/agents/task-analyst.md +1 -1
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +108 -1
- package/presets/mavis/ios-swift/rules/agent-team-intake.md +2 -2
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +5 -4
- package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/agents/README.md +2 -2
- package/presets/mavis/java/agents/build-verifier.md +1 -1
- package/presets/mavis/java/agents/code-reviewer.md +1 -1
- package/presets/mavis/java/agents/debugger.md +1 -1
- package/presets/mavis/java/agents/feature-developer.md +1 -1
- package/presets/mavis/java/agents/task-analyst.md +1 -1
- package/presets/mavis/java/hooks/chain-team-phases.sh +108 -1
- package/presets/mavis/java/rules/agent-team-intake.md +2 -2
- package/presets/mavis/java/rules/agent-team-orchestrator.md +5 -4
- package/presets/mavis/java/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/agents/README.md +1 -1
- package/presets/mavis/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/mavis/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/mavis/mcp-ts/agents/task-analyst.md +1 -1
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +108 -1
- package/presets/mavis/mcp-ts/rules/agent-team-intake.md +2 -2
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +5 -4
- package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/mol/adapter-map.json +1 -1
- package/presets/mavis/mol/agents/README.md +3 -3
- package/presets/mavis/mol/agents/build-verifier.md +1 -1
- package/presets/mavis/mol/agents/code-reviewer.md +1 -1
- package/presets/mavis/mol/agents/debugger.md +1 -1
- package/presets/mavis/mol/agents/feature-developer.md +1 -1
- package/presets/mavis/mol/agents/task-analyst.md +1 -1
- package/presets/mavis/mol/hooks/chain-team-phases.sh +108 -1
- package/presets/mavis/mol/rules/agent-team-intake.md +2 -2
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +5 -4
- package/presets/mavis/mol/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/next/MAVIS.md +2 -1
- package/presets/mavis/next/REPO_AGENTS.md +16 -0
- package/presets/mavis/next/adapter-map.json +1 -1
- package/presets/mavis/next/agents/README.md +3 -3
- package/presets/mavis/next/agents/accessibility-reviewer.md +4 -1
- package/presets/mavis/next/agents/api-contract-reviewer.md +5 -2
- package/presets/mavis/next/agents/build-verifier.md +6 -3
- package/presets/mavis/next/agents/ci-investigator.md +1 -1
- package/presets/mavis/next/agents/code-reviewer.md +7 -4
- package/presets/mavis/next/agents/codebase-analyzer.md +4 -1
- package/presets/mavis/next/agents/debugger.md +2 -2
- package/presets/mavis/next/agents/feature-developer.md +2 -2
- package/presets/mavis/next/agents/migration-specialist.md +4 -1
- package/presets/mavis/next/agents/mockup-reviewer.md +4 -1
- package/presets/mavis/next/agents/openspec-author.md +4 -1
- package/presets/mavis/next/agents/performance-auditor.md +4 -1
- package/presets/mavis/next/agents/playwright-test-generator.md +5 -2
- package/presets/mavis/next/agents/playwright-test-healer.md +5 -2
- package/presets/mavis/next/agents/playwright-test-planner.md +5 -2
- package/presets/mavis/next/agents/qa-tester.md +5 -2
- package/presets/mavis/next/agents/security-reviewer.md +4 -1
- package/presets/mavis/next/agents/solution-architect.md +4 -1
- package/presets/mavis/next/agents/task-analyst.md +5 -2
- package/presets/mavis/next/agents/task-router.md +8 -5
- package/presets/mavis/next/agents/tech-writer.md +4 -1
- package/presets/mavis/next/agents/unit-test-generator.md +5 -2
- package/presets/mavis/next/agents/unit-test-healer.md +5 -2
- package/presets/mavis/next/agents/unit-test-planner.md +5 -2
- package/presets/mavis/next/ai-local/conventions.md +6 -1
- package/presets/mavis/next/hooks/chain-team-phases.sh +108 -1
- package/presets/mavis/next/rules/agent-team-intake.md +2 -2
- package/presets/mavis/next/rules/agent-team-orchestrator.md +5 -4
- package/presets/mavis/next/rules/feature-delivery-workflow.md +2 -2
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/agents/README.md +3 -3
- package/presets/mavis/nuxt/agents/build-verifier.md +1 -1
- package/presets/mavis/nuxt/agents/code-reviewer.md +1 -1
- package/presets/mavis/nuxt/agents/debugger.md +1 -1
- package/presets/mavis/nuxt/agents/feature-developer.md +1 -1
- package/presets/mavis/nuxt/agents/task-analyst.md +1 -1
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +108 -1
- package/presets/mavis/nuxt/rules/agent-team-intake.md +2 -2
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +5 -4
- package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/agents/README.md +2 -2
- package/presets/mavis/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/mavis/php-hexagonal/agents/debugger.md +1 -1
- package/presets/mavis/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/mavis/php-hexagonal/agents/task-analyst.md +1 -1
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +108 -1
- package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +2 -2
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +5 -4
- package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/agents/README.md +2 -2
- package/presets/mavis/php-laravel/agents/build-verifier.md +1 -1
- package/presets/mavis/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/mavis/php-laravel/agents/debugger.md +1 -1
- package/presets/mavis/php-laravel/agents/feature-developer.md +1 -1
- package/presets/mavis/php-laravel/agents/task-analyst.md +1 -1
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +108 -1
- package/presets/mavis/php-laravel/rules/agent-team-intake.md +2 -2
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +5 -4
- package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +1 -1
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/agents/README.md +3 -3
- package/presets/mavis/svelte/agents/build-verifier.md +1 -1
- package/presets/mavis/svelte/agents/code-reviewer.md +1 -1
- package/presets/mavis/svelte/agents/debugger.md +1 -1
- package/presets/mavis/svelte/agents/feature-developer.md +1 -1
- package/presets/mavis/svelte/agents/task-analyst.md +1 -1
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +108 -1
- package/presets/mavis/svelte/rules/agent-team-intake.md +2 -2
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +5 -4
- package/presets/mavis/svelte/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/agents/README.md +4 -4
- package/presets/opencode/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/opencode/android-kotlin/agents/debugger.md +1 -1
- package/presets/opencode/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/opencode/android-kotlin/agents/task-analyst.md +1 -1
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +108 -1
- package/presets/opencode/android-kotlin/rules/agent-team-intake.md +2 -2
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +5 -4
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/agents/README.md +3 -3
- package/presets/opencode/go/agents/build-verifier.md +1 -1
- package/presets/opencode/go/agents/code-reviewer.md +1 -1
- package/presets/opencode/go/agents/debugger.md +1 -1
- package/presets/opencode/go/agents/feature-developer.md +1 -1
- package/presets/opencode/go/agents/task-analyst.md +1 -1
- package/presets/opencode/go/hooks/chain-team-phases.sh +108 -1
- package/presets/opencode/go/rules/agent-team-intake.md +2 -2
- package/presets/opencode/go/rules/agent-team-orchestrator.md +5 -4
- package/presets/opencode/go/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/agents/README.md +4 -4
- package/presets/opencode/ios-swift/agents/build-verifier.md +1 -1
- package/presets/opencode/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/opencode/ios-swift/agents/debugger.md +1 -1
- package/presets/opencode/ios-swift/agents/feature-developer.md +1 -1
- package/presets/opencode/ios-swift/agents/task-analyst.md +1 -1
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +108 -1
- package/presets/opencode/ios-swift/rules/agent-team-intake.md +2 -2
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +5 -4
- package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/agents/README.md +3 -3
- package/presets/opencode/java/agents/build-verifier.md +1 -1
- package/presets/opencode/java/agents/code-reviewer.md +1 -1
- package/presets/opencode/java/agents/debugger.md +1 -1
- package/presets/opencode/java/agents/feature-developer.md +1 -1
- package/presets/opencode/java/agents/task-analyst.md +1 -1
- package/presets/opencode/java/hooks/chain-team-phases.sh +108 -1
- package/presets/opencode/java/rules/agent-team-intake.md +2 -2
- package/presets/opencode/java/rules/agent-team-orchestrator.md +5 -4
- package/presets/opencode/java/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/agents/README.md +2 -2
- package/presets/opencode/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/opencode/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/opencode/mcp-ts/agents/task-analyst.md +1 -1
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +108 -1
- package/presets/opencode/mcp-ts/rules/agent-team-intake.md +2 -2
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +5 -4
- package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/mol/adapter-map.json +1 -1
- package/presets/opencode/mol/agents/README.md +4 -4
- package/presets/opencode/mol/agents/build-verifier.md +1 -1
- package/presets/opencode/mol/agents/code-reviewer.md +1 -1
- package/presets/opencode/mol/agents/debugger.md +1 -1
- package/presets/opencode/mol/agents/feature-developer.md +1 -1
- package/presets/opencode/mol/agents/task-analyst.md +1 -1
- package/presets/opencode/mol/hooks/chain-team-phases.sh +108 -1
- package/presets/opencode/mol/rules/agent-team-intake.md +2 -2
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +5 -4
- package/presets/opencode/mol/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/next/OPENCODE.md +2 -1
- package/presets/opencode/next/REPO_AGENTS.md +16 -0
- package/presets/opencode/next/adapter-map.json +1 -1
- package/presets/opencode/next/agents/README.md +4 -4
- package/presets/opencode/next/agents/accessibility-reviewer.md +4 -1
- package/presets/opencode/next/agents/api-contract-reviewer.md +5 -2
- package/presets/opencode/next/agents/build-verifier.md +6 -3
- package/presets/opencode/next/agents/ci-investigator.md +1 -1
- package/presets/opencode/next/agents/code-reviewer.md +7 -4
- package/presets/opencode/next/agents/codebase-analyzer.md +4 -1
- package/presets/opencode/next/agents/debugger.md +2 -2
- package/presets/opencode/next/agents/feature-developer.md +2 -2
- package/presets/opencode/next/agents/migration-specialist.md +4 -1
- package/presets/opencode/next/agents/mockup-reviewer.md +4 -1
- package/presets/opencode/next/agents/openspec-author.md +4 -1
- package/presets/opencode/next/agents/performance-auditor.md +4 -1
- package/presets/opencode/next/agents/playwright-test-generator.md +5 -2
- package/presets/opencode/next/agents/playwright-test-healer.md +5 -2
- package/presets/opencode/next/agents/playwright-test-planner.md +5 -2
- package/presets/opencode/next/agents/qa-tester.md +5 -2
- package/presets/opencode/next/agents/security-reviewer.md +4 -1
- package/presets/opencode/next/agents/solution-architect.md +4 -1
- package/presets/opencode/next/agents/task-analyst.md +5 -2
- package/presets/opencode/next/agents/task-router.md +8 -5
- package/presets/opencode/next/agents/tech-writer.md +4 -1
- package/presets/opencode/next/agents/unit-test-generator.md +5 -2
- package/presets/opencode/next/agents/unit-test-healer.md +5 -2
- package/presets/opencode/next/agents/unit-test-planner.md +5 -2
- package/presets/opencode/next/ai-local/conventions.md +6 -1
- package/presets/opencode/next/hooks/chain-team-phases.sh +108 -1
- package/presets/opencode/next/rules/agent-team-intake.md +2 -2
- package/presets/opencode/next/rules/agent-team-orchestrator.md +5 -4
- package/presets/opencode/next/rules/feature-delivery-workflow.md +2 -2
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/agents/README.md +4 -4
- package/presets/opencode/nuxt/agents/build-verifier.md +1 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +1 -1
- package/presets/opencode/nuxt/agents/debugger.md +1 -1
- package/presets/opencode/nuxt/agents/feature-developer.md +1 -1
- package/presets/opencode/nuxt/agents/task-analyst.md +1 -1
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +108 -1
- package/presets/opencode/nuxt/rules/agent-team-intake.md +2 -2
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +5 -4
- package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/agents/README.md +3 -3
- package/presets/opencode/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/debugger.md +1 -1
- package/presets/opencode/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/opencode/php-hexagonal/agents/task-analyst.md +1 -1
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +108 -1
- package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +2 -2
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +5 -4
- package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/agents/README.md +3 -3
- package/presets/opencode/php-laravel/agents/build-verifier.md +1 -1
- package/presets/opencode/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/opencode/php-laravel/agents/debugger.md +1 -1
- package/presets/opencode/php-laravel/agents/feature-developer.md +1 -1
- package/presets/opencode/php-laravel/agents/task-analyst.md +1 -1
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +108 -1
- package/presets/opencode/php-laravel/rules/agent-team-intake.md +2 -2
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +5 -4
- package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +1 -1
- package/presets/opencode/plugins/output-guard/README.md +25 -6
- package/presets/opencode/plugins/output-guard/index.ts +27 -9
- package/presets/opencode/plugins/output-guard/rewrite.ts +113 -4
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/README.md +4 -4
- package/presets/opencode/svelte/agents/build-verifier.md +1 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +1 -1
- package/presets/opencode/svelte/agents/debugger.md +1 -1
- package/presets/opencode/svelte/agents/feature-developer.md +1 -1
- package/presets/opencode/svelte/agents/task-analyst.md +1 -1
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +108 -1
- package/presets/opencode/svelte/rules/agent-team-intake.md +2 -2
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +5 -4
- package/presets/opencode/svelte/rules/feature-delivery-workflow.md +1 -1
- package/presets/zcode/android-kotlin/adapter-map.json +1 -1
- package/presets/zcode/android-kotlin/agents/README.md +3 -3
- package/presets/zcode/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/zcode/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/zcode/android-kotlin/agents/debugger.md +1 -1
- package/presets/zcode/android-kotlin/agents/feature-developer.md +1 -1
- package/presets/zcode/android-kotlin/agents/task-analyst.md +1 -1
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +108 -1
- package/presets/zcode/android-kotlin/rules/agent-team-intake.md +2 -2
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +5 -4
- package/presets/zcode/go/adapter-map.json +1 -1
- package/presets/zcode/go/agents/README.md +2 -2
- package/presets/zcode/go/agents/build-verifier.md +1 -1
- package/presets/zcode/go/agents/code-reviewer.md +1 -1
- package/presets/zcode/go/agents/debugger.md +1 -1
- package/presets/zcode/go/agents/feature-developer.md +1 -1
- package/presets/zcode/go/agents/task-analyst.md +1 -1
- package/presets/zcode/go/hooks/chain-team-phases.sh +108 -1
- package/presets/zcode/go/rules/agent-team-intake.md +2 -2
- package/presets/zcode/go/rules/agent-team-orchestrator.md +5 -4
- package/presets/zcode/go/rules/feature-delivery-workflow.md +1 -1
- package/presets/zcode/ios-swift/adapter-map.json +1 -1
- package/presets/zcode/ios-swift/agents/README.md +3 -3
- package/presets/zcode/ios-swift/agents/build-verifier.md +1 -1
- package/presets/zcode/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/zcode/ios-swift/agents/debugger.md +1 -1
- package/presets/zcode/ios-swift/agents/feature-developer.md +1 -1
- package/presets/zcode/ios-swift/agents/task-analyst.md +1 -1
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +108 -1
- package/presets/zcode/ios-swift/rules/agent-team-intake.md +2 -2
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +5 -4
- package/presets/zcode/ios-swift/rules/feature-delivery-workflow.md +1 -1
- package/presets/zcode/java/adapter-map.json +1 -1
- package/presets/zcode/java/agents/README.md +2 -2
- package/presets/zcode/java/agents/build-verifier.md +1 -1
- package/presets/zcode/java/agents/code-reviewer.md +1 -1
- package/presets/zcode/java/agents/debugger.md +1 -1
- package/presets/zcode/java/agents/feature-developer.md +1 -1
- package/presets/zcode/java/agents/task-analyst.md +1 -1
- package/presets/zcode/java/hooks/chain-team-phases.sh +108 -1
- package/presets/zcode/java/rules/agent-team-intake.md +2 -2
- package/presets/zcode/java/rules/agent-team-orchestrator.md +5 -4
- package/presets/zcode/java/rules/feature-delivery-workflow.md +1 -1
- package/presets/zcode/mcp-ts/adapter-map.json +1 -1
- package/presets/zcode/mcp-ts/agents/README.md +1 -1
- package/presets/zcode/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/zcode/mcp-ts/agents/feature-developer.md +1 -1
- package/presets/zcode/mcp-ts/agents/task-analyst.md +1 -1
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +108 -1
- package/presets/zcode/mcp-ts/rules/agent-team-intake.md +2 -2
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +5 -4
- package/presets/zcode/mcp-ts/rules/feature-delivery-workflow.md +1 -1
- package/presets/zcode/mol/adapter-map.json +1 -1
- package/presets/zcode/mol/agents/README.md +3 -3
- package/presets/zcode/mol/agents/build-verifier.md +1 -1
- package/presets/zcode/mol/agents/code-reviewer.md +1 -1
- package/presets/zcode/mol/agents/debugger.md +1 -1
- package/presets/zcode/mol/agents/feature-developer.md +1 -1
- package/presets/zcode/mol/agents/task-analyst.md +1 -1
- package/presets/zcode/mol/hooks/chain-team-phases.sh +108 -1
- package/presets/zcode/mol/rules/agent-team-intake.md +2 -2
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +5 -4
- package/presets/zcode/mol/rules/feature-delivery-workflow.md +1 -1
- package/presets/zcode/next/REPO_AGENTS.md +16 -0
- package/presets/zcode/next/adapter-map.json +1 -1
- package/presets/zcode/next/agents/README.md +3 -3
- package/presets/zcode/next/agents/accessibility-reviewer.md +4 -1
- package/presets/zcode/next/agents/api-contract-reviewer.md +5 -2
- package/presets/zcode/next/agents/build-verifier.md +6 -3
- package/presets/zcode/next/agents/ci-investigator.md +1 -1
- package/presets/zcode/next/agents/code-reviewer.md +7 -4
- package/presets/zcode/next/agents/codebase-analyzer.md +4 -1
- package/presets/zcode/next/agents/debugger.md +2 -2
- package/presets/zcode/next/agents/feature-developer.md +2 -2
- package/presets/zcode/next/agents/migration-specialist.md +4 -1
- package/presets/zcode/next/agents/mockup-reviewer.md +4 -1
- package/presets/zcode/next/agents/openspec-author.md +4 -1
- package/presets/zcode/next/agents/performance-auditor.md +4 -1
- package/presets/zcode/next/agents/playwright-test-generator.md +5 -2
- package/presets/zcode/next/agents/playwright-test-healer.md +5 -2
- package/presets/zcode/next/agents/playwright-test-planner.md +5 -2
- package/presets/zcode/next/agents/qa-tester.md +5 -2
- package/presets/zcode/next/agents/security-reviewer.md +4 -1
- package/presets/zcode/next/agents/solution-architect.md +4 -1
- package/presets/zcode/next/agents/task-analyst.md +5 -2
- package/presets/zcode/next/agents/task-router.md +8 -5
- package/presets/zcode/next/agents/tech-writer.md +4 -1
- package/presets/zcode/next/agents/unit-test-generator.md +5 -2
- package/presets/zcode/next/agents/unit-test-healer.md +5 -2
- package/presets/zcode/next/agents/unit-test-planner.md +5 -2
- package/presets/zcode/next/ai-local/conventions.md +6 -1
- package/presets/zcode/next/hooks/chain-team-phases.sh +108 -1
- package/presets/zcode/next/rules/agent-team-intake.md +2 -2
- package/presets/zcode/next/rules/agent-team-orchestrator.md +5 -4
- package/presets/zcode/next/rules/feature-delivery-workflow.md +2 -2
- package/presets/zcode/nuxt/adapter-map.json +1 -1
- package/presets/zcode/nuxt/agents/README.md +3 -3
- package/presets/zcode/nuxt/agents/build-verifier.md +1 -1
- package/presets/zcode/nuxt/agents/code-reviewer.md +1 -1
- package/presets/zcode/nuxt/agents/debugger.md +1 -1
- package/presets/zcode/nuxt/agents/feature-developer.md +1 -1
- package/presets/zcode/nuxt/agents/task-analyst.md +1 -1
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +108 -1
- package/presets/zcode/nuxt/rules/agent-team-intake.md +2 -2
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +5 -4
- package/presets/zcode/nuxt/rules/feature-delivery-workflow.md +1 -1
- package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
- package/presets/zcode/php-hexagonal/agents/README.md +2 -2
- package/presets/zcode/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/zcode/php-hexagonal/agents/code-reviewer.md +1 -1
- package/presets/zcode/php-hexagonal/agents/debugger.md +1 -1
- package/presets/zcode/php-hexagonal/agents/feature-developer.md +1 -1
- package/presets/zcode/php-hexagonal/agents/task-analyst.md +1 -1
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +108 -1
- package/presets/zcode/php-hexagonal/rules/agent-team-intake.md +2 -2
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +5 -4
- package/presets/zcode/php-hexagonal/rules/feature-delivery-workflow.md +1 -1
- package/presets/zcode/php-laravel/adapter-map.json +1 -1
- package/presets/zcode/php-laravel/agents/README.md +2 -2
- package/presets/zcode/php-laravel/agents/build-verifier.md +1 -1
- package/presets/zcode/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/zcode/php-laravel/agents/debugger.md +1 -1
- package/presets/zcode/php-laravel/agents/feature-developer.md +1 -1
- package/presets/zcode/php-laravel/agents/task-analyst.md +1 -1
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +108 -1
- package/presets/zcode/php-laravel/rules/agent-team-intake.md +2 -2
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +5 -4
- package/presets/zcode/php-laravel/rules/feature-delivery-workflow.md +1 -1
- package/presets/zcode/svelte/adapter-map.json +1 -1
- package/presets/zcode/svelte/agents/README.md +3 -3
- package/presets/zcode/svelte/agents/build-verifier.md +1 -1
- package/presets/zcode/svelte/agents/code-reviewer.md +1 -1
- package/presets/zcode/svelte/agents/debugger.md +1 -1
- package/presets/zcode/svelte/agents/feature-developer.md +1 -1
- package/presets/zcode/svelte/agents/task-analyst.md +1 -1
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +108 -1
- package/presets/zcode/svelte/rules/agent-team-intake.md +2 -2
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +5 -4
- package/presets/zcode/svelte/rules/feature-delivery-workflow.md +1 -1
- package/scripts/aggregate-agent-task-metrics.mjs +201 -0
- package/scripts/report-context-cost.mjs +126 -0
|
@@ -21,7 +21,7 @@ Typical feature with data and UI. Concrete directories and rule stems — in the
|
|
|
21
21
|
|
|
22
22
|
## Context hygiene
|
|
23
23
|
|
|
24
|
-
A command whose output can exceed ~4 KB — a test run, a build/lint log, `git log`, a diff — is piped through `.ai.local/scripts/dump-output.mjs --task <slug>` instead of being read whole. Work from its ≤40-line head and the stored file (grep it or use `team-db.mjs search`), and when that output informed a decision, record the repo-relative `outputs/…` path in `implementation.md` or `validation-report.md`; a `code-reviewer` may ask for that path. Do not read the whole output into context.
|
|
24
|
+
A command whose output can exceed ~4 KB — a test run, a build/lint log, `git log`, a diff — is piped through `.ai.local/scripts/dump-output.mjs --task <slug>` instead of being read whole. Work from its ≤40-line head and the stored file (grep it or use `team-db.mjs search`), and when that output informed a decision, record the repo-relative `outputs/…` path in `implementation.md` or `validation-report.md`; a `code-reviewer` may ask for that path. Do not read the whole output into context. Artifact reads take the same slice: read the `artifact-manifest.json` entry, not the artifact body, and never re-read a completed entry's body. Read a large artifact with offset/limit ranges instead of a whole-file read.
|
|
25
25
|
|
|
26
26
|
## Iterative refinement loop
|
|
27
27
|
|
|
@@ -11,9 +11,9 @@ When the user message looks like a **work request** (implement, add, fix, refact
|
|
|
11
11
|
|
|
12
12
|
1. Prefer **`/task <their request>`** or invoke **task-router** first.
|
|
13
13
|
2. Do not jump straight to coding without router + pipeline when scope is non-trivial.
|
|
14
|
-
3.
|
|
14
|
+
3. A question that one read answers — “how does X work”, “explain this function” — is a **pure question**: answer inline, no file, no `/task`. A question that needs more than one read, or whose answer is written down, is a **research** request: route it to agent **`codebase-analyzer`** (explain-as-is) or a `spike` pipeline, and never open implementation steps for it. Where the always-on root agent file ships the research gate, it states this same boundary as a `MUST` (§ Research requests).
|
|
15
15
|
4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
|
|
16
|
-
5. Every **work request** — with or without `/task`, and even when the user says “no pipeline” / “just do it” — persists the **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md`. Prefer `/task` (its **Slug** step writes it). If handling inline without `/task`, first create the slug dir and write `prompt.md` (write-if-absent), then proceed. Pure questions and trivial one-liners are not work requests → no file. On an inline follow-up for an existing slug (no `/task`) where the user authors new text, append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; create on first append; exclude machine-generated and empty/argument-less invocations).
|
|
16
|
+
5. Every **work request** — with or without `/task`, and even when the user says “no pipeline” / “just do it” — persists the **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md`. Prefer `/task` (its **Slug** step writes it). If handling inline without `/task`, first create the slug dir and write `prompt.md` (write-if-absent), then proceed. Pure questions and trivial one-liners are not work requests → no file; a research request is one (rule 3). On an inline follow-up for an existing slug (no `/task`) where the user authors new text, append it verbatim to `.ai.local/team/tasks/<slug>/prompt-log.md` (`seq` = max + 1; create on first append; exclude machine-generated and empty/argument-less invocations).
|
|
17
17
|
6. **Reuse the dialogue language already resolved on this turn** (always-on `ai-local-overlay` / **language-policy**). A question and a message without a slash command still resolve before you speak. When this request writes `prompt.md`, persist that tag once in the header (`language: <BCP-47>`) + a `.memlog.md` `event:` line. Development, reasoning, and artifacts stay English. The setting wins over a mid-task prompt switch (surface it once, never ask). See **language-policy**.
|
|
18
18
|
7. **Project the intake write.** After `prompt.md` is written for an inline (non-`/task`) work request, run `node .ai.local/scripts/team-db.mjs sync --slug <slug> --deadline-ms 4500` once, so the new task row and its prompt reach the database. A projection failure is reported to the user, never blocks the request; the next full sync remains the convergence path. Do not run a full sync from intake.
|
|
19
19
|
|
|
@@ -156,7 +156,7 @@ Replanning is a **named, auditable operation** — never a silent reorder. Trigg
|
|
|
156
156
|
|
|
157
157
|
## Context budget & checkpoint/resume
|
|
158
158
|
|
|
159
|
-
Work in bounded waves (one artifact class across the target surface). **Checkpoint** each completed wave to `.memlog.md` (`## <date>` + an `event:` line) and record the produced paths on the `implementation` manifest entry (`authoritativePaths`). That checkpoint is the hook `writeStatus` path: it rewrites `.ai.local/team/tasks/<slug>/focus.md`. `focus.md` is a view, not the system of record. It lists slug, pipeline step index, authoritative paths for incomplete manifest ids, the last `.memlog.md` `event:` line, the next gate, one decomposition ready-set line, and one archive index line, and it stays under 100 lines. `status.json`, `metrics.json`, `artifact-manifest.json`, and `.memlog.md` stay the system of record. A resumed run (`/task-continue`) reads `focus.md` first, then `artifact-manifest.json` and `.memlog.md`, and continues at the first stage whose exit criteria are unmet — never re-derive state from the chat. A completed manifest entry keeps id, status, and `authoritativePaths`, and the default resume read omits that entry's markdown body; closing it appends one new `.memlog.md` event: line, moves the bulky body to `.ai.local/team/tasks/<slug>/archive/YYYY-MM-DD/`, and leaves earlier memlog lines, the human-readable slug and artifact ids, and the manifest entry in place, with no Beads hash ids and no Taskmaster tags. Mechanical waves (generation, embed sync) are delegated to repo scripts. A large command output (log, diff, test run, `git log`) is piped through `.ai.local/scripts/dump-output.mjs` instead of being read whole: take its ≤40-line head, then `grep -n` the stored file or find it with `team-db.mjs search "<term>"`. An **interrupted producer** (tool abort, killed session) is resumed, not restarted: run the stack's compile gate on the working tree first, and when it is red hand the failing output to the same producer with a `fix and finish` brief instead of starting a second parallel attempt. When the host runtime writes no `status.json` (manual-hook hosts such as OpenCode), the resume checkpoint is `artifact-manifest.json` + `.memlog.md`; never gate a resume on a file the runtime does not produce. See **context-and-iteration** for the budget, checkpoint, resume, and refinement loop.
|
|
159
|
+
Work in bounded waves (one artifact class across the target surface). **Checkpoint** each completed wave to `.memlog.md` (`## <date>` + an `event:` line) and record the produced paths on the `implementation` manifest entry (`authoritativePaths`). That checkpoint is the hook `writeStatus` path: it rewrites `.ai.local/team/tasks/<slug>/focus.md`. `focus.md` is a view, not the system of record. It lists slug, pipeline step index, authoritative paths for incomplete manifest ids, the last `.memlog.md` `event:` line, the next gate, one decomposition ready-set line, and one archive index line, and it stays under 100 lines. `status.json`, `metrics.json`, `artifact-manifest.json`, and `.memlog.md` stay the system of record. A resumed run (`/task-continue`) reads `focus.md` first, then `artifact-manifest.json` and `.memlog.md`, and continues at the first stage whose exit criteria are unmet — never re-derive state from the chat. A session approaching ~50 turns does not keep growing its history: the producer finishes the current wave, checkpoints it (`focus.md` + `artifact-manifest.json` + `.memlog.md`), and hands off to a fresh session. A wave that cannot finish before the cap checkpoints its partial state the same way. A completed manifest entry keeps id, status, and `authoritativePaths`, and the default resume read omits that entry's markdown body; closing it appends one new `.memlog.md` event: line, moves the bulky body to `.ai.local/team/tasks/<slug>/archive/YYYY-MM-DD/`, and leaves earlier memlog lines, the human-readable slug and artifact ids, and the manifest entry in place, with no Beads hash ids and no Taskmaster tags. Mechanical waves (generation, embed sync) are delegated to repo scripts. A large command output (log, diff, test run, `git log`) is piped through `.ai.local/scripts/dump-output.mjs` instead of being read whole: take its ≤40-line head, then `grep -n` the stored file or find it with `team-db.mjs search "<term>"`. An **interrupted producer** (tool abort, killed session) is resumed, not restarted: run the stack's compile gate on the working tree first, and when it is red hand the failing output to the same producer with a `fix and finish` brief instead of starting a second parallel attempt. When the host runtime writes no `status.json` (manual-hook hosts such as OpenCode), the resume checkpoint is `artifact-manifest.json` + `.memlog.md`; never gate a resume on a file the runtime does not produce. See **context-and-iteration** for the budget, checkpoint, resume, and refinement loop.
|
|
160
160
|
|
|
161
161
|
## Self-review & context hygiene
|
|
162
162
|
|
|
@@ -274,9 +274,10 @@ Use Task tool or `/agent-name`. Pass: slug, artifact paths, step `scope` if set.
|
|
|
274
274
|
|
|
275
275
|
1. Read `steps[i].model` if present; else use the agent’s frontmatter `model` (see `agents/README.md` matrix).
|
|
276
276
|
2. Resolve the tier through `.ai.local/team/model-tiers.json` → `tiers.<tier>` when that file exists. The user approved that map, so passing an explicit model is allowed. Pass the resolved `providerID/modelID` (or `providerID/modelID#variant`) to the Task/subagent tool.
|
|
277
|
-
- **`cheap`** →
|
|
278
|
-
- **`standard`** → implementation
|
|
279
|
-
- **`strong`** → architecture, security, migration, performance
|
|
277
|
+
- **`cheap`** → router, analyst, tech-writer, codebase-analyzer, and the review roles `code-reviewer`, `build-verifier`, `api-contract-reviewer`, `mockup-reviewer`. Resolve the provider through `.ai.local/team/model-tiers.json`. Do not write a provider id into the agent file. Pass the mapped id as written; do not append `#high`.
|
|
278
|
+
- **`standard`** → implementation and the other non-review specialists. `feature-developer` stays on this tier.
|
|
279
|
+
- **`strong`** → architecture, security, migration, performance. Never downgrade a `strong` step to the parent default, and do not put `mockup-reviewer` on `strong`.
|
|
280
|
+
- When `steps[i].model` is omitted and the agent file has no `model`, those four review roles stay `cheap` when `.ai.local/team/model-tiers.json` exists. Without that file, omit the model and the session model applies.
|
|
280
281
|
- If a tier is declared but the file has no mapping, **STOP** and report `model-tier-unmapped`; do not silently inherit the parent model.
|
|
281
282
|
3. If the tool does not accept a model (Cursor/Claude adapters), record the resolved tier in the handoff and let the platform pin apply.
|
|
282
283
|
4. Parallel steps: apply the step-level `model` to **each** agent in the array (or omit → each agent’s own frontmatter).
|
|
@@ -14,6 +14,22 @@ Cross-tool repo-root guide. Tool-specific maps stay under `.cursor/AGENTS.md`, `
|
|
|
14
14
|
|
|
15
15
|
Read the map and the essential rules for the tool you are running in; that map lists them. Do not preload the full catalog. Do not read another installed tool's tree — its copies of the same rules belong to that host.
|
|
16
16
|
|
|
17
|
+
## Research requests (gate, budget, read discipline)
|
|
18
|
+
|
|
19
|
+
### Work-request gate
|
|
20
|
+
|
|
21
|
+
A message that only asks to analyze, investigate, measure, or estimate — «проанализируй», «исследуй», «оцени», «можно ли…» — and carries no explicit make / fix / add verb («сделай», «исправь», «добавь») is a **research** request. You **MUST** route it to the `codebase-analyzer` agent or a `spike` pipeline, and **MUST NOT** open implementation steps for it. <!-- i18n-keep: E4 -->
|
|
22
|
+
|
|
23
|
+
The boundary is the read count, not the phrasing: a single factual question that one read answers stays a **pure question** — answer it inline, no file; a request that needs more than one read, or whose answer is written down, is a research request. Persist the slug, the verbatim `.ai.local/team/tasks/<slug>/prompt.md` (§ Prompt persistence) and `.ai.local/team/tasks/<slug>/analysis.md` (§ Read discipline) before either route starts. A research answer ends the turn; it does not continue into code.
|
|
24
|
+
|
|
25
|
+
### Session budget
|
|
26
|
+
|
|
27
|
+
Around turn 50 of a session, **MUST** checkpoint instead of growing the history: finish the current step, write `.ai.local/team/tasks/<slug>/focus.md`, upsert the `artifact-manifest.json` receipt, append a `.memlog.md` decision line, then continue in a fresh session that reads those three files. This is always on, not a `/task`-only rule: state that lives only in the chat has no checkpoint. The full checkpoint contract is `agent-team-orchestrator` (§ Context budget & checkpoint/resume).
|
|
28
|
+
|
|
29
|
+
### Read discipline
|
|
30
|
+
|
|
31
|
+
A research fact **MUST** be written to `.ai.local/team/tasks/<slug>/analysis.md` — the fact plus the `path:line` it came from — before the same file is read a second time. A second read of one file with no new `analysis.md` line is a loop, not progress.
|
|
32
|
+
|
|
17
33
|
## Pipelines are shared
|
|
18
34
|
|
|
19
35
|
`/task` slug, `status.json`, and `metrics.json` live under `.ai.local/team/tasks/<slug>/`. Cursor, Claude, Mavis, OpenCode, and ZCode share this folder (including `init multi`).
|
|
@@ -64,15 +64,16 @@ Default SoT — YAML `model` in each agent file. Optional `steps[].model` (`chea
|
|
|
64
64
|
|
|
65
65
|
| Tier | Default frontmatter | Agents |
|
|
66
66
|
|------|---------------------|--------|
|
|
67
|
-
| **cheap** | `haiku` | `task-router`, `task-analyst`, `build-verifier`, `code-reviewer`, `tech-writer`, `codebase-analyzer` |
|
|
68
|
-
| **standard** | `inherit` or `sonnet` | `feature-developer`, `debugger`, `ci-investigator`, `
|
|
69
|
-
| **strong** | `opus` | `solution-architect`, `migration-specialist`, `security-reviewer`, `performance-auditor
|
|
67
|
+
| **cheap** | `haiku` | `task-router`, `task-analyst`, `build-verifier`, `code-reviewer`, `api-contract-reviewer`, `mockup-reviewer`, `tech-writer`, `codebase-analyzer` |
|
|
68
|
+
| **standard** | `inherit` or `sonnet` | `feature-developer`, `debugger`, `ci-investigator`, `accessibility-reviewer`, `qa-tester`, `unit-test-*`, `playwright-test-*`, `openspec-author` (`sonnet` where already pinned) |
|
|
69
|
+
| **strong** | `opus` | `solution-architect`, `migration-specialist`, `security-reviewer`, `performance-auditor` |
|
|
70
70
|
|
|
71
71
|
**Notes**
|
|
72
72
|
|
|
73
73
|
- Claude Code aliases: `haiku` / `sonnet` / `opus` / `inherit` (full IDs also OK). Cheap agents pin `haiku`; an unknown value is substituted with the parent model, so the cheap tier is not delivered. Cursor keeps its own `fast` tier, which is not a Claude alias.
|
|
74
74
|
- Resolution order (Claude Code): per-invocation `model` → frontmatter `model` → env `CLAUDE_CODE_SUBAGENT_MODEL` → parent session.
|
|
75
75
|
- Never put `strong` on `build-verifier` / `tech-writer` / `task-router`.
|
|
76
|
+
- Review-shaped reviewers (`code-reviewer`, `build-verifier`, `api-contract-reviewer`, `mockup-reviewer`) sit on `cheap` (`haiku` here). OpenCode does not pin a provider in the agent file; this repo maps `cheap` in `.ai.local/team/model-tiers.json`. The 2026-11-16 flash vs v4-pro bench on `guard-tests` (n=5) was cost −76.7% and tokens +12.3%. Its oracle checks that a test script's last line is echoed. That run did not measure code review, contract review, or mockup review, and it did not measure Cursor `fast` or Claude `haiku`.
|
|
76
77
|
|
|
77
78
|
## Orchestration
|
|
78
79
|
|
|
@@ -14,9 +14,12 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
17
21
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
22
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
23
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
24
|
|
|
22
25
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: api-contract-reviewer
|
|
3
3
|
description: API contract review specialist. Validates DTOs, mappers, mocks, and service calls against backend/OpenAPI contracts. Writes api-contract-review.md only; never edits production code.
|
|
4
|
-
model:
|
|
4
|
+
model: haiku
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Rules to load (subagent context)
|
|
@@ -13,12 +13,15 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
13
13
|
- `.claude/rules/tooling-and-review/code-quality.md`
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
17
|
+
- `.claude/rules/api-and-data/api-services.md`
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
16
21
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
22
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
23
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
24
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
|
-
- `.claude/rules/api-and-data/api-services.md`
|
|
22
25
|
- `.claude/rules/api-and-data/http-client.md`
|
|
23
26
|
|
|
24
27
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -13,12 +13,15 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
13
13
|
- `.claude/rules/tooling-and-review/code-quality.md`
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
17
|
+
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
16
21
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
22
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
23
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
24
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
22
25
|
|
|
23
26
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
24
27
|
|
|
@@ -102,7 +105,7 @@ Before you run the project gate and write the terminal validation receipt, self-
|
|
|
102
105
|
|
|
103
106
|
Record a `## Self-review` block in `validation-report.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
104
107
|
|
|
105
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing.
|
|
108
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
106
109
|
|
|
107
110
|
## Local overlay compliance (soft gate)
|
|
108
111
|
|
|
@@ -15,7 +15,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
17
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
19
18
|
|
|
20
19
|
Read when the task reaches the matching zone:
|
|
21
20
|
|
|
@@ -40,6 +39,7 @@ Read when the task reaches the matching zone:
|
|
|
40
39
|
- `.claude/rules/stack/types-jsdoc.md`
|
|
41
40
|
- `.claude/rules/api-and-data/api-services.md`
|
|
42
41
|
- `.claude/rules/api-and-data/http-client.md`
|
|
42
|
+
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
43
43
|
|
|
44
44
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
45
45
|
|
|
@@ -12,14 +12,17 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
12
12
|
- `.claude/rules/tooling-and-review/package-manager.md`
|
|
13
13
|
- `.claude/rules/tooling-and-review/code-quality.md`
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
16
|
+
- `.claude/rules/tooling-and-review/code-review-mr.md`
|
|
17
|
+
- `.claude/rules/anti-hallucination/react-next-anti-hallucination.md` — phantom import banlist
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
15
21
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
22
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
23
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
24
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
25
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
|
-
- `.claude/rules/tooling-and-review/code-review-mr.md`
|
|
22
|
-
- `.claude/rules/anti-hallucination/react-next-anti-hallucination.md` — phantom import banlist
|
|
23
26
|
|
|
24
27
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
25
28
|
|
|
@@ -61,7 +64,7 @@ Before you emit the terminal review receipt, self-audit the review artifact: eve
|
|
|
61
64
|
|
|
62
65
|
Record a `## Self-review` block in `review.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
63
66
|
|
|
64
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Append each finding to `review-ledger.md` (`disposition: open`) before the receipt.
|
|
67
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Append each finding to `review-ledger.md` (`disposition: open`) before the receipt. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
65
68
|
|
|
66
69
|
## UI / Figma parity gate (UI-touching MR)
|
|
67
70
|
|
|
@@ -15,9 +15,12 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
15
15
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
16
16
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
17
17
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
18
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
19
|
+
|
|
20
|
+
Read when the task reaches the matching zone:
|
|
21
|
+
|
|
18
22
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
19
23
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
20
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
21
24
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
25
|
|
|
23
26
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -15,7 +15,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
17
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
19
18
|
|
|
20
19
|
Read when the task reaches the matching zone:
|
|
21
20
|
|
|
@@ -40,6 +39,7 @@ Read when the task reaches the matching zone:
|
|
|
40
39
|
- `.claude/rules/stack/types-jsdoc.md`
|
|
41
40
|
- `.claude/rules/api-and-data/api-services.md`
|
|
42
41
|
- `.claude/rules/api-and-data/http-client.md`
|
|
42
|
+
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
43
43
|
|
|
44
44
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
45
45
|
|
|
@@ -102,7 +102,7 @@ Before you set `fixApplied: true` and emit the terminal receipt, self-audit the
|
|
|
102
102
|
|
|
103
103
|
Record a `## Self-review` block in `debug-report.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
104
104
|
|
|
105
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing.
|
|
105
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
## MCP usage
|
|
@@ -15,7 +15,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
17
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
19
18
|
|
|
20
19
|
Read when the task reaches the matching zone:
|
|
21
20
|
|
|
@@ -40,6 +39,7 @@ Read when the task reaches the matching zone:
|
|
|
40
39
|
- `.claude/rules/stack/types-jsdoc.md`
|
|
41
40
|
- `.claude/rules/api-and-data/api-services.md`
|
|
42
41
|
- `.claude/rules/api-and-data/http-client.md`
|
|
42
|
+
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
43
43
|
|
|
44
44
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
45
45
|
|
|
@@ -140,7 +140,7 @@ Before you emit the terminal implementation receipt (per wave for multi-wave wor
|
|
|
140
140
|
|
|
141
141
|
Record a `## Self-review` block in `implementation.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
142
142
|
|
|
143
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing.
|
|
143
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
144
144
|
|
|
145
145
|
## UI self-check vs Figma
|
|
146
146
|
|
|
@@ -14,9 +14,12 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
17
21
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
22
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
23
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
24
|
|
|
22
25
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mockup-reviewer
|
|
3
3
|
description: Figma mockup review specialist. Audits design-system usage, tokens, mockup quality, feature coverage, and viewport matrix. Writes mockup-review.md only; never edits production code or Figma.
|
|
4
|
-
model:
|
|
4
|
+
model: haiku
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Rules to load (subagent context)
|
|
@@ -14,9 +14,12 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
17
21
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
22
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
23
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
24
|
|
|
22
25
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -14,9 +14,12 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
17
21
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
22
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
23
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
24
|
|
|
22
25
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -14,9 +14,12 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
17
21
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
22
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
23
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
24
|
|
|
22
25
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -15,12 +15,15 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
15
15
|
- `.claude/rules/tooling-and-review/code-quality.md`
|
|
16
16
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
17
17
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
18
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
19
|
+
- `.claude/rules/testing/playwright-agents.md`
|
|
20
|
+
|
|
21
|
+
Read when the task reaches the matching zone:
|
|
22
|
+
|
|
18
23
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
19
24
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
20
25
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
21
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
22
26
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
23
|
-
- `.claude/rules/testing/playwright-agents.md`
|
|
24
27
|
- `.claude/rules/testing/tests-e2e-structure.md`
|
|
25
28
|
- `.claude/rules/tooling-and-review/dev-process-lifecycle.md`
|
|
26
29
|
- `.claude/rules/anti-hallucination/react-next-anti-hallucination.md` — phantom import banlist
|
|
@@ -15,12 +15,15 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
15
15
|
- `.claude/rules/tooling-and-review/code-quality.md`
|
|
16
16
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
17
17
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
18
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
19
|
+
- `.claude/rules/testing/playwright-agents.md`
|
|
20
|
+
|
|
21
|
+
Read when the task reaches the matching zone:
|
|
22
|
+
|
|
18
23
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
19
24
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
20
25
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
21
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
22
26
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
23
|
-
- `.claude/rules/testing/playwright-agents.md`
|
|
24
27
|
- `.claude/rules/testing/tests-e2e-structure.md`
|
|
25
28
|
- `.claude/rules/tooling-and-review/dev-process-lifecycle.md`
|
|
26
29
|
- `.claude/rules/anti-hallucination/react-next-anti-hallucination.md` — phantom import banlist
|
|
@@ -15,12 +15,15 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
15
15
|
- `.claude/rules/tooling-and-review/code-quality.md`
|
|
16
16
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
17
17
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
18
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
19
|
+
- `.claude/rules/testing/playwright-agents.md`
|
|
20
|
+
|
|
21
|
+
Read when the task reaches the matching zone:
|
|
22
|
+
|
|
18
23
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
19
24
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
20
25
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
21
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
22
26
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
23
|
-
- `.claude/rules/testing/playwright-agents.md`
|
|
24
27
|
- `.claude/rules/testing/tests-e2e-structure.md`
|
|
25
28
|
- `.claude/rules/tooling-and-review/dev-process-lifecycle.md`
|
|
26
29
|
- `.claude/rules/anti-hallucination/react-next-anti-hallucination.md` — phantom import banlist
|
|
@@ -13,12 +13,15 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
13
13
|
- `.claude/rules/tooling-and-review/code-quality.md`
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
17
|
+
- `.claude/rules/testing/tests-unit.md`
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
16
21
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
22
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
23
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
24
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
|
-
- `.claude/rules/testing/tests-unit.md`
|
|
22
25
|
- `.claude/rules/testing/playwright-agents.md`
|
|
23
26
|
- `.claude/rules/testing/tests-e2e-structure.md`
|
|
24
27
|
- `.claude/rules/tooling-and-review/dev-process-lifecycle.md`
|
|
@@ -14,9 +14,12 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
17
21
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
22
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
23
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
24
|
|
|
22
25
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -14,9 +14,12 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
17
21
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
22
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
23
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
24
|
|
|
22
25
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -14,9 +14,12 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
17
21
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
22
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
23
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
24
|
|
|
22
25
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -77,7 +80,7 @@ Before you emit the terminal analysis receipt, self-audit the goal frame and dec
|
|
|
77
80
|
|
|
78
81
|
Record a `## Self-review` block in `brief.md` (goal/AC coverage, evidence, alignment/drift). Optional loop (see the requestable `self-review-and-context-hygiene` contract). In-task self-learning loop: run `node .ai.local/scripts/run.mjs` at the pre-receipt self-review when the engine exists; capture one wrong-turn with `node .ai.local/scripts/signals.mjs --append '<json>'` and inspect read-only with `node .ai.local/scripts/run.mjs --status`. Keep the loop deterministic: it runs no model-driven pass — rule text is template-derived from the validated signature; a model-driven pass is not part of the loop, and if one is ever added it must be default-off and may write only to the staged band. Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
79
82
|
|
|
80
|
-
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing.
|
|
83
|
+
A self-review defect that changes the output appends one `review-ledger.md` row (`source: self`, `fair: yes`, `disposition: fixed`) before the receipt. Do not start implementation when `goal.md` is missing. Ledger rows go under the canonical header `| id | at | source | summary | fair | disposition | evidence | signature |`; after appending, run `node .ai.local/scripts/team-db.mjs ledger-check --slug <slug>` and fix any header it rejects.
|
|
81
84
|
|
|
82
85
|
## Clarification cycle (must)
|
|
83
86
|
|
|
@@ -14,9 +14,12 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
17
21
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
22
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
23
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
24
|
|
|
22
25
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -99,7 +102,7 @@ SoT: `agent-team/task-classification` (shared-core marker above; do not invent a
|
|
|
99
102
|
**L2-lite routing.** When `.ai.local/rules/task-levels.md` selects L2-lite:
|
|
100
103
|
|
|
101
104
|
- keep `profile: standard`; do not set `full` because generated trees, snapshots, CLI goldens, docs, or test fixtures push the raw file count over 10;
|
|
102
|
-
- keep only the risk specialists: `api-contract-reviewer` when the public contract changes, `security-reviewer` when destructive/auth-bearing, `mockup-reviewer` when `app/src/ui/**` changes;
|
|
105
|
+
- keep only the risk specialists: `api-contract-reviewer` when the public contract changes (skipIf no API/DTO diff), `security-reviewer` when destructive/auth-bearing, `mockup-reviewer` when `app/src/ui/**` changes (skipIf no Figma/UI surface);
|
|
103
106
|
- set `humanGates` to exactly `["after:task-analyst"]`; the contract gate and review freeze the design — a second architecture gate needs a real open decision;
|
|
104
107
|
- do not add `solution-architect`, `openspec-author`, or `tech-writer` unless a genuine open decision or install-surface docs require them; fold docs into the developer or one docs step;
|
|
105
108
|
- count substantive files only. Record the L2-lite selection and the machine-checked gate in `routingReasons`.
|
|
@@ -149,7 +152,7 @@ Keep top-level `profile` and emit this top-level object in every new `pipeline.j
|
|
|
149
152
|
|
|
150
153
|
## Adjust steps (when context is clear)
|
|
151
154
|
|
|
152
|
-
- If prompt or `brief.md` contains `figma.com` on `feature` / `refactor` / `spike` / `spec-gen`, insert **mockup-reviewer** after **task-analyst** (when present) and before **solution-architect** and **feature-developer**.
|
|
155
|
+
- If prompt or `brief.md` contains `figma.com` on `feature` / `refactor` / `spike` / `spec-gen`, insert **mockup-reviewer** after **task-analyst** (when present) and before **solution-architect** and **feature-developer**. Do not set `model` on that step: `mockup-reviewer` stays on its cheap frontmatter. Do not add static `humanGates: ["after:mockup-reviewer"]` (FAIL-only hook exception). Never put `mockup-reviewer` in a `parallel: true` step (FAIL-only gate is serial).
|
|
153
156
|
- Classify intent `mockup-review` **before** `ux-design` **before** `review-only`. A `figma.com` URL with review-not-implement language is `mockup-review` even without the word «макет», including when the user said «ревью UX». <!-- i18n-keep: E4 -->
|
|
154
157
|
- If UI stack and (required-signal or advisory UI AC), instruct **task-analyst** to load skill `ux-design` (no new pipeline step; analyst default model, not `strong`). Required-signal: user asked UX, or AC require flows/states, or spec-gen page/feature.
|
|
155
158
|
- If the resolved scope touches UI paths (`app/src/ui/**`, or the repo's component-catalog root) on `feature` / `refactor`, insert **mockup-reviewer** before **feature-developer**. This includes a UI change with no `figma.com` URL; the reviewer then uses the AC / `ux-design.md`. Do not insert it when `profile` is `light` and the prompt has no `figma.com` URL and no required-signal UX AC. A `figma.com` URL still inserts **mockup-reviewer** on every profile, including `light`.
|
|
@@ -182,11 +185,11 @@ Optional per-step field: `"model": "cheap" | "standard" | "strong"`. Omit → ag
|
|
|
182
185
|
|
|
183
186
|
| When | What to write |
|
|
184
187
|
|------|----------------|
|
|
185
|
-
| `profile: light` | set `cheap` on **all** steps (
|
|
188
|
+
| `profile: light` | set `cheap` on **all** steps (exception: unclear bug root cause on `debugger` → `strong`) |
|
|
186
189
|
| `profile: standard` | omit (frontmatter defaults) |
|
|
187
190
|
| `profile: full` | set `strong` on `solution-architect`, `migration-specialist`, `security-reviewer`, `performance-auditor` when present; omit others |
|
|
188
191
|
| `intent: spike` | set `strong` on `solution-architect` (and analyst may stay default/`cheap`) |
|
|
189
|
-
| `intent: perf-audit` /
|
|
192
|
+
| `intent: perf-audit` / security-heavy feature | `strong` on `security-reviewer` / `performance-auditor` when that step exists. `mockup-review` does not set `strong` — `mockup-reviewer` stays cheap |
|
|
190
193
|
| Always | **never** `strong` on `build-verifier`, `tech-writer`, `task-router` |
|
|
191
194
|
|
|
192
195
|
Claude Code mapping when orchestrator invokes Agent tool: `cheap` → `haiku` (or rely on frontmatter `fast`); `standard` → omit / `sonnet` / inherit; `strong` → pass `opus` (or rely on frontmatter `opus`). Prefer explicit per-invocation `model` when frontmatter is unreliable.
|
|
@@ -14,9 +14,12 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
16
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
17
21
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
22
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
23
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
24
|
|
|
22
25
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -13,12 +13,15 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
13
13
|
- `.claude/rules/tooling-and-review/code-quality.md`
|
|
14
14
|
- `.claude/rules/tooling-and-review/ai-local-overlay.md`
|
|
15
15
|
- `.claude/rules/architecture/architecture-boundaries.md` — layer boundaries and allowed imports
|
|
16
|
+
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
17
|
+
- `.claude/rules/testing/tests-unit.md`
|
|
18
|
+
|
|
19
|
+
Read when the task reaches the matching zone:
|
|
20
|
+
|
|
16
21
|
- `.claude/rules/architecture/feature-delivery-workflow.md` — layer order, mockup gate, ux-design gate
|
|
17
22
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
23
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
|
-
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
24
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
21
|
-
- `.claude/rules/testing/tests-unit.md`
|
|
22
25
|
- `.claude/rules/anti-hallucination/react-next-anti-hallucination.md` — phantom import banlist
|
|
23
26
|
|
|
24
27
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|