@bonesofspring/ai-rules 0.2.66 → 0.2.68
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 +72 -0
- package/README.md +6 -4
- package/bin/cli.js +9 -1
- package/bin/lib/engine-scripts.js +3 -10
- package/bin/lib/seed-ai-local-team.js +27 -1
- package/docs/OPENCODE-COMPATIBILITY.md +1 -0
- package/docs/OPENCODE.md +14 -1
- package/docs/PRESET-CONTRIBUTION.md +15 -8
- package/docs/TEAM-DB.md +107 -106
- package/docs/TOKEN-ECONOMY.md +36 -3
- package/docs/openapi/team-db.v1.json +3910 -1471
- package/package.json +13 -5
- package/presets/_shared/ai-local/scripts/dump-output.mjs +63 -12
- package/presets/_shared/ai-local/scripts/processes.mjs +467 -55
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +564 -10
- package/presets/_shared/ai-local/scripts/team-db-openapi.mjs +819 -50
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +659 -5
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +135 -0
- package/presets/_shared/ai-local/scripts/team-db-task-runner.mjs +11 -6
- package/presets/_shared/ai-local/scripts/team-db-tracker.mjs +2 -0
- package/presets/_shared/ai-local/scripts/team-db.mjs +16 -54
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +5 -5
- package/presets/_shared/core/architecture/feature-delivery-workflow.md +3 -7
- package/presets/_shared/core/meta/preset-pr-checklist.md +2 -2
- package/presets/_shared/core/quality/code-quality-and-refactoring.md +2 -6
- package/presets/_shared/core/quality/verification-before-completion.md +20 -3
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +21 -5
- package/presets/_shared/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/android-kotlin/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/go/REPO_AGENTS.md +7 -47
- package/presets/claude/go/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/go/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/go/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/go/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/ios-swift/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/java/REPO_AGENTS.md +7 -47
- package/presets/claude/java/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/java/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/java/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/java/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/mcp-ts/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/mol/REPO_AGENTS.md +9 -49
- package/presets/claude/mol/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/mol/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/mol/rules/architecture/feature-delivery-workflow.md +3 -7
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/mol/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/mol/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/next/REPO_AGENTS.md +10 -50
- package/presets/claude/next/agents/accessibility-reviewer.md +0 -1
- package/presets/claude/next/agents/api-contract-reviewer.md +0 -1
- package/presets/claude/next/agents/build-verifier.md +12 -8
- package/presets/claude/next/agents/ci-investigator.md +5 -2
- package/presets/claude/next/agents/code-reviewer.md +1 -1
- package/presets/claude/next/agents/codebase-analyzer.md +0 -1
- package/presets/claude/next/agents/debugger.md +5 -2
- package/presets/claude/next/agents/feature-developer.md +11 -8
- package/presets/claude/next/agents/migration-specialist.md +0 -1
- package/presets/claude/next/agents/mockup-reviewer.md +0 -1
- package/presets/claude/next/agents/openspec-author.md +0 -1
- package/presets/claude/next/agents/performance-auditor.md +0 -1
- package/presets/claude/next/agents/playwright-test-generator.md +0 -1
- package/presets/claude/next/agents/playwright-test-healer.md +0 -1
- package/presets/claude/next/agents/playwright-test-planner.md +0 -1
- package/presets/claude/next/agents/qa-tester.md +3 -3
- package/presets/claude/next/agents/security-reviewer.md +0 -1
- package/presets/claude/next/agents/solution-architect.md +0 -1
- package/presets/claude/next/agents/task-analyst.md +0 -1
- package/presets/claude/next/agents/task-router.md +8 -7
- package/presets/claude/next/agents/tech-writer.md +0 -1
- package/presets/claude/next/agents/unit-test-generator.md +0 -1
- package/presets/claude/next/agents/unit-test-healer.md +0 -1
- package/presets/claude/next/agents/unit-test-planner.md +0 -1
- package/presets/claude/next/commands/README.md +0 -6
- package/presets/claude/next/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/next/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +9 -9
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/next/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +12 -16
- package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/claude/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/claude/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/nuxt/REPO_AGENTS.md +8 -48
- package/presets/claude/nuxt/agents/accessibility-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/api-contract-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/build-verifier.md +5 -3
- package/presets/claude/nuxt/agents/ci-investigator.md +1 -1
- package/presets/claude/nuxt/agents/code-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/codebase-analyzer.md +0 -1
- package/presets/claude/nuxt/agents/debugger.md +1 -1
- package/presets/claude/nuxt/agents/feature-developer.md +6 -6
- package/presets/claude/nuxt/agents/migration-specialist.md +0 -1
- package/presets/claude/nuxt/agents/mockup-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/openspec-author.md +0 -1
- package/presets/claude/nuxt/agents/performance-auditor.md +0 -1
- package/presets/claude/nuxt/agents/playwright-test-generator.md +0 -1
- package/presets/claude/nuxt/agents/playwright-test-healer.md +0 -1
- package/presets/claude/nuxt/agents/playwright-test-planner.md +0 -1
- package/presets/claude/nuxt/agents/qa-tester.md +3 -3
- package/presets/claude/nuxt/agents/security-reviewer.md +0 -1
- package/presets/claude/nuxt/agents/solution-architect.md +0 -1
- package/presets/claude/nuxt/agents/task-analyst.md +0 -1
- package/presets/claude/nuxt/agents/task-router.md +8 -7
- package/presets/claude/nuxt/agents/tech-writer.md +0 -1
- package/presets/claude/nuxt/agents/unit-test-generator.md +0 -1
- package/presets/claude/nuxt/agents/unit-test-healer.md +0 -1
- package/presets/claude/nuxt/agents/unit-test-planner.md +0 -1
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/nuxt/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +3 -7
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/nuxt/rules/tooling-and-review/post-change-lint.md +14 -14
- package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/claude/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/claude/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/php-hexagonal/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/php-laravel/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +3 -7
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/svelte/REPO_AGENTS.md +8 -48
- package/presets/claude/svelte/agents/accessibility-reviewer.md +0 -1
- package/presets/claude/svelte/agents/api-contract-reviewer.md +0 -1
- package/presets/claude/svelte/agents/build-verifier.md +5 -3
- package/presets/claude/svelte/agents/ci-investigator.md +1 -1
- package/presets/claude/svelte/agents/code-reviewer.md +0 -1
- package/presets/claude/svelte/agents/codebase-analyzer.md +0 -1
- package/presets/claude/svelte/agents/debugger.md +1 -1
- package/presets/claude/svelte/agents/feature-developer.md +6 -6
- package/presets/claude/svelte/agents/migration-specialist.md +0 -1
- package/presets/claude/svelte/agents/mockup-reviewer.md +0 -1
- package/presets/claude/svelte/agents/openspec-author.md +0 -1
- package/presets/claude/svelte/agents/performance-auditor.md +0 -1
- package/presets/claude/svelte/agents/playwright-test-generator.md +0 -1
- package/presets/claude/svelte/agents/playwright-test-healer.md +0 -1
- package/presets/claude/svelte/agents/playwright-test-planner.md +0 -1
- package/presets/claude/svelte/agents/qa-tester.md +3 -3
- package/presets/claude/svelte/agents/security-reviewer.md +0 -1
- package/presets/claude/svelte/agents/solution-architect.md +0 -1
- package/presets/claude/svelte/agents/task-analyst.md +0 -1
- package/presets/claude/svelte/agents/task-router.md +8 -7
- package/presets/claude/svelte/agents/tech-writer.md +0 -1
- package/presets/claude/svelte/agents/unit-test-generator.md +0 -1
- package/presets/claude/svelte/agents/unit-test-healer.md +0 -1
- package/presets/claude/svelte/agents/unit-test-planner.md +0 -1
- package/presets/claude/svelte/hooks/chain-team-phases.sh +21 -5
- package/presets/claude/svelte/hooks/list-ai-local.mjs +17 -0
- package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +3 -7
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +5 -5
- package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +2 -6
- package/presets/claude/svelte/rules/tooling-and-review/post-change-lint.md +14 -14
- package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/claude/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/claude/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/android-kotlin/AGENTS.md +0 -10
- package/presets/cursor/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/android-kotlin/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/go/AGENTS.md +0 -8
- package/presets/cursor/go/REPO_AGENTS.md +7 -47
- package/presets/cursor/go/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/go/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/go/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/ios-swift/AGENTS.md +0 -10
- package/presets/cursor/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/ios-swift/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/java/AGENTS.md +0 -8
- package/presets/cursor/java/REPO_AGENTS.md +7 -47
- package/presets/cursor/java/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/java/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/java/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/mcp-ts/AGENTS.md +0 -6
- package/presets/cursor/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/mcp-ts/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/mol/AGENTS.md +0 -11
- package/presets/cursor/mol/REPO_AGENTS.md +9 -49
- package/presets/cursor/mol/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/mol/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/mol/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/mol/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/next/AGENTS.md +1 -12
- package/presets/cursor/next/REPO_AGENTS.md +10 -50
- package/presets/cursor/next/agents/build-verifier.md +11 -7
- package/presets/cursor/next/agents/code-reviewer.md +1 -0
- package/presets/cursor/next/agents/feature-developer.md +6 -6
- package/presets/cursor/next/agents/qa-tester.md +3 -2
- package/presets/cursor/next/agents/task-router.md +8 -6
- package/presets/cursor/next/commands/README.md +0 -6
- package/presets/cursor/next/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/next/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +4 -4
- package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/next/rules/feature-delivery-workflow.mdc +6 -2
- package/presets/cursor/next/rules/post-change-lint.mdc +12 -16
- package/presets/cursor/next/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/cursor/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/cursor/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/nuxt/AGENTS.md +1 -12
- package/presets/cursor/nuxt/REPO_AGENTS.md +8 -48
- package/presets/cursor/nuxt/agents/build-verifier.md +1 -1
- package/presets/cursor/nuxt/agents/feature-developer.md +2 -2
- package/presets/cursor/nuxt/agents/qa-tester.md +3 -2
- package/presets/cursor/nuxt/agents/task-router.md +8 -6
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/nuxt/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/nuxt/rules/post-change-lint.mdc +14 -14
- package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/cursor/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/cursor/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/php-hexagonal/AGENTS.md +0 -8
- package/presets/cursor/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/php-hexagonal/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/php-laravel/AGENTS.md +0 -8
- package/presets/cursor/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/php-laravel/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/svelte/AGENTS.md +1 -12
- package/presets/cursor/svelte/REPO_AGENTS.md +8 -48
- package/presets/cursor/svelte/agents/build-verifier.md +1 -1
- package/presets/cursor/svelte/agents/feature-developer.md +2 -2
- package/presets/cursor/svelte/agents/qa-tester.md +3 -2
- package/presets/cursor/svelte/agents/task-router.md +8 -6
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +21 -5
- package/presets/cursor/svelte/hooks/list-ai-local.mjs +17 -0
- package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +2 -6
- package/presets/cursor/svelte/rules/post-change-lint.mdc +14 -14
- package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/cursor/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/cursor/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/android-kotlin/MAVIS.md +0 -2
- package/presets/mavis/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/mavis/android-kotlin/adapter-map.json +1 -1
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/android-kotlin/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/android-kotlin/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/go/MAVIS.md +8 -0
- package/presets/mavis/go/REPO_AGENTS.md +7 -47
- package/presets/mavis/go/adapter-map.json +1 -1
- package/presets/mavis/go/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/go/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/go/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/go/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/go/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/go/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/ios-swift/MAVIS.md +0 -2
- package/presets/mavis/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/mavis/ios-swift/adapter-map.json +1 -1
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/ios-swift/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/ios-swift/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/java/MAVIS.md +14 -0
- package/presets/mavis/java/REPO_AGENTS.md +7 -47
- package/presets/mavis/java/adapter-map.json +1 -1
- package/presets/mavis/java/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/java/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/java/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/java/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/java/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/java/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/mcp-ts/MAVIS.md +6 -0
- package/presets/mavis/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/mavis/mcp-ts/adapter-map.json +1 -1
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/mcp-ts/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/mcp-ts/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/mol/MAVIS.md +1 -5
- package/presets/mavis/mol/REPO_AGENTS.md +9 -49
- package/presets/mavis/mol/adapter-map.json +1 -1
- package/presets/mavis/mol/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/mol/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/mol/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/mol/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/mol/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/next/MAVIS.md +2 -6
- package/presets/mavis/next/REPO_AGENTS.md +10 -50
- package/presets/mavis/next/adapter-map.json +1 -17
- package/presets/mavis/next/agents/accessibility-reviewer.md +0 -1
- package/presets/mavis/next/agents/api-contract-reviewer.md +0 -1
- package/presets/mavis/next/agents/build-verifier.md +12 -8
- package/presets/mavis/next/agents/ci-investigator.md +5 -2
- package/presets/mavis/next/agents/code-reviewer.md +1 -1
- package/presets/mavis/next/agents/codebase-analyzer.md +0 -1
- package/presets/mavis/next/agents/debugger.md +5 -2
- package/presets/mavis/next/agents/feature-developer.md +11 -8
- package/presets/mavis/next/agents/migration-specialist.md +0 -1
- package/presets/mavis/next/agents/mockup-reviewer.md +0 -1
- package/presets/mavis/next/agents/openspec-author.md +0 -1
- package/presets/mavis/next/agents/performance-auditor.md +0 -1
- package/presets/mavis/next/agents/playwright-test-generator.md +0 -1
- package/presets/mavis/next/agents/playwright-test-healer.md +0 -1
- package/presets/mavis/next/agents/playwright-test-planner.md +0 -1
- package/presets/mavis/next/agents/qa-tester.md +3 -3
- package/presets/mavis/next/agents/security-reviewer.md +0 -1
- package/presets/mavis/next/agents/solution-architect.md +0 -1
- package/presets/mavis/next/agents/task-analyst.md +0 -1
- package/presets/mavis/next/agents/task-router.md +8 -7
- package/presets/mavis/next/agents/tech-writer.md +0 -1
- package/presets/mavis/next/agents/unit-test-generator.md +0 -1
- package/presets/mavis/next/agents/unit-test-healer.md +0 -1
- package/presets/mavis/next/agents/unit-test-planner.md +0 -1
- package/presets/mavis/next/commands/README.md +0 -6
- package/presets/mavis/next/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/next/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/next/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/next/rules/feature-delivery-workflow.md +9 -9
- package/presets/mavis/next/rules/post-change-lint.md +11 -15
- package/presets/mavis/next/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/mavis/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/mavis/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/nuxt/MAVIS.md +2 -6
- package/presets/mavis/nuxt/REPO_AGENTS.md +8 -48
- package/presets/mavis/nuxt/adapter-map.json +1 -1
- package/presets/mavis/nuxt/agents/accessibility-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/api-contract-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/build-verifier.md +2 -2
- package/presets/mavis/nuxt/agents/ci-investigator.md +1 -1
- package/presets/mavis/nuxt/agents/code-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/codebase-analyzer.md +0 -1
- package/presets/mavis/nuxt/agents/debugger.md +1 -1
- package/presets/mavis/nuxt/agents/feature-developer.md +3 -3
- package/presets/mavis/nuxt/agents/migration-specialist.md +0 -1
- package/presets/mavis/nuxt/agents/mockup-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/openspec-author.md +0 -1
- package/presets/mavis/nuxt/agents/performance-auditor.md +0 -1
- package/presets/mavis/nuxt/agents/playwright-test-generator.md +0 -1
- package/presets/mavis/nuxt/agents/playwright-test-healer.md +0 -1
- package/presets/mavis/nuxt/agents/playwright-test-planner.md +0 -1
- package/presets/mavis/nuxt/agents/qa-tester.md +3 -3
- package/presets/mavis/nuxt/agents/security-reviewer.md +0 -1
- package/presets/mavis/nuxt/agents/solution-architect.md +0 -1
- package/presets/mavis/nuxt/agents/task-analyst.md +0 -1
- package/presets/mavis/nuxt/agents/task-router.md +8 -7
- package/presets/mavis/nuxt/agents/tech-writer.md +0 -1
- package/presets/mavis/nuxt/agents/unit-test-generator.md +0 -1
- package/presets/mavis/nuxt/agents/unit-test-healer.md +0 -1
- package/presets/mavis/nuxt/agents/unit-test-planner.md +0 -1
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/nuxt/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/nuxt/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/nuxt/rules/post-change-lint.md +13 -13
- package/presets/mavis/nuxt/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/mavis/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/mavis/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/php-hexagonal/MAVIS.md +16 -0
- package/presets/mavis/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/mavis/php-hexagonal/adapter-map.json +1 -1
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/php-hexagonal/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/php-hexagonal/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/php-laravel/MAVIS.md +16 -0
- package/presets/mavis/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/mavis/php-laravel/adapter-map.json +1 -1
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/php-laravel/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/php-laravel/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/svelte/MAVIS.md +2 -6
- package/presets/mavis/svelte/REPO_AGENTS.md +8 -48
- package/presets/mavis/svelte/adapter-map.json +1 -1
- package/presets/mavis/svelte/agents/accessibility-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/api-contract-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/build-verifier.md +2 -2
- package/presets/mavis/svelte/agents/ci-investigator.md +1 -1
- package/presets/mavis/svelte/agents/code-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/codebase-analyzer.md +0 -1
- package/presets/mavis/svelte/agents/debugger.md +1 -1
- package/presets/mavis/svelte/agents/feature-developer.md +3 -3
- package/presets/mavis/svelte/agents/migration-specialist.md +0 -1
- package/presets/mavis/svelte/agents/mockup-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/openspec-author.md +0 -1
- package/presets/mavis/svelte/agents/performance-auditor.md +0 -1
- package/presets/mavis/svelte/agents/playwright-test-generator.md +0 -1
- package/presets/mavis/svelte/agents/playwright-test-healer.md +0 -1
- package/presets/mavis/svelte/agents/playwright-test-planner.md +0 -1
- package/presets/mavis/svelte/agents/qa-tester.md +3 -3
- package/presets/mavis/svelte/agents/security-reviewer.md +0 -1
- package/presets/mavis/svelte/agents/solution-architect.md +0 -1
- package/presets/mavis/svelte/agents/task-analyst.md +0 -1
- package/presets/mavis/svelte/agents/task-router.md +8 -7
- package/presets/mavis/svelte/agents/tech-writer.md +0 -1
- package/presets/mavis/svelte/agents/unit-test-generator.md +0 -1
- package/presets/mavis/svelte/agents/unit-test-healer.md +0 -1
- package/presets/mavis/svelte/agents/unit-test-planner.md +0 -1
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +21 -5
- package/presets/mavis/svelte/hooks/list-ai-local.mjs +17 -0
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +5 -5
- package/presets/mavis/svelte/rules/code-quality-and-refactoring.md +2 -6
- package/presets/mavis/svelte/rules/feature-delivery-workflow.md +3 -7
- package/presets/mavis/svelte/rules/post-change-lint.md +13 -13
- package/presets/mavis/svelte/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/mavis/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/mavis/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/android-kotlin/OPENCODE.md +1 -43
- package/presets/opencode/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/opencode/android-kotlin/adapter-map.json +1 -1
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/android-kotlin/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/android-kotlin/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/go/OPENCODE.md +7 -39
- package/presets/opencode/go/REPO_AGENTS.md +7 -47
- package/presets/opencode/go/adapter-map.json +1 -1
- package/presets/opencode/go/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/go/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/go/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/go/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/go/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/go/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/ios-swift/OPENCODE.md +1 -43
- package/presets/opencode/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/opencode/ios-swift/adapter-map.json +1 -1
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/ios-swift/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/ios-swift/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/java/OPENCODE.md +12 -38
- package/presets/opencode/java/REPO_AGENTS.md +7 -47
- package/presets/opencode/java/adapter-map.json +1 -1
- package/presets/opencode/java/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/java/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/java/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/java/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/java/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/java/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/mcp-ts/OPENCODE.md +5 -39
- package/presets/opencode/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/opencode/mcp-ts/adapter-map.json +1 -1
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/mcp-ts/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/mcp-ts/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/mol/OPENCODE.md +1 -44
- package/presets/opencode/mol/REPO_AGENTS.md +9 -49
- package/presets/opencode/mol/adapter-map.json +1 -1
- package/presets/opencode/mol/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/mol/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/mol/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/mol/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/mol/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/next/OPENCODE.md +2 -45
- package/presets/opencode/next/REPO_AGENTS.md +10 -50
- package/presets/opencode/next/adapter-map.json +1 -17
- package/presets/opencode/next/agents/accessibility-reviewer.md +0 -1
- package/presets/opencode/next/agents/api-contract-reviewer.md +0 -1
- package/presets/opencode/next/agents/build-verifier.md +12 -8
- package/presets/opencode/next/agents/ci-investigator.md +5 -2
- package/presets/opencode/next/agents/code-reviewer.md +1 -1
- package/presets/opencode/next/agents/codebase-analyzer.md +0 -1
- package/presets/opencode/next/agents/debugger.md +5 -2
- package/presets/opencode/next/agents/feature-developer.md +11 -8
- package/presets/opencode/next/agents/migration-specialist.md +0 -1
- package/presets/opencode/next/agents/mockup-reviewer.md +0 -1
- package/presets/opencode/next/agents/openspec-author.md +0 -1
- package/presets/opencode/next/agents/performance-auditor.md +0 -1
- package/presets/opencode/next/agents/playwright-test-generator.md +0 -1
- package/presets/opencode/next/agents/playwright-test-healer.md +0 -1
- package/presets/opencode/next/agents/playwright-test-planner.md +0 -1
- package/presets/opencode/next/agents/qa-tester.md +3 -3
- package/presets/opencode/next/agents/security-reviewer.md +0 -1
- package/presets/opencode/next/agents/solution-architect.md +0 -1
- package/presets/opencode/next/agents/task-analyst.md +0 -1
- package/presets/opencode/next/agents/task-router.md +8 -7
- package/presets/opencode/next/agents/tech-writer.md +0 -1
- package/presets/opencode/next/agents/unit-test-generator.md +0 -1
- package/presets/opencode/next/agents/unit-test-healer.md +0 -1
- package/presets/opencode/next/agents/unit-test-planner.md +0 -1
- package/presets/opencode/next/commands/README.md +0 -6
- package/presets/opencode/next/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/next/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/next/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/next/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/next/rules/feature-delivery-workflow.md +9 -9
- package/presets/opencode/next/rules/post-change-lint.md +11 -15
- package/presets/opencode/next/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/opencode/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/opencode/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/nuxt/OPENCODE.md +2 -45
- package/presets/opencode/nuxt/REPO_AGENTS.md +8 -48
- package/presets/opencode/nuxt/adapter-map.json +1 -1
- package/presets/opencode/nuxt/agents/accessibility-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/api-contract-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/build-verifier.md +2 -2
- package/presets/opencode/nuxt/agents/ci-investigator.md +1 -1
- package/presets/opencode/nuxt/agents/code-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/codebase-analyzer.md +0 -1
- package/presets/opencode/nuxt/agents/debugger.md +1 -1
- package/presets/opencode/nuxt/agents/feature-developer.md +3 -3
- package/presets/opencode/nuxt/agents/migration-specialist.md +0 -1
- package/presets/opencode/nuxt/agents/mockup-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/openspec-author.md +0 -1
- package/presets/opencode/nuxt/agents/performance-auditor.md +0 -1
- package/presets/opencode/nuxt/agents/playwright-test-generator.md +0 -1
- package/presets/opencode/nuxt/agents/playwright-test-healer.md +0 -1
- package/presets/opencode/nuxt/agents/playwright-test-planner.md +0 -1
- package/presets/opencode/nuxt/agents/qa-tester.md +3 -3
- package/presets/opencode/nuxt/agents/security-reviewer.md +0 -1
- package/presets/opencode/nuxt/agents/solution-architect.md +0 -1
- package/presets/opencode/nuxt/agents/task-analyst.md +0 -1
- package/presets/opencode/nuxt/agents/task-router.md +8 -7
- package/presets/opencode/nuxt/agents/tech-writer.md +0 -1
- package/presets/opencode/nuxt/agents/unit-test-generator.md +0 -1
- package/presets/opencode/nuxt/agents/unit-test-healer.md +0 -1
- package/presets/opencode/nuxt/agents/unit-test-planner.md +0 -1
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/nuxt/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/nuxt/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/nuxt/rules/post-change-lint.md +13 -13
- package/presets/opencode/nuxt/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/opencode/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/opencode/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/php-hexagonal/OPENCODE.md +14 -38
- package/presets/opencode/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/opencode/php-hexagonal/adapter-map.json +1 -1
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/php-hexagonal/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/php-hexagonal/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/php-laravel/OPENCODE.md +14 -38
- package/presets/opencode/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/opencode/php-laravel/adapter-map.json +1 -1
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/php-laravel/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/php-laravel/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/plugins/output-guard/README.md +43 -0
- package/presets/opencode/plugins/output-guard/index.ts +306 -0
- package/presets/opencode/plugins/output-guard/ledger.ts +43 -0
- package/presets/opencode/plugins/output-guard/package.json +9 -0
- package/presets/opencode/plugins/output-guard/rewrite.ts +149 -0
- package/presets/opencode/plugins/task-status/economy.ts +112 -0
- package/presets/opencode/plugins/task-status/task-view.ts +86 -20
- package/presets/opencode/plugins/task-status/tui.tsx +19 -5
- package/presets/opencode/plugins/task-status/types.ts +3 -1
- package/presets/opencode/svelte/OPENCODE.md +2 -45
- package/presets/opencode/svelte/REPO_AGENTS.md +8 -48
- package/presets/opencode/svelte/adapter-map.json +1 -1
- package/presets/opencode/svelte/agents/accessibility-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/api-contract-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/build-verifier.md +2 -2
- package/presets/opencode/svelte/agents/ci-investigator.md +1 -1
- package/presets/opencode/svelte/agents/code-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/codebase-analyzer.md +0 -1
- package/presets/opencode/svelte/agents/debugger.md +1 -1
- package/presets/opencode/svelte/agents/feature-developer.md +3 -3
- package/presets/opencode/svelte/agents/migration-specialist.md +0 -1
- package/presets/opencode/svelte/agents/mockup-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/openspec-author.md +0 -1
- package/presets/opencode/svelte/agents/performance-auditor.md +0 -1
- package/presets/opencode/svelte/agents/playwright-test-generator.md +0 -1
- package/presets/opencode/svelte/agents/playwright-test-healer.md +0 -1
- package/presets/opencode/svelte/agents/playwright-test-planner.md +0 -1
- package/presets/opencode/svelte/agents/qa-tester.md +3 -3
- package/presets/opencode/svelte/agents/security-reviewer.md +0 -1
- package/presets/opencode/svelte/agents/solution-architect.md +0 -1
- package/presets/opencode/svelte/agents/task-analyst.md +0 -1
- package/presets/opencode/svelte/agents/task-router.md +8 -7
- package/presets/opencode/svelte/agents/tech-writer.md +0 -1
- package/presets/opencode/svelte/agents/unit-test-generator.md +0 -1
- package/presets/opencode/svelte/agents/unit-test-healer.md +0 -1
- package/presets/opencode/svelte/agents/unit-test-planner.md +0 -1
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +21 -5
- package/presets/opencode/svelte/hooks/list-ai-local.mjs +17 -0
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +5 -5
- package/presets/opencode/svelte/rules/code-quality-and-refactoring.md +2 -6
- package/presets/opencode/svelte/rules/feature-delivery-workflow.md +3 -7
- package/presets/opencode/svelte/rules/post-change-lint.md +13 -13
- package/presets/opencode/svelte/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/opencode/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/opencode/svelte/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/android-kotlin/REPO_AGENTS.md +7 -47
- package/presets/zcode/android-kotlin/adapter-map.json +1 -1
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/android-kotlin/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/android-kotlin/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/android-kotlin/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/go/REPO_AGENTS.md +7 -47
- package/presets/zcode/go/adapter-map.json +1 -1
- package/presets/zcode/go/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/go/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/go/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/go/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/go/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/go/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/ios-swift/REPO_AGENTS.md +7 -47
- package/presets/zcode/ios-swift/adapter-map.json +1 -1
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/ios-swift/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/ios-swift/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/ios-swift/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/ios-swift/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/java/REPO_AGENTS.md +7 -47
- package/presets/zcode/java/adapter-map.json +1 -1
- package/presets/zcode/java/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/java/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/java/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/java/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/java/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/java/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/mcp-ts/REPO_AGENTS.md +7 -47
- package/presets/zcode/mcp-ts/adapter-map.json +1 -1
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/mcp-ts/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/mcp-ts/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/mcp-ts/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/mcp-ts/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/mol/REPO_AGENTS.md +9 -49
- package/presets/zcode/mol/adapter-map.json +1 -1
- package/presets/zcode/mol/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/mol/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/mol/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/mol/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/mol/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/next/REPO_AGENTS.md +10 -50
- package/presets/zcode/next/adapter-map.json +1 -17
- package/presets/zcode/next/agents/accessibility-reviewer.md +0 -1
- package/presets/zcode/next/agents/api-contract-reviewer.md +0 -1
- package/presets/zcode/next/agents/build-verifier.md +12 -8
- package/presets/zcode/next/agents/ci-investigator.md +5 -2
- package/presets/zcode/next/agents/code-reviewer.md +1 -1
- package/presets/zcode/next/agents/codebase-analyzer.md +0 -1
- package/presets/zcode/next/agents/debugger.md +5 -2
- package/presets/zcode/next/agents/feature-developer.md +11 -8
- package/presets/zcode/next/agents/migration-specialist.md +0 -1
- package/presets/zcode/next/agents/mockup-reviewer.md +0 -1
- package/presets/zcode/next/agents/openspec-author.md +0 -1
- package/presets/zcode/next/agents/performance-auditor.md +0 -1
- package/presets/zcode/next/agents/playwright-test-generator.md +0 -1
- package/presets/zcode/next/agents/playwright-test-healer.md +0 -1
- package/presets/zcode/next/agents/playwright-test-planner.md +0 -1
- package/presets/zcode/next/agents/qa-tester.md +3 -3
- package/presets/zcode/next/agents/security-reviewer.md +0 -1
- package/presets/zcode/next/agents/solution-architect.md +0 -1
- package/presets/zcode/next/agents/task-analyst.md +0 -1
- package/presets/zcode/next/agents/task-router.md +8 -7
- package/presets/zcode/next/agents/tech-writer.md +0 -1
- package/presets/zcode/next/agents/unit-test-generator.md +0 -1
- package/presets/zcode/next/agents/unit-test-healer.md +0 -1
- package/presets/zcode/next/agents/unit-test-planner.md +0 -1
- package/presets/zcode/next/commands/README.md +0 -6
- package/presets/zcode/next/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/next/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/next/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/next/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/next/rules/feature-delivery-workflow.md +9 -9
- package/presets/zcode/next/rules/post-change-lint.md +11 -15
- package/presets/zcode/next/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/next/skills/feature-delivery/SKILL.md +1 -1
- package/presets/zcode/next/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/zcode/next/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/nuxt/REPO_AGENTS.md +8 -48
- package/presets/zcode/nuxt/adapter-map.json +1 -1
- package/presets/zcode/nuxt/agents/accessibility-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/api-contract-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/build-verifier.md +2 -2
- package/presets/zcode/nuxt/agents/ci-investigator.md +1 -1
- package/presets/zcode/nuxt/agents/code-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/codebase-analyzer.md +0 -1
- package/presets/zcode/nuxt/agents/debugger.md +1 -1
- package/presets/zcode/nuxt/agents/feature-developer.md +3 -3
- package/presets/zcode/nuxt/agents/migration-specialist.md +0 -1
- package/presets/zcode/nuxt/agents/mockup-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/openspec-author.md +0 -1
- package/presets/zcode/nuxt/agents/performance-auditor.md +0 -1
- package/presets/zcode/nuxt/agents/playwright-test-generator.md +0 -1
- package/presets/zcode/nuxt/agents/playwright-test-healer.md +0 -1
- package/presets/zcode/nuxt/agents/playwright-test-planner.md +0 -1
- package/presets/zcode/nuxt/agents/qa-tester.md +3 -3
- package/presets/zcode/nuxt/agents/security-reviewer.md +0 -1
- package/presets/zcode/nuxt/agents/solution-architect.md +0 -1
- package/presets/zcode/nuxt/agents/task-analyst.md +0 -1
- package/presets/zcode/nuxt/agents/task-router.md +8 -7
- package/presets/zcode/nuxt/agents/tech-writer.md +0 -1
- package/presets/zcode/nuxt/agents/unit-test-generator.md +0 -1
- package/presets/zcode/nuxt/agents/unit-test-healer.md +0 -1
- package/presets/zcode/nuxt/agents/unit-test-planner.md +0 -1
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/nuxt/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/nuxt/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/nuxt/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/nuxt/rules/post-change-lint.md +13 -13
- package/presets/zcode/nuxt/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/nuxt/skills/feature-delivery/SKILL.md +1 -1
- package/presets/zcode/nuxt/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/zcode/nuxt/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/php-hexagonal/REPO_AGENTS.md +7 -47
- package/presets/zcode/php-hexagonal/adapter-map.json +1 -1
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/php-hexagonal/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/php-hexagonal/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/php-hexagonal/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/php-hexagonal/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/php-laravel/REPO_AGENTS.md +7 -47
- package/presets/zcode/php-laravel/adapter-map.json +1 -1
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/php-laravel/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/php-laravel/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/php-laravel/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/php-laravel/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/svelte/REPO_AGENTS.md +8 -48
- package/presets/zcode/svelte/adapter-map.json +1 -1
- package/presets/zcode/svelte/agents/accessibility-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/api-contract-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/build-verifier.md +2 -2
- package/presets/zcode/svelte/agents/ci-investigator.md +1 -1
- package/presets/zcode/svelte/agents/code-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/codebase-analyzer.md +0 -1
- package/presets/zcode/svelte/agents/debugger.md +1 -1
- package/presets/zcode/svelte/agents/feature-developer.md +3 -3
- package/presets/zcode/svelte/agents/migration-specialist.md +0 -1
- package/presets/zcode/svelte/agents/mockup-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/openspec-author.md +0 -1
- package/presets/zcode/svelte/agents/performance-auditor.md +0 -1
- package/presets/zcode/svelte/agents/playwright-test-generator.md +0 -1
- package/presets/zcode/svelte/agents/playwright-test-healer.md +0 -1
- package/presets/zcode/svelte/agents/playwright-test-planner.md +0 -1
- package/presets/zcode/svelte/agents/qa-tester.md +3 -3
- package/presets/zcode/svelte/agents/security-reviewer.md +0 -1
- package/presets/zcode/svelte/agents/solution-architect.md +0 -1
- package/presets/zcode/svelte/agents/task-analyst.md +0 -1
- package/presets/zcode/svelte/agents/task-router.md +8 -7
- package/presets/zcode/svelte/agents/tech-writer.md +0 -1
- package/presets/zcode/svelte/agents/unit-test-generator.md +0 -1
- package/presets/zcode/svelte/agents/unit-test-healer.md +0 -1
- package/presets/zcode/svelte/agents/unit-test-planner.md +0 -1
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +21 -5
- package/presets/zcode/svelte/hooks/list-ai-local.mjs +17 -0
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +5 -5
- package/presets/zcode/svelte/rules/code-quality-and-refactoring.md +2 -6
- package/presets/zcode/svelte/rules/feature-delivery-workflow.md +3 -7
- package/presets/zcode/svelte/rules/post-change-lint.md +13 -13
- package/presets/zcode/svelte/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/svelte/skills/feature-delivery/SKILL.md +1 -1
- package/presets/zcode/svelte/skills/playwright-e2e/SKILL.md +1 -1
- package/presets/zcode/svelte/skills/unit-testing/SKILL.md +1 -1
- package/scripts/report-context-cost.mjs +432 -0
- package/presets/_shared/ai-local/scripts/team-db-dashboard.mjs +0 -2103
- package/presets/_shared/ai-local/scripts/team-db-ui.mjs +0 -750
- package/presets/claude/next/commands/ui-start.md +0 -78
- package/presets/claude/next/commands/ui-stop.md +0 -71
- package/presets/cursor/next/commands/ui-start.md +0 -78
- package/presets/cursor/next/commands/ui-stop.md +0 -71
- package/presets/mavis/next/commands/ui-start.md +0 -73
- package/presets/mavis/next/commands/ui-stop.md +0 -66
- package/presets/opencode/next/commands/ui-start.md +0 -81
- package/presets/opencode/next/commands/ui-stop.md +0 -74
- package/presets/zcode/next/commands/ui-start.md +0 -81
- package/presets/zcode/next/commands/ui-stop.md +0 -74
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
|
|
23
22
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
- `.claude/rules/api-and-data/api-services.md`
|
|
23
22
|
- `.claude/rules/api-and-data/http-client.md`
|
|
@@ -17,8 +17,8 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.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
22
|
|
|
23
23
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ Load `anti-hallucination-contract` before asserting code, APIs, schemas, tool be
|
|
|
28
28
|
|
|
29
29
|
You are a build verification specialist. You **validate** implementation quality before code review — you do not edit production code or tests.
|
|
30
30
|
|
|
31
|
-
**SSOT for full validation in pipeline:** run complete **`lint:js`**, **`lint:css`**, and **`type-check`** from `app/`
|
|
31
|
+
**Closure gate (SSOT for full validation in pipeline):** run complete **`lint:js`**, **`lint:css`**, and **`type-check`** from `app/` **once**, after the last authoring step. The developer does not run project gates; do not expect a green baseline. A second full pass needs a named reason (gate config/dependency change, rebase, branch change) recorded in `validation-report.md`.
|
|
32
32
|
|
|
33
33
|
## Inputs
|
|
34
34
|
|
|
@@ -44,11 +44,13 @@ Use **`package-manager.md`** for the repo package manager.
|
|
|
44
44
|
2. **`lint:css`** — full Stylelint.
|
|
45
45
|
3. **`type-check`** — when TypeScript changed.
|
|
46
46
|
4. **Unit tests** — run specs for changed modules (paths from diff); if unclear, run the narrowest parent suite that covers changed mappers/services/store.
|
|
47
|
-
5. **
|
|
47
|
+
5. **E2E** — run the affected specs once when the AC names e2e. The QA step authors them; this step executes them.
|
|
48
|
+
6. **Component catalog** — when the repo ships a catalog (e.g. `storybook/`) and `app/src/ui/**` or catalog files changed, run the catalog's own test/visual-baseline suite from the catalog package and require green **without** `--update` (`component-catalog-gate`). A green app unit run does not cover catalog stories.
|
|
49
|
+
7. **`build`** — only when the change-set touches routes, `next.config.*`, `output: export`, or the AC requires a production build.
|
|
48
50
|
|
|
49
|
-
Prefer **`lint`** (= js + css + type-check) before handoff on large changes.
|
|
51
|
+
Prefer **`lint`** (= js + css + type-check) before handoff on large changes. Do not re-run a green command with unchanged inputs; record the skipped row and its base.
|
|
50
52
|
|
|
51
|
-
- **Preset twin/golden DoD (preset source repo only).** When the change-set edits Cursor next agents and/or `presets/_shared/hooks/**` (or other generated twin surfaces), require `node scripts/fix-generated.mjs` then `yarn check:changed` and the gates it names from `packages/ai-rules` with exit 0 before validation PASS. The full `yarn release:gate` is release-only.
|
|
53
|
+
- **Preset twin/golden DoD (preset source repo only).** When the change-set edits Cursor next agents and/or `presets/_shared/hooks/**` (or other generated twin surfaces), require `node scripts/fix-generated.mjs` then `yarn check:task <slug>` (or `yarn check:changed` on a clean tree) and the gates it names from `packages/ai-rules` with exit 0 before validation PASS. The full `yarn release:gate` is release-only.
|
|
52
54
|
|
|
53
55
|
## Delta gate policy (retry / carry-forward)
|
|
54
56
|
|
|
@@ -60,10 +62,10 @@ node scripts/check-preset-delta.mjs --base <last-green-ref> --json
|
|
|
60
62
|
```
|
|
61
63
|
|
|
62
64
|
- A gate whose domain the classifier reports as **changed** MUST be re-run.
|
|
63
|
-
- A gate whose domain is **unchanged**
|
|
65
|
+
- A gate whose domain is **unchanged** is **carried forward**; re-running it is a defect. Record the base ref, the classifier output, and the last green command + exit code.
|
|
64
66
|
- Never carry a targeted gate for a changed domain; the full structure composite is release-only (`yarn release:gate`); never carry the team-db suites when the `team-db` domain changed.
|
|
65
67
|
- A test-only app retry may carry the preset and team-db gates, but must still re-run the affected app lint, type-check, unit, and e2e suites.
|
|
66
|
-
- Carry-forward is evidence, not a skip: the final report still quotes every command (carried or fresh)
|
|
68
|
+
- Carry-forward is evidence, not a skip: the final report still quotes every command (carried or fresh) and names `gatePass` (`closure-1`, `delta-2`, ...), `base`, and `changedDomains`.
|
|
67
69
|
|
|
68
70
|
### Consumer app (any repo with `app/src/**`)
|
|
69
71
|
|
|
@@ -74,10 +76,12 @@ git diff --stat <last-green-ref> -- app storybook
|
|
|
74
76
|
```
|
|
75
77
|
|
|
76
78
|
- Re-run a gate only when the retry touched its domain: `lint:js` for `**/*.{ts,tsx,js,jsx}`, `lint:css` for `**/*.styles.ts` / `**/*.css`, `type-check` for any `app/**` change, unit tests for the modules whose paths changed.
|
|
77
|
-
- A gate
|
|
79
|
+
- A gate is carried forward when `validation-report.md` records the base ref, the changed-path list, and the earlier green command + exit code; re-running it is a defect.
|
|
78
80
|
- `code-reviewer` findings that touch only docs or artifacts never re-open a green code gate; a production edit always does.
|
|
79
81
|
- Never carry a gate across a rebase, a dependency bump, or a config change (`eslint`, `stylelint`, `tsconfig`, `jest`/`vitest`).
|
|
80
82
|
|
|
83
|
+
`validation-report.md` is the only gate evidence: one row per command with exit, UTC timestamp, tree, `gatePass`, and the change domain. Never write a gate command or exit into `implementation.md`.
|
|
84
|
+
|
|
81
85
|
## Verification before completion
|
|
82
86
|
|
|
83
87
|
<!-- shared-core: quality/verification-before-completion.md -->
|
|
@@ -14,10 +14,13 @@ 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/architecture/reference-features.md` — analog files first
|
|
18
|
-
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
17
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
18
|
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
19
|
+
|
|
20
|
+
Read when the task reaches the matching zone:
|
|
21
|
+
|
|
22
|
+
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
23
|
+
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
21
24
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
25
|
- `.claude/rules/architecture/public-imports.md` — @/types, @/api barrels
|
|
23
26
|
- `.claude/rules/ui-and-accessibility/react-ui.md` — UI component style (no FC, no spread, decomposition)
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
- `.claude/rules/tooling-and-review/code-review-mr.md`
|
|
23
22
|
- `.claude/rules/anti-hallucination/react-next-anti-hallucination.md` — phantom import banlist
|
|
@@ -38,6 +37,7 @@ You **issue** reviews. Implementers acting on your findings must verify each ite
|
|
|
38
37
|
|
|
39
38
|
## Tests gate
|
|
40
39
|
|
|
40
|
+
- Read `validation-report.md`; do not run lint/test/build to form a verdict. A gate row in `implementation.md`, or a report whose tree does not match the reviewed revision, is a finding.
|
|
41
41
|
- If diff changes mappers, store reducers/thunks, or domain logic **without** new/updated `*.spec.ts` → **REQUEST_CHANGES** unless task scope explicitly excludes tests.
|
|
42
42
|
- If `validation-report.md` exists and verdict is FAIL → **REQUEST_CHANGES** (developer must fix before review passes).
|
|
43
43
|
- User-flow changes without e2e plan/spec updates → note in warnings; REQUEST_CHANGES when AC requires e2e.
|
|
@@ -18,7 +18,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
18
18
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
20
20
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
21
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
22
21
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
23
22
|
|
|
24
23
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -14,10 +14,13 @@ 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/architecture/reference-features.md` — analog files first
|
|
18
|
-
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
17
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
18
|
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
19
|
+
|
|
20
|
+
Read when the task reaches the matching zone:
|
|
21
|
+
|
|
22
|
+
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
23
|
+
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
21
24
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
25
|
- `.claude/rules/architecture/public-imports.md` — @/types, @/api barrels
|
|
23
26
|
- `.claude/rules/ui-and-accessibility/react-ui.md` — UI component style (no FC, no spread, decomposition)
|
|
@@ -14,10 +14,13 @@ 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/architecture/reference-features.md` — analog files first
|
|
18
|
-
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
17
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
18
|
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
19
|
+
|
|
20
|
+
Read when the task reaches the matching zone:
|
|
21
|
+
|
|
22
|
+
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
23
|
+
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
21
24
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
25
|
- `.claude/rules/architecture/public-imports.md` — @/types, @/api barrels
|
|
23
26
|
- `.claude/rules/ui-and-accessibility/react-ui.md` — UI component style (no FC, no spread, decomposition)
|
|
@@ -64,7 +67,7 @@ Load `dev-process-lifecycle` before starting, reusing, or stopping a dev server,
|
|
|
64
67
|
|
|
65
68
|
- Do **not** start blocked tasks or tasks with incomplete dependencies.
|
|
66
69
|
- **Reuse means reuse.** When the brief says to reuse an existing component, do not widen the change into extracting or relocating a shared primitive. If extraction is genuinely required, stop and hand back to the orchestrator: it is a separate task that needs its own gate, because every other call site inherits the blast radius.
|
|
67
|
-
- **Unit tests must
|
|
70
|
+
- **Unit tests must be authored before handoff** for mappers, store logic, and non-trivial pure functions. Do not execute the project test suite; the closure gate runs it.
|
|
68
71
|
- When the strict implementation rail is off or unset, that test-before-handoff rule is the implementation handoff text.
|
|
69
72
|
- When `pipeline.json` `implementationRail` is `on`:
|
|
70
73
|
- Write a failing test before any production edit.
|
|
@@ -74,8 +77,8 @@ Load `dev-process-lifecycle` before starting, reusing, or stopping a dev server,
|
|
|
74
77
|
- Debug retries for this handoff stop at two.
|
|
75
78
|
- L0, docs-only, research, and preset-only tasks do not take the rail. `build-verifier` and `code-reviewer` stay.
|
|
76
79
|
- Mark completed tasks in `decomposition.md`.
|
|
77
|
-
- Validation: **`post-change-lint.md
|
|
78
|
-
- **Preset twin/golden DoD (preset source repo only).** When the change-set edits Cursor next agents and/or `presets/_shared/hooks/**` (or other surfaces that require generated twins), from `packages/ai-rules` run `node scripts/fix-generated.mjs` then `yarn check:changed` and the gates it names (exit 0) before implementation handoff. The full `yarn release:gate` is release-only.
|
|
80
|
+
- Validation: **`post-change-lint.md`** is the closure gate. Do **not** run project lint/type-check/test/build in this step; hand off with the diff and authored specs. `build-verifier` owns the full run.
|
|
81
|
+
- **Preset twin/golden DoD (preset source repo only).** When the change-set edits Cursor next agents and/or `presets/_shared/hooks/**` (or other surfaces that require generated twins), from `packages/ai-rules` run `node scripts/fix-generated.mjs` then `yarn check:task <slug>` (or `yarn check:changed` on a clean tree) and the gates it names (exit 0) before implementation handoff. The full `yarn release:gate` is release-only.
|
|
79
82
|
|
|
80
83
|
## Zero improvisation
|
|
81
84
|
|
|
@@ -86,13 +89,13 @@ Load `dev-process-lifecycle` before starting, reusing, or stopping a dev server,
|
|
|
86
89
|
|
|
87
90
|
## Will / Will not
|
|
88
91
|
|
|
89
|
-
**Will:** follow layer order and reference features; add required unit tests;
|
|
92
|
+
**Will:** follow layer order and reference features; add required unit tests; hand off to the closure gate; update task artifacts.
|
|
90
93
|
|
|
91
94
|
**Will not:** formal code review; start blocked/dependent tasks; invent AC; auto-continue the next WP when the pipeline expects a human gate or handoff.
|
|
92
95
|
|
|
93
96
|
## On completion
|
|
94
97
|
|
|
95
|
-
Emit the owned implementation receipt with outcome `completed`. Handoff: tasks done, files by layer, unit specs,
|
|
98
|
+
Emit the owned implementation receipt with outcome `completed`. Handoff: tasks done, files by layer, authored unit specs, closure-gate status (not run), gaps for build-verifier/reviewer.
|
|
96
99
|
|
|
97
100
|
Do not perform formal code review — that is the code-reviewer subagent's job.
|
|
98
101
|
|
|
@@ -111,7 +114,7 @@ Do not perform formal code review — that is the code-reviewer subagent's job.
|
|
|
111
114
|
|
|
112
115
|
<!-- shared-core: quality/verification-before-completion.md -->
|
|
113
116
|
|
|
114
|
-
Before handoff,
|
|
117
|
+
Before handoff, verify the change-set: files changed, specs authored, no project gate run. Do not claim green; closure evidence belongs to `build-verifier` (see the gate-cadence rule in `post-change-lint`).
|
|
115
118
|
|
|
116
119
|
## Existing-suite impact check (UI / copy / table / route changes)
|
|
117
120
|
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
|
|
23
22
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
|
|
23
22
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
|
|
23
22
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
|
|
23
22
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -19,7 +19,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
19
19
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
20
20
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
21
21
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
22
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
23
22
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
24
23
|
- `.claude/rules/testing/playwright-agents.md`
|
|
25
24
|
- `.claude/rules/testing/tests-e2e-structure.md`
|
|
@@ -19,7 +19,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
19
19
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
20
20
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
21
21
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
22
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
23
22
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
24
23
|
- `.claude/rules/testing/playwright-agents.md`
|
|
25
24
|
- `.claude/rules/testing/tests-e2e-structure.md`
|
|
@@ -19,7 +19,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
19
19
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
20
20
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
21
21
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
22
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
23
22
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
24
23
|
- `.claude/rules/testing/playwright-agents.md`
|
|
25
24
|
- `.claude/rules/testing/tests-e2e-structure.md`
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
- `.claude/rules/testing/tests-unit.md`
|
|
23
22
|
- `.claude/rules/testing/playwright-agents.md`
|
|
@@ -57,8 +56,9 @@ When the task is mostly e2e, prefer invoking the dedicated `playwright-test-plan
|
|
|
57
56
|
|
|
58
57
|
## Execution
|
|
59
58
|
|
|
60
|
-
-
|
|
61
|
-
-
|
|
59
|
+
- Author the unit and e2e specs; do **not** run the project gate suite. `build-verifier` executes the affected specs at closure.
|
|
60
|
+
- For a `test-only`, `unit-only`, or `e2e-only` intent, run the targeted spec being authored or healed; that is the test-authoring exception, not a project gate.
|
|
61
|
+
- Do not re-run a unit suite already recorded green in `validation-report.md`; the closure step owns it.
|
|
62
62
|
|
|
63
63
|
## Artifact contract
|
|
64
64
|
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
|
|
23
22
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
|
|
23
22
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
|
|
23
22
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
|
|
23
22
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -34,12 +33,12 @@ You are a task router for a Next.js frontend agent team. You **do not** implemen
|
|
|
34
33
|
|
|
35
34
|
| intent | Signals in prompt | Default steps |
|
|
36
35
|
|--------|-------------------|---------------|
|
|
37
|
-
| `feature` | «добавь» (add), «новая» (new), «реализуй» (implement), «сделай» (build), new UI/API/store <!-- i18n-keep: E4 --> | task-analyst → feature-developer (unit
|
|
38
|
-
| `bugfix` | «баг» (bug), «fix», «не работает» (doesn't work), «падает» (crashes), «ошибка» (error), regression <!-- i18n-keep: E4 --> | debugger → feature-developer (skipIf debugger.fixed) →
|
|
39
|
-
| `ci-fix` | «CI», «упал пайплайн» (pipeline failed), «красный PR» (red PR), «failing check», «lint в CI» (lint in CI) <!-- i18n-keep: E4 --> | ci-investigator → feature-developer (skipIf ci-investigator.resolved) → build-verifier → code-reviewer |
|
|
40
|
-
| `migration` | «миграция» (migration), «upgrade», «обнови Next» (upgrade Next), «переход на» (move to), major version <!-- i18n-keep: E4 --> | task-analyst → migration-specialist → feature-developer →
|
|
36
|
+
| `feature` | «добавь» (add), «новая» (new), «реализуй» (implement), «сделай» (build), new UI/API/store <!-- i18n-keep: E4 --> | task-analyst → feature-developer (unit authored) → qa-tester (e2e authored; skip when no e2e AC) → build-verifier (closure) → code-reviewer |
|
|
37
|
+
| `bugfix` | «баг» (bug), «fix», «не работает» (doesn't work), «падает» (crashes), «ошибка» (error), regression <!-- i18n-keep: E4 --> | debugger → feature-developer (skipIf debugger.fixed) → qa-tester (regression authored) → build-verifier (closure) → code-reviewer |
|
|
38
|
+
| `ci-fix` | «CI», «упал пайплайн» (pipeline failed), «красный PR» (red PR), «failing check», «lint в CI» (lint in CI) <!-- i18n-keep: E4 --> | ci-investigator → feature-developer (skipIf ci-investigator.resolved) → build-verifier (closure) → code-reviewer |
|
|
39
|
+
| `migration` | «миграция» (migration), «upgrade», «обнови Next» (upgrade Next), «переход на» (move to), major version <!-- i18n-keep: E4 --> | task-analyst → migration-specialist → feature-developer → qa-tester (regression authored) → build-verifier (closure) → code-reviewer |
|
|
41
40
|
| `perf-audit` | «производительность» (performance), «perf», «bundle», «LCP», «медленно» (slow), «waterfall» <!-- i18n-keep: E4 --> | performance-auditor |
|
|
42
|
-
| `a11y` | «a11y», «доступность» (accessibility), «accessibility», «WCAG», «screen reader», «клавиатура» (keyboard) <!-- i18n-keep: E4 --> | task-analyst → feature-developer →
|
|
41
|
+
| `a11y` | «a11y», «доступность» (accessibility), «accessibility», «WCAG», «screen reader», «клавиатура» (keyboard) <!-- i18n-keep: E4 --> | task-analyst → feature-developer → accessibility-reviewer → qa-tester (e2e authored, if AC) → build-verifier (closure) → code-reviewer |
|
|
43
42
|
| `mockup-review` | «ревью макета» (mockup review), «mockup review», «проверь Figma» (check Figma), «figma review», «макет» (mockup) + review verb, `figma.com` + review-not-implement <!-- i18n-keep: E4 --> | mockup-reviewer |
|
|
44
43
|
| `ux-design` | «разработай UX» (design UX), «спроектируй» (design/plan) flows, «journey», «IA», «state matrix», «ревью UX» (UX review) without Figma <!-- i18n-keep: E4 --> | task-analyst |
|
|
45
44
|
| `review-only` | «ревью» (review), «review MR», «проверь diff» (check diff), «code review» <!-- i18n-keep: E4 --> | code-reviewer |
|
|
@@ -66,10 +65,12 @@ Set optional top-level `"profile": "full" | "standard" | "light"` in `pipeline.j
|
|
|
66
65
|
|
|
67
66
|
| Profile | When | Typical `feature` steps |
|
|
68
67
|
|---------|------|------------------------|
|
|
69
|
-
| `full` | App code with a named risk flag or an e2e AC: multi-layer, new public API, incomplete AC | analyst → [architect] → developer → build-verifier → reviewer
|
|
68
|
+
| `full` | App code with a named risk flag or an e2e AC: multi-layer, new public API, incomplete AC | analyst → [architect] → developer → qa-tester → build-verifier → reviewer |
|
|
70
69
|
| `standard` | Single layer, default work | analyst → developer → build-verifier → reviewer |
|
|
71
70
|
| `light` | Trivial: one file/layer, explicit AC, «просто поправь» (just fix it), «typo», user «без pipeline» (no pipeline) <!-- i18n-keep: E4 --> | developer → build-verifier |
|
|
72
71
|
|
|
72
|
+
**Closure order:** the last authoring step (`feature-developer`, `qa-tester`, a test generator) is always followed by exactly one `build-verifier`; `code-reviewer` reviews the validated tree. A review fix re-enters the delta verifier before the reviewer sees it again.
|
|
73
|
+
|
|
73
74
|
**Light signals:** one file, one layer, explicit AC in prompt, no architectural risk. **Never skip `build-verifier`** after developer when `app/**` changed. **Skip `code-reviewer`** in light only for non-prod preset/docs tasks — for `app/src` changes prefer standard.
|
|
74
75
|
|
|
75
76
|
**Profile caps:** a pipeline that cannot name a risk flag is `standard`, not `full`. Do not raise the profile because the raw file count is large: generated trees, snapshots, CLI goldens, docs, and test fixtures do not count.
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
|
|
23
22
|
Also read matching `.ai.local/rules/*.md` (local overlay) for the active zone, and the project strict rules if present.
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
- `.claude/rules/testing/tests-unit.md`
|
|
23
22
|
- `.claude/rules/anti-hallucination/react-next-anti-hallucination.md` — phantom import banlist
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
- `.claude/rules/testing/tests-unit.md`
|
|
23
22
|
- `.claude/rules/anti-hallucination/react-next-anti-hallucination.md` — phantom import banlist
|
|
@@ -17,7 +17,6 @@ This subagent does **not** inherit the parent session context or `CLAUDE.md`. Re
|
|
|
17
17
|
- `.claude/rules/architecture/reference-features.md` — analog files first
|
|
18
18
|
- `.claude/rules/tooling-and-review/anti-sycophancy-discipline.md` — procedural anti-sycophancy rules
|
|
19
19
|
- `.claude/rules/tooling-and-review/anti-hallucination-contract.md` — do not invent signatures, imports, schemas, or evidence
|
|
20
|
-
- `.claude/rules/tooling-and-review/post-change-lint.md` — lint/type-check after code edits
|
|
21
20
|
- `.claude/rules/tooling-and-review/mcp-usage.md` — when verifying third-party APIs (Context7)
|
|
22
21
|
- `.claude/rules/testing/tests-unit.md`
|
|
23
22
|
- `.claude/rules/anti-hallucination/react-next-anti-hallucination.md` — phantom import banlist
|
|
@@ -11,12 +11,6 @@ Slash-command definitions and on-demand scenarios. Copied to `.claude/commands/`
|
|
|
11
11
|
| `update.md` | Reinstall each installed tool with the preset recorded at init |
|
|
12
12
|
| `/upstream-research` | Repository-only (not in the published package): queue the weekly upstream evolution review; run one `schedule --once` tick when the timer is offline |
|
|
13
13
|
| `migrate-tasks.md` | Create or reconcile `.ai.local/team/team.db`; writes only the delta |
|
|
14
|
-
| `/ui-start` | Start the shipped dashboard in the background on loopback; no Docker, no build step |
|
|
15
|
-
| `/ui-stop` | Stop the server this repository started, then clear its marker |
|
|
16
|
-
|
|
17
|
-
Both UI commands ship on the `next` stack only. On every other stack the contract is the verb itself:
|
|
18
|
-
`node .ai.local/scripts/team-db.mjs ui start|status|stop|restart`, with
|
|
19
|
-
`node .ai.local/scripts/team-db.mjs serve` as the foreground fallback for an engine that predates it.
|
|
20
14
|
|
|
21
15
|
`/task-evil` is intentionally autonomous: no plan confirmation, no human gates, no questions; recommended assumptions are recorded in `decisions.md`, and only hard blockers stop the run. On OpenCode, the command selects the `task-evil` primary agent with a hard `question: deny`, broad shell access except `git commit`/`git push` (and `npx jest*`), and edits limited to `.ai.local/team/**`.
|
|
22
16
|
|
|
@@ -1301,11 +1301,15 @@ function focusDigestMarkdown(dir, statusSnapshot) {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
} catch {}
|
|
1303
1303
|
}
|
|
1304
|
+
// Five entries is enough to resume; a longer list is a status dump, not a
|
|
1305
|
+
// pointer. The line budget below still bounds a single entry with many paths.
|
|
1306
|
+
const MAX_FOCUS_ENTRIES = 5;
|
|
1307
|
+
const shownIncomplete = incomplete.slice(0, MAX_FOCUS_ENTRIES);
|
|
1304
1308
|
const pathLines = [];
|
|
1305
1309
|
if (incomplete.length === 0) pathLines.push(' - (none)');
|
|
1306
1310
|
else {
|
|
1307
|
-
for (let index = 0; index <
|
|
1308
|
-
const item =
|
|
1311
|
+
for (let index = 0; index < shownIncomplete.length; index += 1) {
|
|
1312
|
+
const item = shownIncomplete[index];
|
|
1309
1313
|
if (item.paths.length === 0) pathLines.push(' - ' + item.id + ': (none)');
|
|
1310
1314
|
else {
|
|
1311
1315
|
for (let pathIndex = 0; pathIndex < item.paths.length; pathIndex += 1) {
|
|
@@ -1313,6 +1317,9 @@ function focusDigestMarkdown(dir, statusSnapshot) {
|
|
|
1313
1317
|
}
|
|
1314
1318
|
}
|
|
1315
1319
|
}
|
|
1320
|
+
if (incomplete.length > shownIncomplete.length) {
|
|
1321
|
+
pathLines.push(' - (+' + String(incomplete.length - shownIncomplete.length) + ' more incomplete entries)');
|
|
1322
|
+
}
|
|
1316
1323
|
}
|
|
1317
1324
|
let readyLine = '- decomposition ready set: (none)';
|
|
1318
1325
|
try {
|
|
@@ -2661,7 +2668,16 @@ if (status.state === 'changes_requested') {
|
|
|
2661
2668
|
process.stdout.write('{}');
|
|
2662
2669
|
process.exit(0);
|
|
2663
2670
|
}
|
|
2664
|
-
const
|
|
2671
|
+
const reviewerStepIndex = typeof status.pipelineIndex === 'number' ? status.pipelineIndex : 0;
|
|
2672
|
+
let verifierStepIndex = -1;
|
|
2673
|
+
for (let index = reviewerStepIndex - 1; index >= 0; index -= 1) {
|
|
2674
|
+
if (getStepAgents(steps[index]).includes('build-verifier')) {
|
|
2675
|
+
verifierStepIndex = index;
|
|
2676
|
+
break;
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
const retryGate = verifierStepIndex >= 0 ? 'build-verifier' : reviewer;
|
|
2680
|
+
const retryAfterFixStepIndex = verifierStepIndex >= 0 ? verifierStepIndex : reviewerStepIndex;
|
|
2665
2681
|
const developerIndex = scheduleRetry('feature-developer', reviewer, finishedAttempt);
|
|
2666
2682
|
if (developerIndex < 0) {
|
|
2667
2683
|
beginHumanGate();
|
|
@@ -2674,10 +2690,10 @@ if (status.state === 'changes_requested') {
|
|
|
2674
2690
|
currentAgent: 'feature-developer',
|
|
2675
2691
|
state: 'in_progress',
|
|
2676
2692
|
phase: 'executing',
|
|
2677
|
-
retryAfterFix:
|
|
2693
|
+
retryAfterFix: retryGate,
|
|
2678
2694
|
retryAfterFixStepIndex,
|
|
2679
2695
|
});
|
|
2680
|
-
out(handoffForAgent('feature-developer', steps[developerIndex]?.scope, steps[developerIndex]) + ` After fixes, re-run ${
|
|
2696
|
+
out(handoffForAgent('feature-developer', steps[developerIndex]?.scope, steps[developerIndex]) + ` After fixes, re-run ${retryGate}.`);
|
|
2681
2697
|
process.exit(0);
|
|
2682
2698
|
}
|
|
2683
2699
|
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import fs from 'node:fs';
|
|
16
16
|
import path from 'node:path';
|
|
17
|
+
import crypto from 'node:crypto';
|
|
17
18
|
import { fileURLToPath } from 'node:url';
|
|
18
19
|
|
|
19
20
|
export const OUTPUT_CAP = 4096;
|
|
@@ -29,6 +30,15 @@ const isRealDirectory = (target) => {
|
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
32
|
|
|
33
|
+
/** First 8 hex of the file body; a session-local re-read gate, not a security hash. */
|
|
34
|
+
const shortHash = (file) => {
|
|
35
|
+
try {
|
|
36
|
+
return crypto.createHash('sha256').update(fs.readFileSync(file)).digest('hex').slice(0, 8);
|
|
37
|
+
} catch {
|
|
38
|
+
return '????????';
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
32
42
|
const insideRoot = (root, abs) => {
|
|
33
43
|
const relative = path.relative(root, abs);
|
|
34
44
|
return relative === '' || (!relative.startsWith('..') && !path.isAbsolute(relative));
|
|
@@ -168,6 +178,13 @@ export const renderReport = (root, inputs) => {
|
|
|
168
178
|
}
|
|
169
179
|
if (blocks.length === 0) return { text: 'overlays=0', chains: [], read: [] };
|
|
170
180
|
const lines = [`overlays=${overlaySet.size}`, ...blocks.flatMap((block) => block.lines)];
|
|
181
|
+
const readSet = new Set(read);
|
|
182
|
+
if (readSet.size > 0) {
|
|
183
|
+
lines.push('hashes:');
|
|
184
|
+
for (const file of [...readSet].sort()) {
|
|
185
|
+
lines.push(`${file} ${shortHash(path.join(root, file))}`);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
171
188
|
return {
|
|
172
189
|
text: lines.join('\n'),
|
|
173
190
|
chains: blocks.map((block) => ({ for: block.for, overlays: block.overlays })),
|
|
@@ -17,7 +17,7 @@ Typical feature with data and UI. Concrete directories and rule stems — in the
|
|
|
17
17
|
4. **State** — store / ViewModel / use cases; no direct HTTP and no DTOs in UI.
|
|
18
18
|
5. **UI** — thin views/components; data via state; design system. If the prompt or `brief.md` contains a `figma.com` URL, **mockup review must complete** (or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue`) **before UI work**. When required-signal and **no** `figma.com`, **`ux-design.md` must exist** (not `INCOMPLETE`) before UI work — else blocked, hand back to analyst. Non-UI tasks no-op these gates. When a mockup contract exists for the WP, the UI step consumes it (per-node spec = the binding baseline) and a post-implementation verification gate runs against it (scope per `mockup-review` § Post-implementation gate) — screenshot / value / state / structural-parity diff plus a freeze re-check; unmapped implemented components are findings, not silent additions.
|
|
19
19
|
6. **Tests** — unit for mappers / non-trivial logic; e2e/UI per stack convention.
|
|
20
|
-
7. **Completion** —
|
|
20
|
+
7. **Completion** — closure gate: `build-verifier` runs the stack gate set **once**, after the last authoring step. During Build (steps 1–6) do not run project lint/test/build; author code and tests. When the current WP spans **more than one** layer or module, `implementation.md` includes a **Code Map** (3–8 annotated repo-relative paths) and **Suggested Review Order** (`concern | path:line | ≤15 word note`). Omit both for a single-file or single-layer WP.
|
|
21
21
|
|
|
22
22
|
## Context hygiene
|
|
23
23
|
|
|
@@ -25,13 +25,9 @@ A command whose output can exceed ~4 KB — a test run, a build/lint log, `git l
|
|
|
25
25
|
|
|
26
26
|
## Iterative refinement loop
|
|
27
27
|
|
|
28
|
-
Every stage runs the named loop **draft →
|
|
28
|
+
Every stage runs the named loop **draft → structural evaluation → refine** against a named oracle: reference-feature parity, layer/import shape, schema/contract parity, or review. The oracle is **not** a project test run. Tests are authored in the stage and executed by the closure gate; a failing test is closure evidence, not a per-stage trigger. When `implementationRail: tdd` is explicitly on, targeted tests are the documented cadence exception.
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
- **Evaluate** it against the stage's "done when" / exit criteria with the **named oracle** — a structural gate, a reviewer parity check, a test suite, or a human approval.
|
|
32
|
-
- **Refine** and re-evaluate until the oracle passes or the human re-scopes; loop back to the owning task, never forward past a failed oracle.
|
|
33
|
-
|
|
34
|
-
**Exit criteria:** a layer or stage is complete only when its named criteria hold (mapper tests green, parity check passes, gate output clean). Do not advance to the next checklist step while the current step's oracle fails; a repeatedly failing oracle triggers **plan revision**.
|
|
30
|
+
**Exit criteria:** a layer or stage is complete only when its structural criteria hold (reference parity, barrel/import shape, authored test present). Do not advance to the next checklist step while the current step's oracle fails; a repeatedly failing oracle triggers **plan revision**.
|
|
35
31
|
|
|
36
32
|
## Data flow (orientation)
|
|
37
33
|
|
|
@@ -105,7 +101,11 @@ Typical feature with backend data and shared state. Layer details — `architect
|
|
|
105
101
|
6. **UI** — types from `@/types`, no DTOs (`ui-and-accessibility/react-ui.md`, `architecture/architecture-boundaries-ui.md`, `ui-and-accessibility/no-props-spread.md`).
|
|
106
102
|
7. **Mocks** — per repo layout; register in `app/src/mocks/handlers.ts` (see below).
|
|
107
103
|
8. **Tests** — unit for mappers (`testing/tests-unit.md`); e2e from `*.cases.md` (`testing/tests-e2e-structure.md`, `testing/playwright-agents.md`).
|
|
108
|
-
9. **Completion** — **`tooling-and-review/post-change-lint.md
|
|
104
|
+
9. **Completion** — closure gate: **`tooling-and-review/post-change-lint.md`** runs **once**, after the last authoring step (`build-verifier` owns it): `lint:js` + `lint:css` + `type-check`; package manager — `tooling-and-review/package-manager.md`. Do not run project lint/test/build in steps 1–8; author code and tests only. When the current WP spans **more than one** layer or module, `implementation.md` includes a **Code Map** (3–8 annotated paths) and **Suggested Review Order** (`concern | path:line | ≤15 word note`). Omit both for a single-file or single-layer WP.
|
|
105
|
+
|
|
106
|
+
## Context hygiene
|
|
107
|
+
|
|
108
|
+
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 -n` or `team-db.mjs search`), and record the repo-relative `outputs/…` path in `implementation.md` or `validation-report.md` when it informed a decision. Do not read the whole output into context.
|
|
109
109
|
|
|
110
110
|
## Data flow (orientation)
|
|
111
111
|
|
|
@@ -168,7 +168,7 @@ When adding or extending a feature, **walk the checklist** and the rules from th
|
|
|
168
168
|
|
|
169
169
|
## Iterative refinement loop
|
|
170
170
|
|
|
171
|
-
Every stage runs the named loop **draft →
|
|
171
|
+
Every stage runs the named loop **draft → structural evaluation → refine** against a named oracle: reference-feature parity, layer/import shape, schema/contract parity, or review. The oracle is **not** a project test run. Tests are authored in the stage and executed by the closure gate (`build-verifier`); a failing test is closure evidence, not a per-stage trigger. When `implementationRail: tdd` is explicitly on, targeted tests are the documented cadence exception. **Exit criteria:** a layer or stage is complete only when its structural criteria hold (reference parity, barrel/import shape, authored test present); do not advance past a failing oracle. A repeatedly failing oracle triggers **plan revision**.
|
|
172
172
|
|
|
173
173
|
## Related
|
|
174
174
|
|