@bonesofspring/ai-rules 0.2.74 → 0.2.77
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 +119 -0
- package/README.md +2 -2
- package/bin/lib/engine-scripts.js +4 -0
- package/docs/PRESET-CONTRIBUTION.md +6 -3
- package/docs/TEAM-DB.md +10 -0
- package/docs/TOKEN-ECONOMY.md +18 -5
- package/docs/ZCODE.md +1 -1
- package/package.json +6 -2
- package/presets/_shared/ai-local/scripts/check-write-scope.mjs +126 -34
- package/presets/_shared/ai-local/scripts/lock.mjs +103 -30
- package/presets/_shared/ai-local/scripts/rule-improver.mjs +4 -0
- package/presets/_shared/ai-local/scripts/run-compact.mjs +132 -0
- package/presets/_shared/ai-local/scripts/signals.mjs +3 -1
- package/presets/_shared/ai-local/scripts/team-db-api.mjs +7 -2
- package/presets/_shared/ai-local/scripts/team-db-project.mjs +276 -1
- package/presets/_shared/ai-local/scripts/team-db-scheduler.mjs +32 -2
- package/presets/_shared/ai-local/scripts/team-db-schema.mjs +99 -0
- package/presets/_shared/ai-local/scripts/team-db-task-runner.mjs +3 -1
- package/presets/_shared/core/agent-team/agent-task-metrics.md +29 -0
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +1 -1
- package/presets/_shared/core/architecture/feature-delivery-workflow.md +1 -1
- package/presets/_shared/core/meta/preset-pr-checklist.md +2 -2
- package/presets/_shared/core/quality/context-and-iteration.md +1 -1
- package/presets/_shared/hooks/chain-team-phases.sh.tmpl +4 -1
- package/presets/_shared/hooks/compact-shell-output.mjs +68 -0
- package/presets/claude/android-kotlin/CLAUDE.md +1 -1
- package/presets/claude/android-kotlin/REPO_AGENTS.md +8 -0
- package/presets/claude/android-kotlin/agents/README.md +4 -0
- package/presets/claude/android-kotlin/agents/accessibility-reviewer.md +1 -1
- package/presets/claude/android-kotlin/agents/api-contract-reviewer.md +1 -1
- package/presets/claude/android-kotlin/agents/build-verifier.md +1 -1
- package/presets/claude/android-kotlin/agents/ci-investigator.md +0 -1
- package/presets/claude/android-kotlin/agents/code-reviewer.md +1 -1
- package/presets/claude/android-kotlin/agents/codebase-analyzer.md +1 -1
- package/presets/claude/android-kotlin/agents/debugger.md +0 -1
- package/presets/claude/android-kotlin/agents/feature-developer.md +0 -1
- package/presets/claude/android-kotlin/agents/migration-specialist.md +1 -1
- package/presets/claude/android-kotlin/agents/mockup-reviewer.md +1 -0
- package/presets/claude/android-kotlin/agents/openspec-author.md +2 -1
- package/presets/claude/android-kotlin/agents/performance-auditor.md +1 -1
- package/presets/claude/android-kotlin/agents/qa-tester.md +0 -1
- package/presets/claude/android-kotlin/agents/security-reviewer.md +1 -1
- package/presets/claude/android-kotlin/agents/solution-architect.md +1 -1
- package/presets/claude/android-kotlin/agents/task-analyst.md +1 -1
- package/presets/claude/android-kotlin/agents/task-router.md +1 -1
- package/presets/claude/android-kotlin/agents/tech-writer.md +1 -1
- package/presets/claude/android-kotlin/agents/unit-test-generator.md +0 -1
- package/presets/claude/android-kotlin/agents/unit-test-healer.md +0 -1
- package/presets/claude/android-kotlin/agents/unit-test-planner.md +1 -1
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +4 -1
- package/presets/claude/android-kotlin/rules/architecture/feature-delivery.md +66 -8
- package/presets/claude/android-kotlin/rules/architecture/reference-features.md +48 -2
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/android-kotlin/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/android-kotlin/team/README.md +1 -1
- package/presets/claude/android-kotlin/team/fixtures/feature-parallel.json +84 -0
- package/presets/claude/go/CLAUDE.md +1 -1
- package/presets/claude/go/REPO_AGENTS.md +8 -0
- package/presets/claude/go/agents/README.md +4 -0
- package/presets/claude/go/agents/api-contract-reviewer.md +1 -1
- package/presets/claude/go/agents/build-verifier.md +1 -1
- package/presets/claude/go/agents/ci-investigator.md +0 -1
- package/presets/claude/go/agents/code-reviewer.md +3 -3
- package/presets/claude/go/agents/codebase-analyzer.md +1 -1
- package/presets/claude/go/agents/debugger.md +0 -1
- package/presets/claude/go/agents/feature-developer.md +2 -3
- package/presets/claude/go/agents/integration-test-generator.md +1 -2
- package/presets/claude/go/agents/integration-test-healer.md +1 -2
- package/presets/claude/go/agents/integration-test-planner.md +1 -2
- package/presets/claude/go/agents/migration-specialist.md +1 -1
- package/presets/claude/go/agents/openspec-author.md +2 -1
- package/presets/claude/go/agents/performance-auditor.md +1 -1
- package/presets/claude/go/agents/qa-tester.md +0 -1
- package/presets/claude/go/agents/security-reviewer.md +2 -2
- package/presets/claude/go/agents/solution-architect.md +1 -1
- package/presets/claude/go/agents/task-analyst.md +1 -1
- package/presets/claude/go/agents/task-router.md +1 -1
- package/presets/claude/go/agents/tech-writer.md +1 -1
- package/presets/claude/go/agents/unit-test-generator.md +1 -2
- package/presets/claude/go/agents/unit-test-healer.md +1 -2
- package/presets/claude/go/agents/unit-test-planner.md +1 -1
- package/presets/claude/go/hooks/chain-team-phases.sh +4 -1
- package/presets/claude/go/rules/architecture/feature-delivery.md +50 -1
- package/presets/claude/go/rules/architecture/reference-features.md +22 -0
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
- package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/go/skills/feature-delivery/SKILL.md +2 -2
- package/presets/claude/go/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/go/team/README.md +1 -1
- package/presets/claude/go/team/fixtures/feature-parallel.json +84 -0
- package/presets/claude/ios-swift/CLAUDE.md +1 -1
- package/presets/claude/ios-swift/REPO_AGENTS.md +8 -0
- package/presets/claude/ios-swift/agents/README.md +4 -0
- package/presets/claude/ios-swift/agents/accessibility-reviewer.md +1 -1
- package/presets/claude/ios-swift/agents/api-contract-reviewer.md +1 -1
- package/presets/claude/ios-swift/agents/build-verifier.md +1 -1
- package/presets/claude/ios-swift/agents/ci-investigator.md +0 -1
- package/presets/claude/ios-swift/agents/code-reviewer.md +1 -1
- package/presets/claude/ios-swift/agents/codebase-analyzer.md +1 -1
- package/presets/claude/ios-swift/agents/debugger.md +0 -1
- package/presets/claude/ios-swift/agents/feature-developer.md +0 -1
- package/presets/claude/ios-swift/agents/migration-specialist.md +1 -1
- package/presets/claude/ios-swift/agents/mockup-reviewer.md +1 -0
- package/presets/claude/ios-swift/agents/openspec-author.md +2 -1
- package/presets/claude/ios-swift/agents/performance-auditor.md +1 -1
- package/presets/claude/ios-swift/agents/qa-tester.md +0 -1
- package/presets/claude/ios-swift/agents/security-reviewer.md +1 -1
- package/presets/claude/ios-swift/agents/solution-architect.md +1 -1
- package/presets/claude/ios-swift/agents/task-analyst.md +1 -1
- package/presets/claude/ios-swift/agents/task-router.md +1 -1
- package/presets/claude/ios-swift/agents/tech-writer.md +1 -1
- package/presets/claude/ios-swift/agents/unit-test-generator.md +0 -1
- package/presets/claude/ios-swift/agents/unit-test-healer.md +0 -1
- package/presets/claude/ios-swift/agents/unit-test-planner.md +1 -1
- package/presets/claude/ios-swift/agents/xcuitest-test-generator.md +0 -1
- package/presets/claude/ios-swift/agents/xcuitest-test-healer.md +0 -1
- package/presets/claude/ios-swift/agents/xcuitest-test-planner.md +0 -1
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +4 -1
- package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +8 -8
- package/presets/claude/ios-swift/rules/architecture/reference-features.md +2 -21
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/ios-swift/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/ios-swift/team/README.md +1 -1
- package/presets/claude/ios-swift/team/fixtures/feature-parallel.json +84 -0
- package/presets/claude/java/CLAUDE.md +2 -2
- package/presets/claude/java/REPO_AGENTS.md +8 -0
- package/presets/claude/java/agents/README.md +4 -0
- package/presets/claude/java/agents/api-contract-reviewer.md +1 -1
- package/presets/claude/java/agents/build-verifier.md +1 -1
- package/presets/claude/java/agents/ci-investigator.md +0 -1
- package/presets/claude/java/agents/code-reviewer.md +3 -3
- package/presets/claude/java/agents/codebase-analyzer.md +1 -1
- package/presets/claude/java/agents/debugger.md +0 -1
- package/presets/claude/java/agents/feature-developer.md +2 -3
- package/presets/claude/java/agents/integration-test-generator.md +1 -2
- package/presets/claude/java/agents/integration-test-healer.md +1 -2
- package/presets/claude/java/agents/integration-test-planner.md +1 -2
- package/presets/claude/java/agents/migration-specialist.md +1 -1
- package/presets/claude/java/agents/openspec-author.md +2 -1
- package/presets/claude/java/agents/performance-auditor.md +1 -1
- package/presets/claude/java/agents/qa-tester.md +0 -1
- package/presets/claude/java/agents/security-reviewer.md +2 -2
- package/presets/claude/java/agents/solution-architect.md +1 -1
- package/presets/claude/java/agents/task-analyst.md +1 -1
- package/presets/claude/java/agents/task-router.md +1 -1
- package/presets/claude/java/agents/tech-writer.md +1 -1
- package/presets/claude/java/agents/unit-test-generator.md +1 -2
- package/presets/claude/java/agents/unit-test-healer.md +1 -2
- package/presets/claude/java/agents/unit-test-planner.md +1 -1
- package/presets/claude/java/hooks/chain-team-phases.sh +4 -1
- package/presets/claude/java/rules/architecture/feature-delivery.md +51 -1
- package/presets/claude/java/rules/architecture/reference-features.md +22 -0
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
- package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/java/skills/feature-delivery/SKILL.md +2 -2
- package/presets/claude/java/team/README.md +1 -1
- package/presets/claude/java/team/fixtures/feature-parallel.json +84 -0
- package/presets/claude/mcp-ts/CLAUDE.md +1 -1
- package/presets/claude/mcp-ts/REPO_AGENTS.md +8 -0
- package/presets/claude/mcp-ts/agents/README.md +4 -0
- package/presets/claude/mcp-ts/agents/build-verifier.md +1 -1
- package/presets/claude/mcp-ts/agents/feature-developer.md +2 -3
- package/presets/claude/mcp-ts/agents/security-reviewer.md +2 -2
- package/presets/claude/mcp-ts/agents/solution-architect.md +1 -1
- package/presets/claude/mcp-ts/agents/task-analyst.md +1 -1
- package/presets/claude/mcp-ts/agents/task-router.md +1 -1
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +4 -1
- package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +47 -1
- package/presets/claude/mcp-ts/rules/architecture/reference-features.md +22 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/mcp-ts/skills/code-review/SKILL.md +1 -1
- package/presets/claude/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
- package/presets/claude/mcp-ts/skills/unit-testing/SKILL.md +1 -1
- package/presets/claude/mcp-ts/team/README.md +1 -1
- package/presets/claude/mcp-ts/team/fixtures/feature-parallel.json +84 -0
- package/presets/claude/mol/CLAUDE.md +1 -1
- package/presets/claude/mol/REPO_AGENTS.md +8 -0
- package/presets/claude/mol/agents/README.md +2 -4
- package/presets/claude/mol/agents/accessibility-reviewer.md +1 -0
- package/presets/claude/mol/agents/api-contract-reviewer.md +1 -0
- package/presets/claude/mol/agents/build-verifier.md +1 -0
- package/presets/claude/mol/agents/code-reviewer.md +1 -0
- package/presets/claude/mol/agents/codebase-analyzer.md +1 -0
- package/presets/claude/mol/agents/migration-specialist.md +1 -0
- package/presets/claude/mol/agents/mockup-reviewer.md +1 -0
- package/presets/claude/mol/agents/openspec-author.md +1 -0
- package/presets/claude/mol/agents/performance-auditor.md +1 -0
- package/presets/claude/mol/agents/security-reviewer.md +1 -0
- package/presets/claude/mol/agents/solution-architect.md +1 -0
- package/presets/claude/mol/agents/task-analyst.md +1 -0
- package/presets/claude/mol/agents/task-router.md +1 -0
- package/presets/claude/mol/agents/tech-writer.md +1 -0
- package/presets/claude/mol/agents/unit-test-planner.md +1 -0
- package/presets/claude/mol/hooks/chain-team-phases.sh +4 -1
- package/presets/claude/mol/rules/architecture/feature-delivery-workflow.md +10 -10
- package/presets/claude/mol/rules/architecture/reference-features.md +0 -19
- package/presets/claude/mol/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
- package/presets/claude/mol/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/mol/team/README.md +1 -1
- package/presets/claude/next/CLAUDE.md +3 -3
- package/presets/claude/next/REPO_AGENTS.md +8 -0
- package/presets/claude/next/agents/README.md +4 -0
- package/presets/claude/next/agents/accessibility-reviewer.md +1 -0
- package/presets/claude/next/agents/api-contract-reviewer.md +1 -0
- package/presets/claude/next/agents/build-verifier.md +2 -1
- package/presets/claude/next/agents/code-reviewer.md +3 -0
- package/presets/claude/next/agents/codebase-analyzer.md +1 -1
- package/presets/claude/next/agents/migration-specialist.md +1 -0
- package/presets/claude/next/agents/mockup-reviewer.md +1 -0
- package/presets/claude/next/agents/openspec-author.md +1 -0
- package/presets/claude/next/agents/performance-auditor.md +1 -0
- package/presets/claude/next/agents/security-reviewer.md +1 -0
- package/presets/claude/next/agents/solution-architect.md +1 -0
- package/presets/claude/next/agents/task-analyst.md +1 -0
- package/presets/claude/next/agents/task-router.md +12 -0
- package/presets/claude/next/agents/tech-writer.md +1 -0
- package/presets/claude/next/agents/unit-test-planner.md +1 -0
- package/presets/claude/next/ai-local/rules-library/agent-artifacts-no-local-paths.md +71 -0
- package/presets/claude/next/ai-local/rules-library/agent-pipeline-gates.md +19 -0
- package/presets/claude/next/ai-local/rules-library/analytics-events.md +18 -0
- package/presets/claude/next/ai-local/rules-library/api-contract-source.md +14 -0
- package/presets/claude/next/ai-local/rules-library/artifact-lifecycle.md +17 -0
- package/presets/claude/next/ai-local/rules-library/code-style.md +68 -0
- package/presets/claude/next/ai-local/rules-library/commit-hygiene.md +17 -0
- package/presets/claude/next/ai-local/rules-library/component-child-decomposition.md +81 -0
- package/presets/claude/next/ai-local/rules-library/feature-flags-experiments.md +15 -0
- package/presets/claude/next/ai-local/rules-library/mcp-required-for-ui-layout.md +45 -0
- package/presets/claude/next/ai-local/rules-library/no-react-fc.md +46 -0
- package/presets/claude/next/ai-local/rules-library/no-test-driven-behavior-change.md +14 -0
- package/presets/claude/next/ai-local/rules-library/pre-pr-checklist.md +16 -0
- package/presets/claude/next/ai-local/rules-library/pwa-service-worker.md +15 -0
- package/presets/claude/next/ai-local/rules-library/qa-test-cases.md +14 -0
- package/presets/claude/next/ai-local/rules-library/router-pages.md +25 -0
- package/presets/claude/next/ai-local/rules-library/single-source-copy-constants.md +18 -0
- package/presets/claude/next/ai-local/rules-library/storybook-catalog-structure.md +62 -0
- package/presets/claude/next/ai-local/rules-library/storybook-cleanup-temp-screenshots.md +40 -0
- package/presets/claude/next/ai-local/rules-library/storybook-csf-authoring.md +100 -0
- package/presets/claude/next/ai-local/rules-library/storybook-dev-compare-figma.md +72 -0
- package/presets/claude/next/ai-local/rules-library/storybook-keep-tests-current.md +75 -0
- package/presets/claude/next/ai-local/rules-library/storybook-modals.md +64 -0
- package/presets/claude/next/ai-local/rules-library/storybook-no-app-node-modules.md +40 -0
- package/presets/claude/next/ai-local/rules-library/storybook-ui-quality-gate.md +38 -0
- package/presets/claude/next/ai-local/rules-library/ui-change-review-gate.md +16 -0
- package/presets/claude/next/hooks/chain-team-phases.sh +4 -1
- package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +13 -13
- package/presets/claude/next/rules/architecture/reference-features.md +0 -19
- package/presets/claude/next/rules/stack/next-app-core.md +1 -1
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
- package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/next/team/README.md +1 -1
- package/presets/claude/next/team/fixtures/feature-l2-lite.json +27 -0
- package/presets/claude/nuxt/CLAUDE.md +3 -3
- package/presets/claude/nuxt/REPO_AGENTS.md +8 -0
- package/presets/claude/nuxt/agents/README.md +2 -4
- package/presets/claude/nuxt/agents/accessibility-reviewer.md +1 -0
- package/presets/claude/nuxt/agents/api-contract-reviewer.md +1 -0
- package/presets/claude/nuxt/agents/build-verifier.md +1 -0
- package/presets/claude/nuxt/agents/code-reviewer.md +1 -0
- package/presets/claude/nuxt/agents/codebase-analyzer.md +1 -1
- package/presets/claude/nuxt/agents/migration-specialist.md +1 -0
- package/presets/claude/nuxt/agents/mockup-reviewer.md +1 -0
- package/presets/claude/nuxt/agents/openspec-author.md +2 -1
- package/presets/claude/nuxt/agents/performance-auditor.md +1 -0
- package/presets/claude/nuxt/agents/playwright-test-generator.md +24 -68
- package/presets/claude/nuxt/agents/playwright-test-healer.md +28 -54
- package/presets/claude/nuxt/agents/playwright-test-planner.md +18 -51
- package/presets/claude/nuxt/agents/security-reviewer.md +1 -0
- package/presets/claude/nuxt/agents/solution-architect.md +1 -0
- package/presets/claude/nuxt/agents/task-analyst.md +12 -0
- package/presets/claude/nuxt/agents/task-router.md +1 -0
- package/presets/claude/nuxt/agents/tech-writer.md +1 -0
- package/presets/claude/nuxt/agents/unit-test-planner.md +1 -0
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +4 -1
- package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +9 -9
- package/presets/claude/nuxt/rules/architecture/reference-features.md +1 -20
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
- package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/nuxt/team/README.md +1 -1
- package/presets/claude/nuxt/team/fixtures/feature-parallel.json +84 -0
- package/presets/claude/php-hexagonal/CLAUDE.md +2 -2
- package/presets/claude/php-hexagonal/REPO_AGENTS.md +8 -0
- package/presets/claude/php-hexagonal/agents/README.md +4 -0
- package/presets/claude/php-hexagonal/agents/api-contract-reviewer.md +1 -1
- package/presets/claude/php-hexagonal/agents/build-verifier.md +1 -1
- package/presets/claude/php-hexagonal/agents/ci-investigator.md +0 -1
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +3 -3
- package/presets/claude/php-hexagonal/agents/codebase-analyzer.md +1 -1
- package/presets/claude/php-hexagonal/agents/debugger.md +0 -1
- package/presets/claude/php-hexagonal/agents/feature-developer.md +2 -3
- package/presets/claude/php-hexagonal/agents/integration-test-generator.md +1 -2
- package/presets/claude/php-hexagonal/agents/integration-test-healer.md +1 -2
- package/presets/claude/php-hexagonal/agents/integration-test-planner.md +1 -2
- package/presets/claude/php-hexagonal/agents/migration-specialist.md +1 -1
- package/presets/claude/php-hexagonal/agents/openspec-author.md +2 -1
- package/presets/claude/php-hexagonal/agents/performance-auditor.md +1 -1
- package/presets/claude/php-hexagonal/agents/qa-tester.md +0 -1
- package/presets/claude/php-hexagonal/agents/security-reviewer.md +2 -2
- package/presets/claude/php-hexagonal/agents/solution-architect.md +1 -1
- package/presets/claude/php-hexagonal/agents/task-analyst.md +1 -1
- package/presets/claude/php-hexagonal/agents/task-router.md +1 -1
- package/presets/claude/php-hexagonal/agents/tech-writer.md +1 -1
- package/presets/claude/php-hexagonal/agents/unit-test-generator.md +1 -2
- package/presets/claude/php-hexagonal/agents/unit-test-healer.md +1 -2
- package/presets/claude/php-hexagonal/agents/unit-test-planner.md +1 -1
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +4 -1
- package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +51 -1
- package/presets/claude/php-hexagonal/rules/architecture/reference-features.md +25 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
- package/presets/claude/php-hexagonal/team/README.md +1 -1
- package/presets/claude/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
- package/presets/claude/php-laravel/CLAUDE.md +1 -1
- package/presets/claude/php-laravel/REPO_AGENTS.md +8 -0
- package/presets/claude/php-laravel/agents/README.md +4 -0
- package/presets/claude/php-laravel/agents/api-contract-reviewer.md +1 -1
- package/presets/claude/php-laravel/agents/build-verifier.md +1 -1
- package/presets/claude/php-laravel/agents/ci-investigator.md +0 -1
- package/presets/claude/php-laravel/agents/code-reviewer.md +1 -1
- package/presets/claude/php-laravel/agents/codebase-analyzer.md +1 -1
- package/presets/claude/php-laravel/agents/debugger.md +0 -1
- package/presets/claude/php-laravel/agents/feature-developer.md +2 -3
- package/presets/claude/php-laravel/agents/integration-test-generator.md +1 -2
- package/presets/claude/php-laravel/agents/integration-test-healer.md +1 -2
- package/presets/claude/php-laravel/agents/integration-test-planner.md +1 -2
- package/presets/claude/php-laravel/agents/migration-specialist.md +1 -1
- package/presets/claude/php-laravel/agents/openspec-author.md +2 -1
- package/presets/claude/php-laravel/agents/performance-auditor.md +1 -1
- package/presets/claude/php-laravel/agents/qa-tester.md +0 -1
- package/presets/claude/php-laravel/agents/security-reviewer.md +1 -1
- package/presets/claude/php-laravel/agents/solution-architect.md +1 -1
- package/presets/claude/php-laravel/agents/task-analyst.md +1 -1
- package/presets/claude/php-laravel/agents/task-router.md +1 -1
- package/presets/claude/php-laravel/agents/tech-writer.md +1 -1
- package/presets/claude/php-laravel/agents/unit-test-generator.md +1 -2
- package/presets/claude/php-laravel/agents/unit-test-healer.md +1 -2
- package/presets/claude/php-laravel/agents/unit-test-planner.md +1 -1
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +4 -1
- package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +54 -1
- package/presets/claude/php-laravel/rules/architecture/reference-features.md +27 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/php-laravel/skills/feature-delivery/SKILL.md +2 -2
- package/presets/claude/php-laravel/team/README.md +1 -1
- package/presets/claude/php-laravel/team/fixtures/feature-parallel.json +84 -0
- package/presets/claude/svelte/CLAUDE.md +3 -3
- package/presets/claude/svelte/REPO_AGENTS.md +8 -0
- package/presets/claude/svelte/agents/README.md +2 -4
- package/presets/claude/svelte/agents/accessibility-reviewer.md +1 -0
- package/presets/claude/svelte/agents/api-contract-reviewer.md +1 -0
- package/presets/claude/svelte/agents/build-verifier.md +1 -0
- package/presets/claude/svelte/agents/code-reviewer.md +1 -0
- package/presets/claude/svelte/agents/codebase-analyzer.md +1 -1
- package/presets/claude/svelte/agents/migration-specialist.md +1 -0
- package/presets/claude/svelte/agents/mockup-reviewer.md +1 -0
- package/presets/claude/svelte/agents/openspec-author.md +2 -1
- package/presets/claude/svelte/agents/performance-auditor.md +1 -0
- package/presets/claude/svelte/agents/playwright-test-generator.md +24 -68
- package/presets/claude/svelte/agents/playwright-test-healer.md +28 -54
- package/presets/claude/svelte/agents/playwright-test-planner.md +18 -51
- package/presets/claude/svelte/agents/security-reviewer.md +1 -0
- package/presets/claude/svelte/agents/solution-architect.md +1 -0
- package/presets/claude/svelte/agents/task-analyst.md +12 -0
- package/presets/claude/svelte/agents/task-router.md +1 -1
- package/presets/claude/svelte/agents/tech-writer.md +1 -0
- package/presets/claude/svelte/agents/unit-test-planner.md +1 -0
- package/presets/claude/svelte/hooks/chain-team-phases.sh +4 -1
- package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +7 -7
- package/presets/claude/svelte/rules/architecture/reference-features.md +1 -20
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +1 -1
- package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +2 -2
- package/presets/claude/svelte/team/README.md +1 -1
- package/presets/claude/svelte/team/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/android-kotlin/REPO_AGENTS.md +8 -0
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +4 -1
- package/presets/cursor/android-kotlin/hooks/compact-shell-output.mjs +68 -0
- package/presets/cursor/android-kotlin/hooks.json +7 -0
- package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +17 -5
- package/presets/cursor/android-kotlin/rules/feature-delivery-workflow.mdc +66 -8
- package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/android-kotlin/rules/reference-features.mdc +48 -2
- package/presets/cursor/android-kotlin/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/android-kotlin/team/README.md +1 -1
- package/presets/cursor/android-kotlin/team/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/go/REPO_AGENTS.md +8 -0
- package/presets/cursor/go/hooks/chain-team-phases.sh +4 -1
- package/presets/cursor/go/hooks/compact-shell-output.mjs +68 -0
- package/presets/cursor/go/hooks.json +7 -0
- package/presets/cursor/go/rules/agent-team-orchestrator.mdc +16 -5
- package/presets/cursor/go/rules/feature-delivery-workflow.mdc +63 -5
- package/presets/cursor/go/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/go/rules/reference-features.mdc +46 -6
- package/presets/cursor/go/skills/feature-delivery/SKILL.md +2 -2
- package/presets/cursor/go/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/go/team/README.md +1 -1
- package/presets/cursor/go/team/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/ios-swift/REPO_AGENTS.md +8 -0
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +4 -1
- package/presets/cursor/ios-swift/hooks/compact-shell-output.mjs +68 -0
- package/presets/cursor/ios-swift/hooks.json +7 -0
- package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +17 -5
- package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +64 -8
- package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/ios-swift/rules/reference-features.mdc +44 -21
- package/presets/cursor/ios-swift/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/ios-swift/team/README.md +1 -1
- package/presets/cursor/ios-swift/team/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/java/AGENTS.md +1 -1
- package/presets/cursor/java/REPO_AGENTS.md +8 -0
- package/presets/cursor/java/hooks/chain-team-phases.sh +4 -1
- package/presets/cursor/java/hooks/compact-shell-output.mjs +68 -0
- package/presets/cursor/java/hooks.json +7 -0
- package/presets/cursor/java/rules/agent-team-orchestrator.mdc +16 -5
- package/presets/cursor/java/rules/feature-delivery-workflow.mdc +63 -5
- package/presets/cursor/java/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/java/rules/reference-features.mdc +46 -6
- package/presets/cursor/java/skills/feature-delivery/SKILL.md +2 -2
- package/presets/cursor/java/team/README.md +1 -1
- package/presets/cursor/java/team/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/mcp-ts/REPO_AGENTS.md +8 -0
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +4 -1
- package/presets/cursor/mcp-ts/hooks/compact-shell-output.mjs +68 -0
- package/presets/cursor/mcp-ts/hooks.json +7 -0
- package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +17 -6
- package/presets/cursor/mcp-ts/rules/feature-delivery-workflow.mdc +63 -5
- package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/mcp-ts/rules/reference-features.mdc +46 -6
- package/presets/cursor/mcp-ts/skills/code-review/SKILL.md +1 -1
- package/presets/cursor/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
- package/presets/cursor/mcp-ts/skills/unit-testing/SKILL.md +1 -1
- package/presets/cursor/mcp-ts/team/README.md +1 -1
- package/presets/cursor/mcp-ts/team/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/mol/REPO_AGENTS.md +8 -0
- package/presets/cursor/mol/hooks/chain-team-phases.sh +4 -1
- package/presets/cursor/mol/hooks/compact-shell-output.mjs +68 -0
- package/presets/cursor/mol/hooks.json +7 -0
- package/presets/cursor/mol/rules/agent-team-orchestrator.mdc +16 -5
- package/presets/cursor/mol/rules/feature-delivery-workflow.mdc +65 -9
- package/presets/cursor/mol/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/mol/rules/reference-features.mdc +43 -20
- package/presets/cursor/mol/team/README.md +1 -1
- package/presets/cursor/next/README.md +2 -2
- package/presets/cursor/next/REPO_AGENTS.md +8 -0
- package/presets/cursor/next/agents/build-verifier.md +1 -1
- package/presets/cursor/next/agents/code-reviewer.md +2 -0
- package/presets/cursor/next/hooks/chain-team-phases.sh +4 -1
- package/presets/cursor/next/hooks/compact-shell-output.mjs +68 -0
- package/presets/cursor/next/hooks.json +7 -0
- package/presets/cursor/next/rules/README.md +2 -2
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +16 -5
- package/presets/cursor/next/rules/feature-delivery-workflow.mdc +68 -12
- package/presets/cursor/next/rules/next-app-core.mdc +1 -1
- package/presets/cursor/next/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/next/rules/reference-features.mdc +42 -19
- package/presets/cursor/next/team/README.md +1 -1
- package/presets/cursor/nuxt/REPO_AGENTS.md +8 -0
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +4 -1
- package/presets/cursor/nuxt/hooks/compact-shell-output.mjs +68 -0
- package/presets/cursor/nuxt/hooks.json +7 -0
- package/presets/cursor/nuxt/rules/README.md +2 -2
- package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +16 -5
- package/presets/cursor/nuxt/rules/feature-delivery-workflow.mdc +64 -8
- package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/nuxt/rules/reference-features.mdc +37 -14
- package/presets/cursor/nuxt/team/README.md +1 -1
- package/presets/cursor/nuxt/team/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/php-hexagonal/AGENTS.md +1 -1
- package/presets/cursor/php-hexagonal/REPO_AGENTS.md +8 -0
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +4 -1
- package/presets/cursor/php-hexagonal/hooks/compact-shell-output.mjs +68 -0
- package/presets/cursor/php-hexagonal/hooks.json +7 -0
- package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +16 -5
- package/presets/cursor/php-hexagonal/rules/feature-delivery-workflow.mdc +63 -5
- package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/php-hexagonal/rules/reference-features.mdc +46 -6
- package/presets/cursor/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
- package/presets/cursor/php-hexagonal/team/README.md +1 -1
- package/presets/cursor/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/php-laravel/AGENTS.md +1 -1
- package/presets/cursor/php-laravel/REPO_AGENTS.md +8 -0
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +4 -1
- package/presets/cursor/php-laravel/hooks/compact-shell-output.mjs +68 -0
- package/presets/cursor/php-laravel/hooks.json +7 -0
- package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +16 -5
- package/presets/cursor/php-laravel/rules/feature-delivery-workflow.mdc +63 -5
- package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/php-laravel/rules/reference-features.mdc +46 -6
- package/presets/cursor/php-laravel/skills/feature-delivery/SKILL.md +2 -2
- package/presets/cursor/php-laravel/team/README.md +1 -1
- package/presets/cursor/php-laravel/team/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/svelte/REPO_AGENTS.md +8 -0
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +4 -1
- package/presets/cursor/svelte/hooks/compact-shell-output.mjs +68 -0
- package/presets/cursor/svelte/hooks.json +7 -0
- package/presets/cursor/svelte/rules/README.md +1 -1
- package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +16 -5
- package/presets/cursor/svelte/rules/feature-delivery-workflow.mdc +62 -6
- package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +2 -2
- package/presets/cursor/svelte/rules/reference-features.mdc +40 -17
- package/presets/cursor/svelte/team/README.md +1 -1
- package/presets/cursor/svelte/team/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/android-kotlin/REPO_AGENTS.md +8 -0
- package/presets/mavis/android-kotlin/adapter-map.json +19 -2
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +4 -1
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +1 -1
- package/presets/mavis/android-kotlin/rules/feature-delivery-workflow.md +66 -8
- package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/android-kotlin/rules/reference-features.md +48 -2
- package/presets/mavis/android-kotlin/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/android-kotlin/team/README.md +1 -1
- package/presets/mavis/android-kotlin/team/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/go/REPO_AGENTS.md +8 -0
- package/presets/mavis/go/adapter-map.json +17 -1
- package/presets/mavis/go/hooks/chain-team-phases.sh +4 -1
- package/presets/mavis/go/rules/agent-team-orchestrator.md +1 -1
- package/presets/mavis/go/rules/feature-delivery-workflow.md +50 -1
- package/presets/mavis/go/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/go/rules/reference-features.md +22 -0
- package/presets/mavis/go/skills/feature-delivery/SKILL.md +2 -2
- package/presets/mavis/go/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/go/team/README.md +1 -1
- package/presets/mavis/go/team/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/ios-swift/REPO_AGENTS.md +8 -0
- package/presets/mavis/ios-swift/adapter-map.json +17 -1
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +4 -1
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +1 -1
- package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +8 -8
- package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/ios-swift/rules/reference-features.md +2 -21
- package/presets/mavis/ios-swift/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/ios-swift/team/README.md +1 -1
- package/presets/mavis/ios-swift/team/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/java/MAVIS.md +1 -1
- package/presets/mavis/java/REPO_AGENTS.md +8 -0
- package/presets/mavis/java/adapter-map.json +17 -1
- package/presets/mavis/java/hooks/chain-team-phases.sh +4 -1
- package/presets/mavis/java/rules/agent-team-orchestrator.md +1 -1
- package/presets/mavis/java/rules/feature-delivery-workflow.md +51 -1
- package/presets/mavis/java/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/java/rules/reference-features.md +22 -0
- package/presets/mavis/java/skills/feature-delivery/SKILL.md +2 -2
- package/presets/mavis/java/team/README.md +1 -1
- package/presets/mavis/java/team/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/mcp-ts/REPO_AGENTS.md +8 -0
- package/presets/mavis/mcp-ts/adapter-map.json +17 -1
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +4 -1
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +1 -1
- package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +47 -1
- package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/mcp-ts/rules/reference-features.md +22 -0
- package/presets/mavis/mcp-ts/skills/code-review/SKILL.md +1 -1
- package/presets/mavis/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
- package/presets/mavis/mcp-ts/skills/unit-testing/SKILL.md +1 -1
- package/presets/mavis/mcp-ts/team/README.md +1 -1
- package/presets/mavis/mcp-ts/team/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/mol/REPO_AGENTS.md +8 -0
- package/presets/mavis/mol/adapter-map.json +9 -1
- package/presets/mavis/mol/hooks/chain-team-phases.sh +4 -1
- package/presets/mavis/mol/rules/agent-team-orchestrator.md +1 -1
- package/presets/mavis/mol/rules/feature-delivery-workflow.md +10 -10
- package/presets/mavis/mol/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/mol/rules/reference-features.md +0 -19
- package/presets/mavis/mol/team/README.md +1 -1
- package/presets/mavis/next/REPO_AGENTS.md +8 -0
- package/presets/mavis/next/adapter-map.json +9 -1
- package/presets/mavis/next/agents/build-verifier.md +1 -1
- package/presets/mavis/next/agents/code-reviewer.md +2 -0
- package/presets/mavis/next/hooks/chain-team-phases.sh +4 -1
- package/presets/mavis/next/rules/agent-team-orchestrator.md +1 -1
- package/presets/mavis/next/rules/feature-delivery-workflow.md +13 -13
- package/presets/mavis/next/rules/next-app-core.md +1 -1
- package/presets/mavis/next/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/next/rules/reference-features.md +0 -19
- package/presets/mavis/next/team/README.md +1 -1
- package/presets/mavis/nuxt/REPO_AGENTS.md +8 -0
- package/presets/mavis/nuxt/adapter-map.json +17 -1
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +4 -1
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +1 -1
- package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +9 -9
- package/presets/mavis/nuxt/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/nuxt/rules/reference-features.md +1 -20
- package/presets/mavis/nuxt/team/README.md +1 -1
- package/presets/mavis/nuxt/team/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/php-hexagonal/MAVIS.md +1 -1
- package/presets/mavis/php-hexagonal/REPO_AGENTS.md +8 -0
- package/presets/mavis/php-hexagonal/adapter-map.json +17 -1
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +4 -1
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
- package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +51 -1
- package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/php-hexagonal/rules/reference-features.md +25 -0
- package/presets/mavis/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
- package/presets/mavis/php-hexagonal/team/README.md +1 -1
- package/presets/mavis/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/php-laravel/MAVIS.md +1 -1
- package/presets/mavis/php-laravel/REPO_AGENTS.md +8 -0
- package/presets/mavis/php-laravel/adapter-map.json +17 -1
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +4 -1
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +1 -1
- package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +54 -1
- package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/php-laravel/rules/reference-features.md +27 -0
- package/presets/mavis/php-laravel/skills/feature-delivery/SKILL.md +2 -2
- package/presets/mavis/php-laravel/team/README.md +1 -1
- package/presets/mavis/php-laravel/team/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/svelte/REPO_AGENTS.md +8 -0
- package/presets/mavis/svelte/adapter-map.json +17 -1
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +4 -1
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +1 -1
- package/presets/mavis/svelte/rules/feature-delivery-workflow.md +7 -7
- package/presets/mavis/svelte/rules/preset-pr-checklist.md +2 -2
- package/presets/mavis/svelte/rules/reference-features.md +1 -20
- package/presets/mavis/svelte/team/README.md +1 -1
- package/presets/mavis/svelte/team/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/android-kotlin/REPO_AGENTS.md +8 -0
- package/presets/opencode/android-kotlin/adapter-map.json +19 -2
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +4 -1
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +1 -1
- package/presets/opencode/android-kotlin/rules/feature-delivery-workflow.md +66 -8
- package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/android-kotlin/rules/reference-features.md +48 -2
- package/presets/opencode/android-kotlin/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/android-kotlin/team/README.md +1 -1
- package/presets/opencode/android-kotlin/team/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/go/REPO_AGENTS.md +8 -0
- package/presets/opencode/go/adapter-map.json +17 -1
- package/presets/opencode/go/hooks/chain-team-phases.sh +4 -1
- package/presets/opencode/go/rules/agent-team-orchestrator.md +1 -1
- package/presets/opencode/go/rules/feature-delivery-workflow.md +50 -1
- package/presets/opencode/go/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/go/rules/reference-features.md +22 -0
- package/presets/opencode/go/skills/feature-delivery/SKILL.md +2 -2
- package/presets/opencode/go/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/go/team/README.md +1 -1
- package/presets/opencode/go/team/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/ios-swift/REPO_AGENTS.md +8 -0
- package/presets/opencode/ios-swift/adapter-map.json +17 -1
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +4 -1
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +1 -1
- package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +8 -8
- package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/ios-swift/rules/reference-features.md +2 -21
- package/presets/opencode/ios-swift/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/ios-swift/team/README.md +1 -1
- package/presets/opencode/ios-swift/team/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/java/OPENCODE.md +1 -1
- package/presets/opencode/java/REPO_AGENTS.md +8 -0
- package/presets/opencode/java/adapter-map.json +17 -1
- package/presets/opencode/java/hooks/chain-team-phases.sh +4 -1
- package/presets/opencode/java/rules/agent-team-orchestrator.md +1 -1
- package/presets/opencode/java/rules/feature-delivery-workflow.md +51 -1
- package/presets/opencode/java/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/java/rules/reference-features.md +22 -0
- package/presets/opencode/java/skills/feature-delivery/SKILL.md +2 -2
- package/presets/opencode/java/team/README.md +1 -1
- package/presets/opencode/java/team/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/mcp-ts/REPO_AGENTS.md +8 -0
- package/presets/opencode/mcp-ts/adapter-map.json +17 -1
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +4 -1
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +1 -1
- package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +47 -1
- package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/mcp-ts/rules/reference-features.md +22 -0
- package/presets/opencode/mcp-ts/skills/code-review/SKILL.md +1 -1
- package/presets/opencode/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
- package/presets/opencode/mcp-ts/skills/unit-testing/SKILL.md +1 -1
- package/presets/opencode/mcp-ts/team/README.md +1 -1
- package/presets/opencode/mcp-ts/team/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/mol/REPO_AGENTS.md +8 -0
- package/presets/opencode/mol/adapter-map.json +9 -1
- package/presets/opencode/mol/hooks/chain-team-phases.sh +4 -1
- package/presets/opencode/mol/rules/agent-team-orchestrator.md +1 -1
- package/presets/opencode/mol/rules/feature-delivery-workflow.md +10 -10
- package/presets/opencode/mol/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/mol/rules/reference-features.md +0 -19
- package/presets/opencode/mol/team/README.md +1 -1
- package/presets/opencode/next/REPO_AGENTS.md +8 -0
- package/presets/opencode/next/adapter-map.json +9 -1
- package/presets/opencode/next/agents/build-verifier.md +1 -1
- package/presets/opencode/next/agents/code-reviewer.md +2 -0
- package/presets/opencode/next/hooks/chain-team-phases.sh +4 -1
- package/presets/opencode/next/rules/agent-team-orchestrator.md +1 -1
- package/presets/opencode/next/rules/feature-delivery-workflow.md +13 -13
- package/presets/opencode/next/rules/next-app-core.md +1 -1
- package/presets/opencode/next/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/next/rules/reference-features.md +0 -19
- package/presets/opencode/next/team/README.md +1 -1
- package/presets/opencode/nuxt/REPO_AGENTS.md +8 -0
- package/presets/opencode/nuxt/adapter-map.json +17 -1
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +4 -1
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +1 -1
- package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +9 -9
- package/presets/opencode/nuxt/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/nuxt/rules/reference-features.md +1 -20
- package/presets/opencode/nuxt/team/README.md +1 -1
- package/presets/opencode/nuxt/team/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/php-hexagonal/OPENCODE.md +1 -1
- package/presets/opencode/php-hexagonal/REPO_AGENTS.md +8 -0
- package/presets/opencode/php-hexagonal/adapter-map.json +17 -1
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +4 -1
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
- package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +51 -1
- package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/php-hexagonal/rules/reference-features.md +25 -0
- package/presets/opencode/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
- package/presets/opencode/php-hexagonal/team/README.md +1 -1
- package/presets/opencode/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/php-laravel/OPENCODE.md +1 -1
- package/presets/opencode/php-laravel/REPO_AGENTS.md +8 -0
- package/presets/opencode/php-laravel/adapter-map.json +17 -1
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +4 -1
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +1 -1
- package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +54 -1
- package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/php-laravel/rules/reference-features.md +27 -0
- package/presets/opencode/php-laravel/skills/feature-delivery/SKILL.md +2 -2
- package/presets/opencode/php-laravel/team/README.md +1 -1
- package/presets/opencode/php-laravel/team/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/plugins/output-guard/README.md +3 -2
- package/presets/opencode/plugins/output-guard/rewrite.ts +10 -1
- package/presets/opencode/svelte/REPO_AGENTS.md +8 -0
- package/presets/opencode/svelte/adapter-map.json +17 -1
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +4 -1
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +1 -1
- package/presets/opencode/svelte/rules/feature-delivery-workflow.md +7 -7
- package/presets/opencode/svelte/rules/preset-pr-checklist.md +2 -2
- package/presets/opencode/svelte/rules/reference-features.md +1 -20
- package/presets/opencode/svelte/team/README.md +1 -1
- package/presets/opencode/svelte/team/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/android-kotlin/REPO_AGENTS.md +8 -0
- package/presets/zcode/android-kotlin/adapter-map.json +19 -2
- package/presets/zcode/android-kotlin/hooks/chain-team-phases.sh +4 -1
- package/presets/zcode/android-kotlin/rules/README.md +3 -3
- package/presets/zcode/android-kotlin/rules/agent-team-orchestrator.md +1 -1
- package/presets/zcode/android-kotlin/rules/feature-delivery-workflow.md +66 -8
- package/presets/zcode/android-kotlin/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/android-kotlin/rules/reference-features.md +48 -2
- package/presets/zcode/android-kotlin/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/android-kotlin/team/README.md +1 -1
- package/presets/zcode/android-kotlin/team/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/go/REPO_AGENTS.md +8 -0
- package/presets/zcode/go/adapter-map.json +17 -1
- package/presets/zcode/go/hooks/chain-team-phases.sh +4 -1
- package/presets/zcode/go/rules/README.md +3 -3
- package/presets/zcode/go/rules/agent-team-orchestrator.md +1 -1
- package/presets/zcode/go/rules/feature-delivery-workflow.md +50 -1
- package/presets/zcode/go/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/go/rules/reference-features.md +22 -0
- package/presets/zcode/go/skills/feature-delivery/SKILL.md +2 -2
- package/presets/zcode/go/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/go/team/README.md +1 -1
- package/presets/zcode/go/team/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/ios-swift/REPO_AGENTS.md +8 -0
- package/presets/zcode/ios-swift/adapter-map.json +17 -1
- package/presets/zcode/ios-swift/hooks/chain-team-phases.sh +4 -1
- package/presets/zcode/ios-swift/rules/README.md +3 -3
- package/presets/zcode/ios-swift/rules/agent-team-orchestrator.md +1 -1
- package/presets/zcode/ios-swift/rules/feature-delivery-workflow.md +8 -8
- package/presets/zcode/ios-swift/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/ios-swift/rules/reference-features.md +2 -21
- package/presets/zcode/ios-swift/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/ios-swift/team/README.md +1 -1
- package/presets/zcode/ios-swift/team/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/java/REPO_AGENTS.md +8 -0
- package/presets/zcode/java/adapter-map.json +17 -1
- package/presets/zcode/java/hooks/chain-team-phases.sh +4 -1
- package/presets/zcode/java/rules/README.md +3 -3
- package/presets/zcode/java/rules/agent-team-orchestrator.md +1 -1
- package/presets/zcode/java/rules/feature-delivery-workflow.md +51 -1
- package/presets/zcode/java/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/java/rules/reference-features.md +22 -0
- package/presets/zcode/java/skills/feature-delivery/SKILL.md +2 -2
- package/presets/zcode/java/team/README.md +1 -1
- package/presets/zcode/java/team/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/mcp-ts/REPO_AGENTS.md +8 -0
- package/presets/zcode/mcp-ts/adapter-map.json +17 -1
- package/presets/zcode/mcp-ts/hooks/chain-team-phases.sh +4 -1
- package/presets/zcode/mcp-ts/rules/README.md +3 -3
- package/presets/zcode/mcp-ts/rules/agent-team-orchestrator.md +1 -1
- package/presets/zcode/mcp-ts/rules/feature-delivery-workflow.md +47 -1
- package/presets/zcode/mcp-ts/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/mcp-ts/rules/reference-features.md +22 -0
- package/presets/zcode/mcp-ts/skills/code-review/SKILL.md +1 -1
- package/presets/zcode/mcp-ts/skills/feature-delivery/SKILL.md +2 -2
- package/presets/zcode/mcp-ts/skills/unit-testing/SKILL.md +1 -1
- package/presets/zcode/mcp-ts/team/README.md +1 -1
- package/presets/zcode/mcp-ts/team/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/mol/REPO_AGENTS.md +8 -0
- package/presets/zcode/mol/adapter-map.json +9 -1
- package/presets/zcode/mol/hooks/chain-team-phases.sh +4 -1
- package/presets/zcode/mol/rules/README.md +3 -3
- package/presets/zcode/mol/rules/agent-team-orchestrator.md +1 -1
- package/presets/zcode/mol/rules/feature-delivery-workflow.md +10 -10
- package/presets/zcode/mol/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/mol/rules/reference-features.md +0 -19
- package/presets/zcode/mol/team/README.md +1 -1
- package/presets/zcode/next/REPO_AGENTS.md +8 -0
- package/presets/zcode/next/adapter-map.json +9 -1
- package/presets/zcode/next/agents/build-verifier.md +1 -1
- package/presets/zcode/next/agents/code-reviewer.md +2 -0
- package/presets/zcode/next/hooks/chain-team-phases.sh +4 -1
- package/presets/zcode/next/rules/README.md +3 -3
- package/presets/zcode/next/rules/agent-team-orchestrator.md +1 -1
- package/presets/zcode/next/rules/feature-delivery-workflow.md +13 -13
- package/presets/zcode/next/rules/next-app-core.md +1 -1
- package/presets/zcode/next/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/next/rules/reference-features.md +0 -19
- package/presets/zcode/next/team/README.md +1 -1
- package/presets/zcode/nuxt/REPO_AGENTS.md +8 -0
- package/presets/zcode/nuxt/adapter-map.json +17 -1
- package/presets/zcode/nuxt/hooks/chain-team-phases.sh +4 -1
- package/presets/zcode/nuxt/rules/README.md +3 -3
- package/presets/zcode/nuxt/rules/agent-team-orchestrator.md +1 -1
- package/presets/zcode/nuxt/rules/feature-delivery-workflow.md +9 -9
- package/presets/zcode/nuxt/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/nuxt/rules/reference-features.md +1 -20
- package/presets/zcode/nuxt/team/README.md +1 -1
- package/presets/zcode/nuxt/team/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/php-hexagonal/REPO_AGENTS.md +8 -0
- package/presets/zcode/php-hexagonal/adapter-map.json +17 -1
- package/presets/zcode/php-hexagonal/hooks/chain-team-phases.sh +4 -1
- package/presets/zcode/php-hexagonal/rules/README.md +3 -3
- package/presets/zcode/php-hexagonal/rules/agent-team-orchestrator.md +1 -1
- package/presets/zcode/php-hexagonal/rules/feature-delivery-workflow.md +51 -1
- package/presets/zcode/php-hexagonal/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/php-hexagonal/rules/reference-features.md +25 -0
- package/presets/zcode/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
- package/presets/zcode/php-hexagonal/team/README.md +1 -1
- package/presets/zcode/php-hexagonal/team/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/php-laravel/REPO_AGENTS.md +8 -0
- package/presets/zcode/php-laravel/adapter-map.json +17 -1
- package/presets/zcode/php-laravel/hooks/chain-team-phases.sh +4 -1
- package/presets/zcode/php-laravel/rules/README.md +3 -3
- package/presets/zcode/php-laravel/rules/agent-team-orchestrator.md +1 -1
- package/presets/zcode/php-laravel/rules/feature-delivery-workflow.md +54 -1
- package/presets/zcode/php-laravel/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/php-laravel/rules/reference-features.md +27 -0
- package/presets/zcode/php-laravel/skills/feature-delivery/SKILL.md +2 -2
- package/presets/zcode/php-laravel/team/README.md +1 -1
- package/presets/zcode/php-laravel/team/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/svelte/REPO_AGENTS.md +8 -0
- package/presets/zcode/svelte/adapter-map.json +17 -1
- package/presets/zcode/svelte/hooks/chain-team-phases.sh +4 -1
- package/presets/zcode/svelte/rules/README.md +3 -3
- package/presets/zcode/svelte/rules/agent-team-orchestrator.md +1 -1
- package/presets/zcode/svelte/rules/feature-delivery-workflow.md +7 -7
- package/presets/zcode/svelte/rules/preset-pr-checklist.md +2 -2
- package/presets/zcode/svelte/rules/reference-features.md +1 -20
- package/presets/zcode/svelte/team/README.md +1 -1
- package/presets/zcode/svelte/team/fixtures/feature-parallel.json +84 -0
- package/scripts/close-agent-task-human-gate.mjs +3 -3
- package/scripts/report-context-cost.mjs +10 -3
- package/scripts/aggregate-agent-task-metrics.mjs +0 -480
|
@@ -5,7 +5,65 @@ alwaysApply: false
|
|
|
5
5
|
|
|
6
6
|
<!-- shared-core: architecture/feature-delivery-workflow.md -->
|
|
7
7
|
|
|
8
|
-
# Feature delivery (
|
|
8
|
+
# Feature delivery (end-to-end order)
|
|
9
|
+
|
|
10
|
+
Typical feature with data and UI. Concrete directories and rule stems — in the adapter **Stack notes**.
|
|
11
|
+
|
|
12
|
+
## Checklist (abstract order)
|
|
13
|
+
|
|
14
|
+
1. **Domain / types** — Domain/types-layer entities and contracts; layer public API.
|
|
15
|
+
2. **Transport / DTO** — DTOs and mappers Domain ↔ transport (must not leak into UI).
|
|
16
|
+
3. **Services / Data** — repository / API-service implementations via the stack’s public clients.
|
|
17
|
+
4. **State** — store / ViewModel / use cases; no direct HTTP and no DTOs in UI.
|
|
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
|
+
6. **Tests** — unit for mappers / non-trivial logic; e2e/UI per stack convention.
|
|
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
|
+
|
|
22
|
+
## Context hygiene
|
|
23
|
+
|
|
24
|
+
A command whose output can exceed ~4 KB — a test run, a build/lint log, `git log`, a diff — is piped through `.ai.local/scripts/dump-output.mjs --task <slug>` instead of being read whole. Work from its ≤40-line head and the stored file (grep it or use `team-db.mjs search`), and when that output informed a decision, record the repo-relative `outputs/…` path in `implementation.md` or `validation-report.md`; a `code-reviewer` may ask for that path. Do not read the whole output into context. Artifact reads take the same slice: read the `artifact-manifest.json` entry, not the artifact body, and never re-read a completed entry's body. Read a large artifact with offset/limit ranges instead of a whole-file read.
|
|
25
|
+
|
|
26
|
+
## Iterative refinement loop
|
|
27
|
+
|
|
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
|
+
|
|
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**.
|
|
31
|
+
|
|
32
|
+
## Data flow (orientation)
|
|
33
|
+
|
|
34
|
+
```mermaid
|
|
35
|
+
flowchart LR
|
|
36
|
+
DTO[DTO] --> Mappers[Mappers]
|
|
37
|
+
Mappers --> Domain[Domain]
|
|
38
|
+
Domain --> Service[Service / Repo]
|
|
39
|
+
Service --> State[Store / VM]
|
|
40
|
+
State --> UI[UI]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Partial scenarios
|
|
44
|
+
|
|
45
|
+
| Task | Minimum |
|
|
46
|
+
|------|---------|
|
|
47
|
+
| API / model only | Domain + DTO + mapper + service/repo; unit for mapper |
|
|
48
|
+
| State only | Protocols/services; no HTTP in UI |
|
|
49
|
+
| UI only | Existing state; no DTOs |
|
|
50
|
+
| Tests only | Specs per convention; do not change production without need |
|
|
51
|
+
|
|
52
|
+
## Anti-patterns (shared)
|
|
53
|
+
|
|
54
|
+
- DTO / transport types in UI or presentation state.
|
|
55
|
+
- Low-level HTTP / concrete client from UI bypassing the service.
|
|
56
|
+
- Deep-import of another module/feature’s internal files.
|
|
57
|
+
- Breaking layer boundaries for brevity.
|
|
58
|
+
- **Ubiquitous language:** Domain/type names and boundaries reflect the feature’s subject domain — do not mix transport/framework terms into the domain without need; presentation must not dictate the model vocabulary.
|
|
59
|
+
- When assessing structure, smells, or pattern choice — load requestable **`design-guidance`** (not always-on); do not copy the catalog into the feature checklist.
|
|
60
|
+
- Do not mutate pipeline `status.json` / `metrics.json`; the orchestration hook is the single writer. Skills upsert the owned terminal receipt in `artifact-manifest.json`.
|
|
61
|
+
|
|
62
|
+
## Zone → rules matrix
|
|
63
|
+
|
|
64
|
+
Filled in the stack adapter: concrete globs/paths and each rule name in the format that platform ships.
|
|
65
|
+
|
|
66
|
+
## Stack notes
|
|
9
67
|
|
|
10
68
|
Order of work:
|
|
11
69
|
|
|
@@ -29,7 +87,7 @@ flowchart LR
|
|
|
29
87
|
A --> J[Job/Event]
|
|
30
88
|
```
|
|
31
89
|
|
|
32
|
-
|
|
90
|
+
### Matrix
|
|
33
91
|
|
|
34
92
|
| Path | Rules |
|
|
35
93
|
|------|-------|
|
|
@@ -43,17 +101,17 @@ flowchart LR
|
|
|
43
101
|
| `app/Events/**`, `app/Listeners/**` | `events-listeners` |
|
|
44
102
|
| After `*.php` edits | `post-change-test` (+ `php-tooling`) |
|
|
45
103
|
|
|
46
|
-
|
|
104
|
+
### Anti-patterns
|
|
47
105
|
|
|
48
106
|
- Fat controllers; Form Requests in Models; AuthZ via ad-hoc roles; skipping Feature tests for API writes.
|
|
49
107
|
- Mandating hexagonal ports/adapters folders in a Laravel-first app.
|
|
50
108
|
- Load `design-guidance` when assessing structure, smells, or pattern fit.
|
|
51
109
|
- Do not mutate pipeline `status.json` / `metrics.json`; the orchestration hook is the single writer. Skills upsert the owned terminal receipt in `artifact-manifest.json`.
|
|
52
110
|
|
|
53
|
-
|
|
111
|
+
### Iterative refinement loop
|
|
54
112
|
|
|
55
113
|
Every stage runs the named loop **draft → evaluate against named criteria → refine** with a named oracle (structural gate, reviewer parity check, test suite, or human approval). **Exit criteria:** a layer or stage is complete only when its named criteria hold; do not advance past a failing oracle. A repeatedly failing oracle triggers **plan revision**.
|
|
56
114
|
|
|
57
|
-
|
|
115
|
+
### Related
|
|
58
116
|
|
|
59
117
|
- Product behavior discovery: requestable **`product-specs`** (`docs/specs/INDEX.md`) — do not paste the discovery algorithm here.
|
|
@@ -32,7 +32,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
32
32
|
- [ ] **README:** stack `rules/README.md` core→stack mapping / catalog updated if stems added
|
|
33
33
|
- [ ] **CHANGELOG / package README:** note when public preset paths or install surface change
|
|
34
34
|
- [ ] **i18n anchors:** kept-marked Cyrillic fragments in `tests-unit.md(c)` stay consistent with their English counterparts. Run `packages/ai-rules/scripts/check-preset-i18n.sh`.
|
|
35
|
-
- [ ] **Dogfood:** run `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, and `sync-dogfood-
|
|
35
|
+
- [ ] **Dogfood:** run `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, `sync-dogfood-opencode.sh`, and `sync-dogfood-zcode.sh` when those platforms changed, or document an intentional skip, when maintaining this monorepo
|
|
36
36
|
- [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
|
|
37
37
|
- [ ] **Packaging:** every installable preset ships `REPO_AGENTS.md`; default `hooks.json` does not reference `hooks/examples/`; `_shared/assets/docs-specs/` ships `INDEX.md` + `_templates/{page,feature}.md`; `product-specs` / `product-specs-authoring` stay requestable
|
|
38
38
|
- [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
|
|
@@ -49,6 +49,6 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
49
49
|
- Budget: `preset-token-budget`
|
|
50
50
|
- Leakage: `preset-no-cross-stack-leakage`
|
|
51
51
|
- Validation: same `check:task` / `check:changed` loop; `yarn release:gate` before a release (`packages/ai-rules/scripts/release-gate.sh`)
|
|
52
|
-
- Dogfood scripts: `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, `sync-dogfood-opencode.sh`
|
|
52
|
+
- Dogfood scripts: `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, `sync-dogfood-opencode.sh`, `sync-dogfood-zcode.sh`
|
|
53
53
|
- Drift script: `packages/ai-rules/scripts/check-shared-core-drift.sh`
|
|
54
54
|
- Orchestrator: when editing presets, load this checklist + twin-sync
|
|
@@ -5,7 +5,51 @@ alwaysApply: false
|
|
|
5
5
|
|
|
6
6
|
<!-- shared-core: architecture/reference-features.template.md -->
|
|
7
7
|
|
|
8
|
-
# Reference features
|
|
8
|
+
# Reference features
|
|
9
|
+
|
|
10
|
+
Before implementing, find a feature of the same type and **mirror its structure**; do not invent a new file organization.
|
|
11
|
+
|
|
12
|
+
## Reference table
|
|
13
|
+
|
|
14
|
+
Replace placeholders with **real** paths after `ai-rules init` / team agreement:
|
|
15
|
+
|
|
16
|
+
| Layer | Reference | What to copy |
|
|
17
|
+
|-------|-----------|--------------|
|
|
18
|
+
| UI / Presentation | **TBD** | components, styles/data helpers, barrel |
|
|
19
|
+
| State / ViewModel | **TBD** | slice/VM, selectors, types |
|
|
20
|
+
| API / Data | **TBD** | service/repo, mappers, barrel |
|
|
21
|
+
| Domain / Types | **TBD** | domain types, public export |
|
|
22
|
+
| Unit tests | **TBD** | `*.spec` / XCTest naming |
|
|
23
|
+
| E2E / UI tests | **TBD** | cases/plans, page objects / accessibility IDs |
|
|
24
|
+
|
|
25
|
+
## How to use
|
|
26
|
+
|
|
27
|
+
1. Identify affected layers from `decomposition.md` or the task.
|
|
28
|
+
2. Open the reference from the table (after paths are filled).
|
|
29
|
+
3. Mirror naming, file order, import patterns, and tests.
|
|
30
|
+
4. If there is no reference — pick the **closest** existing feature of the same layer and record the choice in the handoff.
|
|
31
|
+
|
|
32
|
+
## Living conventions
|
|
33
|
+
|
|
34
|
+
After init the team maintains **local** gotchas, patterns, and decisions in a consumer-owned store (not in shared core and not only in root `AGENTS.md`):
|
|
35
|
+
|
|
36
|
+
| Section | What to record |
|
|
37
|
+
|---------|----------------|
|
|
38
|
+
| Gotchas | Recurring traps, fragile spots, “do not do X in this repo” |
|
|
39
|
+
| Patterns | Local patterns beyond the reference table |
|
|
40
|
+
| Decisions | Short ADR links / product decisions that affect code |
|
|
41
|
+
|
|
42
|
+
Path pointer and stack tables — in the preset adapter (`.ai.local/conventions.md`). The file is **not** always-on.
|
|
43
|
+
|
|
44
|
+
## Related rules
|
|
45
|
+
|
|
46
|
+
- `code-quality-and-refactoring` — repeat patterns, no deep-import.
|
|
47
|
+
- `feature-delivery-workflow` — layer order.
|
|
48
|
+
- skill `feature-delivery` — end-to-end scenario.
|
|
49
|
+
|
|
50
|
+
> Concrete path tables, globs, and dogfood checklists live in the stack adapter **Stack notes**.
|
|
51
|
+
|
|
52
|
+
## Stack notes
|
|
9
53
|
|
|
10
54
|
Canonical layout matches `dogfood/php-laravel/` (consumer repos may rename; prefer the same shapes). Default = flat Laravel `app/`.
|
|
11
55
|
|
|
@@ -22,11 +66,7 @@ Canonical layout matches `dogfood/php-laravel/` (consumer repos may rename; pref
|
|
|
22
66
|
| Feature tests | `tests/Feature/` | `**/tests/Feature/**` |
|
|
23
67
|
| Unit tests | `tests/Unit/` | `**/tests/Unit/**` |
|
|
24
68
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Post-init gotchas / patterns / decisions: **`.ai.local/conventions.md`** (shared across tools; `.ai.local/team/**` is pipeline artifacts, not rules). Consumer-owned; not always-on. See root `AGENTS.md` § Living conventions.
|
|
28
|
-
|
|
29
|
-
## Dogfood scenarios
|
|
69
|
+
### Dogfood scenarios
|
|
30
70
|
|
|
31
71
|
1. `/task` new write endpoint — Form Request → Policy → Action → Model → Feature test (`dogfood/php-laravel`).
|
|
32
72
|
2. Validation / 403 mapping — debugger + Feature test on Form Request / Policy.
|
|
@@ -13,10 +13,10 @@ Load `laravel-anti-hallucination` before writing or patching code or tests.
|
|
|
13
13
|
|
|
14
14
|
1. Read brief, AC, and decomposition.
|
|
15
15
|
2. If `docs/specs/INDEX.md` exists **or** brief/handoff lists approved generated specs, resolve via **`product-specs`** and treat approved specs as behavior SoT before layer work (soft-fail on miss — do not invent behavior). If generation was requested but not yet approved, stop for human gate — do not implement against draft-only gaps.
|
|
16
|
-
3. Follow `feature-delivery-workflow
|
|
16
|
+
3. Follow `feature-delivery-workflow` + `reference-features`: routes → Form Request/Policy → Action/Service → Eloquent → Controller/Resource → optional Job/Event → tests.
|
|
17
17
|
4. Wire bindings only in Service Providers when needed.
|
|
18
18
|
5. Add Feature tests for HTTP/DB paths; Unit tests for non-trivial Actions.
|
|
19
|
-
6. After PHP edits: **invoke** `post-change-test
|
|
19
|
+
6. After PHP edits: **invoke** `post-change-test` (+ `php-tooling`) → `php artisan test` / `composer test`.
|
|
20
20
|
|
|
21
21
|
## Do / Don't
|
|
22
22
|
|
|
@@ -124,5 +124,5 @@ Use the hook path for the platform that installed the tree: `.cursor`, `.claude`
|
|
|
124
124
|
- **Manifest field name:** receipts go in `artifacts[]`. Anything written under `entries` is ignored — the hook reads only `artifacts` and prints a dual-read warning naming the file. See `agent-team/agent-artifact-contracts.md` § Schema field name.
|
|
125
125
|
- **Evidence paths:** `authoritativePaths[]` is relative to the task directory (`brief.md`). A repo-root path (`.ai.local/team/tasks/<slug>/brief.md`) is rejected. Put anything outside the task directory — e.g. `openspec/changes/**` — in `evidencePaths[]`.
|
|
126
126
|
- Manifest schema: shared core `agent-team/agent-artifact-contracts.md`. Read it first; producers upsert only their IDs.
|
|
127
|
-
- Metrics: append-only allowlisted events — `agent-team/agent-task-metrics.md`. Aggregate: `node node_modules/@bonesofspring/ai-rules/scripts/aggregate-agent-task-metrics.mjs --team-root .ai.local/team`.
|
|
127
|
+
- Metrics: append-only allowlisted events — `agent-team/agent-task-metrics.md`. Aggregate: `node node_modules/@bonesofspring/ai-rules/presets/_shared/ai-local/scripts/aggregate-agent-task-metrics.mjs --team-root .ai.local/team`.
|
|
128
128
|
- Commit `.ai.local/team/` templates (and slugs if you want them in clones).
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slug": "example-feature-parallel",
|
|
3
|
+
"intent": "feature",
|
|
4
|
+
"specMode": "none",
|
|
5
|
+
"profile": "full",
|
|
6
|
+
"routingDecision": {
|
|
7
|
+
"complexity": "high",
|
|
8
|
+
"riskFlags": ["cross-layer", "concurrency-state", "broad-test-surface"],
|
|
9
|
+
"routingReasons": [
|
|
10
|
+
"Two independent review surfaces (code + security) sit on the same dependency level, so the pipeline may schedule them as one parallel wave.",
|
|
11
|
+
"The step graph carries declared write scopes so the conflict model can prove the wave conflict-free before any step is marked parallel."
|
|
12
|
+
],
|
|
13
|
+
"estimatedWorkPackages": 2,
|
|
14
|
+
"openDecisionCount": 0
|
|
15
|
+
},
|
|
16
|
+
"summary": "Step-graph feature pipeline with one parallel review wave",
|
|
17
|
+
"steps": [
|
|
18
|
+
{
|
|
19
|
+
"id": "T1",
|
|
20
|
+
"taskIds": ["T1"],
|
|
21
|
+
"agent": "task-analyst",
|
|
22
|
+
"label": "Clarify and decompose",
|
|
23
|
+
"writeScopes": [".ai.local/team/tasks/<slug>/brief.md", ".ai.local/team/tasks/<slug>/decomposition.md"],
|
|
24
|
+
"artifactOutputId": "analysis"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "T2",
|
|
28
|
+
"taskIds": ["T2"],
|
|
29
|
+
"agent": "solution-architect",
|
|
30
|
+
"label": "Design boundaries",
|
|
31
|
+
"model": "strong",
|
|
32
|
+
"dependsOn": ["T1"],
|
|
33
|
+
"writeScopes": [".ai.local/team/tasks/<slug>/architecture.md"],
|
|
34
|
+
"artifactOutputId": "architecture"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "T3",
|
|
38
|
+
"taskIds": ["T3"],
|
|
39
|
+
"agent": "feature-developer",
|
|
40
|
+
"label": "Implement + unit tests",
|
|
41
|
+
"scope": "unit-in-dev",
|
|
42
|
+
"dependsOn": ["T2"],
|
|
43
|
+
"writeScopes": ["app/src/feature", ".ai.local/team/tasks/<slug>/implementation.md"],
|
|
44
|
+
"artifactOutputId": "implementation"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "T4",
|
|
48
|
+
"taskIds": ["T4"],
|
|
49
|
+
"agent": ["code-reviewer", "security-reviewer"],
|
|
50
|
+
"label": "Review (code + security)",
|
|
51
|
+
"parallel": true,
|
|
52
|
+
"dependsOn": ["T3"],
|
|
53
|
+
"writeScopes": [".ai.local/team/tasks/<slug>/review.md", ".ai.local/team/tasks/<slug>/security-review.md"],
|
|
54
|
+
"artifactInputIds": ["implementation"],
|
|
55
|
+
"artifactOutputIds": {
|
|
56
|
+
"code-reviewer": "review",
|
|
57
|
+
"security-reviewer": "security-review"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"id": "T5",
|
|
62
|
+
"taskIds": ["T5"],
|
|
63
|
+
"agent": "tech-writer",
|
|
64
|
+
"label": "Documentation",
|
|
65
|
+
"dependsOn": ["T3"],
|
|
66
|
+
"writeScopes": [".ai.local/team/tasks/<slug>/documentation.md"],
|
|
67
|
+
"artifactOutputId": "documentation"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "T6",
|
|
71
|
+
"taskIds": ["T6"],
|
|
72
|
+
"agent": "build-verifier",
|
|
73
|
+
"label": "Validation gate",
|
|
74
|
+
"model": "cheap",
|
|
75
|
+
"dependsOn": ["T4", "T5"],
|
|
76
|
+
"writeScopes": [".ai.local/team/tasks/<slug>/validation-report.md"],
|
|
77
|
+
"artifactInputIds": ["implementation", "review", "security-review"],
|
|
78
|
+
"artifactOutputId": "validation"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"humanGates": ["after:task-analyst"],
|
|
82
|
+
"autoChain": true,
|
|
83
|
+
"skipped": []
|
|
84
|
+
}
|
|
@@ -54,8 +54,16 @@ Empty output or a failed run stays silent.
|
|
|
54
54
|
|
|
55
55
|
Gotchas, local patterns, and team decisions: **`.ai.local/conventions.md`** (fill after init; `init` does not overwrite it).
|
|
56
56
|
|
|
57
|
+
## ZCode host
|
|
58
|
+
|
|
59
|
+
ZCode loads this file natively and has no per-tool map: this file is the entry. The essential rules are the always-on set under `.zcode/rules/` (plain Markdown, not auto-loaded) — start with `ai-local-overlay` and the stack app-core rule, and read the rest when the task scope matches. Agents, commands, and skills live under `.zcode/agents/`, `.zcode/commands/`, and `.zcode/skills/`.
|
|
60
|
+
|
|
61
|
+
On every turn, run `node .zcode/hooks/list-ai-local.mjs` with the paths this step will touch, apply the printed `.ai.local/rules/*.md` and `.ai.local/conventions.md`, and acknowledge `Using .ai.local: <rule-name>`. On the first reply of a session, run `node .zcode/hooks/check-preset-update.mjs` when it exists; the update-notice rules above apply.
|
|
62
|
+
|
|
57
63
|
## Local overlay (`.ai.local/`) — MANDATORY
|
|
58
64
|
|
|
59
65
|
A `.ai.local/` directory MAY exist at the repo root or at any nesting depth in monorepos. **Every agent MUST read and apply it on every turn.** Rules there override preset rules; `override: kill <preset-rule-name>` drops that preset rule from context entirely.
|
|
60
66
|
|
|
61
67
|
On every turn, run `list-ai-local.mjs` from the host hooks directory (`.cursor`, `.claude`, `.mavis`, `.opencode`, or `.zcode`) with the paths this step will touch, then apply the printed `.ai.local/rules/*.md` and `.ai.local/conventions.md`. The root overlay applies to every path; a nested one applies only under its directory. Do not read `shadowed` files or `rules-library/**` as rules. Acknowledge `Using .ai.local: <rule-name>` when answering. Authoring guide: `docs/LOCAL-OVERLAY.md`.
|
|
68
|
+
|
|
69
|
+
The `ai-local-overlay` rule is always-on on Cursor and session-start on Claude; Mavis, OpenCode, and ZCode have no native always-on mechanism, so this section plus the platform entry's essential-rules list is the reinforcement.
|
|
@@ -65,7 +65,10 @@ function firstSeenAtOf(file, value, now) {
|
|
|
65
65
|
try {
|
|
66
66
|
if (Date.now() - fs.statSync(file).mtimeMs > LEASE_TTL_MS) return now;
|
|
67
67
|
const previous = JSON.parse(fs.readFileSync(file, 'utf8'));
|
|
68
|
-
if (previous && previous.slug === value
|
|
68
|
+
if (previous && previous.slug === value) {
|
|
69
|
+
if (typeof previous.firstSeenAt === 'string') return previous.firstSeenAt;
|
|
70
|
+
if (typeof previous.updatedAt === 'string') return previous.updatedAt;
|
|
71
|
+
}
|
|
69
72
|
} catch {}
|
|
70
73
|
return now;
|
|
71
74
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Cursor preToolUse: rewrite an eligible simple command so its output is stored
|
|
3
|
+
// and only the short view reaches the model. Fail open. Edit this shared source;
|
|
4
|
+
// the generator copies it into each Cursor stack.
|
|
5
|
+
|
|
6
|
+
import fs from 'node:fs';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
|
|
9
|
+
const SLUG_MAX = 48;
|
|
10
|
+
const SLUG_RE = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
11
|
+
const ELIGIBLE =
|
|
12
|
+
/^(?:(?:yarn|pnpm|npm|npx|bun)\s+(?:run\s+)?(?:test|lint)(?::\S+)?|git\s+(?:log|diff)|go\s+test|cargo\s+test|pytest|phpunit)\b/;
|
|
13
|
+
const META = /[|&;<>()\n`]|\$\(/;
|
|
14
|
+
|
|
15
|
+
const slugOf = (env) => {
|
|
16
|
+
const value = typeof env?.TEAM_TASK_SLUG === 'string' ? env.TEAM_TASK_SLUG : '';
|
|
17
|
+
if (value.length === 0 || value.length > SLUG_MAX || !SLUG_RE.test(value)) return '';
|
|
18
|
+
return value;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** Return the rewritten shell string, or null to leave the command unchanged. */
|
|
22
|
+
export const rewriteCommand = (command, env) => {
|
|
23
|
+
const slug = slugOf(env);
|
|
24
|
+
if (slug === '') return null;
|
|
25
|
+
const text = typeof command === 'string' ? command.trim() : '';
|
|
26
|
+
if (text === '' || META.test(text)) return null;
|
|
27
|
+
if (text.split(/\s+/).some((token) => token.includes("'") || token.includes('"'))) return null;
|
|
28
|
+
if (text.includes('dump-output.mjs') || text.includes('run-compact.mjs')) return null;
|
|
29
|
+
if (!ELIGIBLE.test(text)) return null;
|
|
30
|
+
return `node .ai.local/scripts/run-compact.mjs --task ${slug} -- ${text}`;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const allow = () => {
|
|
34
|
+
process.stdout.write('{"permission":"allow"}');
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const commandOf = (event) => {
|
|
38
|
+
if (typeof event.command === 'string') return event.command;
|
|
39
|
+
if (typeof event.input?.command === 'string') return event.input.command;
|
|
40
|
+
if (typeof event.tool_input?.command === 'string') return event.tool_input.command;
|
|
41
|
+
return '';
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const invokedDirectly = (() => {
|
|
45
|
+
if (!process.argv[1]) return false;
|
|
46
|
+
try {
|
|
47
|
+
return fs.realpathSync(process.argv[1]) === fs.realpathSync(fileURLToPath(import.meta.url));
|
|
48
|
+
} catch {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
})();
|
|
52
|
+
|
|
53
|
+
if (invokedDirectly) {
|
|
54
|
+
try {
|
|
55
|
+
const parsed = JSON.parse(fs.readFileSync(0, 'utf8'));
|
|
56
|
+
const event = parsed && typeof parsed === 'object' ? parsed : null;
|
|
57
|
+
const rewritten = event ? rewriteCommand(commandOf(event), process.env) : null;
|
|
58
|
+
if (rewritten === null) {
|
|
59
|
+
allow();
|
|
60
|
+
} else {
|
|
61
|
+
process.stdout.write(
|
|
62
|
+
JSON.stringify({ permission: 'allow', updated_input: { command: rewritten } }),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
} catch {
|
|
66
|
+
allow();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -17,6 +17,13 @@
|
|
|
17
17
|
"failClosed": true
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
|
+
"preToolUse": [
|
|
21
|
+
{
|
|
22
|
+
"command": "node .cursor/hooks/compact-shell-output.mjs",
|
|
23
|
+
"matcher": "Shell",
|
|
24
|
+
"timeout": 5
|
|
25
|
+
}
|
|
26
|
+
],
|
|
20
27
|
"subagentStop": [
|
|
21
28
|
{
|
|
22
29
|
"command": "node .cursor/hooks/run-hook.mjs chain-team-phases",
|
|
@@ -21,7 +21,7 @@ Special Cursor Rule format:
|
|
|
21
21
|
|
|
22
22
|
- **`alwaysApply: true`** (Cursor) / **without `paths:`** (Claude) — base invariants only (**3**):
|
|
23
23
|
- `svelte-app-core`, `package-manager`, `code-quality-and-refactoring`
|
|
24
|
-
- **On-demand / requestable** — `post-change-lint` (**
|
|
24
|
+
- **On-demand / requestable** — `post-change-lint` (**gates run once at implementation closure**, not always-on), `agent-team-intake` (via orchestrator/commands), `agent-team-orchestrator`, architecture, imports, UI, tests, feature-delivery-workflow, `design-guidance`, `mcp-usage`, `anti-sycophancy-discipline`, `interactive-questions`, `anti-hallucination-contract`, `svelte-sveltekit-anti-hallucination`, reference-features, product-specs, product-specs-authoring, sveltekit-routing, `security-sveltekit`, svelte-a11y-coding, `technical-retro`, `mockup-review`, `ux-design`
|
|
25
25
|
- **Preset author meta** (globs `packages/ai-rules/presets/**`, never alwaysApply): `preset-goals`, `preset-writing-style`, `preset-layering`, `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`
|
|
26
26
|
- **Skills** — long procedures (`feature-delivery`, `svelte-performance`, `code-review`, …)
|
|
27
27
|
|
|
@@ -161,6 +161,13 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
161
161
|
| `validation_failed` | build-verifier failed; re-run developer then build-verifier |
|
|
162
162
|
| `blocked` | Pipeline / step cannot proceed (e.g. `pipeline_parse_error`, completion of a parallel step whose producer's receipt was missing — see `agent-artifact-contracts.md` § Completion receipts) |
|
|
163
163
|
| `awaiting_artifact_receipt` | Producer stopped but the bound or assigned-output receipt was missing or stale; hook keeps the attempt active and does not advance. See `agent-artifact-contracts.md` (Schema field name + Receipt binding) for the silent-bug class that lands here. |
|
|
164
|
+
| `paused` | Operator sentinel engaged; the hook recorded the pause and refused to advance or hand off. Remove the sentinel and run `/task-continue`. |
|
|
165
|
+
|
|
166
|
+
### Operator pause
|
|
167
|
+
|
|
168
|
+
- Pause new steps with a file at `.ai.local/STOP` (also accepted: `.ai.local/ESTOP`). The chain hook finishes the in-flight attempt and its terminal receipt, records `state: paused` / `phase: paused`, and emits no handoff. An empty or corrupt sentinel still counts as engaged.
|
|
169
|
+
- A paused human gate stays open: the pause check runs before `end_human_gate` closes it, so removing the sentinel and running `/task-continue <slug>` reruns the same gate resume.
|
|
170
|
+
- Remove the sentinel (`.ai.local/STOP`, `.ai.local/ESTOP`, or the per-task `.ai.local/team/tasks/<slug>/STOP` written by a tracker Stop), then run `/task-continue <slug>`. Only the hook writes the `paused` state; never edit `status.json` to pause or resume.
|
|
164
171
|
|
|
165
172
|
## Pipeline step options
|
|
166
173
|
|
|
@@ -213,11 +220,15 @@ Use Task tool or `/agent-name`. Pass: slug, artifact paths, step `scope` if set.
|
|
|
213
220
|
### Model when invoking (Task)
|
|
214
221
|
|
|
215
222
|
1. Read `steps[i].model` if present; else use the agent’s frontmatter `model` (see `agents/README.md` matrix).
|
|
216
|
-
2.
|
|
217
|
-
- **`cheap`** →
|
|
218
|
-
- **`standard`** →
|
|
219
|
-
- **`strong`** →
|
|
220
|
-
|
|
223
|
+
2. Resolve the tier through `.ai.local/team/model-tiers.json` → `tiers.<tier>` when that file exists. The user approved that map, so passing an explicit model is allowed. Pass the resolved `providerID/modelID` (or `providerID/modelID#variant`) to the Task/subagent tool.
|
|
224
|
+
- **`cheap`** → router, analyst, tech-writer, codebase-analyzer, and the review roles `code-reviewer`, `build-verifier`, `api-contract-reviewer`, `mockup-reviewer`. Resolve the provider through `.ai.local/team/model-tiers.json`. Do not write a provider id into the agent file. Pass the mapped id as written; do not append `#high`.
|
|
225
|
+
- **`standard`** → implementation and the other non-review specialists. `feature-developer` stays on this tier.
|
|
226
|
+
- **`strong`** → architecture, security, migration, performance. Never downgrade a `strong` step to the parent default, and do not put `mockup-reviewer` on `strong`.
|
|
227
|
+
- When `steps[i].model` is omitted and the agent file has no `model`, those four review roles stay `cheap` when `.ai.local/team/model-tiers.json` exists. Without that file, omit the model and the session model applies.
|
|
228
|
+
- If a tier is declared but the file has no mapping, **STOP** and report `model-tier-unmapped`; do not silently inherit the parent model.
|
|
229
|
+
3. If the tool does not accept a model (Cursor/Claude adapters), record the resolved tier in the handoff and let the platform pin apply.
|
|
230
|
+
4. Parallel steps: apply the step-level `model` to **each** agent in the array (or omit → each agent’s own frontmatter).
|
|
231
|
+
5. The tier never changes the step order, gates, receipts, or retry policy.
|
|
221
232
|
|
|
222
233
|
After each agent completes, verify its terminal manifest receipt, then let the orchestration runtime/hook reconcile `status.json` (`completed`, a blocking outcome, or `awaiting_approval`) from that receipt. Do not ask the agent to mutate shared lifecycle fields, and do not invoke the next specialist until the hook has written the handoff / updated `status.json`.
|
|
223
234
|
|
|
@@ -7,6 +7,62 @@ alwaysApply: false
|
|
|
7
7
|
|
|
8
8
|
# Feature delivery (end-to-end order)
|
|
9
9
|
|
|
10
|
+
Typical feature with data and UI. Concrete directories and rule stems — in the adapter **Stack notes**.
|
|
11
|
+
|
|
12
|
+
## Checklist (abstract order)
|
|
13
|
+
|
|
14
|
+
1. **Domain / types** — Domain/types-layer entities and contracts; layer public API.
|
|
15
|
+
2. **Transport / DTO** — DTOs and mappers Domain ↔ transport (must not leak into UI).
|
|
16
|
+
3. **Services / Data** — repository / API-service implementations via the stack’s public clients.
|
|
17
|
+
4. **State** — store / ViewModel / use cases; no direct HTTP and no DTOs in UI.
|
|
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
|
+
6. **Tests** — unit for mappers / non-trivial logic; e2e/UI per stack convention.
|
|
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
|
+
|
|
22
|
+
## Context hygiene
|
|
23
|
+
|
|
24
|
+
A command whose output can exceed ~4 KB — a test run, a build/lint log, `git log`, a diff — is piped through `.ai.local/scripts/dump-output.mjs --task <slug>` instead of being read whole. Work from its ≤40-line head and the stored file (grep it or use `team-db.mjs search`), and when that output informed a decision, record the repo-relative `outputs/…` path in `implementation.md` or `validation-report.md`; a `code-reviewer` may ask for that path. Do not read the whole output into context. Artifact reads take the same slice: read the `artifact-manifest.json` entry, not the artifact body, and never re-read a completed entry's body. Read a large artifact with offset/limit ranges instead of a whole-file read.
|
|
25
|
+
|
|
26
|
+
## Iterative refinement loop
|
|
27
|
+
|
|
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
|
+
|
|
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**.
|
|
31
|
+
|
|
32
|
+
## Data flow (orientation)
|
|
33
|
+
|
|
34
|
+
```mermaid
|
|
35
|
+
flowchart LR
|
|
36
|
+
DTO[DTO] --> Mappers[Mappers]
|
|
37
|
+
Mappers --> Domain[Domain]
|
|
38
|
+
Domain --> Service[Service / Repo]
|
|
39
|
+
Service --> State[Store / VM]
|
|
40
|
+
State --> UI[UI]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Partial scenarios
|
|
44
|
+
|
|
45
|
+
| Task | Minimum |
|
|
46
|
+
|------|---------|
|
|
47
|
+
| API / model only | Domain + DTO + mapper + service/repo; unit for mapper |
|
|
48
|
+
| State only | Protocols/services; no HTTP in UI |
|
|
49
|
+
| UI only | Existing state; no DTOs |
|
|
50
|
+
| Tests only | Specs per convention; do not change production without need |
|
|
51
|
+
|
|
52
|
+
## Anti-patterns (shared)
|
|
53
|
+
|
|
54
|
+
- DTO / transport types in UI or presentation state.
|
|
55
|
+
- Low-level HTTP / concrete client from UI bypassing the service.
|
|
56
|
+
- Deep-import of another module/feature’s internal files.
|
|
57
|
+
- Breaking layer boundaries for brevity.
|
|
58
|
+
- **Ubiquitous language:** Domain/type names and boundaries reflect the feature’s subject domain — do not mix transport/framework terms into the domain without need; presentation must not dictate the model vocabulary.
|
|
59
|
+
- When assessing structure, smells, or pattern choice — load requestable **`design-guidance`** (not always-on); do not copy the catalog into the feature checklist.
|
|
60
|
+
- Do not mutate pipeline `status.json` / `metrics.json`; the orchestration hook is the single writer. Skills upsert the owned terminal receipt in `artifact-manifest.json`.
|
|
61
|
+
|
|
62
|
+
## Zone → rules matrix
|
|
63
|
+
|
|
64
|
+
Filled in the stack adapter: concrete globs/paths and each rule name in the format that platform ships.
|
|
65
|
+
|
|
10
66
|
## Stack notes
|
|
11
67
|
|
|
12
68
|
When the prompt or `brief.md` contains a `figma.com` URL, **mockup review** (`mockup-reviewer` / skill `mockup-review`) must complete — or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue` — **before UI implementation**. Non-UI tasks no-op this gate. When required-signal and **no** `figma.com`, **`ux-design.md`** (on the analysis manifest entry) must exist and not be `INCOMPLETE` before UI work — else **blocked**, hand back to `task-analyst`. Parallel to the mockup gate.
|
|
@@ -15,7 +71,7 @@ Typical feature with backend data and shared state. Layer details — `architect
|
|
|
15
71
|
|
|
16
72
|
Canonical paths: `src/routes/**`, `src/lib/{components,stores,api,clients,types}/**`, `tests/e2e/**`. Aliases: `$lib` preferred; `@/` if configured. State: `store-svelte` (runes primary; legacy stores secondary).
|
|
17
73
|
|
|
18
|
-
|
|
74
|
+
### Checklist (work order)
|
|
19
75
|
|
|
20
76
|
1. **Domain types** — `src/lib/types/**`, barrel (`public-imports`, `layer-barrel-exports`); JSDoc — `types-jsdoc`.
|
|
21
77
|
2. **API contract** — DTOs where the repo uses them; domain types in `$lib/types`.
|
|
@@ -27,7 +83,7 @@ Canonical paths: `src/routes/**`, `src/lib/{components,stores,api,clients,types}
|
|
|
27
83
|
8. **E2E** — `tests/e2e/<Area>/<plan>.cases.md` + `*.spec.ts`.
|
|
28
84
|
9. **Gate** — `post-change-lint`: `lint:js`, `lint:css`, `check`. 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.
|
|
29
85
|
|
|
30
|
-
|
|
86
|
+
### Partial scenarios
|
|
31
87
|
|
|
32
88
|
| Task | Minimum |
|
|
33
89
|
|------|---------|
|
|
@@ -36,7 +92,7 @@ Canonical paths: `src/routes/**`, `src/lib/{components,stores,api,clients,types}
|
|
|
36
92
|
| UI only | Store/`load` data; no HTTP/DTO. |
|
|
37
93
|
| E2E only | `*.cases.md` + spec; page object. |
|
|
38
94
|
|
|
39
|
-
|
|
95
|
+
### Anti-patterns
|
|
40
96
|
|
|
41
97
|
- DTO in UI or untyped store.
|
|
42
98
|
- HTTP from a component / store bypassing the service.
|
|
@@ -46,7 +102,7 @@ Canonical paths: `src/routes/**`, `src/lib/{components,stores,api,clients,types}
|
|
|
46
102
|
- Load `design-guidance` when assessing structure / smells.
|
|
47
103
|
- Do not mutate pipeline `status.json` / `metrics.json`; the orchestration hook is the single writer. Skills upsert the owned terminal receipt in `artifact-manifest.json`.
|
|
48
104
|
|
|
49
|
-
|
|
105
|
+
### Zone → rules matrix
|
|
50
106
|
|
|
51
107
|
| Zone | Rules |
|
|
52
108
|
|------|-------|
|
|
@@ -57,10 +113,10 @@ Canonical paths: `src/routes/**`, `src/lib/{components,stores,api,clients,types}
|
|
|
57
113
|
| `src/lib/types/**` | `public-imports`, `types-jsdoc`, `layer-barrel-exports` |
|
|
58
114
|
| `tests/e2e/**` | `tests-e2e-structure`, `playwright-agents` |
|
|
59
115
|
|
|
60
|
-
|
|
116
|
+
### Iterative refinement loop
|
|
61
117
|
|
|
62
118
|
Every stage runs the named loop **draft → evaluate against named criteria → refine** with a named oracle (structural gate, reviewer parity check, test suite, or human approval). **Exit criteria:** a layer or stage is complete only when its named criteria hold; do not advance past a failing oracle. A repeatedly failing oracle triggers **plan revision**.
|
|
63
119
|
|
|
64
|
-
|
|
120
|
+
### Related
|
|
65
121
|
|
|
66
122
|
- Product behavior discovery: requestable **`product-specs`** (`docs/specs/INDEX.md`) — do not paste the discovery algorithm here.
|
|
@@ -32,7 +32,7 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
32
32
|
- [ ] **README:** stack `rules/README.md` core→stack mapping / catalog updated if stems added
|
|
33
33
|
- [ ] **CHANGELOG / package README:** note when public preset paths or install surface change
|
|
34
34
|
- [ ] **i18n anchors:** kept-marked Cyrillic fragments in `tests-unit.md(c)` stay consistent with their English counterparts. Run `packages/ai-rules/scripts/check-preset-i18n.sh`.
|
|
35
|
-
- [ ] **Dogfood:** run `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, and `sync-dogfood-
|
|
35
|
+
- [ ] **Dogfood:** run `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, `sync-dogfood-opencode.sh`, and `sync-dogfood-zcode.sh` when those platforms changed, or document an intentional skip, when maintaining this monorepo
|
|
36
36
|
- [ ] **shared-core drift:** for embed-mode stems, run `packages/ai-rules/scripts/check-shared-core-drift.sh` (or document intentional fork)
|
|
37
37
|
- [ ] **Packaging:** every installable preset ships `REPO_AGENTS.md`; default `hooks.json` does not reference `hooks/examples/`; `_shared/assets/docs-specs/` ships `INDEX.md` + `_templates/{page,feature}.md`; `product-specs` / `product-specs-authoring` stay requestable
|
|
38
38
|
- [ ] **UI-only surfaces:** `mockup-reviewer`, `accessibility-reviewer`, `ux-design`, and the stack performance skill ship only on UI stacks (`check-preset-leakage.sh`)
|
|
@@ -49,6 +49,6 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
49
49
|
- Budget: `preset-token-budget`
|
|
50
50
|
- Leakage: `preset-no-cross-stack-leakage`
|
|
51
51
|
- Validation: same `check:task` / `check:changed` loop; `yarn release:gate` before a release (`packages/ai-rules/scripts/release-gate.sh`)
|
|
52
|
-
- Dogfood scripts: `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, `sync-dogfood-opencode.sh`
|
|
52
|
+
- Dogfood scripts: `packages/ai-rules/scripts/sync-dogfood-cursor.sh`, `sync-dogfood-claude.sh`, `sync-dogfood-mavis.sh`, `sync-dogfood-opencode.sh`, `sync-dogfood-zcode.sh`
|
|
53
53
|
- Drift script: `packages/ai-rules/scripts/check-shared-core-drift.sh`
|
|
54
54
|
- Orchestrator: when editing presets, load this checklist + twin-sync
|