@bonesofspring/ai-rules 0.2.76 → 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 +54 -0
- package/docs/PRESET-CONTRIBUTION.md +6 -3
- package/docs/ZCODE.md +1 -1
- package/package.json +5 -1
- package/presets/_shared/ai-local/scripts/check-write-scope.mjs +70 -8
- package/presets/_shared/core/architecture/feature-delivery-workflow.md +1 -1
- 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/rules/architecture/feature-delivery.md +66 -8
- package/presets/claude/android-kotlin/rules/architecture/reference-features.md +48 -2
- package/presets/claude/android-kotlin/skills/unit-testing/SKILL.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/rules/architecture/feature-delivery.md +50 -1
- package/presets/claude/go/rules/architecture/reference-features.md +22 -0
- 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/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/rules/architecture/feature-delivery.md +8 -8
- package/presets/claude/ios-swift/rules/architecture/reference-features.md +2 -21
- package/presets/claude/ios-swift/skills/unit-testing/SKILL.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/rules/architecture/feature-delivery.md +51 -1
- package/presets/claude/java/rules/architecture/reference-features.md +22 -0
- package/presets/claude/java/skills/feature-delivery/SKILL.md +2 -2
- 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/rules/architecture/feature-delivery.md +47 -1
- package/presets/claude/mcp-ts/rules/architecture/reference-features.md +22 -0
- 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/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/rules/architecture/feature-delivery-workflow.md +10 -10
- package/presets/claude/mol/rules/architecture/reference-features.md +0 -19
- 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 +1 -0
- package/presets/claude/next/agents/code-reviewer.md +1 -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/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/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/rules/architecture/feature-delivery-workflow.md +9 -9
- package/presets/claude/nuxt/rules/architecture/reference-features.md +1 -20
- 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/rules/architecture/feature-delivery.md +51 -1
- package/presets/claude/php-hexagonal/rules/architecture/reference-features.md +25 -0
- package/presets/claude/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
- 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/rules/architecture/feature-delivery.md +54 -1
- package/presets/claude/php-laravel/rules/architecture/reference-features.md +27 -0
- package/presets/claude/php-laravel/skills/feature-delivery/SKILL.md +2 -2
- 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/rules/architecture/feature-delivery-workflow.md +7 -7
- package/presets/claude/svelte/rules/architecture/reference-features.md +1 -20
- 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/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/reference-features.mdc +48 -2
- package/presets/cursor/android-kotlin/skills/unit-testing/SKILL.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/rules/agent-team-orchestrator.mdc +16 -5
- package/presets/cursor/go/rules/feature-delivery-workflow.mdc +63 -5
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/ios-swift/REPO_AGENTS.md +8 -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/reference-features.mdc +44 -21
- package/presets/cursor/ios-swift/skills/unit-testing/SKILL.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/rules/agent-team-orchestrator.mdc +16 -5
- package/presets/cursor/java/rules/feature-delivery-workflow.mdc +63 -5
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/mcp-ts/REPO_AGENTS.md +8 -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/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/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/mol/REPO_AGENTS.md +8 -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/reference-features.mdc +43 -20
- package/presets/cursor/next/README.md +2 -2
- package/presets/cursor/next/REPO_AGENTS.md +8 -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/reference-features.mdc +42 -19
- package/presets/cursor/nuxt/REPO_AGENTS.md +8 -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/reference-features.mdc +37 -14
- 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/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/reference-features.mdc +46 -6
- package/presets/cursor/php-hexagonal/skills/feature-delivery/SKILL.md +2 -2
- 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/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/reference-features.mdc +46 -6
- package/presets/cursor/php-laravel/skills/feature-delivery/SKILL.md +2 -2
- 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/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/reference-features.mdc +40 -17
- 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 +11 -2
- package/presets/mavis/android-kotlin/rules/feature-delivery-workflow.md +66 -8
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/go/REPO_AGENTS.md +8 -0
- package/presets/mavis/go/adapter-map.json +9 -1
- package/presets/mavis/go/rules/feature-delivery-workflow.md +50 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/ios-swift/REPO_AGENTS.md +8 -0
- package/presets/mavis/ios-swift/adapter-map.json +9 -1
- package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +8 -8
- 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/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 +9 -1
- package/presets/mavis/java/rules/feature-delivery-workflow.md +51 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/mcp-ts/REPO_AGENTS.md +8 -0
- package/presets/mavis/mcp-ts/adapter-map.json +9 -1
- package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +47 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/mol/REPO_AGENTS.md +8 -0
- package/presets/mavis/mol/adapter-map.json +1 -1
- package/presets/mavis/mol/rules/feature-delivery-workflow.md +10 -10
- package/presets/mavis/mol/rules/reference-features.md +0 -19
- package/presets/mavis/next/REPO_AGENTS.md +8 -0
- package/presets/mavis/next/adapter-map.json +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/reference-features.md +0 -19
- package/presets/mavis/nuxt/REPO_AGENTS.md +8 -0
- package/presets/mavis/nuxt/adapter-map.json +9 -1
- package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +9 -9
- package/presets/mavis/nuxt/rules/reference-features.md +1 -20
- 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 +9 -1
- package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +51 -1
- 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/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 +9 -1
- package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +54 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/svelte/REPO_AGENTS.md +8 -0
- package/presets/mavis/svelte/adapter-map.json +9 -1
- package/presets/mavis/svelte/rules/feature-delivery-workflow.md +7 -7
- package/presets/mavis/svelte/rules/reference-features.md +1 -20
- 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 +11 -2
- package/presets/opencode/android-kotlin/rules/feature-delivery-workflow.md +66 -8
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/go/REPO_AGENTS.md +8 -0
- package/presets/opencode/go/adapter-map.json +9 -1
- package/presets/opencode/go/rules/feature-delivery-workflow.md +50 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/ios-swift/REPO_AGENTS.md +8 -0
- package/presets/opencode/ios-swift/adapter-map.json +9 -1
- package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +8 -8
- 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/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 +9 -1
- package/presets/opencode/java/rules/feature-delivery-workflow.md +51 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/mcp-ts/REPO_AGENTS.md +8 -0
- package/presets/opencode/mcp-ts/adapter-map.json +9 -1
- package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +47 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/mol/REPO_AGENTS.md +8 -0
- package/presets/opencode/mol/adapter-map.json +1 -1
- package/presets/opencode/mol/rules/feature-delivery-workflow.md +10 -10
- package/presets/opencode/mol/rules/reference-features.md +0 -19
- package/presets/opencode/next/REPO_AGENTS.md +8 -0
- package/presets/opencode/next/adapter-map.json +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/reference-features.md +0 -19
- package/presets/opencode/nuxt/REPO_AGENTS.md +8 -0
- package/presets/opencode/nuxt/adapter-map.json +9 -1
- package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +9 -9
- package/presets/opencode/nuxt/rules/reference-features.md +1 -20
- 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 +9 -1
- package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +51 -1
- 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/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 +9 -1
- package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +54 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/svelte/REPO_AGENTS.md +8 -0
- package/presets/opencode/svelte/adapter-map.json +9 -1
- package/presets/opencode/svelte/rules/feature-delivery-workflow.md +7 -7
- package/presets/opencode/svelte/rules/reference-features.md +1 -20
- 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 +11 -2
- package/presets/zcode/android-kotlin/rules/README.md +3 -3
- package/presets/zcode/android-kotlin/rules/feature-delivery-workflow.md +66 -8
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/go/REPO_AGENTS.md +8 -0
- package/presets/zcode/go/adapter-map.json +9 -1
- package/presets/zcode/go/rules/README.md +3 -3
- package/presets/zcode/go/rules/feature-delivery-workflow.md +50 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/ios-swift/REPO_AGENTS.md +8 -0
- package/presets/zcode/ios-swift/adapter-map.json +9 -1
- package/presets/zcode/ios-swift/rules/README.md +3 -3
- package/presets/zcode/ios-swift/rules/feature-delivery-workflow.md +8 -8
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/java/REPO_AGENTS.md +8 -0
- package/presets/zcode/java/adapter-map.json +9 -1
- package/presets/zcode/java/rules/README.md +3 -3
- package/presets/zcode/java/rules/feature-delivery-workflow.md +51 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/mcp-ts/REPO_AGENTS.md +8 -0
- package/presets/zcode/mcp-ts/adapter-map.json +9 -1
- package/presets/zcode/mcp-ts/rules/README.md +3 -3
- package/presets/zcode/mcp-ts/rules/feature-delivery-workflow.md +47 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/mol/REPO_AGENTS.md +8 -0
- package/presets/zcode/mol/adapter-map.json +1 -1
- package/presets/zcode/mol/rules/README.md +3 -3
- package/presets/zcode/mol/rules/feature-delivery-workflow.md +10 -10
- package/presets/zcode/mol/rules/reference-features.md +0 -19
- package/presets/zcode/next/REPO_AGENTS.md +8 -0
- package/presets/zcode/next/adapter-map.json +1 -1
- package/presets/zcode/next/rules/README.md +3 -3
- 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/reference-features.md +0 -19
- package/presets/zcode/nuxt/REPO_AGENTS.md +8 -0
- package/presets/zcode/nuxt/adapter-map.json +9 -1
- package/presets/zcode/nuxt/rules/README.md +3 -3
- package/presets/zcode/nuxt/rules/feature-delivery-workflow.md +9 -9
- package/presets/zcode/nuxt/rules/reference-features.md +1 -20
- 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 +9 -1
- package/presets/zcode/php-hexagonal/rules/README.md +3 -3
- package/presets/zcode/php-hexagonal/rules/feature-delivery-workflow.md +51 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/php-laravel/REPO_AGENTS.md +8 -0
- package/presets/zcode/php-laravel/adapter-map.json +9 -1
- package/presets/zcode/php-laravel/rules/README.md +3 -3
- package/presets/zcode/php-laravel/rules/feature-delivery-workflow.md +54 -1
- 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/fixtures/feature-parallel.json +84 -0
- package/presets/zcode/svelte/REPO_AGENTS.md +8 -0
- package/presets/zcode/svelte/adapter-map.json +9 -1
- package/presets/zcode/svelte/rules/README.md +3 -3
- package/presets/zcode/svelte/rules/feature-delivery-workflow.md +7 -7
- package/presets/zcode/svelte/rules/reference-features.md +1 -20
- package/presets/zcode/svelte/team/fixtures/feature-parallel.json +84 -0
|
@@ -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.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "mavis",
|
|
4
4
|
"stack": "mcp-ts",
|
|
5
5
|
"semanticSource": "cursor/mcp-ts",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "a349b5a802ab6976b3c304865eb6ab1c27c5fd47cfe263fd5d511ad7ed8c9ac8",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -624,6 +624,14 @@
|
|
|
624
624
|
"loadMode": "manual",
|
|
625
625
|
"reason": "File pipeline templates; runtime artifacts seed to .ai.local/team"
|
|
626
626
|
},
|
|
627
|
+
{
|
|
628
|
+
"source": "team/fixtures/feature-parallel.json",
|
|
629
|
+
"target": "team/fixtures/feature-parallel.json",
|
|
630
|
+
"category": "team",
|
|
631
|
+
"disposition": "copy",
|
|
632
|
+
"loadMode": "manual",
|
|
633
|
+
"reason": "File pipeline templates; runtime artifacts seed to .ai.local/team"
|
|
634
|
+
},
|
|
627
635
|
{
|
|
628
636
|
"source": "team/fixtures/memlog.example.md",
|
|
629
637
|
"target": "team/fixtures/memlog.example.md",
|
|
@@ -56,4 +56,50 @@ flowchart LR
|
|
|
56
56
|
|
|
57
57
|
## Zone → rules matrix
|
|
58
58
|
|
|
59
|
-
Filled in the stack adapter: concrete globs/paths and
|
|
59
|
+
Filled in the stack adapter: concrete globs/paths and each rule name in the format that platform ships.
|
|
60
|
+
|
|
61
|
+
## Stack notes
|
|
62
|
+
|
|
63
|
+
Order of work:
|
|
64
|
+
|
|
65
|
+
1. **Contract** — tool/resource/prompt name, description, input/output shape (`mcp-tool-design`).
|
|
66
|
+
2. **Schema** — Zod authoring + JSON Schema-compatible registration (`mcp-ts-conventions`).
|
|
67
|
+
3. **Handler** — validated inputs → scoped capability → safe result/error mapping.
|
|
68
|
+
4. **Registration** — wire into server modules; keep entry (`src/index.ts`) free of tool business logic.
|
|
69
|
+
5. **Tests** — unit + contract fixtures (`tests-unit`, `mcp-contract-testing`).
|
|
70
|
+
6. **Package validation** — typecheck/test; optional Inspector smoke; `bin`/entry OK (`mcp-transport-packaging`).
|
|
71
|
+
7. **Gate** — `post-change-test` (+ `mcp-ts-tooling`). 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.
|
|
72
|
+
|
|
73
|
+
```mermaid
|
|
74
|
+
flowchart LR
|
|
75
|
+
C[Contract] --> S[Schema]
|
|
76
|
+
S --> H[Handler]
|
|
77
|
+
H --> R[Register]
|
|
78
|
+
R --> T[Unit/contract tests]
|
|
79
|
+
T --> P[Package validate]
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Matrix
|
|
83
|
+
|
|
84
|
+
| Path | Rules |
|
|
85
|
+
|------|-------|
|
|
86
|
+
| `src/tools/**`, `src/resources/**`, `src/prompts/**` | `mcp-tool-design`, `mcp-server-boundaries` |
|
|
87
|
+
| schemas / validation | `mcp-ts-conventions`, `mcp-contract-testing` |
|
|
88
|
+
| `src/index.ts`, package `bin` | `mcp-transport-packaging` |
|
|
89
|
+
| auth/config | `mcp-auth-secrets`, `security-mcp` |
|
|
90
|
+
| After `*.ts` edits | `post-change-test` |
|
|
91
|
+
|
|
92
|
+
### Anti-patterns
|
|
93
|
+
|
|
94
|
+
- Monolithic `index.ts`; unscoped shell/FS tools; inventing SDK APIs; skipping schema tests "for speed".
|
|
95
|
+
- Prescribing Go hexagonal folders or Next `app/src/**`.
|
|
96
|
+
- Load `design-guidance` when assessing structure, smells, or pattern fit.
|
|
97
|
+
- 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`.
|
|
98
|
+
|
|
99
|
+
### Iterative refinement loop
|
|
100
|
+
|
|
101
|
+
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**.
|
|
102
|
+
|
|
103
|
+
### Related
|
|
104
|
+
|
|
105
|
+
- Product behavior discovery: requestable **`product-specs`** (`docs/specs/INDEX.md`) — do not paste the discovery algorithm here.
|
|
@@ -43,3 +43,25 @@ Path pointer and stack tables — in the preset adapter (`.ai.local/conventions.
|
|
|
43
43
|
- skill `feature-delivery` — end-to-end scenario.
|
|
44
44
|
|
|
45
45
|
> Concrete path tables, globs, and dogfood checklists live in the stack adapter **Stack notes**.
|
|
46
|
+
|
|
47
|
+
## Stack notes
|
|
48
|
+
|
|
49
|
+
Canonical layout matches `dogfood/mcp-ts-sample/` (consumer repos may rename; prefer the same shapes).
|
|
50
|
+
|
|
51
|
+
| Area | Example path | Glob hint |
|
|
52
|
+
|------|--------------|-----------|
|
|
53
|
+
| Entry / transport | `src/index.ts` | `src/index.ts` |
|
|
54
|
+
| Tools | `src/tools/echo.ts` | `src/tools/**` |
|
|
55
|
+
| Tool tests | `src/tools/echo.spec.ts` | `src/tools/**/*.{test,spec}.ts` |
|
|
56
|
+
| Resources | `src/resources/` (optional) | `src/resources/**` |
|
|
57
|
+
| Prompts | `src/prompts/` (optional) | `src/prompts/**` |
|
|
58
|
+
| Schemas | colocated next to tool (or `schemas.ts`) | `**/schemas.ts`, `src/tools/**` |
|
|
59
|
+
| Build output | `dist/index.js` | `dist/**` |
|
|
60
|
+
|
|
61
|
+
### Dogfood scenarios (Phase 1)
|
|
62
|
+
|
|
63
|
+
1. `/task` add tool — contract → schema → handler → register → tests → package (`dogfood/mcp-ts-sample`).
|
|
64
|
+
2. Schema validation bug — unit + contract fixtures on `src/tools/*.spec.ts`.
|
|
65
|
+
3. Capability / secrets review — security-reviewer + `security-mcp` (e.g. FS allowlist tool when added).
|
|
66
|
+
|
|
67
|
+
Init (maintainer): `node packages/ai-rules/bin/cli.js init cursor --preset mcp-ts --cwd dogfood/mcp-ts-sample` — do not commit generated `.cursor/` into the sample unless the team decides otherwise.
|
|
@@ -6,7 +6,7 @@ Load `mcp-ts-anti-hallucination` before writing or patching code or tests.
|
|
|
6
6
|
|
|
7
7
|
# Code review (mcp-ts)
|
|
8
8
|
|
|
9
|
-
1. Follow `code-review-mr
|
|
9
|
+
1. Follow `code-review-mr`, `mcp-server-boundaries`, `mcp-tool-design`, `security-mcp`.
|
|
10
10
|
2. Flag monolithic entry files, schema/protocol mismatches, unscopeed capabilities, secret leakage.
|
|
11
11
|
3. Phase 1: security-reviewer covers threat model; no separate `code-reviewer` agent yet — parent may apply this skill directly.
|
|
12
12
|
4. **Depth passes** — run all five from `code-review-mr` § Depth passes (call-site sweep, invariant check, trust boundary, test gap, half-life). Carry `confidence` on every finding and close with `## Not verified`.
|
|
@@ -8,9 +8,9 @@ Load `mcp-ts-anti-hallucination` before writing or patching code or tests.
|
|
|
8
8
|
|
|
9
9
|
1. Read brief, AC, and decomposition.
|
|
10
10
|
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.
|
|
11
|
-
3. Follow `feature-delivery-workflow
|
|
11
|
+
3. Follow `feature-delivery-workflow` + `reference-features`: contract → schema → handler → register → unit/contract tests → package validation.
|
|
12
12
|
4. Keep transport/lifecycle in the entry module; tools stay in registration modules.
|
|
13
|
-
5. After TS edits: **invoke** `post-change-test
|
|
13
|
+
5. After TS edits: **invoke** `post-change-test` (+ `mcp-ts-tooling`).
|
|
14
14
|
|
|
15
15
|
## Do / Don't
|
|
16
16
|
|
|
@@ -8,7 +8,7 @@ Load `mcp-ts-anti-hallucination` before writing or patching code or tests.
|
|
|
8
8
|
|
|
9
9
|
1. Prefer table-driven tests for schema reject/accept and handler outcomes.
|
|
10
10
|
2. Fake FS/network capabilities — no live MCP client required for unit scope.
|
|
11
|
-
3. Follow `tests-unit
|
|
11
|
+
3. Follow `tests-unit` and `mcp-contract-testing`.
|
|
12
12
|
4. Discover runner via `mcp-ts-tooling` (Vitest/Jest/node:test).
|
|
13
13
|
|
|
14
14
|
## Out of scope (Phase 1)
|
|
@@ -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
|
+
}
|
|
@@ -60,8 +60,16 @@ Gotchas, local patterns, and team decisions: **`.ai.local/conventions.md`** (fil
|
|
|
60
60
|
|
|
61
61
|
`init` owns `.cursor/**`, `.claude/**`, `.mavis/**`, `.opencode/**`, `.zcode/**`, root `AGENTS.md`, and the tool MCP config; it overwrites or merges them. Durable project config and authoritative specs belong outside those trees: `.ai.local/**`, `.ai/context/**`, `docs/specs/**`, `openspec/**`, repo-root `.mcp.json`. After a re-init, re-check any consumer-owned block added to a managed file.
|
|
62
62
|
|
|
63
|
+
## ZCode host
|
|
64
|
+
|
|
65
|
+
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/`.
|
|
66
|
+
|
|
67
|
+
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.
|
|
68
|
+
|
|
63
69
|
## Local overlay (`.ai.local/`) — MANDATORY
|
|
64
70
|
|
|
65
71
|
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.
|
|
66
72
|
|
|
67
73
|
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`.
|
|
74
|
+
|
|
75
|
+
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.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "mavis",
|
|
4
4
|
"stack": "mol",
|
|
5
5
|
"semanticSource": "cursor/mol",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "a00181c6f8de7fc56a43880db945f033d47700db86d33ff3062e3013539e08ab",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -56,7 +56,7 @@ flowchart LR
|
|
|
56
56
|
|
|
57
57
|
## Zone → rules matrix
|
|
58
58
|
|
|
59
|
-
Filled in the stack adapter: concrete globs/paths and
|
|
59
|
+
Filled in the stack adapter: concrete globs/paths and each rule name in the format that platform ships.
|
|
60
60
|
|
|
61
61
|
## Stack notes
|
|
62
62
|
|
|
@@ -64,13 +64,13 @@ When the prompt or `brief.md` contains a `figma.com` URL, **mockup review** (`mo
|
|
|
64
64
|
|
|
65
65
|
**Consumer context.** When `.ai/context/**` exists, read it before deriving module decomposition or domain vocabulary.
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
### Style discovery (mandatory)
|
|
68
68
|
|
|
69
69
|
Before writing a new module, open **1–2 analog modules** of the same kind in the MAM checkout and mirror: the `<name>.view.tree` / `<name>.view.ts` / `<name>.test.ts` file set, property naming, `sub /` composition, and the `namespace $.$$` behavior block. Record the analogs in the handoff. Where this preset's examples differ from the repo, **the repo wins**.
|
|
70
70
|
|
|
71
71
|
Typical feature = a view module composing `$mol_*` batteries through reactive properties. Module anatomy — `mol-app-core`; view syntax — `mol-view-tree`.
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
### Checklist (work order)
|
|
74
74
|
|
|
75
75
|
1. **Analog + naming** — pick 1–2 analog modules; coin the module folder and the `$my_<name>` component (globally unique `$`-names) — `mol-app-core`.
|
|
76
76
|
2. **Batteries first** — search the `$mol_*` catalog before writing anything; compose from batteries instead of custom controls — `mol-components`.
|
|
@@ -81,7 +81,7 @@ Typical feature = a view module composing `$mol_*` batteries through reactive pr
|
|
|
81
81
|
7. **Tests** — co-located `<name>.test.ts` with `$mol_test` + `$mol_assert_*` cases; stub data via `$mol_stub` — `mol-testing`.
|
|
82
82
|
8. **Gate** — **`mol-build`**: `npm start <module/path>` builds the touched module, then run its `-/web.test.js` / `-/node.test.js` bundles; npm only, at the checkout root — `package-manager`. 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.
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
### Data flow (orientation)
|
|
85
85
|
|
|
86
86
|
```mermaid
|
|
87
87
|
flowchart LR
|
|
@@ -92,7 +92,7 @@ flowchart LR
|
|
|
92
92
|
Props --> Sub["sub / child batteries"]
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
### Registration by layer
|
|
96
96
|
|
|
97
97
|
1. **Module** — one folder per component: `index.html`, `<name>.view.tree`, `<name>.view.ts`, `<name>.test.ts`, `<name>.view.css` — create only the files the module needs.
|
|
98
98
|
2. **Dependencies** — referencing a `$`-name by full name adds the module to the dependency graph; never write `import` / `require` statements.
|
|
@@ -101,7 +101,7 @@ flowchart LR
|
|
|
101
101
|
5. **Tests** — `<name>.test.ts` beside the component; cases registered in `namespace $.$$`.
|
|
102
102
|
6. **Artifacts** — `-/` build output is never committed or hand-edited.
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
### Partial scenarios
|
|
105
105
|
|
|
106
106
|
| Task | Minimum actions |
|
|
107
107
|
|------|-----------------|
|
|
@@ -110,7 +110,7 @@ flowchart LR
|
|
|
110
110
|
| New child component | its own module folder; compose it from the parent's `sub /`. |
|
|
111
111
|
| Tests only | cases in the module's `<name>.test.ts`; run its test bundles. |
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
### Anti-patterns
|
|
114
114
|
|
|
115
115
|
- `import` / `require` / `include` statements in `$mol` sources — dependencies come by use.
|
|
116
116
|
- Direct `localStorage` / `sessionStorage` / `location` reads bypassing `$mol_state_*` — `mol-state`.
|
|
@@ -122,7 +122,7 @@ flowchart LR
|
|
|
122
122
|
- Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
|
|
123
123
|
- 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`.
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
### Matrix: zone → rules
|
|
126
126
|
|
|
127
127
|
| Zone | Rules |
|
|
128
128
|
|------|-------|
|
|
@@ -135,10 +135,10 @@ flowchart LR
|
|
|
135
135
|
|
|
136
136
|
When adding or extending a feature, **walk the checklist** and the rules from the table for affected zones.
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
### Iterative refinement loop
|
|
139
139
|
|
|
140
140
|
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**.
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
### Related
|
|
143
143
|
|
|
144
144
|
- Product behavior discovery: requestable **`product-specs`** (`docs/specs/INDEX.md`) — do not paste the discovery algorithm here.
|
|
@@ -50,8 +50,6 @@ Before implementing, find a module of the same kind in the MAM checkout and **mi
|
|
|
50
50
|
|
|
51
51
|
The preset source tree and the contribution guide are not installed in a consumer repo; copy patterns from your own codebase.
|
|
52
52
|
|
|
53
|
-
## Reference table
|
|
54
|
-
|
|
55
53
|
Replace **TBD** with real paths after team agreement (or on `ai-rules init` in the target repo):
|
|
56
54
|
|
|
57
55
|
| Area | Reference (TBD) | What to copy |
|
|
@@ -63,20 +61,3 @@ Replace **TBD** with real paths after team agreement (or on `ai-rules init` in t
|
|
|
63
61
|
| Theming | **TBD** theme-variable usage + `$mol_style_define` block | variable names, rule keys (`mol-theming`) |
|
|
64
62
|
| Tests | **TBD** `<module.path>/<name>.test.ts` | `$mol_test` cases, `$mol_assert_*` helpers |
|
|
65
63
|
| Localization | **TBD** `<module.path>/<name>.locale=en.json` | `@`-extracted string keys |
|
|
66
|
-
|
|
67
|
-
## How to use
|
|
68
|
-
|
|
69
|
-
1. Identify affected modules from `decomposition.md` or the task.
|
|
70
|
-
2. Open the reference from the table (after paths are filled).
|
|
71
|
-
3. Mirror naming, `sub /` composition, binding direction, and tests.
|
|
72
|
-
4. If there is no reference — pick the **closest** existing module of the same kind and record the choice in the handoff.
|
|
73
|
-
|
|
74
|
-
## Living conventions
|
|
75
|
-
|
|
76
|
-
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.
|
|
77
|
-
|
|
78
|
-
## Related rules
|
|
79
|
-
|
|
80
|
-
- `code-quality-and-refactoring.md` — repeat patterns.
|
|
81
|
-
- `feature-delivery-workflow.md` — module work order.
|
|
82
|
-
- skill `feature-delivery` — end-to-end scenario.
|
|
@@ -81,8 +81,16 @@ Gotchas, local patterns, and team decisions: **`.ai.local/conventions.md`** (fil
|
|
|
81
81
|
|
|
82
82
|
`init` owns `.cursor/**`, `.claude/**`, `.mavis/**`, `.opencode/**`, `.zcode/**`, root `AGENTS.md`, and the tool MCP config; it overwrites or merges them. Durable project config and authoritative specs belong outside those trees: `.ai.local/**`, `.ai/context/**`, `docs/specs/**`, `openspec/**`, repo-root `.mcp.json`. After a re-init, re-check any consumer-owned block added to a managed file.
|
|
83
83
|
|
|
84
|
+
## ZCode host
|
|
85
|
+
|
|
86
|
+
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/`.
|
|
87
|
+
|
|
88
|
+
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.
|
|
89
|
+
|
|
84
90
|
## Local overlay (`.ai.local/`) — MANDATORY
|
|
85
91
|
|
|
86
92
|
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.
|
|
87
93
|
|
|
88
94
|
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`.
|
|
95
|
+
|
|
96
|
+
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.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "mavis",
|
|
4
4
|
"stack": "next",
|
|
5
5
|
"semanticSource": "cursor/next",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "f9050cf67dd3bf14587194ee869e78fb5d5143c672f0a48c18e38e8bd6d3ca1b",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -56,7 +56,7 @@ flowchart LR
|
|
|
56
56
|
|
|
57
57
|
## Zone → rules matrix
|
|
58
58
|
|
|
59
|
-
Filled in the stack adapter: concrete globs/paths and
|
|
59
|
+
Filled in the stack adapter: concrete globs/paths and each rule name in the format that platform ships.
|
|
60
60
|
|
|
61
61
|
## Stack notes
|
|
62
62
|
|
|
@@ -66,11 +66,11 @@ When the prompt or `brief.md` contains a `figma.com` URL, **mockup review** (`mo
|
|
|
66
66
|
|
|
67
67
|
**Consumer context.** When `.ai/context/**` exists, read it before deriving architecture, domain vocabulary, or test placement.
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
### Style discovery (mandatory)
|
|
70
70
|
|
|
71
71
|
Before writing a new file in a layer, open **1–2 analog files** in the same layer and mirror: export shape, name prefixes (`T` / `I` where the repo uses them), file suffixes (`.apiMethods.ts`, `.endpoints.ts`, `.data.ts`, `.hooks.ts`, `styles.ts`), mapper / selector / thunk naming, and barrel shape. Record the analogs in the handoff. Where this preset's examples differ from the repo, **the repo wins**.
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
### Figma node-link — child→component decomposition (mandatory pre-implementation)
|
|
74
74
|
|
|
75
75
|
When the prompt or `brief.md` contains a Figma URL with a node id (`?node-id=…`), `mockup-reviewer` must walk the node subtree via Figma MCP and emit **two sections** in `mockup-review.md`:
|
|
76
76
|
|
|
@@ -79,14 +79,14 @@ When the prompt or `brief.md` contains a Figma URL with a node id (`?node-id=…
|
|
|
79
79
|
|
|
80
80
|
`feature-developer` must **not** start UI implementation until both sections are present, and must load requestable `design-tokens-binding.md` to bind every value to a Figma variable / text style / repo token (raw `#…` / `px` are a finding). The full procedure and verdict rule live in the `mockup-reviewer` agent prompt and the `mockup-review` Stack notes.
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
### UI work with a Figma reference
|
|
83
83
|
|
|
84
84
|
- **Implementation:** bind every value per `design-tokens-binding`; before the implementation receipt, run skill `figma-fidelity` as a self-check against `.ai.local/team/tasks/<slug>/figma-contract.json` and record it in `implementation.md`.
|
|
85
85
|
- **Review:** `code-reviewer` runs the same skill as the parity gate (`## Figma parity (UI)` in `review.md`); Storybook visual baselines are not a substitute. Missing or `unable_to_compare` parity → `REQUEST_CHANGES`.
|
|
86
86
|
|
|
87
87
|
Typical feature with backend data and shared state. Layer details — `architecture-boundaries.md`, `next-app-core.md`.
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
### Checklist (work order)
|
|
90
90
|
|
|
91
91
|
1. **Domain types** — `app/src/types/**`, export via barrel (`public-imports.md`, **`layer-barrel-exports.md`**); JSDoc — `types-jsdoc.md`.
|
|
92
92
|
2. **API contract** — DTOs where the repo uses them; domain types in `@/types`.
|
|
@@ -98,11 +98,11 @@ Typical feature with backend data and shared state. Layer details — `architect
|
|
|
98
98
|
8. **Tests** — unit for mappers (`tests-unit.md`); e2e from `*.cases.md` (`tests-e2e-structure.md`, `playwright-agents.md`).
|
|
99
99
|
9. **Completion** — closure gate: **`post-change-lint.md`** runs **once**, after the last authoring step (`build-verifier` owns it): `lint:js` + `lint:css` + `type-check`; package manager — `package-manager.md`. Do not run project lint/test/build in steps 1–8; author code and tests only. When the current WP spans **more than one** layer or module, `implementation.md` includes a **Code Map** (3–8 annotated paths) and **Suggested Review Order** (`concern | path:line | ≤15 word note`). Omit both for a single-file or single-layer WP.
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
### Context hygiene
|
|
102
102
|
|
|
103
103
|
A command whose output can exceed ~4 KB — a test run, a build/lint log, `git log`, a diff — is piped through `.ai.local/scripts/dump-output.mjs --task <slug>` instead of being read whole. Work from its ≤40-line head and the stored file (`grep -n` or `team-db.mjs search`), and record the repo-relative `outputs/…` path in `implementation.md` or `validation-report.md` when it informed a decision. Do not read the whole output into context. 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.
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
### Data flow (orientation)
|
|
106
106
|
|
|
107
107
|
```mermaid
|
|
108
108
|
flowchart LR
|
|
@@ -118,7 +118,7 @@ flowchart LR
|
|
|
118
118
|
Store --> UI[UI]
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
### Registration by layer
|
|
122
122
|
|
|
123
123
|
1. **Types** — `app/src/types/**`; domain model is the source of truth for UI and store.
|
|
124
124
|
2. **API** — `app/src/api/services/<ServiceRoot>/<Segment>/`; public exports (incl. **path constants** for mocks) → **`app/src/api/index.ts`**.
|
|
@@ -128,7 +128,7 @@ flowchart LR
|
|
|
128
128
|
6. **Unit** — `*.spec.ts(x)`; mappers and non-trivial logic are required.
|
|
129
129
|
7. **E2E** — `app/__tests__/e2e/<Area>/<plan>.cases.md` + `*.spec.ts`.
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
### Partial scenarios
|
|
132
132
|
|
|
133
133
|
| Task | Minimum actions |
|
|
134
134
|
|------|-----------------|
|
|
@@ -138,7 +138,7 @@ flowchart LR
|
|
|
138
138
|
| UI only | Store state; no HTTP/DTO. |
|
|
139
139
|
| E2E only | `*.cases.md` + spec; page object. |
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
### Anti-patterns
|
|
142
142
|
|
|
143
143
|
- DTO in UI or untyped store.
|
|
144
144
|
- HTTP client from a component/thunk bypassing the service.
|
|
@@ -148,7 +148,7 @@ flowchart LR
|
|
|
148
148
|
- Load `design-guidance` (rule stem) when assessing structure, smells, or pattern fit.
|
|
149
149
|
- 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`.
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
### Matrix: zone → rules
|
|
152
152
|
|
|
153
153
|
| Zone | Rules |
|
|
154
154
|
|------|-------|
|
|
@@ -161,10 +161,10 @@ flowchart LR
|
|
|
161
161
|
|
|
162
162
|
When adding or extending a feature, **walk the checklist** and the rules from the table for affected zones.
|
|
163
163
|
|
|
164
|
-
|
|
164
|
+
### Iterative refinement loop
|
|
165
165
|
|
|
166
166
|
Every stage runs the named loop **draft → structural evaluation → refine** against a named oracle: reference-feature parity, layer/import shape, schema/contract parity, or review. The oracle is **not** a project test run. Tests are authored in the stage and executed by the closure gate (`build-verifier`); a failing test is closure evidence, not a per-stage trigger. When `implementationRail: tdd` is explicitly on, targeted tests are the documented cadence exception. **Exit criteria:** a layer or stage is complete only when its structural criteria hold (reference parity, barrel/import shape, authored test present); do not advance past a failing oracle. A repeatedly failing oracle triggers **plan revision**.
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
### Related
|
|
169
169
|
|
|
170
170
|
- Product behavior discovery: requestable **`product-specs`** (`docs/specs/INDEX.md`) — do not paste the discovery algorithm here.
|
|
@@ -21,7 +21,7 @@ Concrete versions come **from `package.json` and configs of the target repositor
|
|
|
21
21
|
# Agent work
|
|
22
22
|
|
|
23
23
|
- Architecture and imports — `architecture-boundaries.md`, `public-imports.md`; features — `feature-delivery-workflow.md` + skill `feature-delivery`.
|
|
24
|
-
-
|
|
24
|
+
- At implementation closure: **invoke** `post-change-lint.md` (requestable; lint/type-check run **once at closure**, not after every edit); package manager: `package-manager.md`.
|
|
25
25
|
- Dev server, Storybook, or browser: load `dev-process-lifecycle.md` before starting, reusing, or stopping one.
|
|
26
26
|
- Copy patterns from neighboring files in the target layer; do not use `any` (prefer `unknown` + narrowing).
|
|
27
27
|
- **Language:** resolve the dialogue language on every user message and reply in the user's **native language** (`language-policy.md`); development, reasoning, and artifacts stay **English**.
|
|
@@ -50,8 +50,6 @@ Before implementing, find a feature of the same type and **mirror its structure*
|
|
|
50
50
|
|
|
51
51
|
The preset source tree and the contribution guide are not installed in a consumer repo; copy patterns from your own codebase.
|
|
52
52
|
|
|
53
|
-
## Reference table
|
|
54
|
-
|
|
55
53
|
Replace **TBD** with real paths after team agreement (or on `ai-rules init` in the target repo):
|
|
56
54
|
|
|
57
55
|
| Layer | Reference | What to copy |
|
|
@@ -67,20 +65,3 @@ Replace **TBD** with real paths after team agreement (or on `ai-rules init` in t
|
|
|
67
65
|
| Layout / guard | **TBD** `app/src/ui/layouts/**`, `app/src/ui/guards/**` | route wrapping (auth, chrome) |
|
|
68
66
|
| Cross-feature hooks | **TBD** `app/src/core/**` | reusable feature hooks used across pages |
|
|
69
67
|
| Internal slices | **TBD** `app/src/store/slices/_complexSlices/**`, `_utilsSlices/**` | cross-slice orchestration / pure helpers — **no** direct slice→slice imports |
|
|
70
|
-
|
|
71
|
-
## How to use
|
|
72
|
-
|
|
73
|
-
1. Identify affected layers from `decomposition.md` or the task.
|
|
74
|
-
2. Open the reference from the table (after paths are filled).
|
|
75
|
-
3. Mirror naming, file order, import patterns, and tests.
|
|
76
|
-
4. If there is no reference — pick the **closest** existing feature of the same layer and record the choice in the handoff.
|
|
77
|
-
|
|
78
|
-
## Living conventions
|
|
79
|
-
|
|
80
|
-
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.
|
|
81
|
-
|
|
82
|
-
## Related rules
|
|
83
|
-
|
|
84
|
-
- `code-quality-and-refactoring.md` — repeat patterns, no deep-import.
|
|
85
|
-
- `feature-delivery-workflow.md` — layer order.
|
|
86
|
-
- skill `feature-delivery` — end-to-end scenario.
|