@bonesofspring/ai-rules 0.2.32 → 0.2.34
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 +31 -0
- package/README.md +1 -1
- package/docs/LOCAL-OVERLAY.md +16 -1
- package/docs/PRESET-CONTRIBUTION.md +13 -4
- package/docs/PRESET-ENGLISH-STYLE.md +23 -1
- package/package.json +5 -1
- package/presets/_shared/README.md +10 -4
- package/presets/_shared/core/agent-team/agent-artifact-contracts.md +61 -0
- package/presets/_shared/core/agent-team/agent-task-metrics.md +12 -1
- package/presets/_shared/core/agent-team/agent-team-intake.md +3 -0
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +39 -5
- package/presets/_shared/core/agent-team/language-policy.md +41 -0
- package/presets/_shared/core/agent-team/plan-graph.md +63 -0
- package/presets/_shared/core/agent-team/task-classification.md +4 -0
- package/presets/_shared/core/agent-team/task-framing.md +45 -0
- package/presets/_shared/core/architecture/feature-delivery-workflow.md +11 -1
- package/presets/_shared/core/meta/preset-goals.md +29 -0
- package/presets/_shared/core/meta/preset-layering.md +1 -1
- package/presets/_shared/core/meta/preset-pr-checklist.md +4 -0
- package/presets/_shared/core/meta/preset-twin-sync.md +19 -77
- package/presets/_shared/core/meta/preset-writing-style.md +40 -0
- package/presets/_shared/core/quality/code-quality-and-refactoring.md +20 -1
- package/presets/_shared/core/quality/context-and-iteration.md +29 -0
- package/presets/_shared/core/quality/self-review-and-context-hygiene.md +51 -0
- package/presets/_shared/core/quality/verification-before-completion.md +4 -0
- package/presets/_shared/core/review/mockup-review.md +56 -1
- package/presets/claude/android-kotlin/REPO_AGENTS.md +3 -0
- package/presets/claude/android-kotlin/agents/README.md +6 -0
- package/presets/claude/android-kotlin/agents/build-verifier.md +12 -0
- package/presets/claude/android-kotlin/agents/code-reviewer.md +12 -0
- package/presets/claude/android-kotlin/agents/debugger.md +12 -0
- package/presets/claude/android-kotlin/agents/feature-developer.md +12 -0
- package/presets/claude/android-kotlin/agents/task-analyst.md +30 -0
- package/presets/claude/android-kotlin/agents/task-router.md +18 -0
- package/presets/claude/android-kotlin/ai-local/conventions.md +8 -0
- package/presets/claude/android-kotlin/commands/task-continue.md +8 -0
- package/presets/claude/android-kotlin/commands/task.md +14 -1
- package/presets/claude/android-kotlin/hooks/chain-team-phases.sh +369 -16
- package/presets/claude/android-kotlin/rules/README.md +5 -0
- package/presets/claude/android-kotlin/rules/architecture/feature-delivery.md +4 -0
- package/presets/claude/android-kotlin/rules/stack/android-app-core.md +6 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-intake.md +3 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/agent-team-orchestrator.md +43 -2
- package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/mockup-review.md +56 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/android-kotlin/team/README.md +21 -1
- package/presets/claude/go/REPO_AGENTS.md +3 -0
- package/presets/claude/go/agents/README.md +6 -0
- package/presets/claude/go/agents/build-verifier.md +12 -0
- package/presets/claude/go/agents/code-reviewer.md +12 -0
- package/presets/claude/go/agents/debugger.md +12 -0
- package/presets/claude/go/agents/feature-developer.md +12 -0
- package/presets/claude/go/agents/task-analyst.md +30 -0
- package/presets/claude/go/agents/task-router.md +18 -0
- package/presets/claude/go/ai-local/conventions.md +8 -0
- package/presets/claude/go/commands/task-continue.md +8 -0
- package/presets/claude/go/commands/task.md +14 -1
- package/presets/claude/go/hooks/chain-team-phases.sh +367 -16
- package/presets/claude/go/rules/README.md +5 -0
- package/presets/claude/go/rules/architecture/feature-delivery.md +4 -0
- package/presets/claude/go/rules/stack/go-app-core.md +6 -0
- package/presets/claude/go/rules/tooling-and-review/README.md +1 -0
- package/presets/claude/go/rules/tooling-and-review/agent-team-intake.md +3 -0
- package/presets/claude/go/rules/tooling-and-review/agent-team-orchestrator.md +42 -1
- package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/go/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/go/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/go/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/go/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/go/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/go/team/README.md +21 -1
- package/presets/claude/ios-swift/REPO_AGENTS.md +3 -0
- package/presets/claude/ios-swift/agents/README.md +6 -0
- package/presets/claude/ios-swift/agents/build-verifier.md +12 -0
- package/presets/claude/ios-swift/agents/code-reviewer.md +12 -0
- package/presets/claude/ios-swift/agents/debugger.md +12 -0
- package/presets/claude/ios-swift/agents/feature-developer.md +12 -0
- package/presets/claude/ios-swift/agents/task-analyst.md +30 -0
- package/presets/claude/ios-swift/agents/task-router.md +18 -0
- package/presets/claude/ios-swift/ai-local/conventions.md +8 -0
- package/presets/claude/ios-swift/commands/task-continue.md +8 -0
- package/presets/claude/ios-swift/commands/task.md +14 -1
- package/presets/claude/ios-swift/hooks/chain-team-phases.sh +369 -16
- package/presets/claude/ios-swift/rules/README.md +4 -0
- package/presets/claude/ios-swift/rules/architecture/feature-delivery.md +4 -0
- package/presets/claude/ios-swift/rules/stack/ios-app-core.md +6 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-intake.md +3 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/agent-team-orchestrator.md +43 -2
- package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/mockup-review.md +56 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/ios-swift/team/README.md +21 -1
- package/presets/claude/java/REPO_AGENTS.md +3 -0
- package/presets/claude/java/agents/README.md +6 -0
- package/presets/claude/java/agents/build-verifier.md +12 -0
- package/presets/claude/java/agents/code-reviewer.md +12 -0
- package/presets/claude/java/agents/debugger.md +12 -0
- package/presets/claude/java/agents/feature-developer.md +12 -0
- package/presets/claude/java/agents/task-analyst.md +30 -0
- package/presets/claude/java/agents/task-router.md +18 -0
- package/presets/claude/java/ai-local/conventions.md +8 -0
- package/presets/claude/java/commands/task-continue.md +8 -0
- package/presets/claude/java/commands/task.md +14 -1
- package/presets/claude/java/hooks/chain-team-phases.sh +367 -16
- package/presets/claude/java/rules/README.md +5 -0
- package/presets/claude/java/rules/architecture/feature-delivery.md +4 -0
- package/presets/claude/java/rules/stack/java-app-core.md +6 -0
- package/presets/claude/java/rules/tooling-and-review/README.md +1 -0
- package/presets/claude/java/rules/tooling-and-review/agent-team-intake.md +3 -0
- package/presets/claude/java/rules/tooling-and-review/agent-team-orchestrator.md +42 -1
- package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/java/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/java/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/java/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/java/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/java/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/java/team/README.md +21 -1
- package/presets/claude/mcp-ts/REPO_AGENTS.md +3 -0
- package/presets/claude/mcp-ts/agents/README.md +6 -0
- package/presets/claude/mcp-ts/agents/build-verifier.md +12 -0
- package/presets/claude/mcp-ts/agents/feature-developer.md +12 -0
- package/presets/claude/mcp-ts/agents/task-analyst.md +30 -0
- package/presets/claude/mcp-ts/agents/task-router.md +18 -0
- package/presets/claude/mcp-ts/ai-local/conventions.md +8 -0
- package/presets/claude/mcp-ts/commands/task-continue.md +8 -0
- package/presets/claude/mcp-ts/commands/task.md +14 -1
- package/presets/claude/mcp-ts/hooks/chain-team-phases.sh +367 -16
- package/presets/claude/mcp-ts/rules/README.md +5 -0
- package/presets/claude/mcp-ts/rules/architecture/feature-delivery.md +4 -0
- package/presets/claude/mcp-ts/rules/stack/mcp-ts-app-core.md +6 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-intake.md +3 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/agent-team-orchestrator.md +42 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/mcp-ts/team/README.md +21 -1
- package/presets/claude/next/REPO_AGENTS.md +3 -0
- package/presets/claude/next/agents/README.md +6 -0
- package/presets/claude/next/agents/build-verifier.md +12 -0
- package/presets/claude/next/agents/code-reviewer.md +23 -0
- package/presets/claude/next/agents/debugger.md +12 -0
- package/presets/claude/next/agents/feature-developer.md +20 -2
- package/presets/claude/next/agents/mockup-reviewer.md +25 -4
- package/presets/claude/next/agents/task-analyst.md +30 -0
- package/presets/claude/next/agents/task-router.md +18 -0
- package/presets/claude/next/ai-local/conventions.md +8 -0
- package/presets/claude/next/commands/task-continue.md +8 -0
- package/presets/claude/next/commands/task.md +14 -1
- package/presets/claude/next/hooks/chain-team-phases.sh +369 -16
- package/presets/claude/next/rules/README.md +4 -0
- package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +8 -0
- package/presets/claude/next/rules/stack/next-app-core.md +6 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +3 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +43 -2
- package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/next/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +10 -0
- package/presets/claude/next/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/next/rules/tooling-and-review/mockup-review.md +77 -1
- package/presets/claude/next/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/next/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/next/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/next/rules/ui-and-accessibility/design-tokens-binding.md +23 -1
- package/presets/claude/next/skills/README.md +1 -0
- package/presets/claude/next/skills/code-review/SKILL.md +1 -1
- package/presets/claude/next/skills/figma-fidelity/SKILL.md +96 -0
- package/presets/claude/next/skills/mockup-review/SKILL.md +5 -1
- package/presets/claude/next/team/README.md +22 -1
- package/presets/claude/next/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/claude/next/team/fixtures/feature-parallel.json +84 -0
- package/presets/claude/nuxt/REPO_AGENTS.md +3 -0
- package/presets/claude/nuxt/agents/README.md +6 -0
- package/presets/claude/nuxt/agents/build-verifier.md +12 -0
- package/presets/claude/nuxt/agents/code-reviewer.md +12 -0
- package/presets/claude/nuxt/agents/debugger.md +12 -0
- package/presets/claude/nuxt/agents/feature-developer.md +12 -0
- package/presets/claude/nuxt/agents/task-analyst.md +30 -0
- package/presets/claude/nuxt/agents/task-router.md +18 -0
- package/presets/claude/nuxt/ai-local/conventions.md +8 -0
- package/presets/claude/nuxt/commands/task-continue.md +8 -0
- package/presets/claude/nuxt/commands/task.md +14 -1
- package/presets/claude/nuxt/hooks/chain-team-phases.sh +369 -16
- package/presets/claude/nuxt/rules/README.md +4 -0
- package/presets/claude/nuxt/rules/architecture/feature-delivery-workflow.md +4 -0
- package/presets/claude/nuxt/rules/stack/nuxt-app-core.md +6 -0
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-intake.md +3 -0
- package/presets/claude/nuxt/rules/tooling-and-review/agent-team-orchestrator.md +43 -2
- package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/nuxt/rules/tooling-and-review/mockup-review.md +56 -1
- package/presets/claude/nuxt/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/nuxt/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/nuxt/team/README.md +21 -1
- package/presets/claude/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/claude/php-hexagonal/REPO_AGENTS.md +3 -0
- package/presets/claude/php-hexagonal/agents/README.md +6 -0
- package/presets/claude/php-hexagonal/agents/build-verifier.md +12 -0
- package/presets/claude/php-hexagonal/agents/code-reviewer.md +12 -0
- package/presets/claude/php-hexagonal/agents/debugger.md +12 -0
- package/presets/claude/php-hexagonal/agents/feature-developer.md +12 -0
- package/presets/claude/php-hexagonal/agents/task-analyst.md +30 -0
- package/presets/claude/php-hexagonal/agents/task-router.md +18 -0
- package/presets/claude/php-hexagonal/ai-local/conventions.md +8 -0
- package/presets/claude/php-hexagonal/commands/task-continue.md +8 -0
- package/presets/claude/php-hexagonal/commands/task.md +14 -1
- package/presets/claude/php-hexagonal/hooks/chain-team-phases.sh +367 -16
- package/presets/claude/php-hexagonal/rules/README.md +5 -0
- package/presets/claude/php-hexagonal/rules/architecture/feature-delivery.md +4 -0
- package/presets/claude/php-hexagonal/rules/stack/php-app-core.md +6 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/README.md +1 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-intake.md +3 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/agent-team-orchestrator.md +42 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/php-hexagonal/team/README.md +21 -1
- package/presets/claude/php-laravel/REPO_AGENTS.md +3 -0
- package/presets/claude/php-laravel/agents/README.md +6 -0
- package/presets/claude/php-laravel/agents/build-verifier.md +12 -0
- package/presets/claude/php-laravel/agents/code-reviewer.md +12 -0
- package/presets/claude/php-laravel/agents/debugger.md +12 -0
- package/presets/claude/php-laravel/agents/feature-developer.md +12 -0
- package/presets/claude/php-laravel/agents/task-analyst.md +30 -0
- package/presets/claude/php-laravel/agents/task-router.md +18 -0
- package/presets/claude/php-laravel/ai-local/conventions.md +8 -0
- package/presets/claude/php-laravel/commands/task-continue.md +8 -0
- package/presets/claude/php-laravel/commands/task.md +14 -1
- package/presets/claude/php-laravel/hooks/chain-team-phases.sh +367 -16
- package/presets/claude/php-laravel/rules/README.md +5 -0
- package/presets/claude/php-laravel/rules/architecture/feature-delivery.md +4 -0
- package/presets/claude/php-laravel/rules/stack/laravel-app-core.md +6 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-intake.md +3 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/agent-team-orchestrator.md +42 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/php-laravel/team/README.md +21 -1
- package/presets/claude/svelte/REPO_AGENTS.md +3 -0
- package/presets/claude/svelte/agents/README.md +6 -0
- package/presets/claude/svelte/agents/build-verifier.md +12 -0
- package/presets/claude/svelte/agents/code-reviewer.md +12 -0
- package/presets/claude/svelte/agents/debugger.md +12 -0
- package/presets/claude/svelte/agents/feature-developer.md +12 -0
- package/presets/claude/svelte/agents/task-analyst.md +30 -0
- package/presets/claude/svelte/agents/task-router.md +18 -0
- package/presets/claude/svelte/ai-local/conventions.md +8 -0
- package/presets/claude/svelte/commands/task-continue.md +8 -0
- package/presets/claude/svelte/commands/task.md +14 -1
- package/presets/claude/svelte/hooks/chain-team-phases.sh +369 -16
- package/presets/claude/svelte/rules/README.md +4 -0
- package/presets/claude/svelte/rules/architecture/feature-delivery-workflow.md +4 -0
- package/presets/claude/svelte/rules/stack/svelte-app-core.md +6 -0
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-intake.md +3 -0
- package/presets/claude/svelte/rules/tooling-and-review/agent-team-orchestrator.md +43 -2
- package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/svelte/rules/tooling-and-review/mockup-review.md +56 -1
- package/presets/claude/svelte/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/svelte/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/svelte/team/README.md +21 -1
- package/presets/claude/svelte/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/cursor/android-kotlin/REPO_AGENTS.md +3 -0
- package/presets/cursor/android-kotlin/agents/README.md +7 -0
- package/presets/cursor/android-kotlin/agents/build-verifier.md +12 -0
- package/presets/cursor/android-kotlin/agents/code-reviewer.md +12 -0
- package/presets/cursor/android-kotlin/agents/debugger.md +12 -0
- package/presets/cursor/android-kotlin/agents/feature-developer.md +12 -0
- package/presets/cursor/android-kotlin/agents/task-analyst.md +31 -1
- package/presets/cursor/android-kotlin/agents/task-router.md +18 -0
- package/presets/cursor/android-kotlin/ai-local/conventions.md +8 -0
- package/presets/cursor/android-kotlin/commands/task-continue.md +8 -0
- package/presets/cursor/android-kotlin/commands/task.md +14 -1
- package/presets/cursor/android-kotlin/hooks/chain-team-phases.sh +369 -16
- package/presets/cursor/android-kotlin/rules/README.md +3 -1
- package/presets/cursor/android-kotlin/rules/agent-team-intake.mdc +3 -0
- package/presets/cursor/android-kotlin/rules/agent-team-orchestrator.mdc +43 -2
- package/presets/cursor/android-kotlin/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/android-kotlin/rules/android-app-core.mdc +6 -0
- package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/android-kotlin/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/android-kotlin/rules/language-policy.mdc +52 -0
- package/presets/cursor/android-kotlin/rules/mockup-review.mdc +56 -1
- package/presets/cursor/android-kotlin/rules/preset-goals.mdc +40 -0
- package/presets/cursor/android-kotlin/rules/preset-layering.mdc +1 -1
- package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/android-kotlin/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/android-kotlin/team/README.md +15 -1
- package/presets/cursor/go/REPO_AGENTS.md +3 -0
- package/presets/cursor/go/agents/README.md +7 -0
- package/presets/cursor/go/agents/build-verifier.md +12 -0
- package/presets/cursor/go/agents/code-reviewer.md +12 -0
- package/presets/cursor/go/agents/debugger.md +12 -0
- package/presets/cursor/go/agents/feature-developer.md +12 -0
- package/presets/cursor/go/agents/task-analyst.md +31 -1
- package/presets/cursor/go/agents/task-router.md +18 -0
- package/presets/cursor/go/ai-local/conventions.md +8 -0
- package/presets/cursor/go/commands/task-continue.md +8 -0
- package/presets/cursor/go/commands/task.md +14 -1
- package/presets/cursor/go/hooks/chain-team-phases.sh +367 -16
- package/presets/cursor/go/rules/README.md +5 -3
- package/presets/cursor/go/rules/agent-team-intake.mdc +3 -0
- package/presets/cursor/go/rules/agent-team-orchestrator.mdc +42 -1
- package/presets/cursor/go/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/go/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/go/rules/go-app-core.mdc +6 -0
- package/presets/cursor/go/rules/language-policy.mdc +52 -0
- package/presets/cursor/go/rules/preset-goals.mdc +40 -0
- package/presets/cursor/go/rules/preset-layering.mdc +1 -1
- package/presets/cursor/go/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/go/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/go/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/go/team/README.md +15 -1
- package/presets/cursor/ios-swift/REPO_AGENTS.md +3 -0
- package/presets/cursor/ios-swift/agents/README.md +7 -0
- package/presets/cursor/ios-swift/agents/build-verifier.md +12 -0
- package/presets/cursor/ios-swift/agents/code-reviewer.md +12 -0
- package/presets/cursor/ios-swift/agents/debugger.md +12 -0
- package/presets/cursor/ios-swift/agents/feature-developer.md +12 -0
- package/presets/cursor/ios-swift/agents/task-analyst.md +31 -1
- package/presets/cursor/ios-swift/agents/task-router.md +18 -0
- package/presets/cursor/ios-swift/ai-local/conventions.md +8 -0
- package/presets/cursor/ios-swift/commands/task-continue.md +8 -0
- package/presets/cursor/ios-swift/commands/task.md +14 -1
- package/presets/cursor/ios-swift/hooks/chain-team-phases.sh +369 -16
- package/presets/cursor/ios-swift/rules/README.md +4 -2
- package/presets/cursor/ios-swift/rules/agent-team-intake.mdc +3 -0
- package/presets/cursor/ios-swift/rules/agent-team-orchestrator.mdc +43 -2
- package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/ios-swift/rules/ios-app-core.mdc +6 -0
- package/presets/cursor/ios-swift/rules/language-policy.mdc +52 -0
- package/presets/cursor/ios-swift/rules/mockup-review.mdc +56 -1
- package/presets/cursor/ios-swift/rules/preset-goals.mdc +40 -0
- package/presets/cursor/ios-swift/rules/preset-layering.mdc +1 -1
- package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/ios-swift/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/ios-swift/team/README.md +15 -1
- package/presets/cursor/java/REPO_AGENTS.md +3 -0
- package/presets/cursor/java/agents/README.md +7 -0
- package/presets/cursor/java/agents/build-verifier.md +12 -0
- package/presets/cursor/java/agents/code-reviewer.md +12 -0
- package/presets/cursor/java/agents/debugger.md +12 -0
- package/presets/cursor/java/agents/feature-developer.md +12 -0
- package/presets/cursor/java/agents/task-analyst.md +31 -1
- package/presets/cursor/java/agents/task-router.md +18 -0
- package/presets/cursor/java/ai-local/conventions.md +8 -0
- package/presets/cursor/java/commands/task-continue.md +8 -0
- package/presets/cursor/java/commands/task.md +14 -1
- package/presets/cursor/java/hooks/chain-team-phases.sh +367 -16
- package/presets/cursor/java/rules/README.md +5 -3
- package/presets/cursor/java/rules/agent-team-intake.mdc +3 -0
- package/presets/cursor/java/rules/agent-team-orchestrator.mdc +42 -1
- package/presets/cursor/java/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/java/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/java/rules/java-app-core.mdc +6 -0
- package/presets/cursor/java/rules/language-policy.mdc +52 -0
- package/presets/cursor/java/rules/preset-goals.mdc +40 -0
- package/presets/cursor/java/rules/preset-layering.mdc +1 -1
- package/presets/cursor/java/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/java/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/java/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/java/team/README.md +15 -1
- package/presets/cursor/mcp-ts/REPO_AGENTS.md +3 -0
- package/presets/cursor/mcp-ts/agents/README.md +7 -0
- package/presets/cursor/mcp-ts/agents/build-verifier.md +12 -0
- package/presets/cursor/mcp-ts/agents/feature-developer.md +12 -0
- package/presets/cursor/mcp-ts/agents/task-analyst.md +31 -1
- package/presets/cursor/mcp-ts/agents/task-router.md +18 -0
- package/presets/cursor/mcp-ts/ai-local/conventions.md +8 -0
- package/presets/cursor/mcp-ts/commands/task-continue.md +8 -0
- package/presets/cursor/mcp-ts/commands/task.md +14 -1
- package/presets/cursor/mcp-ts/hooks/chain-team-phases.sh +367 -16
- package/presets/cursor/mcp-ts/rules/README.md +4 -2
- package/presets/cursor/mcp-ts/rules/agent-team-intake.mdc +3 -0
- package/presets/cursor/mcp-ts/rules/agent-team-orchestrator.mdc +42 -1
- package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/mcp-ts/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/mcp-ts/rules/language-policy.mdc +52 -0
- package/presets/cursor/mcp-ts/rules/mcp-ts-app-core.mdc +6 -0
- package/presets/cursor/mcp-ts/rules/preset-goals.mdc +40 -0
- package/presets/cursor/mcp-ts/rules/preset-layering.mdc +1 -1
- package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/mcp-ts/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/mcp-ts/team/README.md +15 -1
- package/presets/cursor/next/REPO_AGENTS.md +3 -0
- package/presets/cursor/next/agents/README.md +7 -1
- package/presets/cursor/next/agents/build-verifier.md +12 -0
- package/presets/cursor/next/agents/code-reviewer.md +23 -0
- package/presets/cursor/next/agents/debugger.md +12 -0
- package/presets/cursor/next/agents/feature-developer.md +20 -2
- package/presets/cursor/next/agents/mockup-reviewer.md +25 -4
- package/presets/cursor/next/agents/task-analyst.md +43 -2
- package/presets/cursor/next/agents/task-router.md +18 -0
- package/presets/cursor/next/ai-local/conventions.md +8 -0
- package/presets/cursor/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/mcp-required-for-ui-layout.md +4 -0
- package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +4 -0
- package/presets/cursor/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/cursor/next/commands/task-continue.md +8 -0
- package/presets/cursor/next/commands/task.md +14 -1
- package/presets/cursor/next/hooks/chain-team-phases.sh +369 -16
- package/presets/cursor/next/rules/README.md +3 -1
- package/presets/cursor/next/rules/agent-team-intake.mdc +3 -0
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +47 -2
- package/presets/cursor/next/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/next/rules/code-review-mr.mdc +10 -0
- package/presets/cursor/next/rules/design-tokens-binding.mdc +23 -1
- package/presets/cursor/next/rules/feature-delivery-workflow.mdc +8 -0
- package/presets/cursor/next/rules/language-policy.mdc +52 -0
- package/presets/cursor/next/rules/mockup-review.mdc +77 -1
- package/presets/cursor/next/rules/next-app-core.mdc +6 -0
- package/presets/cursor/next/rules/preset-goals.mdc +40 -0
- package/presets/cursor/next/rules/preset-layering.mdc +1 -1
- package/presets/cursor/next/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/next/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/next/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/next/skills/README.md +1 -0
- package/presets/cursor/next/skills/code-review/SKILL.md +1 -1
- package/presets/cursor/next/skills/figma-fidelity/SKILL.md +96 -0
- package/presets/cursor/next/skills/mockup-review/SKILL.md +5 -1
- package/presets/cursor/next/team/README.md +16 -1
- package/presets/cursor/next/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/cursor/next/team/fixtures/feature-parallel.json +84 -0
- package/presets/cursor/nuxt/REPO_AGENTS.md +3 -0
- package/presets/cursor/nuxt/agents/README.md +7 -0
- package/presets/cursor/nuxt/agents/build-verifier.md +12 -0
- package/presets/cursor/nuxt/agents/code-reviewer.md +12 -0
- package/presets/cursor/nuxt/agents/debugger.md +12 -0
- package/presets/cursor/nuxt/agents/feature-developer.md +12 -0
- package/presets/cursor/nuxt/agents/task-analyst.md +43 -2
- package/presets/cursor/nuxt/agents/task-router.md +18 -0
- package/presets/cursor/nuxt/ai-local/conventions.md +8 -0
- package/presets/cursor/nuxt/commands/task-continue.md +8 -0
- package/presets/cursor/nuxt/commands/task.md +14 -1
- package/presets/cursor/nuxt/hooks/chain-team-phases.sh +369 -16
- package/presets/cursor/nuxt/rules/README.md +3 -1
- package/presets/cursor/nuxt/rules/agent-team-intake.mdc +3 -0
- package/presets/cursor/nuxt/rules/agent-team-orchestrator.mdc +43 -2
- package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/nuxt/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/nuxt/rules/language-policy.mdc +52 -0
- package/presets/cursor/nuxt/rules/mockup-review.mdc +56 -1
- package/presets/cursor/nuxt/rules/nuxt-app-core.mdc +6 -0
- package/presets/cursor/nuxt/rules/preset-goals.mdc +40 -0
- package/presets/cursor/nuxt/rules/preset-layering.mdc +1 -1
- package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/nuxt/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/nuxt/team/README.md +15 -1
- package/presets/cursor/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/cursor/php-hexagonal/REPO_AGENTS.md +3 -0
- package/presets/cursor/php-hexagonal/agents/README.md +7 -0
- package/presets/cursor/php-hexagonal/agents/build-verifier.md +12 -0
- package/presets/cursor/php-hexagonal/agents/code-reviewer.md +12 -0
- package/presets/cursor/php-hexagonal/agents/debugger.md +12 -0
- package/presets/cursor/php-hexagonal/agents/feature-developer.md +12 -0
- package/presets/cursor/php-hexagonal/agents/task-analyst.md +31 -1
- package/presets/cursor/php-hexagonal/agents/task-router.md +18 -0
- package/presets/cursor/php-hexagonal/ai-local/conventions.md +8 -0
- package/presets/cursor/php-hexagonal/commands/task-continue.md +8 -0
- package/presets/cursor/php-hexagonal/commands/task.md +14 -1
- package/presets/cursor/php-hexagonal/hooks/chain-team-phases.sh +367 -16
- package/presets/cursor/php-hexagonal/rules/README.md +5 -3
- package/presets/cursor/php-hexagonal/rules/agent-team-intake.mdc +3 -0
- package/presets/cursor/php-hexagonal/rules/agent-team-orchestrator.mdc +42 -1
- package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/php-hexagonal/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/php-hexagonal/rules/language-policy.mdc +52 -0
- package/presets/cursor/php-hexagonal/rules/php-app-core.mdc +6 -0
- package/presets/cursor/php-hexagonal/rules/preset-goals.mdc +40 -0
- package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +1 -1
- package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/php-hexagonal/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/php-hexagonal/team/README.md +15 -1
- package/presets/cursor/php-laravel/REPO_AGENTS.md +3 -0
- package/presets/cursor/php-laravel/agents/README.md +7 -0
- package/presets/cursor/php-laravel/agents/build-verifier.md +12 -0
- package/presets/cursor/php-laravel/agents/code-reviewer.md +12 -0
- package/presets/cursor/php-laravel/agents/debugger.md +12 -0
- package/presets/cursor/php-laravel/agents/feature-developer.md +12 -0
- package/presets/cursor/php-laravel/agents/task-analyst.md +31 -1
- package/presets/cursor/php-laravel/agents/task-router.md +18 -0
- package/presets/cursor/php-laravel/ai-local/conventions.md +8 -0
- package/presets/cursor/php-laravel/commands/task-continue.md +8 -0
- package/presets/cursor/php-laravel/commands/task.md +14 -1
- package/presets/cursor/php-laravel/hooks/chain-team-phases.sh +367 -16
- package/presets/cursor/php-laravel/rules/README.md +5 -3
- package/presets/cursor/php-laravel/rules/agent-team-intake.mdc +3 -0
- package/presets/cursor/php-laravel/rules/agent-team-orchestrator.mdc +42 -1
- package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/php-laravel/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/php-laravel/rules/language-policy.mdc +52 -0
- package/presets/cursor/php-laravel/rules/laravel-app-core.mdc +6 -0
- package/presets/cursor/php-laravel/rules/preset-goals.mdc +40 -0
- package/presets/cursor/php-laravel/rules/preset-layering.mdc +1 -1
- package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/php-laravel/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/php-laravel/team/README.md +15 -1
- package/presets/cursor/svelte/REPO_AGENTS.md +3 -0
- package/presets/cursor/svelte/agents/README.md +7 -0
- package/presets/cursor/svelte/agents/build-verifier.md +12 -0
- package/presets/cursor/svelte/agents/code-reviewer.md +12 -0
- package/presets/cursor/svelte/agents/debugger.md +12 -0
- package/presets/cursor/svelte/agents/feature-developer.md +12 -0
- package/presets/cursor/svelte/agents/task-analyst.md +43 -2
- package/presets/cursor/svelte/agents/task-router.md +18 -0
- package/presets/cursor/svelte/ai-local/conventions.md +8 -0
- package/presets/cursor/svelte/commands/task-continue.md +8 -0
- package/presets/cursor/svelte/commands/task.md +14 -1
- package/presets/cursor/svelte/hooks/chain-team-phases.sh +369 -16
- package/presets/cursor/svelte/rules/README.md +3 -1
- package/presets/cursor/svelte/rules/agent-team-intake.mdc +3 -0
- package/presets/cursor/svelte/rules/agent-team-orchestrator.mdc +43 -2
- package/presets/cursor/svelte/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/svelte/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/svelte/rules/language-policy.mdc +52 -0
- package/presets/cursor/svelte/rules/mockup-review.mdc +56 -1
- package/presets/cursor/svelte/rules/preset-goals.mdc +40 -0
- package/presets/cursor/svelte/rules/preset-layering.mdc +1 -1
- package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/svelte/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/svelte/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/svelte/rules/svelte-app-core.mdc +6 -0
- package/presets/cursor/svelte/team/README.md +15 -1
- package/presets/cursor/svelte/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/mavis/android-kotlin/REPO_AGENTS.md +3 -0
- package/presets/mavis/android-kotlin/adapter-map.json +29 -2
- package/presets/mavis/android-kotlin/agents/README.md +7 -0
- package/presets/mavis/android-kotlin/agents/build-verifier.md +12 -0
- package/presets/mavis/android-kotlin/agents/code-reviewer.md +12 -0
- package/presets/mavis/android-kotlin/agents/debugger.md +12 -0
- package/presets/mavis/android-kotlin/agents/feature-developer.md +12 -0
- package/presets/mavis/android-kotlin/agents/task-analyst.md +31 -1
- package/presets/mavis/android-kotlin/agents/task-router.md +18 -0
- package/presets/mavis/android-kotlin/ai-local/conventions.md +8 -0
- package/presets/mavis/android-kotlin/commands/task-continue.md +8 -0
- package/presets/mavis/android-kotlin/commands/task.md +14 -1
- package/presets/mavis/android-kotlin/hooks/chain-team-phases.sh +369 -16
- package/presets/mavis/android-kotlin/rules/agent-team-intake.md +3 -0
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +39 -5
- package/presets/mavis/android-kotlin/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/android-kotlin/rules/android-app-core.md +6 -0
- package/presets/mavis/android-kotlin/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/android-kotlin/rules/feature-delivery-workflow.md +4 -0
- package/presets/mavis/android-kotlin/rules/language-policy.md +43 -0
- package/presets/mavis/android-kotlin/rules/mockup-review.md +56 -1
- package/presets/mavis/android-kotlin/rules/preset-goals.md +31 -0
- package/presets/mavis/android-kotlin/rules/preset-layering.md +1 -1
- package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/android-kotlin/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/android-kotlin/rules/preset-writing-style.md +42 -0
- package/presets/mavis/android-kotlin/team/README.md +15 -1
- package/presets/mavis/go/REPO_AGENTS.md +3 -0
- package/presets/mavis/go/adapter-map.json +30 -3
- package/presets/mavis/go/agents/README.md +5 -0
- package/presets/mavis/go/agents/build-verifier.md +12 -0
- package/presets/mavis/go/agents/code-reviewer.md +12 -0
- package/presets/mavis/go/agents/debugger.md +12 -0
- package/presets/mavis/go/agents/feature-developer.md +12 -0
- package/presets/mavis/go/agents/task-analyst.md +31 -1
- package/presets/mavis/go/agents/task-router.md +18 -0
- package/presets/mavis/go/ai-local/conventions.md +8 -0
- package/presets/mavis/go/commands/task-continue.md +8 -0
- package/presets/mavis/go/commands/task.md +14 -1
- package/presets/mavis/go/hooks/chain-team-phases.sh +367 -16
- package/presets/mavis/go/rules/agent-team-intake.md +3 -0
- package/presets/mavis/go/rules/agent-team-orchestrator.md +39 -5
- package/presets/mavis/go/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/go/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/go/rules/feature-delivery-workflow.md +11 -1
- package/presets/mavis/go/rules/go-app-core.md +6 -0
- package/presets/mavis/go/rules/language-policy.md +43 -0
- package/presets/mavis/go/rules/preset-goals.md +31 -0
- package/presets/mavis/go/rules/preset-layering.md +1 -1
- package/presets/mavis/go/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/go/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/go/rules/preset-writing-style.md +42 -0
- package/presets/mavis/go/team/README.md +15 -1
- package/presets/mavis/ios-swift/REPO_AGENTS.md +3 -0
- package/presets/mavis/ios-swift/adapter-map.json +29 -2
- package/presets/mavis/ios-swift/agents/README.md +7 -0
- package/presets/mavis/ios-swift/agents/build-verifier.md +12 -0
- package/presets/mavis/ios-swift/agents/code-reviewer.md +12 -0
- package/presets/mavis/ios-swift/agents/debugger.md +12 -0
- package/presets/mavis/ios-swift/agents/feature-developer.md +12 -0
- package/presets/mavis/ios-swift/agents/task-analyst.md +31 -1
- package/presets/mavis/ios-swift/agents/task-router.md +18 -0
- package/presets/mavis/ios-swift/ai-local/conventions.md +8 -0
- package/presets/mavis/ios-swift/commands/task-continue.md +8 -0
- package/presets/mavis/ios-swift/commands/task.md +14 -1
- package/presets/mavis/ios-swift/hooks/chain-team-phases.sh +369 -16
- package/presets/mavis/ios-swift/rules/agent-team-intake.md +3 -0
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +39 -5
- package/presets/mavis/ios-swift/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/ios-swift/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +15 -1
- package/presets/mavis/ios-swift/rules/ios-app-core.md +6 -0
- package/presets/mavis/ios-swift/rules/language-policy.md +43 -0
- package/presets/mavis/ios-swift/rules/mockup-review.md +56 -1
- package/presets/mavis/ios-swift/rules/preset-goals.md +31 -0
- package/presets/mavis/ios-swift/rules/preset-layering.md +1 -1
- package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/ios-swift/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/ios-swift/rules/preset-writing-style.md +42 -0
- package/presets/mavis/ios-swift/team/README.md +15 -1
- package/presets/mavis/java/REPO_AGENTS.md +3 -0
- package/presets/mavis/java/adapter-map.json +30 -3
- package/presets/mavis/java/agents/README.md +5 -0
- package/presets/mavis/java/agents/build-verifier.md +12 -0
- package/presets/mavis/java/agents/code-reviewer.md +12 -0
- package/presets/mavis/java/agents/debugger.md +12 -0
- package/presets/mavis/java/agents/feature-developer.md +12 -0
- package/presets/mavis/java/agents/task-analyst.md +31 -1
- package/presets/mavis/java/agents/task-router.md +18 -0
- package/presets/mavis/java/ai-local/conventions.md +8 -0
- package/presets/mavis/java/commands/task-continue.md +8 -0
- package/presets/mavis/java/commands/task.md +14 -1
- package/presets/mavis/java/hooks/chain-team-phases.sh +367 -16
- package/presets/mavis/java/rules/agent-team-intake.md +3 -0
- package/presets/mavis/java/rules/agent-team-orchestrator.md +39 -5
- package/presets/mavis/java/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/java/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/java/rules/feature-delivery-workflow.md +11 -1
- package/presets/mavis/java/rules/java-app-core.md +6 -0
- package/presets/mavis/java/rules/language-policy.md +43 -0
- package/presets/mavis/java/rules/preset-goals.md +31 -0
- package/presets/mavis/java/rules/preset-layering.md +1 -1
- package/presets/mavis/java/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/java/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/java/rules/preset-writing-style.md +42 -0
- package/presets/mavis/java/team/README.md +15 -1
- package/presets/mavis/mcp-ts/REPO_AGENTS.md +3 -0
- package/presets/mavis/mcp-ts/adapter-map.json +28 -1
- package/presets/mavis/mcp-ts/agents/README.md +7 -0
- package/presets/mavis/mcp-ts/agents/build-verifier.md +12 -0
- package/presets/mavis/mcp-ts/agents/feature-developer.md +12 -0
- package/presets/mavis/mcp-ts/agents/task-analyst.md +31 -1
- package/presets/mavis/mcp-ts/agents/task-router.md +18 -0
- package/presets/mavis/mcp-ts/ai-local/conventions.md +8 -0
- package/presets/mavis/mcp-ts/commands/task-continue.md +8 -0
- package/presets/mavis/mcp-ts/commands/task.md +14 -1
- package/presets/mavis/mcp-ts/hooks/chain-team-phases.sh +367 -16
- package/presets/mavis/mcp-ts/rules/agent-team-intake.md +3 -0
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +39 -5
- package/presets/mavis/mcp-ts/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/mcp-ts/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/mcp-ts/rules/feature-delivery-workflow.md +11 -1
- package/presets/mavis/mcp-ts/rules/language-policy.md +43 -0
- package/presets/mavis/mcp-ts/rules/mcp-ts-app-core.md +6 -0
- package/presets/mavis/mcp-ts/rules/preset-goals.md +31 -0
- package/presets/mavis/mcp-ts/rules/preset-layering.md +1 -1
- package/presets/mavis/mcp-ts/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/mcp-ts/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/mcp-ts/rules/preset-writing-style.md +42 -0
- package/presets/mavis/mcp-ts/team/README.md +15 -1
- package/presets/mavis/next/REPO_AGENTS.md +3 -0
- package/presets/mavis/next/adapter-map.json +46 -3
- package/presets/mavis/next/agents/README.md +6 -0
- package/presets/mavis/next/agents/build-verifier.md +12 -0
- package/presets/mavis/next/agents/code-reviewer.md +23 -0
- package/presets/mavis/next/agents/debugger.md +12 -0
- package/presets/mavis/next/agents/feature-developer.md +20 -2
- package/presets/mavis/next/agents/mockup-reviewer.md +25 -4
- package/presets/mavis/next/agents/task-analyst.md +43 -2
- package/presets/mavis/next/agents/task-router.md +18 -0
- package/presets/mavis/next/ai-local/conventions.md +8 -0
- package/presets/mavis/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/mcp-required-for-ui-layout.md +4 -0
- package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +4 -0
- package/presets/mavis/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/mavis/next/commands/task-continue.md +8 -0
- package/presets/mavis/next/commands/task.md +14 -1
- package/presets/mavis/next/hooks/chain-team-phases.sh +369 -16
- package/presets/mavis/next/rules/agent-team-intake.md +3 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +39 -5
- package/presets/mavis/next/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/next/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/next/rules/code-review-mr.md +10 -0
- package/presets/mavis/next/rules/design-tokens-binding.md +23 -1
- package/presets/mavis/next/rules/feature-delivery-workflow.md +19 -1
- package/presets/mavis/next/rules/language-policy.md +43 -0
- package/presets/mavis/next/rules/mockup-review.md +77 -1
- package/presets/mavis/next/rules/next-app-core.md +6 -0
- package/presets/mavis/next/rules/preset-goals.md +31 -0
- package/presets/mavis/next/rules/preset-layering.md +1 -1
- package/presets/mavis/next/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/next/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/next/rules/preset-writing-style.md +42 -0
- package/presets/mavis/next/skills/README.md +1 -0
- package/presets/mavis/next/skills/code-review/SKILL.md +1 -1
- package/presets/mavis/next/skills/figma-fidelity/SKILL.md +91 -0
- package/presets/mavis/next/skills/mockup-review/SKILL.md +5 -1
- package/presets/mavis/next/team/README.md +16 -1
- package/presets/mavis/next/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/mavis/next/team/fixtures/feature-parallel.json +84 -0
- package/presets/mavis/nuxt/REPO_AGENTS.md +3 -0
- package/presets/mavis/nuxt/adapter-map.json +30 -3
- package/presets/mavis/nuxt/agents/README.md +7 -0
- package/presets/mavis/nuxt/agents/build-verifier.md +12 -0
- package/presets/mavis/nuxt/agents/code-reviewer.md +12 -0
- package/presets/mavis/nuxt/agents/debugger.md +12 -0
- package/presets/mavis/nuxt/agents/feature-developer.md +12 -0
- package/presets/mavis/nuxt/agents/task-analyst.md +43 -2
- package/presets/mavis/nuxt/agents/task-router.md +18 -0
- package/presets/mavis/nuxt/ai-local/conventions.md +8 -0
- package/presets/mavis/nuxt/commands/task-continue.md +8 -0
- package/presets/mavis/nuxt/commands/task.md +14 -1
- package/presets/mavis/nuxt/hooks/chain-team-phases.sh +369 -16
- package/presets/mavis/nuxt/rules/agent-team-intake.md +3 -0
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +39 -5
- package/presets/mavis/nuxt/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/nuxt/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +15 -1
- package/presets/mavis/nuxt/rules/language-policy.md +43 -0
- package/presets/mavis/nuxt/rules/mockup-review.md +56 -1
- package/presets/mavis/nuxt/rules/nuxt-app-core.md +6 -0
- package/presets/mavis/nuxt/rules/preset-goals.md +31 -0
- package/presets/mavis/nuxt/rules/preset-layering.md +1 -1
- package/presets/mavis/nuxt/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/nuxt/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/nuxt/rules/preset-writing-style.md +42 -0
- package/presets/mavis/nuxt/team/README.md +15 -1
- package/presets/mavis/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/mavis/php-hexagonal/REPO_AGENTS.md +3 -0
- package/presets/mavis/php-hexagonal/adapter-map.json +30 -3
- package/presets/mavis/php-hexagonal/agents/README.md +5 -0
- package/presets/mavis/php-hexagonal/agents/build-verifier.md +12 -0
- package/presets/mavis/php-hexagonal/agents/code-reviewer.md +12 -0
- package/presets/mavis/php-hexagonal/agents/debugger.md +12 -0
- package/presets/mavis/php-hexagonal/agents/feature-developer.md +12 -0
- package/presets/mavis/php-hexagonal/agents/task-analyst.md +31 -1
- package/presets/mavis/php-hexagonal/agents/task-router.md +18 -0
- package/presets/mavis/php-hexagonal/ai-local/conventions.md +8 -0
- package/presets/mavis/php-hexagonal/commands/task-continue.md +8 -0
- package/presets/mavis/php-hexagonal/commands/task.md +14 -1
- package/presets/mavis/php-hexagonal/hooks/chain-team-phases.sh +367 -16
- package/presets/mavis/php-hexagonal/rules/agent-team-intake.md +3 -0
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +39 -5
- package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/php-hexagonal/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +11 -1
- package/presets/mavis/php-hexagonal/rules/language-policy.md +43 -0
- package/presets/mavis/php-hexagonal/rules/php-app-core.md +6 -0
- package/presets/mavis/php-hexagonal/rules/preset-goals.md +31 -0
- package/presets/mavis/php-hexagonal/rules/preset-layering.md +1 -1
- package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/php-hexagonal/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/php-hexagonal/rules/preset-writing-style.md +42 -0
- package/presets/mavis/php-hexagonal/team/README.md +15 -1
- package/presets/mavis/php-laravel/REPO_AGENTS.md +3 -0
- package/presets/mavis/php-laravel/adapter-map.json +30 -3
- package/presets/mavis/php-laravel/agents/README.md +5 -0
- package/presets/mavis/php-laravel/agents/build-verifier.md +12 -0
- package/presets/mavis/php-laravel/agents/code-reviewer.md +12 -0
- package/presets/mavis/php-laravel/agents/debugger.md +12 -0
- package/presets/mavis/php-laravel/agents/feature-developer.md +12 -0
- package/presets/mavis/php-laravel/agents/task-analyst.md +31 -1
- package/presets/mavis/php-laravel/agents/task-router.md +18 -0
- package/presets/mavis/php-laravel/ai-local/conventions.md +8 -0
- package/presets/mavis/php-laravel/commands/task-continue.md +8 -0
- package/presets/mavis/php-laravel/commands/task.md +14 -1
- package/presets/mavis/php-laravel/hooks/chain-team-phases.sh +367 -16
- package/presets/mavis/php-laravel/rules/agent-team-intake.md +3 -0
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +39 -5
- package/presets/mavis/php-laravel/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/php-laravel/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +11 -1
- package/presets/mavis/php-laravel/rules/language-policy.md +43 -0
- package/presets/mavis/php-laravel/rules/laravel-app-core.md +6 -0
- package/presets/mavis/php-laravel/rules/preset-goals.md +31 -0
- package/presets/mavis/php-laravel/rules/preset-layering.md +1 -1
- package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/php-laravel/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/php-laravel/rules/preset-writing-style.md +42 -0
- package/presets/mavis/php-laravel/team/README.md +15 -1
- package/presets/mavis/svelte/REPO_AGENTS.md +3 -0
- package/presets/mavis/svelte/adapter-map.json +30 -3
- package/presets/mavis/svelte/agents/README.md +7 -0
- package/presets/mavis/svelte/agents/build-verifier.md +12 -0
- package/presets/mavis/svelte/agents/code-reviewer.md +12 -0
- package/presets/mavis/svelte/agents/debugger.md +12 -0
- package/presets/mavis/svelte/agents/feature-developer.md +12 -0
- package/presets/mavis/svelte/agents/task-analyst.md +43 -2
- package/presets/mavis/svelte/agents/task-router.md +18 -0
- package/presets/mavis/svelte/ai-local/conventions.md +8 -0
- package/presets/mavis/svelte/commands/task-continue.md +8 -0
- package/presets/mavis/svelte/commands/task.md +14 -1
- package/presets/mavis/svelte/hooks/chain-team-phases.sh +369 -16
- package/presets/mavis/svelte/rules/agent-team-intake.md +3 -0
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +39 -5
- package/presets/mavis/svelte/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/svelte/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/svelte/rules/feature-delivery-workflow.md +15 -1
- package/presets/mavis/svelte/rules/language-policy.md +43 -0
- package/presets/mavis/svelte/rules/mockup-review.md +56 -1
- package/presets/mavis/svelte/rules/preset-goals.md +31 -0
- package/presets/mavis/svelte/rules/preset-layering.md +1 -1
- package/presets/mavis/svelte/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/svelte/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/svelte/rules/preset-writing-style.md +42 -0
- package/presets/mavis/svelte/rules/svelte-app-core.md +6 -0
- package/presets/mavis/svelte/team/README.md +15 -1
- package/presets/mavis/svelte/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/opencode/android-kotlin/REPO_AGENTS.md +3 -0
- package/presets/opencode/android-kotlin/adapter-map.json +29 -2
- package/presets/opencode/android-kotlin/agents/README.md +7 -0
- package/presets/opencode/android-kotlin/agents/build-verifier.md +12 -0
- package/presets/opencode/android-kotlin/agents/code-reviewer.md +12 -0
- package/presets/opencode/android-kotlin/agents/debugger.md +12 -0
- package/presets/opencode/android-kotlin/agents/feature-developer.md +12 -0
- package/presets/opencode/android-kotlin/agents/task-analyst.md +31 -1
- package/presets/opencode/android-kotlin/agents/task-router.md +18 -0
- package/presets/opencode/android-kotlin/ai-local/conventions.md +8 -0
- package/presets/opencode/android-kotlin/commands/task-continue.md +8 -0
- package/presets/opencode/android-kotlin/commands/task.md +14 -1
- package/presets/opencode/android-kotlin/hooks/chain-team-phases.sh +369 -16
- package/presets/opencode/android-kotlin/rules/agent-team-intake.md +3 -0
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +39 -5
- package/presets/opencode/android-kotlin/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/android-kotlin/rules/android-app-core.md +6 -0
- package/presets/opencode/android-kotlin/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/android-kotlin/rules/feature-delivery-workflow.md +4 -0
- package/presets/opencode/android-kotlin/rules/language-policy.md +43 -0
- package/presets/opencode/android-kotlin/rules/mockup-review.md +56 -1
- package/presets/opencode/android-kotlin/rules/preset-goals.md +31 -0
- package/presets/opencode/android-kotlin/rules/preset-layering.md +1 -1
- package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/android-kotlin/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/android-kotlin/rules/preset-writing-style.md +42 -0
- package/presets/opencode/android-kotlin/team/README.md +15 -1
- package/presets/opencode/go/REPO_AGENTS.md +3 -0
- package/presets/opencode/go/adapter-map.json +30 -3
- package/presets/opencode/go/agents/README.md +5 -0
- package/presets/opencode/go/agents/build-verifier.md +12 -0
- package/presets/opencode/go/agents/code-reviewer.md +12 -0
- package/presets/opencode/go/agents/debugger.md +12 -0
- package/presets/opencode/go/agents/feature-developer.md +12 -0
- package/presets/opencode/go/agents/task-analyst.md +31 -1
- package/presets/opencode/go/agents/task-router.md +18 -0
- package/presets/opencode/go/ai-local/conventions.md +8 -0
- package/presets/opencode/go/commands/task-continue.md +8 -0
- package/presets/opencode/go/commands/task.md +14 -1
- package/presets/opencode/go/hooks/chain-team-phases.sh +367 -16
- package/presets/opencode/go/rules/agent-team-intake.md +3 -0
- package/presets/opencode/go/rules/agent-team-orchestrator.md +39 -5
- package/presets/opencode/go/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/go/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/go/rules/feature-delivery-workflow.md +11 -1
- package/presets/opencode/go/rules/go-app-core.md +6 -0
- package/presets/opencode/go/rules/language-policy.md +43 -0
- package/presets/opencode/go/rules/preset-goals.md +31 -0
- package/presets/opencode/go/rules/preset-layering.md +1 -1
- package/presets/opencode/go/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/go/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/go/rules/preset-writing-style.md +42 -0
- package/presets/opencode/go/team/README.md +15 -1
- package/presets/opencode/ios-swift/REPO_AGENTS.md +3 -0
- package/presets/opencode/ios-swift/adapter-map.json +29 -2
- package/presets/opencode/ios-swift/agents/README.md +7 -0
- package/presets/opencode/ios-swift/agents/build-verifier.md +12 -0
- package/presets/opencode/ios-swift/agents/code-reviewer.md +12 -0
- package/presets/opencode/ios-swift/agents/debugger.md +12 -0
- package/presets/opencode/ios-swift/agents/feature-developer.md +12 -0
- package/presets/opencode/ios-swift/agents/task-analyst.md +31 -1
- package/presets/opencode/ios-swift/agents/task-router.md +18 -0
- package/presets/opencode/ios-swift/ai-local/conventions.md +8 -0
- package/presets/opencode/ios-swift/commands/task-continue.md +8 -0
- package/presets/opencode/ios-swift/commands/task.md +14 -1
- package/presets/opencode/ios-swift/hooks/chain-team-phases.sh +369 -16
- package/presets/opencode/ios-swift/rules/agent-team-intake.md +3 -0
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +39 -5
- package/presets/opencode/ios-swift/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/ios-swift/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +15 -1
- package/presets/opencode/ios-swift/rules/ios-app-core.md +6 -0
- package/presets/opencode/ios-swift/rules/language-policy.md +43 -0
- package/presets/opencode/ios-swift/rules/mockup-review.md +56 -1
- package/presets/opencode/ios-swift/rules/preset-goals.md +31 -0
- package/presets/opencode/ios-swift/rules/preset-layering.md +1 -1
- package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/ios-swift/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/ios-swift/rules/preset-writing-style.md +42 -0
- package/presets/opencode/ios-swift/team/README.md +15 -1
- package/presets/opencode/java/REPO_AGENTS.md +3 -0
- package/presets/opencode/java/adapter-map.json +30 -3
- package/presets/opencode/java/agents/README.md +5 -0
- package/presets/opencode/java/agents/build-verifier.md +12 -0
- package/presets/opencode/java/agents/code-reviewer.md +12 -0
- package/presets/opencode/java/agents/debugger.md +12 -0
- package/presets/opencode/java/agents/feature-developer.md +12 -0
- package/presets/opencode/java/agents/task-analyst.md +31 -1
- package/presets/opencode/java/agents/task-router.md +18 -0
- package/presets/opencode/java/ai-local/conventions.md +8 -0
- package/presets/opencode/java/commands/task-continue.md +8 -0
- package/presets/opencode/java/commands/task.md +14 -1
- package/presets/opencode/java/hooks/chain-team-phases.sh +367 -16
- package/presets/opencode/java/rules/agent-team-intake.md +3 -0
- package/presets/opencode/java/rules/agent-team-orchestrator.md +39 -5
- package/presets/opencode/java/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/java/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/java/rules/feature-delivery-workflow.md +11 -1
- package/presets/opencode/java/rules/java-app-core.md +6 -0
- package/presets/opencode/java/rules/language-policy.md +43 -0
- package/presets/opencode/java/rules/preset-goals.md +31 -0
- package/presets/opencode/java/rules/preset-layering.md +1 -1
- package/presets/opencode/java/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/java/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/java/rules/preset-writing-style.md +42 -0
- package/presets/opencode/java/team/README.md +15 -1
- package/presets/opencode/mcp-ts/REPO_AGENTS.md +3 -0
- package/presets/opencode/mcp-ts/adapter-map.json +28 -1
- package/presets/opencode/mcp-ts/agents/README.md +7 -0
- package/presets/opencode/mcp-ts/agents/build-verifier.md +12 -0
- package/presets/opencode/mcp-ts/agents/feature-developer.md +12 -0
- package/presets/opencode/mcp-ts/agents/task-analyst.md +31 -1
- package/presets/opencode/mcp-ts/agents/task-router.md +18 -0
- package/presets/opencode/mcp-ts/ai-local/conventions.md +8 -0
- package/presets/opencode/mcp-ts/commands/task-continue.md +8 -0
- package/presets/opencode/mcp-ts/commands/task.md +14 -1
- package/presets/opencode/mcp-ts/hooks/chain-team-phases.sh +367 -16
- package/presets/opencode/mcp-ts/rules/agent-team-intake.md +3 -0
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +39 -5
- package/presets/opencode/mcp-ts/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/mcp-ts/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/mcp-ts/rules/feature-delivery-workflow.md +11 -1
- package/presets/opencode/mcp-ts/rules/language-policy.md +43 -0
- package/presets/opencode/mcp-ts/rules/mcp-ts-app-core.md +6 -0
- package/presets/opencode/mcp-ts/rules/preset-goals.md +31 -0
- package/presets/opencode/mcp-ts/rules/preset-layering.md +1 -1
- package/presets/opencode/mcp-ts/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/mcp-ts/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/mcp-ts/rules/preset-writing-style.md +42 -0
- package/presets/opencode/mcp-ts/team/README.md +15 -1
- package/presets/opencode/next/REPO_AGENTS.md +3 -0
- package/presets/opencode/next/adapter-map.json +46 -3
- package/presets/opencode/next/agents/README.md +6 -0
- package/presets/opencode/next/agents/build-verifier.md +12 -0
- package/presets/opencode/next/agents/code-reviewer.md +23 -0
- package/presets/opencode/next/agents/debugger.md +12 -0
- package/presets/opencode/next/agents/feature-developer.md +20 -2
- package/presets/opencode/next/agents/mockup-reviewer.md +25 -4
- package/presets/opencode/next/agents/task-analyst.md +43 -2
- package/presets/opencode/next/agents/task-router.md +18 -0
- package/presets/opencode/next/ai-local/conventions.md +8 -0
- package/presets/opencode/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/mcp-required-for-ui-layout.md +4 -0
- package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +4 -0
- package/presets/opencode/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/opencode/next/commands/task-continue.md +8 -0
- package/presets/opencode/next/commands/task.md +14 -1
- package/presets/opencode/next/hooks/chain-team-phases.sh +369 -16
- package/presets/opencode/next/rules/agent-team-intake.md +3 -0
- package/presets/opencode/next/rules/agent-team-orchestrator.md +39 -5
- package/presets/opencode/next/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/next/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/next/rules/code-review-mr.md +10 -0
- package/presets/opencode/next/rules/design-tokens-binding.md +23 -1
- package/presets/opencode/next/rules/feature-delivery-workflow.md +19 -1
- package/presets/opencode/next/rules/language-policy.md +43 -0
- package/presets/opencode/next/rules/mockup-review.md +77 -1
- package/presets/opencode/next/rules/next-app-core.md +6 -0
- package/presets/opencode/next/rules/preset-goals.md +31 -0
- package/presets/opencode/next/rules/preset-layering.md +1 -1
- package/presets/opencode/next/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/next/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/next/rules/preset-writing-style.md +42 -0
- package/presets/opencode/next/skills/README.md +1 -0
- package/presets/opencode/next/skills/code-review/SKILL.md +1 -1
- package/presets/opencode/next/skills/figma-fidelity/SKILL.md +96 -0
- package/presets/opencode/next/skills/mockup-review/SKILL.md +5 -1
- package/presets/opencode/next/team/README.md +16 -1
- package/presets/opencode/next/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/opencode/next/team/fixtures/feature-parallel.json +84 -0
- package/presets/opencode/nuxt/REPO_AGENTS.md +3 -0
- package/presets/opencode/nuxt/adapter-map.json +30 -3
- package/presets/opencode/nuxt/agents/README.md +7 -0
- package/presets/opencode/nuxt/agents/build-verifier.md +12 -0
- package/presets/opencode/nuxt/agents/code-reviewer.md +12 -0
- package/presets/opencode/nuxt/agents/debugger.md +12 -0
- package/presets/opencode/nuxt/agents/feature-developer.md +12 -0
- package/presets/opencode/nuxt/agents/task-analyst.md +43 -2
- package/presets/opencode/nuxt/agents/task-router.md +18 -0
- package/presets/opencode/nuxt/ai-local/conventions.md +8 -0
- package/presets/opencode/nuxt/commands/task-continue.md +8 -0
- package/presets/opencode/nuxt/commands/task.md +14 -1
- package/presets/opencode/nuxt/hooks/chain-team-phases.sh +369 -16
- package/presets/opencode/nuxt/rules/agent-team-intake.md +3 -0
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +39 -5
- package/presets/opencode/nuxt/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/nuxt/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +15 -1
- package/presets/opencode/nuxt/rules/language-policy.md +43 -0
- package/presets/opencode/nuxt/rules/mockup-review.md +56 -1
- package/presets/opencode/nuxt/rules/nuxt-app-core.md +6 -0
- package/presets/opencode/nuxt/rules/preset-goals.md +31 -0
- package/presets/opencode/nuxt/rules/preset-layering.md +1 -1
- package/presets/opencode/nuxt/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/nuxt/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/nuxt/rules/preset-writing-style.md +42 -0
- package/presets/opencode/nuxt/team/README.md +15 -1
- package/presets/opencode/nuxt/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/opencode/php-hexagonal/REPO_AGENTS.md +3 -0
- package/presets/opencode/php-hexagonal/adapter-map.json +30 -3
- package/presets/opencode/php-hexagonal/agents/README.md +5 -0
- package/presets/opencode/php-hexagonal/agents/build-verifier.md +12 -0
- package/presets/opencode/php-hexagonal/agents/code-reviewer.md +12 -0
- package/presets/opencode/php-hexagonal/agents/debugger.md +12 -0
- package/presets/opencode/php-hexagonal/agents/feature-developer.md +12 -0
- package/presets/opencode/php-hexagonal/agents/task-analyst.md +31 -1
- package/presets/opencode/php-hexagonal/agents/task-router.md +18 -0
- package/presets/opencode/php-hexagonal/ai-local/conventions.md +8 -0
- package/presets/opencode/php-hexagonal/commands/task-continue.md +8 -0
- package/presets/opencode/php-hexagonal/commands/task.md +14 -1
- package/presets/opencode/php-hexagonal/hooks/chain-team-phases.sh +367 -16
- package/presets/opencode/php-hexagonal/rules/agent-team-intake.md +3 -0
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +39 -5
- package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/php-hexagonal/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +11 -1
- package/presets/opencode/php-hexagonal/rules/language-policy.md +43 -0
- package/presets/opencode/php-hexagonal/rules/php-app-core.md +6 -0
- package/presets/opencode/php-hexagonal/rules/preset-goals.md +31 -0
- package/presets/opencode/php-hexagonal/rules/preset-layering.md +1 -1
- package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/php-hexagonal/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/php-hexagonal/rules/preset-writing-style.md +42 -0
- package/presets/opencode/php-hexagonal/team/README.md +15 -1
- package/presets/opencode/php-laravel/REPO_AGENTS.md +3 -0
- package/presets/opencode/php-laravel/adapter-map.json +30 -3
- package/presets/opencode/php-laravel/agents/README.md +5 -0
- package/presets/opencode/php-laravel/agents/build-verifier.md +12 -0
- package/presets/opencode/php-laravel/agents/code-reviewer.md +12 -0
- package/presets/opencode/php-laravel/agents/debugger.md +12 -0
- package/presets/opencode/php-laravel/agents/feature-developer.md +12 -0
- package/presets/opencode/php-laravel/agents/task-analyst.md +31 -1
- package/presets/opencode/php-laravel/agents/task-router.md +18 -0
- package/presets/opencode/php-laravel/ai-local/conventions.md +8 -0
- package/presets/opencode/php-laravel/commands/task-continue.md +8 -0
- package/presets/opencode/php-laravel/commands/task.md +14 -1
- package/presets/opencode/php-laravel/hooks/chain-team-phases.sh +367 -16
- package/presets/opencode/php-laravel/rules/agent-team-intake.md +3 -0
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +39 -5
- package/presets/opencode/php-laravel/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/php-laravel/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +11 -1
- package/presets/opencode/php-laravel/rules/language-policy.md +43 -0
- package/presets/opencode/php-laravel/rules/laravel-app-core.md +6 -0
- package/presets/opencode/php-laravel/rules/preset-goals.md +31 -0
- package/presets/opencode/php-laravel/rules/preset-layering.md +1 -1
- package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/php-laravel/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/php-laravel/rules/preset-writing-style.md +42 -0
- package/presets/opencode/php-laravel/team/README.md +15 -1
- package/presets/opencode/svelte/REPO_AGENTS.md +3 -0
- package/presets/opencode/svelte/adapter-map.json +30 -3
- package/presets/opencode/svelte/agents/README.md +7 -0
- package/presets/opencode/svelte/agents/build-verifier.md +12 -0
- package/presets/opencode/svelte/agents/code-reviewer.md +12 -0
- package/presets/opencode/svelte/agents/debugger.md +12 -0
- package/presets/opencode/svelte/agents/feature-developer.md +12 -0
- package/presets/opencode/svelte/agents/task-analyst.md +43 -2
- package/presets/opencode/svelte/agents/task-router.md +18 -0
- package/presets/opencode/svelte/ai-local/conventions.md +8 -0
- package/presets/opencode/svelte/commands/task-continue.md +8 -0
- package/presets/opencode/svelte/commands/task.md +14 -1
- package/presets/opencode/svelte/hooks/chain-team-phases.sh +369 -16
- package/presets/opencode/svelte/rules/agent-team-intake.md +3 -0
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +39 -5
- package/presets/opencode/svelte/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/svelte/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/svelte/rules/feature-delivery-workflow.md +15 -1
- package/presets/opencode/svelte/rules/language-policy.md +43 -0
- package/presets/opencode/svelte/rules/mockup-review.md +56 -1
- package/presets/opencode/svelte/rules/preset-goals.md +31 -0
- package/presets/opencode/svelte/rules/preset-layering.md +1 -1
- package/presets/opencode/svelte/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/svelte/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/svelte/rules/preset-writing-style.md +42 -0
- package/presets/opencode/svelte/rules/svelte-app-core.md +6 -0
- package/presets/opencode/svelte/team/README.md +15 -1
- package/presets/opencode/svelte/team/fixtures/artifact-manifest.example.json +1 -1
- package/scripts/_lib/agent-write-scopes.json +27 -0
- package/scripts/_lib/embed-stems.json +8 -1
- package/scripts/check-figma-contract-presence.sh +119 -0
- package/scripts/check-parallel-plan.sh +353 -0
- package/scripts/check-plan-contract.sh +133 -0
- package/scripts/check-preset-goal-contract.sh +214 -0
- package/scripts/check-preset-language-policy.sh +292 -0
- package/scripts/check-preset-prompt-persistence.sh +218 -0
- package/scripts/check-preset-self-review-contract.sh +179 -0
- package/scripts/check-preset-structure.sh +53 -0
- package/scripts/check-preset-token-budget.sh +3 -0
- package/scripts/check-step-graph-contract.sh +123 -0
- package/scripts/fixtures/cli-golden/claude/next.json +36 -31
- package/scripts/fixtures/cli-golden/cursor/next.json +40 -35
- package/scripts/fixtures/cli-golden/mavis/android-kotlin.json +26 -23
- package/scripts/fixtures/cli-golden/mavis/go.json +25 -22
- package/scripts/fixtures/cli-golden/mavis/ios-swift.json +26 -23
- package/scripts/fixtures/cli-golden/mavis/java.json +25 -22
- package/scripts/fixtures/cli-golden/mavis/mcp-ts.json +23 -20
- package/scripts/fixtures/cli-golden/mavis/next.json +39 -34
- package/scripts/fixtures/cli-golden/mavis/nuxt.json +27 -24
- package/scripts/fixtures/cli-golden/mavis/php-hexagonal.json +25 -22
- package/scripts/fixtures/cli-golden/mavis/php-laravel.json +25 -22
- package/scripts/fixtures/cli-golden/mavis/svelte.json +27 -24
- package/scripts/fixtures/cli-golden/opencode/android-kotlin.json +26 -23
- package/scripts/fixtures/cli-golden/opencode/go.json +25 -22
- package/scripts/fixtures/cli-golden/opencode/ios-swift.json +26 -23
- package/scripts/fixtures/cli-golden/opencode/java.json +25 -22
- package/scripts/fixtures/cli-golden/opencode/mcp-ts.json +23 -20
- package/scripts/fixtures/cli-golden/opencode/next.json +39 -34
- package/scripts/fixtures/cli-golden/opencode/nuxt.json +27 -24
- package/scripts/fixtures/cli-golden/opencode/php-hexagonal.json +25 -22
- package/scripts/fixtures/cli-golden/opencode/php-laravel.json +25 -22
- package/scripts/fixtures/cli-golden/opencode/svelte.json +27 -24
- package/scripts/test-agent-task-metrics-hooks.mjs +167 -0
- package/scripts/test-chain-team-phases-coverage.mjs +129 -0
- package/scripts/test-parallel-plan-fixtures.mjs +173 -0
- package/scripts/test-plan-contract-fixtures.mjs +132 -0
- package/scripts/test-preset-goal-contract-fixtures.mjs +162 -0
- package/scripts/test-preset-language-policy-fixtures.mjs +194 -0
- package/scripts/test-preset-prompt-persistence-fixtures.mjs +232 -0
- package/scripts/test-preset-self-review-contract-fixtures.mjs +163 -0
|
@@ -31,6 +31,26 @@ alwaysApply: true
|
|
|
31
31
|
- Examples: shared utility/hook/mapper/use case; narrow unsafe types; split a large module; tokens instead of “magic”; deep import → public API.
|
|
32
32
|
- Do not do a “big” refactor on a point task (structure/public names without a request). Break large work into minimal steps; keep the repo buildable after each step.
|
|
33
33
|
|
|
34
|
+
# Comments & prose
|
|
35
|
+
|
|
36
|
+
One rule for code comments and for everything written around the code (docs, PR/MR text, agent artifacts): **carry the meaning, cut the words.**
|
|
37
|
+
|
|
38
|
+
## Comments
|
|
39
|
+
|
|
40
|
+
- **Default: no comment.** Code shows *what*; a comment earns its place only by stating non-obvious *why*.
|
|
41
|
+
- Write one for a hidden constraint, a workaround (name the bug it dodges), a surprising invariant, or an external-contract quirk.
|
|
42
|
+
- Never: paraphrase the code; decorative banners or separators; JSDoc that only repeats types/params; commented-out code; task/review references (`added for issue X`); change logs.
|
|
43
|
+
- A comment that explains a bad name → fix the name instead. Delete a comment together with the code it described.
|
|
44
|
+
- One line beats a paragraph. API contracts live in types, not inline prose.
|
|
45
|
+
|
|
46
|
+
## Prose
|
|
47
|
+
|
|
48
|
+
- Lead with the point; drop the preamble and the wind-up.
|
|
49
|
+
- One idea per paragraph or bullet; prefer a table or list to a wall of text.
|
|
50
|
+
- Concrete over abstract: name the file, symbol, command, number.
|
|
51
|
+
- No filler, hedging, selling, or restating the heading. If deleting a sentence loses no instruction, delete it.
|
|
52
|
+
- In artifacts, report decisions and evidence (what changed, what was verified) — skip process narration.
|
|
53
|
+
|
|
34
54
|
# Agent requirement
|
|
35
55
|
|
|
36
56
|
- **Boy scout:** leave the module a bit better; do not sacrifice architecture and layers for brevity.
|
|
@@ -42,7 +62,6 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
42
62
|
- Unverifiable third-party API → if Context7 is up, load **`mcp-usage`** and query the installed major; else mark `// VERIFY: lib.symbol @ version` (or stack equivalent); never invent signatures.
|
|
43
63
|
- Before "is this correct?" — ≥3 failure modes (empty, boundary, concurrency/state) or name what you could not check.
|
|
44
64
|
- Refactor without tests → propose characterization test; if declined, label `UNTESTED`.
|
|
45
|
-
- Comments = WHY only when non-obvious; ban self-referential "added for issue Y".
|
|
46
65
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
47
66
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
48
67
|
|
|
@@ -67,6 +67,16 @@ When the diff touches UI / layout / styling (paths under `app/src/ui/**`, global
|
|
|
67
67
|
- **Storybook visual baselines are not a substitute.** Approving a UI MR on Storybook baselines alone is not acceptable when a Figma reference exists.
|
|
68
68
|
- Missing or `unable_to_compare` parity section on a UI-touching MR with a Figma reference → `REQUEST_CHANGES`. Unbound raw values where a token exists (typography / color / spacing / imagery) → `blocker` / `important`. The full gate lives in the `code-reviewer` agent prompt; this rule cross-references it.
|
|
69
69
|
|
|
70
|
+
### UI / Figma parity — post-implementation gate (AC-3 / AC-6 / AC-7 / AC-17)
|
|
71
|
+
|
|
72
|
+
When a UI-touching MR has a frozen contract (`.ai.local/team/tasks/<slug>/figma-contract.json`), the parity section runs the same G0..G6 gate as `figma-fidelity` and emits the umbrella `## Figma parity (UI)` section with these sub-sections: `## Post-impl screenshot diff (AC-6)`, `## Variable/value diff (AC-7)`, `## Effect parity (AC-20)`, `## Asset / icon audit (AC-21)`, `## Theme / mode parity (AC-25)`, `## i18n / RTL stress (AC-24)`, `## Viewport matrix (AC-23)`, `## Contract freeze (AC-17)`, `## AC coverage`.
|
|
73
|
+
|
|
74
|
+
- **Value diff (AC-7):** per node × property, expected (contract) vs rendered/computed actual, using chrome-devtools MCP `getComputedStyle` (or Playwright MCP as substitute). "Compare visually" with no value rows → not acceptable.
|
|
75
|
+
- **Structural parity (AC-3):** implemented component tree vs `nodes[]`, 1:1; an unmapped addition → finding; a missing mapped component → `blocker`.
|
|
76
|
+
- **Two-way state diff (AC-22):** a state present in the mockup but missing in the implementation → `blocker`; a state required by AC but absent from the mockup → `mockup-change-requested`.
|
|
77
|
+
- **Freeze check (AC-17):** re-read the design-source revision; a changed `lastModified`/`version` for the root or a mapped node → `MOCKUP_CHANGED_AFTER_CONTRACT` (`blocker`); do not silently re-baseline.
|
|
78
|
+
- **Degradation → `unable_to_compare`:** a degraded mandatory check (browser MCP or Figma MCP down, source revision unknown) → verdict `unable_to_compare` → `REQUEST_CHANGES`, with the named `degraded:` / `blocked:` marker. Never a silent PASS.
|
|
79
|
+
|
|
70
80
|
### Spec / docs sync (behaviour change)
|
|
71
81
|
|
|
72
82
|
When the diff changes documented `app/src/**` behaviour and the repo carries a spec tree (`docs/specs/**`, `openspec/specs/**`, `docs/qa/**`, or `*.cases.md`), the same changeset must update the linked page / spec / QA case (or record an explicit open-question gap). A missing update on an **AC-named** surface → `REQUEST_CHANGES`; on a non-AC surface → `important`. Do not treat `docs/specs` and `openspec` as substitutes for each other — keep both in sync.
|
|
@@ -8,6 +8,10 @@ impact: HIGH
|
|
|
8
8
|
|
|
9
9
|
The implementation must mirror the Figma mockup token-for-token. Raw design values where a token exists are a finding. This rule is the web-stack discipline; the reporter (`mockup-reviewer`) emits the bindings, the implementer (`feature-developer`) binds, the reviewer (`code-reviewer`) blocks on unbound raw values.
|
|
10
10
|
|
|
11
|
+
## QA baseline (AC-5)
|
|
12
|
+
|
|
13
|
+
The **binding baseline** is the frozen contract `.ai.local/team/tasks/<slug>/figma-contract.json` (its `nodes[].variables` / `variables{}`) and its `mockup-review.md` projection `## Per-node spec (AC-4)` — **not** a Storybook vis-baseline and not memory. Bind the implementation to the contract; the same contract is the expected side of the post-implementation value diff (AC-7). If the contract is missing on a UI WP with a Figma reference, bind from the `## Design contract` projection and record the gap — never invent values.
|
|
14
|
+
|
|
11
15
|
## Typography
|
|
12
16
|
|
|
13
17
|
- Bind to the Figma **text style** used by the node — extract via Figma MCP `get_design_context` / `get_variable_defs` and the node metadata. Do not invent `font-size: 14px; line-height: 20px;` when a Figma text style exists.
|
|
@@ -32,9 +36,27 @@ The implementation must mirror the Figma mockup token-for-token. Raw design valu
|
|
|
32
36
|
- **Icons:** use the `@sds/icon` (or project DS) symbol name from the Figma component instance / metadata. Do not invent icon names. The Figma node’s component name (e.g. `Icon / chevron-right`) maps to the DS symbol.
|
|
33
37
|
- `alt` text from the Figma node name when meaningful; otherwise from the design context copy.
|
|
34
38
|
|
|
39
|
+
## Variable/value diff + geometry + font availability (AC-7 / AC-18 / AC-19 / AC-20 / AC-21)
|
|
40
|
+
|
|
41
|
+
After implementation, diff the **rendered / computed** values against the contract, per node × property, using the live DOM (chrome-devtools MCP `getComputedStyle`, or Playwright MCP `page.evaluate` when chrome-devtools is down). Emit rows `nodeId | property | expected (contract) | actual (rendered) | delta`.
|
|
42
|
+
|
|
43
|
+
| Property group | Expected (contract) | Actual (live) |
|
|
44
|
+
|---|---|---|
|
|
45
|
+
| typography | `variables.typography` (family / size / line-height / weight / letter-spacing) | computed `font-family/size/line-height/font-weight/letter-spacing`, `color` |
|
|
46
|
+
| color | `variables.color` | computed `color`, `background-color`, `border-*-color`, icon `fill` |
|
|
47
|
+
| spacing | `variables.spacing` + auto-layout intent | computed `padding*`, `gap`, `margin*`, DOM box model |
|
|
48
|
+
| radius | `variables.radius` | computed `border-radius` |
|
|
49
|
+
| effect | `variables.effect` | computed `box-shadow`, `filter`, `backdrop-filter` |
|
|
50
|
+
| asset | `asset.figmaRef/repoRef/exportFormat` | resolved `<img src>` / `<svg>` / DS icon symbol, intrinsic `width`/`height` |
|
|
51
|
+
| text | `variables.text` | rendered text-node content |
|
|
52
|
+
|
|
53
|
+
- **Geometry / auto-layout (AC-18):** record numeric deltas for `padding` / `gap` / `margin` / border-box and the auto-layout direction / alignment; "spacing looks right" without deltas is not acceptable. Reflowing a region that is the only responsive evidence to absolute positioning needs a brief reason.
|
|
54
|
+
- **Font availability (AC-19):** every Figma font family MUST resolve to a repo-shipped font or a declared fallback; an unshipped family with a visual difference → `mockup-change-requested`, otherwise a documented fallback note.
|
|
55
|
+
- **Effect + asset audit (AC-20 / AC-21):** every effect maps to a DS token (or is filed non-exportable); every image fill / icon maps to a concrete export (format + dimensions) or a DS symbol; `asset.repoRef` must resolve. A placeholder or invented URL where the mockup has a real asset → finding.
|
|
56
|
+
|
|
35
57
|
## Self-check before handoff
|
|
36
58
|
|
|
37
|
-
For UI WPs with a Figma reference: render the page at each project viewport (Playwright MCP / Chrome DevTools MCP) and compare to the Figma `get_screenshot`. Fix obvious typography / color / spacing / imagery deviations before the implementation receipt.
|
|
59
|
+
For UI WPs with a Figma reference: render the page at each project viewport (Playwright MCP / Chrome DevTools MCP) and compare to the Figma `get_screenshot`. Fix obvious typography / color / spacing / imagery deviations before the implementation receipt. Run the **mandatory post-implementation gate** (requestable skill `figma-fidelity`: G1..G6 — screenshot diff, two-way state diff, value/geometry diff, structural parity against `figma-contract.json` `nodes[]`, freeze re-check) and record it in `implementation.md` (`## UI self-check vs Figma`, `## Structural parity (AC-3)`, `## Variable/value diff (AC-7)`, `## Geometry / auto-layout audit (AC-18)`, `## State matrix diff (AC-22)`, `## UI WP Definition of Done (AC-28)`). If the app is not runnable or MCP is down, note the limitation with a `degraded:` / `blocked:` marker — the reviewer will gate. A UI WP is **not** complete while any UI-WP Definition of Done item is unmet or degraded without a marker.
|
|
38
60
|
|
|
39
61
|
## Reviewer contract
|
|
40
62
|
|
|
@@ -36,6 +36,10 @@ When the MR touches UI / layout / styling (`app/src/ui/**`, global layout/CSS/to
|
|
|
36
36
|
|
|
37
37
|
For UI WPs with a Figma reference, `feature-developer` performs a **self-check vs Figma** at each project viewport (Playwright MCP / Chrome DevTools MCP) before the implementation receipt, fixes obvious typography / color / spacing / imagery / state deviations, and records a `## UI self-check vs Figma` block in `implementation.md`. This is the developer-side counterpart to the parity gate and closes the fidelity loop (extract contract → bind → self-check → review-block).
|
|
38
38
|
|
|
39
|
+
## Post-implementation gate (mandatory) — contract + DoD (AC-5 / AC-6 / AC-28)
|
|
40
|
+
|
|
41
|
+
For a UI WP with a Figma reference, the binding baseline and the post-implementation gate consume the frozen contract `.ai.local/team/tasks/<slug>/figma-contract.json` (schema + narrative: shared-core `agent-team/agent-artifact-contracts.md` § Figma contract artifact). The gate is **mandatory, not advisory**, at every project viewport, and follows the requestable skill **`figma-fidelity`** (G0..G6: screenshot diff, two-way state diff, per-node value / geometry diff, structural parity, freeze re-check). The completion condition is the `## UI WP Definition of Done (AC-28)` checklist in `figma-fidelity` — a UI WP is not done while any item is unmet or degraded without a marker. Product MCP names + the per-check matrix live in the `mockup-review.mdc` Stack notes and `figma-fidelity`.
|
|
42
|
+
|
|
39
43
|
Typical feature with backend data and shared state. Layer details — `architecture-boundaries.mdc`, `next-app-core.mdc`.
|
|
40
44
|
|
|
41
45
|
## Checklist (work order)
|
|
@@ -109,6 +113,10 @@ flowchart LR
|
|
|
109
113
|
|
|
110
114
|
When adding or extending a feature, **walk the checklist** and the rules from the table for affected zones.
|
|
111
115
|
|
|
116
|
+
## Iterative refinement loop
|
|
117
|
+
|
|
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**.
|
|
119
|
+
|
|
112
120
|
## Related
|
|
113
121
|
|
|
114
122
|
- Product behavior discovery: requestable **`product-specs`** (`docs/specs/INDEX.md`) — do not paste the discovery algorithm here.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Native-language dialogue policy: development/reasoning/artifacts stay English; every user-facing interaction uses the user's native language, resolved from .ai.local and persisted per task."
|
|
3
|
+
globs:
|
|
4
|
+
- .ai.local/**/*
|
|
5
|
+
- AGENTS.md
|
|
6
|
+
- .claude/**/*
|
|
7
|
+
alwaysApply: false
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<!-- shared-core: agent-team/language-policy.md -->
|
|
11
|
+
|
|
12
|
+
# Language policy
|
|
13
|
+
|
|
14
|
+
Behavior contract for **every agent and command in any consumer repo** — stack-agnostic. Not a
|
|
15
|
+
preset-authoring meta rule. The essentials are anchored on the always-on surfaces; this rule is the
|
|
16
|
+
detailed reference.
|
|
17
|
+
|
|
18
|
+
## Two halves (mandatory)
|
|
19
|
+
|
|
20
|
+
1. **Development and reasoning are English.** Thinking, planning, code, identifiers, comments, commits,
|
|
21
|
+
hooks, and **all artifacts** (`brief.md`, `decomposition.md`, `architecture.md`, `implementation.md`,
|
|
22
|
+
`review.md`, `validation-report.md`, plan/receipts, preset prose) are written in English. Never translate
|
|
23
|
+
code, identifiers, logs, or artifacts.
|
|
24
|
+
2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
|
|
25
|
+
human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
|
|
26
|
+
escalations are written in the resolved language. Every such message — no exception.
|
|
27
|
+
|
|
28
|
+
## Resolution (ordered)
|
|
29
|
+
|
|
30
|
+
1. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
|
|
31
|
+
**nearest** `.ai.local` wins in a monorepo.
|
|
32
|
+
2. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
|
|
33
|
+
the request.
|
|
34
|
+
3. Otherwise **English** (English-only / ambiguous prompt).
|
|
35
|
+
|
|
36
|
+
The `.ai.local` setting **wins over** a mid-task prompt in another language. On a disagreement, follow the
|
|
37
|
+
setting and surface the mismatch **once in one sentence** — never block, and **never ask a
|
|
38
|
+
language-confirmation question**.
|
|
39
|
+
|
|
40
|
+
## Per-task persistence
|
|
41
|
+
|
|
42
|
+
Resolve the language once at task start and reuse it for the whole task — every pipeline agent and every
|
|
43
|
+
`/task-continue`. Persist the BCP-47 tag in the `prompt.md` header (`language: <BCP-47>`) and an
|
|
44
|
+
append-only `.memlog.md` `event:` checkpoint. A later correction is an append-only memlog event (the fenced
|
|
45
|
+
verbatim block is frozen). Never store it in `status.json`, `metrics.json`, or an `artifacts[]` body.
|
|
46
|
+
|
|
47
|
+
## See also
|
|
48
|
+
|
|
49
|
+
- `ai-local-overlay` — reads `.ai.local` every turn; carries the setting read.
|
|
50
|
+
- `agent-team-intake` — resolves the language when a work request starts.
|
|
51
|
+
- `agent-team-orchestrator` — carries the resolved language across steps.
|
|
52
|
+
- `agent-artifact-contracts` — the `prompt.md` header contract.
|
|
@@ -85,6 +85,54 @@ Verify **≥3 viewport representations** (small / medium / large) via dedicated
|
|
|
85
85
|
|
|
86
86
|
Isolated **WARN** never blocks. Overall verdict = worst FAIL > BLOCKED_MCP > PASS_WITH_NOTES > PASS. Multiple WARNs without FAIL → `PASS_WITH_NOTES`, not FAIL.
|
|
87
87
|
|
|
88
|
+
## Node→component map (AC-1)
|
|
89
|
+
|
|
90
|
+
The map MUST cover the **root node first**, then **every non-decorative child** (decorative leaves may be skipped, and the skip MUST be justified in one line). Every row MUST resolve to exactly one target:
|
|
91
|
+
|
|
92
|
+
- `existing` — a component already in the repo UI layer (the redesign / refactor case), **with** its intended `delta` (`new` | `restyle` | `restructure` | `unchanged`);
|
|
93
|
+
- `ds` — an attached design-system / library symbol;
|
|
94
|
+
- `new` — a proposed component name **with its parent**.
|
|
95
|
+
|
|
96
|
+
New-components-only wording that omits the existing / redesign case → **FAIL**. A `new` row without a parent, or an `existing` row without a `delta`, → **FAIL**.
|
|
97
|
+
|
|
98
|
+
## Per-node spec (AC-4)
|
|
99
|
+
|
|
100
|
+
The mockup spec MUST be **per node**, not a file-level or subtree-level variable list. Every node row carries its **own** bound values for **color / spacing / radius / effect / typography / text**, plus assets, each with the design-source variable or text-style name **and** the repo token / symbol it maps to. A node row with an empty value set where the node has any bound value, or a value present without its source name + repo token → **FAIL**.
|
|
101
|
+
|
|
102
|
+
## Design-source defect taxonomy (AC-9)
|
|
103
|
+
|
|
104
|
+
Classify every design-source defect into exactly one category, each with the node reference and an actionable disposition:
|
|
105
|
+
|
|
106
|
+
- **(a) DS violation** — a custom frame / raw value where an attached-library component or variable exists → cite the node + the suggested replacement symbol or token.
|
|
107
|
+
- **(b) Non-exportable effect / asset** — an effect with no DS token, an image fill with no export, or an icon absent from the DS icon set → request the export / token / DS substitute.
|
|
108
|
+
- **(c) Un-implementable node** — a node that cannot be faithfully implemented (e.g. arbitrary transforms, blend modes with no CSS-equivalent primitive) → request a mockup change with the reason.
|
|
109
|
+
|
|
110
|
+
A category without a disposition, or a finding without a node id → **FAIL**.
|
|
111
|
+
|
|
112
|
+
## Mockup change escalation (AC-10)
|
|
113
|
+
|
|
114
|
+
A defect whose fix is a change **in the design source** (not in the implementation) is escalated as a `mockup-change-requested` **report** verdict — never silently approximated. The escalation names the human action (fix the design source → re-run the mockup review) and lists one row per defect. The receipt vocabulary is unchanged.
|
|
115
|
+
|
|
116
|
+
## Contract freeze (AC-17)
|
|
117
|
+
|
|
118
|
+
The per-node spec + node map form a **frozen contract**. Record a checksum over the spec and the design-source revision. Any later read that observes a changed revision for the root or a mapped node emits `MOCKUP_CHANGED_AFTER_CONTRACT` with the changed node ids. Re-baselining requires a **new mockup-review pass**; a downstream agent may never mutate the contract checksum / version in place.
|
|
119
|
+
|
|
120
|
+
## Degradation
|
|
121
|
+
|
|
122
|
+
When a required design-source or browser-automation MCP is unavailable, the check is **never silently skipped**. Emit a named `degraded:` / `blocked:` marker identifying the disabled check, and cap the verdict: `BLOCKED_MCP` when the design source itself is unavailable, otherwise no better than `PASS_WITH_NOTES`. A verdict may never exceed `PASS_WITH_NOTES` while any mandatory check is degraded, and no fidelity claim may be invented.
|
|
123
|
+
|
|
124
|
+
## Post-implementation gate (mandatory)
|
|
125
|
+
|
|
126
|
+
For a UI work package with a mockup contract, post-implementation verification is **mandatory, not advisory**, and runs at **every** declared viewport (no sampling):
|
|
127
|
+
|
|
128
|
+
- **screenshot diff** — the design-source frame vs the running application captured at the same width;
|
|
129
|
+
- **state diff** — two-way against the required state matrix (a state present in the mockup but missing in the implementation → `blocker`; a state required by the task but absent from the mockup → `mockup-change-requested`);
|
|
130
|
+
- **value diff** — per node × property (typography / color / spacing / radius / effect / asset / text): the expected design-source value vs the rendered / computed actual, using the live DOM and the running application;
|
|
131
|
+
- **structural parity** — the implemented component tree against the node map, 1:1;
|
|
132
|
+
- **freeze re-check** — re-read the design-source revision and compare it to the recorded one.
|
|
133
|
+
|
|
134
|
+
A mandatory check skipped without a named marker → **FAIL**. The product MCP names and the exact per-check matrix live in the adapter **Stack notes** and the post-implementation skill.
|
|
135
|
+
|
|
88
136
|
## Report headings
|
|
89
137
|
|
|
90
138
|
Write `mockup-review.md` with these headings (must match the agent template):
|
|
@@ -93,7 +141,7 @@ Write `mockup-review.md` with these headings (must match the agent template):
|
|
|
93
141
|
# Mockup review: <slug>
|
|
94
142
|
|
|
95
143
|
## Verdict
|
|
96
|
-
PASS | PASS_WITH_NOTES | FAIL | BLOCKED_MCP
|
|
144
|
+
PASS | PASS_WITH_NOTES | FAIL | BLOCKED_MCP | mockup-change-requested
|
|
97
145
|
|
|
98
146
|
## Scope
|
|
99
147
|
- Figma fileKey / node IDs
|
|
@@ -107,6 +155,13 @@ PASS | PASS_WITH_NOTES | FAIL | BLOCKED_MCP
|
|
|
107
155
|
## Quality (AC-6)
|
|
108
156
|
## Feature coverage (AC-7)
|
|
109
157
|
## Viewport matrix (AC-8)
|
|
158
|
+
## Design contract
|
|
159
|
+
## Node decomposition (AC-2)
|
|
160
|
+
## Per-node spec (AC-4)
|
|
161
|
+
## State matrix (AC-6)
|
|
162
|
+
## Design-source defect taxonomy (AC-9)
|
|
163
|
+
## Mockup change requests (AC-10)
|
|
164
|
+
## Contract freeze (AC-17)
|
|
110
165
|
## AC coverage
|
|
111
166
|
| Criterion | Status | Notes |
|
|
112
167
|
```
|
|
@@ -123,3 +178,24 @@ When the Figma URL contains a node id (`?node-id=…`), `mockup-reviewer` must:
|
|
|
123
178
|
2. Extract the **Design contract** (above the Node decomposition table): Figma variables used by the subtree (color, spacing, radius, effect — one `get_variable_defs` call per file), text styles used, and components / assets (library instances, image fills via `get_design_context`, icons). Each item mapped to the repo equivalent: `@sds/tokens-colors` / `@sds/brand-colors` / `@sds/tokens-typography` / `@sds/tokens` / DS component (`@sds/icon` symbol name, `Text variant="…"`) / `next/image` with Figma-derived `src/width/height`.
|
|
124
179
|
|
|
125
180
|
Both sections are the **pre-implementation contract** the developer reads before coding; the DS/tokens/quality/coverage/viewport dimensions still apply on top. Verdict: missing map **or** missing Design contract on a node-link input → `FAIL` (unless `BLOCKED_MCP`). The developer (`feature-developer`) must not start UI work until both sections are present, and must bind implementation to the Design contract (see `design-tokens-binding.mdc`).
|
|
181
|
+
|
|
182
|
+
### Contract artifact — `figma-contract.json` (AC-2 / AC-16)
|
|
183
|
+
|
|
184
|
+
`mockup-reviewer` writes the machine-readable contract to `.ai.local/team/tasks/<slug>/figma-contract.json` (`figmaContractVersion: 1`) and registers it on the existing `mockup-review` manifest entry `authoritativePaths`. `mockup-review.md` carries the human projections (`## Design contract`, `## Node decomposition (AC-2)`, `## Per-node spec (AC-4)`, `## State matrix (AC-6)`, `## Design-source defect taxonomy (AC-9)`, `## Mockup change requests (AC-10)`, `## Contract freeze (AC-17)`) that MUST equal the JSON. The JSON is authoritative; the markdown is rendered from it in the same pass. Consumers: `feature-developer` (precondition + self-check), `code-reviewer` (parity gate), `build-verifier` (presence).
|
|
185
|
+
|
|
186
|
+
### Verdicts + mockup-change escalation (AC-10)
|
|
187
|
+
|
|
188
|
+
Report verdicts: `PASS | PASS_WITH_NOTES | FAIL | BLOCKED_MCP | mockup-change-requested`. A defect whose fix belongs in Figma (DS violation / non-exportable effect or asset / un-implementable node) → verdict `mockup-change-requested` with a `## Mockup change requests (AC-10)` row (`nodeId | category | evidence | requested change | why the agent cannot reproduce faithfully`). Embedded → receipt `changes_requested`, artifact `blocked` → the hook routes to `awaiting_approval` (`/task-continue`); standalone → `completed`.
|
|
189
|
+
|
|
190
|
+
### Post-implementation gate — MCP matrix + degradation (AC-7 / AC-8 / AC-23)
|
|
191
|
+
|
|
192
|
+
The stack-agnostic mandate is in the core rule; the product MCP names live here and in the requestable skill `figma-fidelity`:
|
|
193
|
+
|
|
194
|
+
- **Figma MCP** — source frames / variables / text styles / assets; `get_screenshot` per node, `get_metadata` for the freeze re-check.
|
|
195
|
+
- **chrome-devtools MCP** (preferred for the live DOM) — `getComputedStyle` for the value / geometry diff of the running app.
|
|
196
|
+
- **Playwright MCP** — rendered viewports + composed-frame / breakpoint sweep; substitute for chrome-devtools when it is down.
|
|
197
|
+
- **Storybook MCP** (when present) — story render check.
|
|
198
|
+
|
|
199
|
+
Degradation (never a silent pass): Figma MCP down → `BLOCKED_MCP`; only a browser MCP down → `degraded:` marker naming the disabled check, verdict capped at `PASS_WITH_NOTES`; both browser MCPs down → `blocked: variable/value diff disabled (no browser MCP)`; source revision unknown → `degraded: freeze check unavailable (no lastModified)`.
|
|
200
|
+
|
|
201
|
+
The full post-implementation procedure (G0..G6 + the UI-WP Definition of Done) lives in the requestable skill `figma-fidelity`.
|
|
@@ -36,3 +36,9 @@ Layer boundaries, ports/adapters, UI→API — **`architecture-boundaries.mdc`**
|
|
|
36
36
|
- Features: `feature-delivery-workflow.mdc` + skill `feature-delivery`
|
|
37
37
|
- After edits: **invoke** `post-change-lint.mdc` (requestable, required after code edits); package manager: `package-manager.mdc`
|
|
38
38
|
- Copy patterns from neighboring files in the target layer; do not use `any` (prefer `unknown` + narrowing)
|
|
39
|
+
|
|
40
|
+
## Language
|
|
41
|
+
|
|
42
|
+
Development, reasoning, and artifacts stay **English**; every user-facing message (questions, gate prompts,
|
|
43
|
+
status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
|
|
44
|
+
(`## Language`) or the prompt, else English. See `language-policy`.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Preset authoring: the presets' primary goal — autonomous simple AND complex execution, maximum quality, project specifics. Use when editing packages/ai-rules/presets/**."
|
|
3
|
+
globs:
|
|
4
|
+
- packages/ai-rules/presets/**/*
|
|
5
|
+
- .cursor/rules/**/*
|
|
6
|
+
- .ai.local/team/tasks/**/*
|
|
7
|
+
alwaysApply: false
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<!-- shared-core: meta/preset-goals.md -->
|
|
11
|
+
|
|
12
|
+
# Preset goals
|
|
13
|
+
|
|
14
|
+
Rules for **preset authors** (`packages/ai-rules/presets/**`). Requestable; not always-on in consumer apps.
|
|
15
|
+
|
|
16
|
+
## Primary goal
|
|
17
|
+
|
|
18
|
+
Presets exist so agents can run **simple and complex tasks autonomously**, at **maximum quality**, respecting each **project's specifics**. Every rule, agent, command, hook, and generated artifact must serve that — or not be merged.
|
|
19
|
+
|
|
20
|
+
- **Simple tasks** — fast and frictionless: no new ceremony, no extra mandatory steps.
|
|
21
|
+
- **Complex tasks** — fully supported: never trade away capability, gates, or safety for a smaller diff.
|
|
22
|
+
- **Maximum quality** — prefer the better outcome; never regress a standard.
|
|
23
|
+
- **Project specifics** — stay adaptable; never hard-code one project's paths or tools into shared prose.
|
|
24
|
+
|
|
25
|
+
## Priority
|
|
26
|
+
|
|
27
|
+
1. This goal — highest.
|
|
28
|
+
2. The task's explicit goal — achieved *through* (1), never against it.
|
|
29
|
+
3. The sibling meta-rules — mechanics that keep (1) true.
|
|
30
|
+
|
|
31
|
+
A task goal that conflicts with (1) is a **blocker**: reconcile before merging.
|
|
32
|
+
|
|
33
|
+
## See also
|
|
34
|
+
|
|
35
|
+
- `preset-writing-style` — concise, no-demagogy prose.
|
|
36
|
+
- `preset-layering` — where a change belongs (core → stack → platform).
|
|
37
|
+
- `preset-twin-sync` — SoT, same-PR twins, generated trees.
|
|
38
|
+
- `preset-token-budget` — always-on caps; meta rules stay requestable.
|
|
39
|
+
- `preset-pr-checklist` — the merge checklist.
|
|
40
|
+
- `preset-no-cross-stack-leakage` — stack-agnostic wording.
|
|
@@ -33,4 +33,4 @@ Rules for **preset authors** (`packages/ai-rules/presets/**`). Not always-on in
|
|
|
33
33
|
- Per stack: **Cursor** `presets/cursor/<stack>/` → Claude twin same PR.
|
|
34
34
|
- `_shared` is **not** a `--preset` and is not copied by CLI `init`.
|
|
35
35
|
|
|
36
|
-
See also: `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`.
|
|
36
|
+
See also: `preset-goals`, `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`.
|
|
@@ -15,6 +15,8 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
15
15
|
|
|
16
16
|
## Before merge
|
|
17
17
|
|
|
18
|
+
- [ ] **Goal:** does the change serve the presets' primary goal (`preset-goals` — autonomous simple **and** complex execution, maximum quality, project specifics)?
|
|
19
|
+
- [ ] **Writing:** rules concise and testable, no demagogy or duplicated prose (`preset-writing-style`)
|
|
18
20
|
- [ ] **SoT:** edits in `packages/…` (not only root `.cursor/`)
|
|
19
21
|
- [ ] **Core:** if `_shared/core/**` changed — all `<!-- shared-core: … -->` consumers updated (or documented intentional fork)
|
|
20
22
|
- [ ] **Twin:** Cursor change → Claude twin **same PR** (**FAIL** if missing on next, nuxt, svelte, ios-swift, android-kotlin, go, java, mcp-ts, php-hexagonal, and php-laravel — see `preset-twin-sync`)
|
|
@@ -35,6 +37,8 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
35
37
|
|
|
36
38
|
## Pointers
|
|
37
39
|
|
|
40
|
+
- Goal: `preset-goals`
|
|
41
|
+
- Writing style: `preset-writing-style`
|
|
38
42
|
- Layering: `preset-layering`
|
|
39
43
|
- Sync: `preset-twin-sync`
|
|
40
44
|
- Budget: `preset-token-budget`
|
|
@@ -11,98 +11,40 @@ alwaysApply: false
|
|
|
11
11
|
|
|
12
12
|
# Preset twin sync
|
|
13
13
|
|
|
14
|
-
Cursor `.mdc`
|
|
14
|
+
Cursor `.mdc` is the **SoT per stack**; every other platform tree is derived in the **same PR**.
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## Derivations
|
|
17
17
|
|
|
18
|
-
|
|
|
19
|
-
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
| `ios-swift` | `presets/cursor/ios-swift/rules/*.mdc` | `presets/claude/ios-swift/rules/<topic>/` | Keep in `claude/ios-swift/rules/README.md` |
|
|
24
|
-
| `go` | `presets/cursor/go/rules/*.mdc` | `presets/claude/go/rules/<topic>/` | Keep in `claude/go/rules/README.md` |
|
|
25
|
-
| `java` | `presets/cursor/java/rules/*.mdc` | `presets/claude/java/rules/<topic>/` | Keep in `claude/java/rules/README.md` |
|
|
26
|
-
| `mcp-ts` | `presets/cursor/mcp-ts/rules/*.mdc` | `presets/claude/mcp-ts/rules/<topic>/` | Keep in `claude/mcp-ts/rules/README.md` |
|
|
27
|
-
| `php-hexagonal` | `presets/cursor/php-hexagonal/rules/*.mdc` | `presets/claude/php-hexagonal/rules/<topic>/` | Keep in `claude/php-hexagonal/rules/README.md` |
|
|
28
|
-
| `php-laravel` | `presets/cursor/php-laravel/rules/*.mdc` | `presets/claude/php-laravel/rules/<topic>/` | Keep in `claude/php-laravel/rules/README.md` |
|
|
29
|
-
| `android-kotlin` | `presets/cursor/android-kotlin/rules/*.mdc` | `presets/claude/android-kotlin/rules/<topic>/` | Keep in `claude/android-kotlin/rules/README.md` |
|
|
18
|
+
| Target | From | Command / rule |
|
|
19
|
+
|--------|------|----------------|
|
|
20
|
+
| **Claude twin** | `cursor/<stack>/rules/*.mdc` | hand-derived: body + `paths:` (from `globs:`), drop `alwaysApply`; row **required** in `claude/<stack>/rules/README.md` |
|
|
21
|
+
| **Mavis** | `cursor/<stack>/**` | `generate-mavis.mjs --stack <stack>`; manifest `adapter-map.json` required |
|
|
22
|
+
| **OpenCode** | `cursor/<stack>/**` | `generate-opencode.mjs --stack <stack>`; manifest `adapter-map.json` required |
|
|
30
23
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
| Stack | Cursor SoT | Mavis derive | Manifest |
|
|
34
|
-
|-------|------------|--------------|----------|
|
|
35
|
-
| `next` | `presets/cursor/next/**` | `presets/mavis/next/**` via `generate-mavis.mjs --stack next` | **Required** `adapter-map.json` |
|
|
36
|
-
| `nuxt` | `presets/cursor/nuxt/**` | `presets/mavis/nuxt/**` via `generate-mavis.mjs --stack nuxt` | **Required** `adapter-map.json` |
|
|
37
|
-
| `svelte` | `presets/cursor/svelte/**` | `presets/mavis/svelte/**` via `generate-mavis.mjs --stack svelte` | **Required** `adapter-map.json` |
|
|
38
|
-
| `ios-swift` | `presets/cursor/ios-swift/**` | `presets/mavis/ios-swift/**` via `generate-mavis.mjs --stack ios-swift` | **Required** `adapter-map.json` |
|
|
39
|
-
| `android-kotlin` | `presets/cursor/android-kotlin/**` | `presets/mavis/android-kotlin/**` via `generate-mavis.mjs --stack android-kotlin` | **Required** `adapter-map.json` |
|
|
40
|
-
| `go` | `presets/cursor/go/**` | `presets/mavis/go/**` via `generate-mavis.mjs --stack go` | **Required** `adapter-map.json` |
|
|
41
|
-
| `java` | `presets/cursor/java/**` | `presets/mavis/java/**` via `generate-mavis.mjs --stack java` | **Required** `adapter-map.json` |
|
|
42
|
-
| `mcp-ts` | `presets/cursor/mcp-ts/**` | `presets/mavis/mcp-ts/**` via `generate-mavis.mjs --stack mcp-ts` | **Required** `adapter-map.json` |
|
|
43
|
-
| `php-hexagonal` | `presets/cursor/php-hexagonal/**` | `presets/mavis/php-hexagonal/**` via `generate-mavis.mjs --stack php-hexagonal` | **Required** `adapter-map.json` |
|
|
44
|
-
| `php-laravel` | `presets/cursor/php-laravel/**` | `presets/mavis/php-laravel/**` via `generate-mavis.mjs --stack php-laravel` | **Required** `adapter-map.json` |
|
|
45
|
-
|
|
46
|
-
Mavis is a **third platform adapter**, not a Claude-style topic twin:
|
|
47
|
-
|
|
48
|
-
```text
|
|
49
|
-
_shared/core → cursor/<stack> → mavis/<stack>
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Regenerate with `node packages/ai-rules/scripts/generate-mavis.mjs --stack <stack>`; validate with `node packages/ai-rules/scripts/check-mavis-adapter-map.mjs`.
|
|
53
|
-
|
|
54
|
-
## OpenCode derivation (not a Claude twin)
|
|
55
|
-
|
|
56
|
-
| Stack | Cursor SoT | OpenCode derive | Manifest |
|
|
57
|
-
|-------|------------|-----------------|----------|
|
|
58
|
-
| `next` | `presets/cursor/next/**` | `presets/opencode/next/**` via `generate-opencode.mjs --stack next` | **Required** `adapter-map.json` |
|
|
59
|
-
| `nuxt` | `presets/cursor/nuxt/**` | `presets/opencode/nuxt/**` via `generate-opencode.mjs --stack nuxt` | **Required** `adapter-map.json` |
|
|
60
|
-
| `svelte` | `presets/cursor/svelte/**` | `presets/opencode/svelte/**` via `generate-opencode.mjs --stack svelte` | **Required** `adapter-map.json` |
|
|
61
|
-
| `ios-swift` | `presets/cursor/ios-swift/**` | `presets/opencode/ios-swift/**` via `generate-opencode.mjs --stack ios-swift` | **Required** `adapter-map.json` |
|
|
62
|
-
| `android-kotlin` | `presets/cursor/android-kotlin/**` | `presets/opencode/android-kotlin/**` via `generate-opencode.mjs --stack android-kotlin` | **Required** `adapter-map.json` |
|
|
63
|
-
| `go` | `presets/cursor/go/**` | `presets/opencode/go/**` via `generate-opencode.mjs --stack go` | **Required** `adapter-map.json` |
|
|
64
|
-
| `java` | `presets/cursor/java/**` | `presets/opencode/java/**` via `generate-opencode.mjs --stack java` | **Required** `adapter-map.json` |
|
|
65
|
-
| `mcp-ts` | `presets/cursor/mcp-ts/**` | `presets/opencode/mcp-ts/**` via `generate-opencode.mjs --stack mcp-ts` | **Required** `adapter-map.json` |
|
|
66
|
-
| `php-hexagonal` | `presets/cursor/php-hexagonal/**` | `presets/opencode/php-hexagonal/**` via `generate-opencode.mjs --stack php-hexagonal` | **Required** `adapter-map.json` |
|
|
67
|
-
| `php-laravel` | `presets/cursor/php-laravel/**` | `presets/opencode/php-laravel/**` via `generate-opencode.mjs --stack php-laravel` | **Required** `adapter-map.json` |
|
|
68
|
-
|
|
69
|
-
OpenCode is a **fourth platform adapter** with a **native** install root (`.opencode/`), not a Claude-style topic twin and not an owned overlay like `.mavis/`:
|
|
24
|
+
All 10 stacks: `next`, `nuxt`, `svelte`, `ios-swift`, `android-kotlin`, `go`, `java`, `mcp-ts`, `php-hexagonal`, `php-laravel`. Mavis and OpenCode are **platform adapters**, not Claude-style topic twins; never derive OpenCode from Claude.
|
|
70
25
|
|
|
71
26
|
```text
|
|
72
|
-
_shared/core
|
|
27
|
+
_shared/core → cursor/<stack> → { claude/<stack>, mavis/<stack>, opencode/<stack> }
|
|
73
28
|
```
|
|
74
29
|
|
|
75
|
-
|
|
30
|
+
Validate: `check-mavis-adapter-map.mjs`, `check-opencode-adapter-map.mjs`, `check-shared-core-drift.sh`.
|
|
76
31
|
|
|
77
32
|
## Same-PR checklist
|
|
78
33
|
|
|
79
|
-
1. Edit Cursor rule first (body + frontmatter).
|
|
80
|
-
2. Update Claude twin
|
|
81
|
-
3.
|
|
82
|
-
4.
|
|
83
|
-
5. When mapped `cursor/<stack>/` sources change, regenerate `mavis/<stack>/` and refresh `adapter-map.json` `sourceRevision` in the **same PR** (run `generate-mavis.mjs --stack <stack>` + `check-mavis-adapter-map.mjs`).
|
|
84
|
-
6. When mapped `cursor/<stack>/` sources change, regenerate `opencode/<stack>/` and refresh `adapter-map.json` `sourceRevision` in the **same PR** (run `generate-opencode.mjs --stack <stack>` + `check-opencode-adapter-map.mjs`).
|
|
34
|
+
1. Edit the Cursor rule first (body + frontmatter).
|
|
35
|
+
2. Update the Claude twin (body + `paths:`); update the README mapping row if the stem/path changed.
|
|
36
|
+
3. Core changed → sync every `<!-- shared-core: … -->` consumer (`sync-shared-core-embeds.sh`).
|
|
37
|
+
4. Cursor source changed → regenerate `mavis/<stack>/` and `opencode/<stack>/` and refresh each `adapter-map.json` `sourceRevision`.
|
|
85
38
|
|
|
86
39
|
## Twin depth
|
|
87
40
|
|
|
88
|
-
- **Domain** rules: ≥15 body lines (FAIL if thin without documented alias reason).
|
|
41
|
+
- **Domain** rules: ≥15 body lines (FAIL if thin without a documented alias reason).
|
|
89
42
|
- **Thin aliases** (`agent-team-intake`, `technical-retro`): may be shorter (soft) if they only point to a command/skill.
|
|
90
|
-
- **Slim-companion rules** (UI-edit bundle, slim app-cores, slim tooling): may be shorter
|
|
91
|
-
- Mechanical enforcement lives in `packages/ai-rules/scripts/check-preset-token-budget.sh` — see `SLIM_COMPANION_ALLOWLIST` (the 53 stems accepted as slim pointers) and `MIN_SLIM_BODY_LINES` (5-line floor). Slim-companion rules with a body of 6–14 lines whose stem is **not** in the allowlist are reported as slim violations by the script.
|
|
43
|
+
- **Slim-companion rules** (UI-edit bundle, slim app-cores, slim tooling): may be shorter only if the body is a pointer into shared-core / stack prose. `check-preset-token-budget.sh` enforces this via `SLIM_COMPANION_ALLOWLIST` and the 5-line floor; 6–14-line stems outside the allow-list are slim violations.
|
|
92
44
|
|
|
93
45
|
## Severity (build-verifier)
|
|
94
46
|
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
- **svelte:** missing Claude twin for a changed Cursor rule → **FAIL** (mapping table required).
|
|
98
|
-
- **ios-swift:** missing Claude twin for a changed Cursor rule → **FAIL**.
|
|
99
|
-
- **go:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift; mapping table required).
|
|
100
|
-
- **java:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go; mapping table required).
|
|
101
|
-
- **mcp-ts:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go / java; mapping table required).
|
|
102
|
-
- **php-hexagonal:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go / java / mcp-ts; mapping table required).
|
|
103
|
-
- **php-laravel:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go / java / mcp-ts / php-hexagonal; mapping table required).
|
|
104
|
-
- **android-kotlin:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go / java / mcp-ts / php-*; mapping table required).
|
|
105
|
-
- **mavis/<stack>:** `cursor/<stack>` mapped source changed without mavis regeneration / `adapter-map.json` `sourceRevision` drift → **FAIL** (`check-mavis-adapter-map.mjs`).
|
|
106
|
-
- **opencode/<stack>:** `cursor/<stack>` mapped source changed without opencode regeneration / `adapter-map.json` `sourceRevision` drift → **FAIL** (`check-opencode-adapter-map.mjs`).
|
|
47
|
+
- Missing Claude twin for a changed Cursor rule → **FAIL** (all 10 stacks; mapping table required).
|
|
48
|
+
- `cursor/<stack>` mapped source changed without mavis / opencode regeneration, or with `adapter-map.json` `sourceRevision` drift → **FAIL**.
|
|
107
49
|
|
|
108
|
-
Dogfood: sync packages → root `.cursor/` after Cursor SoT changes (
|
|
50
|
+
Dogfood: sync packages → root `.cursor/` after Cursor SoT changes (never the reverse): `sync-dogfood-cursor.sh`.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: "Preset authoring: concise, no-demagogy prose for preset rules, docs, and artifacts. Use when editing packages/ai-rules/presets/**."
|
|
3
|
+
globs:
|
|
4
|
+
- packages/ai-rules/presets/**/*
|
|
5
|
+
- .cursor/rules/**/*
|
|
6
|
+
- .ai.local/team/tasks/**/*
|
|
7
|
+
alwaysApply: false
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<!-- shared-core: meta/preset-writing-style.md -->
|
|
11
|
+
|
|
12
|
+
# Preset writing style
|
|
13
|
+
|
|
14
|
+
Rules for **preset authors** (`packages/ai-rules/presets/**`). Requestable; not always-on in consumer apps.
|
|
15
|
+
|
|
16
|
+
Write for two readers at once: an **agent** loading one file out of context, and a **human** scanning for the rule. State the rule, not the motivation.
|
|
17
|
+
|
|
18
|
+
## Do
|
|
19
|
+
|
|
20
|
+
- One rule per line: imperative and testable (`Do X` / `Never Y`), not "it is important that X".
|
|
21
|
+
- Lead with the rule; state *what* before *why*.
|
|
22
|
+
- Keep the *why* only when it changes behavior — a hidden constraint or the failure it prevents. Drop it when the rule already implies it.
|
|
23
|
+
- Be concrete: name the file, command, symbol, or counter-example.
|
|
24
|
+
- Prefer a table or short list to a paragraph; one idea per bullet.
|
|
25
|
+
- Reuse the shared vocabulary (rule stems, `always-on`, `requestable`, `must` / `should` / `may`) — see the `PRESET-ENGLISH-STYLE` glossary.
|
|
26
|
+
- Delete any sentence that carries no instruction.
|
|
27
|
+
|
|
28
|
+
## Don't (demagogy)
|
|
29
|
+
|
|
30
|
+
- No filler, hedging, or motivational prose.
|
|
31
|
+
- No restating the heading, the rule, or a sibling rule.
|
|
32
|
+
- No emphasis inflation — bold / `must` / `never` only for a hard gate, not the whole page.
|
|
33
|
+
- No selling, urgency, or self-congratulation; no "best practice" without the failure it prevents.
|
|
34
|
+
- No scenario storytelling, rhetorical questions, or meta-narration ("this section explains…").
|
|
35
|
+
- No duplicated rule text across stems — link instead.
|
|
36
|
+
|
|
37
|
+
## Size
|
|
38
|
+
|
|
39
|
+
- Shortest form that still changes behavior: if a bullet fits as a clause, make it a clause.
|
|
40
|
+
- 12+ undifferentiated bullets → split or rank; do not append.
|
|
41
|
+
|
|
42
|
+
## Applies to
|
|
43
|
+
|
|
44
|
+
All preset prose: `_shared/core/**`, stack rules, agents, skills, commands, hook comments, and preset-facing docs (`packages/ai-rules/docs/**`, READMEs).
|
|
45
|
+
|
|
46
|
+
## See also
|
|
47
|
+
|
|
48
|
+
- `preset-goals` — why presets exist.
|
|
49
|
+
- `preset-token-budget` — the caps this style keeps in range.
|
|
50
|
+
- `code-quality-and-refactoring` § Comments & prose — the consumer-side clause.
|
|
51
|
+
- `packages/ai-rules/docs/PRESET-ENGLISH-STYLE.md` — language, glossary, modality.
|
|
@@ -8,6 +8,7 @@ Long workflows stay here, not in always-on rules. Same skill set as the Claude t
|
|
|
8
8
|
| `spec-authoring` | Author or bootstrap docs/specs (INDEX, page/feature templates); `/spec-start` / analyst author mode |
|
|
9
9
|
| `spec-discovery` | Opt-in research-before-spec in analyst author mode (claim ledger; not default `/task` consume) |
|
|
10
10
|
| `mockup-review` | Figma mockup review: DS, coverage, viewports (standalone or embedded) |
|
|
11
|
+
| `figma-fidelity` | Post-implementation Figma-fidelity gate (G0..G6: screenshot/value/state/structural diffs + freeze) + UI-WP Definition of Done |
|
|
11
12
|
| `ux-design` | Behavioral UX synthesis/review via task-analyst (standalone or embedded; no Figma MCP) |
|
|
12
13
|
| `code-review` | MR/diff review using project architecture and test standards |
|
|
13
14
|
| `debug-investigation` | Reproducing and fixing bugs with root-cause evidence |
|
|
@@ -20,7 +20,7 @@ Use the local repository as the source of truth: `git status`, `git diff`, task
|
|
|
20
20
|
7. **Reuse lens:** flag new helpers that duplicate existing utilities; prefer adjacent shared modules over copy-paste.
|
|
21
21
|
8. **Efficiency lens:** unnecessary work, sequential ops that should be parallel, hot-path bloat, no-op store updates, overly broad reads.
|
|
22
22
|
9. Report validation gaps: lint, stylelint, type-check, or relevant tests not run.
|
|
23
|
-
10. **UI / Figma parity (when the diff touches UI/layout AND a Figma reference exists):** perform a detailed, pixel-accurate comparison of the implementation against the mockup across **every project viewport** (mockup-review AC-8 / Stack notes set and the repo’s Storybook viewport toolbar). Figma frames via Figma MCP `get_screenshot`; the running app via Playwright MCP / Chrome DevTools MCP at the matching width. Compare **per element** — typography, color, spacing, imagery, states, structure/responsive, auto-layout intent — bound to the `mockup-review.md` `## Design contract` and the `design-tokens-binding` discipline (`@sds/tokens-*` / DS components; raw `#…` / `px` where a token exists is a finding).
|
|
23
|
+
10. **UI / Figma parity (when the diff touches UI/layout AND a Figma reference exists):** perform a detailed, pixel-accurate comparison of the implementation against the mockup across **every project viewport** (mockup-review AC-8 / Stack notes set and the repo’s Storybook viewport toolbar). Figma frames via Figma MCP `get_screenshot`; the running app via Playwright MCP / Chrome DevTools MCP at the matching width. Compare **per element** — typography, color, spacing, imagery, states, structure/responsive, auto-layout intent — bound to the frozen contract `figma-contract.json` / the `mockup-review.md` `## Design contract` and the `design-tokens-binding` discipline (`@sds/tokens-*` / DS components; raw `#…` / `px` where a token exists is a finding). Run the full post-implementation gate `G0..G6` (requestable skill **`figma-fidelity`**): per-node **value diff** (AC-7), **structural parity** against `nodes[]` (AC-3), **two-way state diff** (AC-22), **freeze re-check** (AC-17), and the effect / asset / theme / i18n sub-tables; emit them inside a `## Figma parity (UI)` section in `review.md`. **Storybook visual baselines are not a substitute.** Missing or `unable_to_compare` parity on a UI MR with a Figma reference → `REQUEST_CHANGES`; a degraded mandatory check → `unable_to_compare`. Unbound raw values → `blocker` / `important`.
|
|
24
24
|
|
|
25
25
|
## Output
|
|
26
26
|
|