@bonesofspring/ai-rules 0.2.31 → 0.2.33
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 +42 -0
- package/README.md +1 -1
- package/docs/LOCAL-OVERLAY.md +30 -1
- package/docs/PRESET-CONTRIBUTION.md +13 -4
- package/docs/PRESET-ENGLISH-STYLE.md +23 -1
- package/package.json +2 -1
- package/presets/_shared/README.md +10 -4
- package/presets/_shared/core/agent-team/agent-artifact-contracts.md +39 -0
- package/presets/_shared/core/agent-team/agent-team-intake.md +3 -0
- package/presets/_shared/core/agent-team/agent-team-orchestrator.md +22 -2
- package/presets/_shared/core/agent-team/language-policy.md +41 -0
- package/presets/_shared/core/agent-team/plan-graph.md +35 -0
- package/presets/_shared/core/agent-team/task-classification.md +2 -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 +8 -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/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 +33 -4
- 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 +17 -0
- 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 +8 -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/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 +32 -3
- 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 +17 -0
- 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 +8 -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/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 +33 -4
- 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 +17 -0
- 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 +8 -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/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 +32 -3
- 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 +17 -0
- 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 +8 -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/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 +32 -3
- 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 +17 -0
- package/presets/claude/next/REPO_AGENTS.md +14 -1
- package/presets/claude/next/agents/README.md +6 -0
- package/presets/claude/next/agents/build-verifier.md +13 -0
- package/presets/claude/next/agents/code-reviewer.md +24 -0
- package/presets/claude/next/agents/debugger.md +12 -0
- package/presets/claude/next/agents/feature-developer.md +21 -2
- package/presets/claude/next/agents/mockup-reviewer.md +25 -4
- package/presets/claude/next/agents/openspec-author.md +2 -0
- package/presets/claude/next/agents/task-analyst.md +37 -0
- package/presets/claude/next/agents/task-router.md +9 -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/rules/README.md +7 -0
- package/presets/claude/next/rules/anti-hallucination/react-next-anti-hallucination.md +10 -0
- package/presets/claude/next/rules/api-and-data/store-rtk.md +6 -0
- package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +13 -1
- package/presets/claude/next/rules/architecture/product-specs-authoring.md +1 -0
- package/presets/claude/next/rules/architecture/product-specs.md +1 -0
- package/presets/claude/next/rules/architecture/reference-features.md +5 -0
- package/presets/claude/next/rules/stack/next-app-core.md +9 -0
- package/presets/claude/next/rules/stack/next-static-export.md +36 -0
- package/presets/claude/next/rules/testing/tests-e2e-structure.md +1 -0
- package/presets/claude/next/rules/testing/tests-unit.md +1 -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 +33 -4
- package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +20 -2
- 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 +14 -0
- package/presets/claude/next/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/next/rules/tooling-and-review/mcp-usage.md +1 -0
- package/presets/claude/next/rules/tooling-and-review/mockup-review.md +77 -1
- package/presets/claude/next/rules/tooling-and-review/post-change-lint.md +4 -0
- 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/tooling-and-review/security-next.md +13 -0
- package/presets/claude/next/rules/ui-and-accessibility/component-catalog-gate.md +39 -0
- package/presets/claude/next/rules/ui-and-accessibility/design-tokens-binding.md +24 -2
- package/presets/claude/next/rules/ui-and-accessibility/forms-validation.md +35 -0
- package/presets/claude/next/rules/ui-and-accessibility/react-ui.md +19 -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 +18 -0
- package/presets/claude/next/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/claude/next/team/fixtures/feature-with-ux-no-figma.json +3 -4
- 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 +8 -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/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 +33 -4
- 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 +17 -0
- 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 +8 -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/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 +32 -3
- 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 +17 -0
- 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 +8 -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/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 +32 -3
- 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 +17 -0
- 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 +8 -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/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 +33 -4
- 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 +17 -0
- 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 +8 -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/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 +33 -3
- 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 +11 -0
- 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 +8 -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/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 +32 -2
- 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 +11 -0
- 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 +8 -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/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 +33 -3
- 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 +11 -0
- 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 +8 -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/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 +32 -2
- 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 +11 -0
- 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 +8 -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/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 +32 -2
- 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 +11 -0
- package/presets/cursor/next/REPO_AGENTS.md +14 -1
- package/presets/cursor/next/agents/README.md +7 -1
- package/presets/cursor/next/agents/build-verifier.md +13 -0
- package/presets/cursor/next/agents/code-reviewer.md +24 -0
- package/presets/cursor/next/agents/debugger.md +12 -0
- package/presets/cursor/next/agents/feature-developer.md +21 -2
- package/presets/cursor/next/agents/mockup-reviewer.md +25 -4
- package/presets/cursor/next/agents/openspec-author.md +2 -0
- package/presets/cursor/next/agents/task-analyst.md +50 -2
- package/presets/cursor/next/agents/task-router.md +9 -0
- package/presets/cursor/next/ai-local/conventions.md +8 -0
- package/presets/cursor/next/ai-local/rules-library/agent-artifacts-no-local-paths.md +41 -8
- package/presets/cursor/next/ai-local/rules-library/agent-pipeline-gates.md +19 -0
- package/presets/cursor/next/ai-local/rules-library/analytics-events.md +18 -0
- package/presets/cursor/next/ai-local/rules-library/api-contract-source.md +14 -0
- package/presets/cursor/next/ai-local/rules-library/artifact-lifecycle.md +17 -0
- package/presets/cursor/next/ai-local/rules-library/code-style.md +68 -0
- package/presets/cursor/next/ai-local/rules-library/component-child-decomposition.md +81 -0
- package/presets/cursor/next/ai-local/rules-library/feature-flags-experiments.md +15 -0
- package/presets/cursor/next/ai-local/rules-library/mcp-required-for-ui-layout.md +5 -1
- package/presets/cursor/next/ai-local/rules-library/no-react-fc.md +46 -0
- package/presets/cursor/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/pwa-service-worker.md +15 -0
- package/presets/cursor/next/ai-local/rules-library/qa-test-cases.md +14 -0
- package/presets/cursor/next/ai-local/rules-library/router-pages.md +4 -2
- package/presets/cursor/next/ai-local/rules-library/single-source-copy-constants.md +3 -1
- package/presets/cursor/next/ai-local/rules-library/storybook-catalog-structure.md +62 -0
- package/presets/cursor/next/ai-local/rules-library/storybook-cleanup-temp-screenshots.md +40 -0
- package/presets/cursor/next/ai-local/rules-library/storybook-csf-authoring.md +100 -0
- package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +71 -0
- package/presets/cursor/next/ai-local/rules-library/storybook-keep-tests-current.md +75 -0
- package/presets/cursor/next/ai-local/rules-library/storybook-modals.md +64 -0
- package/presets/cursor/next/ai-local/rules-library/storybook-no-app-node-modules.md +40 -0
- package/presets/cursor/next/ai-local/rules-library/storybook-ui-quality-gate.md +38 -0
- package/presets/cursor/next/ai-local/rules-library/task-levels.md +28 -0
- package/presets/cursor/next/ai-local/rules-library/ui-change-review-gate.md +15 -0
- package/presets/cursor/next/commands/task-continue.md +8 -0
- package/presets/cursor/next/commands/task.md +14 -1
- package/presets/cursor/next/rules/README.md +7 -2
- package/presets/cursor/next/rules/agent-team-intake.mdc +3 -0
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +37 -3
- package/presets/cursor/next/rules/ai-local-overlay.mdc +20 -2
- package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/next/rules/code-review-mr.mdc +14 -0
- package/presets/cursor/next/rules/component-catalog-gate.mdc +38 -0
- package/presets/cursor/next/rules/design-tokens-binding.mdc +24 -2
- package/presets/cursor/next/rules/feature-delivery-workflow.mdc +13 -1
- package/presets/cursor/next/rules/forms-validation.mdc +33 -0
- package/presets/cursor/next/rules/language-policy.mdc +52 -0
- package/presets/cursor/next/rules/mcp-usage.mdc +1 -0
- package/presets/cursor/next/rules/mockup-review.mdc +77 -1
- package/presets/cursor/next/rules/next-app-core.mdc +9 -0
- package/presets/cursor/next/rules/next-static-export.mdc +35 -0
- package/presets/cursor/next/rules/post-change-lint.mdc +4 -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/rules/product-specs-authoring.mdc +1 -0
- package/presets/cursor/next/rules/product-specs.mdc +1 -0
- package/presets/cursor/next/rules/react-next-anti-hallucination.mdc +10 -0
- package/presets/cursor/next/rules/react-ui.mdc +19 -1
- package/presets/cursor/next/rules/reference-features.mdc +5 -0
- package/presets/cursor/next/rules/security-next.mdc +12 -0
- package/presets/cursor/next/rules/store-rtk.mdc +6 -0
- package/presets/cursor/next/rules/tests-e2e-structure.mdc +1 -0
- package/presets/cursor/next/rules/tests-unit.mdc +1 -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 +12 -0
- package/presets/cursor/next/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/cursor/next/team/fixtures/feature-with-ux-no-figma.json +3 -4
- 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 +8 -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/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 +33 -3
- 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 +11 -0
- 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 +8 -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/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 +32 -2
- 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 +11 -0
- 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 +8 -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/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 +32 -2
- 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 +11 -0
- 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 +8 -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/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 +33 -3
- 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 +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/mavis/android-kotlin/rules/agent-team-orchestrator.md +23 -4
- 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/code-review-mr.md +6 -6
- 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 +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/mavis/go/rules/agent-team-orchestrator.md +23 -4
- package/presets/mavis/go/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/go/rules/code-quality-and-refactoring.md +21 -2
- 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 +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/mavis/ios-swift/rules/agent-team-orchestrator.md +23 -4
- package/presets/mavis/ios-swift/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/ios-swift/rules/code-quality-and-refactoring.md +21 -2
- package/presets/mavis/ios-swift/rules/code-review-mr.md +6 -6
- package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +29 -15
- 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/rules/reference-features.md +3 -3
- package/presets/mavis/ios-swift/team/README.md +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/mavis/java/rules/agent-team-orchestrator.md +23 -4
- package/presets/mavis/java/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/java/rules/code-quality-and-refactoring.md +21 -2
- 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 +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/mavis/mcp-ts/rules/agent-team-orchestrator.md +23 -4
- 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 +11 -0
- package/presets/mavis/next/REPO_AGENTS.md +14 -1
- package/presets/mavis/next/adapter-map.json +229 -10
- package/presets/mavis/next/agents/README.md +6 -0
- package/presets/mavis/next/agents/build-verifier.md +13 -0
- package/presets/mavis/next/agents/code-reviewer.md +24 -0
- package/presets/mavis/next/agents/debugger.md +12 -0
- package/presets/mavis/next/agents/feature-developer.md +21 -2
- package/presets/mavis/next/agents/mockup-reviewer.md +25 -4
- package/presets/mavis/next/agents/openspec-author.md +2 -0
- package/presets/mavis/next/agents/task-analyst.md +50 -2
- package/presets/mavis/next/agents/task-router.md +9 -0
- package/presets/mavis/next/ai-local/conventions.md +8 -0
- package/presets/mavis/next/ai-local/rules-library/agent-artifacts-no-local-paths.md +41 -8
- package/presets/mavis/next/ai-local/rules-library/agent-pipeline-gates.md +19 -0
- package/presets/mavis/next/ai-local/rules-library/analytics-events.md +18 -0
- package/presets/mavis/next/ai-local/rules-library/api-contract-source.md +14 -0
- package/presets/mavis/next/ai-local/rules-library/artifact-lifecycle.md +17 -0
- package/presets/mavis/next/ai-local/rules-library/code-style.md +68 -0
- package/presets/mavis/next/ai-local/rules-library/component-child-decomposition.md +81 -0
- package/presets/mavis/next/ai-local/rules-library/feature-flags-experiments.md +15 -0
- package/presets/mavis/next/ai-local/rules-library/mcp-required-for-ui-layout.md +5 -1
- package/presets/mavis/next/ai-local/rules-library/no-react-fc.md +46 -0
- package/presets/mavis/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/pwa-service-worker.md +15 -0
- package/presets/mavis/next/ai-local/rules-library/qa-test-cases.md +14 -0
- package/presets/mavis/next/ai-local/rules-library/router-pages.md +4 -2
- package/presets/mavis/next/ai-local/rules-library/single-source-copy-constants.md +3 -1
- package/presets/mavis/next/ai-local/rules-library/storybook-catalog-structure.md +62 -0
- package/presets/mavis/next/ai-local/rules-library/storybook-cleanup-temp-screenshots.md +40 -0
- package/presets/mavis/next/ai-local/rules-library/storybook-csf-authoring.md +100 -0
- package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +71 -0
- package/presets/mavis/next/ai-local/rules-library/storybook-keep-tests-current.md +75 -0
- package/presets/mavis/next/ai-local/rules-library/storybook-modals.md +64 -0
- package/presets/mavis/next/ai-local/rules-library/storybook-no-app-node-modules.md +40 -0
- package/presets/mavis/next/ai-local/rules-library/storybook-ui-quality-gate.md +38 -0
- package/presets/mavis/next/ai-local/rules-library/task-levels.md +28 -0
- package/presets/mavis/next/ai-local/rules-library/ui-change-review-gate.md +15 -0
- package/presets/mavis/next/commands/task-continue.md +8 -0
- package/presets/mavis/next/commands/task.md +14 -1
- package/presets/mavis/next/rules/agent-team-intake.md +3 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +23 -4
- package/presets/mavis/next/rules/ai-local-overlay.md +20 -2
- package/presets/mavis/next/rules/code-quality-and-refactoring.md +22 -3
- package/presets/mavis/next/rules/code-review-mr.md +21 -7
- package/presets/mavis/next/rules/component-catalog-gate.md +31 -0
- package/presets/mavis/next/rules/design-tokens-binding.md +24 -2
- package/presets/mavis/next/rules/feature-delivery-workflow.md +41 -19
- package/presets/mavis/next/rules/forms-validation.md +26 -0
- package/presets/mavis/next/rules/language-policy.md +43 -0
- package/presets/mavis/next/rules/mcp-usage.md +1 -0
- package/presets/mavis/next/rules/mockup-review.md +78 -2
- package/presets/mavis/next/rules/next-app-core.md +9 -0
- package/presets/mavis/next/rules/next-static-export.md +28 -0
- package/presets/mavis/next/rules/post-change-lint.md +4 -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/rules/product-specs-authoring.md +1 -0
- package/presets/mavis/next/rules/product-specs.md +1 -0
- package/presets/mavis/next/rules/react-next-anti-hallucination.md +10 -0
- package/presets/mavis/next/rules/react-ui.md +19 -1
- package/presets/mavis/next/rules/reference-features.md +7 -2
- package/presets/mavis/next/rules/security-next.md +12 -0
- package/presets/mavis/next/rules/store-rtk.md +6 -0
- package/presets/mavis/next/rules/tests-e2e-structure.md +2 -1
- package/presets/mavis/next/rules/tests-unit.md +1 -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 +12 -0
- package/presets/mavis/next/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/mavis/next/team/fixtures/feature-with-ux-no-figma.json +3 -4
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/mavis/nuxt/rules/agent-team-orchestrator.md +23 -4
- 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/code-review-mr.md +6 -6
- package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +30 -16
- 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/rules/reference-features.md +2 -2
- package/presets/mavis/nuxt/rules/tests-e2e-structure.md +1 -1
- package/presets/mavis/nuxt/team/README.md +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/mavis/php-hexagonal/rules/agent-team-orchestrator.md +23 -4
- package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/php-hexagonal/rules/code-quality-and-refactoring.md +21 -2
- 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 +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/mavis/php-laravel/rules/agent-team-orchestrator.md +23 -4
- package/presets/mavis/php-laravel/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/php-laravel/rules/code-quality-and-refactoring.md +21 -2
- 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 +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/mavis/svelte/rules/agent-team-orchestrator.md +23 -4
- 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/code-review-mr.md +6 -6
- package/presets/mavis/svelte/rules/feature-delivery-workflow.md +16 -2
- 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/reference-features.md +2 -2
- package/presets/mavis/svelte/rules/svelte-app-core.md +6 -0
- package/presets/mavis/svelte/rules/tests-e2e-structure.md +1 -1
- package/presets/mavis/svelte/team/README.md +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/opencode/android-kotlin/rules/agent-team-orchestrator.md +23 -4
- 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/code-review-mr.md +6 -6
- 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 +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/opencode/go/rules/agent-team-orchestrator.md +23 -4
- package/presets/opencode/go/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/go/rules/code-quality-and-refactoring.md +21 -2
- 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 +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/opencode/ios-swift/rules/agent-team-orchestrator.md +23 -4
- package/presets/opencode/ios-swift/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/ios-swift/rules/code-quality-and-refactoring.md +21 -2
- package/presets/opencode/ios-swift/rules/code-review-mr.md +6 -6
- package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +29 -15
- 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/rules/reference-features.md +3 -3
- package/presets/opencode/ios-swift/team/README.md +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/opencode/java/rules/agent-team-orchestrator.md +23 -4
- package/presets/opencode/java/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/java/rules/code-quality-and-refactoring.md +21 -2
- 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 +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/opencode/mcp-ts/rules/agent-team-orchestrator.md +23 -4
- 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 +11 -0
- package/presets/opencode/next/REPO_AGENTS.md +14 -1
- package/presets/opencode/next/adapter-map.json +229 -10
- package/presets/opencode/next/agents/README.md +6 -0
- package/presets/opencode/next/agents/build-verifier.md +13 -0
- package/presets/opencode/next/agents/code-reviewer.md +24 -0
- package/presets/opencode/next/agents/debugger.md +12 -0
- package/presets/opencode/next/agents/feature-developer.md +21 -2
- package/presets/opencode/next/agents/mockup-reviewer.md +25 -4
- package/presets/opencode/next/agents/openspec-author.md +2 -0
- package/presets/opencode/next/agents/task-analyst.md +50 -2
- package/presets/opencode/next/agents/task-router.md +9 -0
- package/presets/opencode/next/ai-local/conventions.md +8 -0
- package/presets/opencode/next/ai-local/rules-library/agent-artifacts-no-local-paths.md +41 -8
- package/presets/opencode/next/ai-local/rules-library/agent-pipeline-gates.md +19 -0
- package/presets/opencode/next/ai-local/rules-library/analytics-events.md +18 -0
- package/presets/opencode/next/ai-local/rules-library/api-contract-source.md +14 -0
- package/presets/opencode/next/ai-local/rules-library/artifact-lifecycle.md +17 -0
- package/presets/opencode/next/ai-local/rules-library/code-style.md +68 -0
- package/presets/opencode/next/ai-local/rules-library/component-child-decomposition.md +81 -0
- package/presets/opencode/next/ai-local/rules-library/feature-flags-experiments.md +15 -0
- package/presets/opencode/next/ai-local/rules-library/mcp-required-for-ui-layout.md +5 -1
- package/presets/opencode/next/ai-local/rules-library/no-react-fc.md +46 -0
- package/presets/opencode/next/ai-local/rules-library/no-test-driven-behavior-change.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/pwa-service-worker.md +15 -0
- package/presets/opencode/next/ai-local/rules-library/qa-test-cases.md +14 -0
- package/presets/opencode/next/ai-local/rules-library/router-pages.md +4 -2
- package/presets/opencode/next/ai-local/rules-library/single-source-copy-constants.md +3 -1
- package/presets/opencode/next/ai-local/rules-library/storybook-catalog-structure.md +62 -0
- package/presets/opencode/next/ai-local/rules-library/storybook-cleanup-temp-screenshots.md +40 -0
- package/presets/opencode/next/ai-local/rules-library/storybook-csf-authoring.md +100 -0
- package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +71 -0
- package/presets/opencode/next/ai-local/rules-library/storybook-keep-tests-current.md +75 -0
- package/presets/opencode/next/ai-local/rules-library/storybook-modals.md +64 -0
- package/presets/opencode/next/ai-local/rules-library/storybook-no-app-node-modules.md +40 -0
- package/presets/opencode/next/ai-local/rules-library/storybook-ui-quality-gate.md +38 -0
- package/presets/opencode/next/ai-local/rules-library/task-levels.md +28 -0
- package/presets/opencode/next/ai-local/rules-library/ui-change-review-gate.md +15 -0
- package/presets/opencode/next/commands/task-continue.md +8 -0
- package/presets/opencode/next/commands/task.md +14 -1
- package/presets/opencode/next/rules/agent-team-intake.md +3 -0
- package/presets/opencode/next/rules/agent-team-orchestrator.md +23 -4
- package/presets/opencode/next/rules/ai-local-overlay.md +20 -2
- package/presets/opencode/next/rules/code-quality-and-refactoring.md +22 -3
- package/presets/opencode/next/rules/code-review-mr.md +21 -7
- package/presets/opencode/next/rules/component-catalog-gate.md +31 -0
- package/presets/opencode/next/rules/design-tokens-binding.md +24 -2
- package/presets/opencode/next/rules/feature-delivery-workflow.md +41 -19
- package/presets/opencode/next/rules/forms-validation.md +26 -0
- package/presets/opencode/next/rules/language-policy.md +43 -0
- package/presets/opencode/next/rules/mcp-usage.md +1 -0
- package/presets/opencode/next/rules/mockup-review.md +78 -2
- package/presets/opencode/next/rules/next-app-core.md +9 -0
- package/presets/opencode/next/rules/next-static-export.md +28 -0
- package/presets/opencode/next/rules/post-change-lint.md +4 -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/rules/product-specs-authoring.md +1 -0
- package/presets/opencode/next/rules/product-specs.md +1 -0
- package/presets/opencode/next/rules/react-next-anti-hallucination.md +10 -0
- package/presets/opencode/next/rules/react-ui.md +19 -1
- package/presets/opencode/next/rules/reference-features.md +7 -2
- package/presets/opencode/next/rules/security-next.md +12 -0
- package/presets/opencode/next/rules/store-rtk.md +6 -0
- package/presets/opencode/next/rules/tests-e2e-structure.md +2 -1
- package/presets/opencode/next/rules/tests-unit.md +1 -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 +12 -0
- package/presets/opencode/next/team/fixtures/artifact-manifest.example.json +1 -1
- package/presets/opencode/next/team/fixtures/feature-with-ux-no-figma.json +3 -4
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/opencode/nuxt/rules/agent-team-orchestrator.md +23 -4
- 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/code-review-mr.md +6 -6
- package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +30 -16
- 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/rules/reference-features.md +2 -2
- package/presets/opencode/nuxt/rules/tests-e2e-structure.md +1 -1
- package/presets/opencode/nuxt/team/README.md +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/opencode/php-hexagonal/rules/agent-team-orchestrator.md +23 -4
- package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/php-hexagonal/rules/code-quality-and-refactoring.md +21 -2
- 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 +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/opencode/php-laravel/rules/agent-team-orchestrator.md +23 -4
- package/presets/opencode/php-laravel/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/php-laravel/rules/code-quality-and-refactoring.md +21 -2
- 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 +11 -0
- 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 +8 -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/rules/agent-team-intake.md +3 -0
- package/presets/opencode/svelte/rules/agent-team-orchestrator.md +23 -4
- 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/code-review-mr.md +6 -6
- package/presets/opencode/svelte/rules/feature-delivery-workflow.md +16 -2
- 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/reference-features.md +2 -2
- package/presets/opencode/svelte/rules/svelte-app-core.md +6 -0
- package/presets/opencode/svelte/rules/tests-e2e-structure.md +1 -1
- package/presets/opencode/svelte/team/README.md +11 -0
- package/presets/opencode/svelte/team/fixtures/artifact-manifest.example.json +1 -1
- package/scripts/_lib/embed-stems.json +8 -1
- package/scripts/check-figma-contract-presence.sh +119 -0
- package/scripts/check-generated-drift.mjs +42 -2
- package/scripts/check-local-overlay.sh +39 -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 +191 -0
- package/scripts/check-preset-self-review-contract.sh +179 -0
- package/scripts/check-preset-structure.sh +51 -0
- package/scripts/check-preset-token-budget.sh +3 -0
- package/scripts/fixtures/cli-golden/claude/next.json +63 -56
- package/scripts/fixtures/cli-golden/cursor/next.json +88 -61
- package/scripts/fixtures/cli-golden/mavis/android-kotlin.json +39 -36
- package/scripts/fixtures/cli-golden/mavis/go.json +25 -22
- package/scripts/fixtures/cli-golden/mavis/ios-swift.json +29 -26
- package/scripts/fixtures/cli-golden/mavis/java.json +25 -22
- package/scripts/fixtures/cli-golden/mavis/mcp-ts.json +22 -19
- package/scripts/fixtures/cli-golden/mavis/next.json +87 -60
- package/scripts/fixtures/cli-golden/mavis/nuxt.json +43 -40
- 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 +43 -40
- package/scripts/fixtures/cli-golden/opencode/android-kotlin.json +39 -36
- package/scripts/fixtures/cli-golden/opencode/go.json +25 -22
- package/scripts/fixtures/cli-golden/opencode/ios-swift.json +29 -26
- package/scripts/fixtures/cli-golden/opencode/java.json +25 -22
- package/scripts/fixtures/cli-golden/opencode/mcp-ts.json +22 -19
- package/scripts/fixtures/cli-golden/opencode/next.json +87 -60
- package/scripts/fixtures/cli-golden/opencode/nuxt.json +43 -40
- 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 +43 -40
- package/scripts/lib/generate-adapter-common.mjs +17 -0
- package/scripts/lib/generate-mavis-adapter.mjs +9 -3
- package/scripts/lib/generate-opencode-adapter.mjs +9 -3
- 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 +175 -0
- package/scripts/test-preset-self-review-contract-fixtures.mjs +163 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!-- shared-core: agent-team/language-policy.md -->
|
|
2
|
+
|
|
3
|
+
# Language policy
|
|
4
|
+
|
|
5
|
+
Behavior contract for **every agent and command in any consumer repo** — stack-agnostic. Not a
|
|
6
|
+
preset-authoring meta rule. The essentials are anchored on the always-on surfaces; this rule is the
|
|
7
|
+
detailed reference.
|
|
8
|
+
|
|
9
|
+
## Two halves (mandatory)
|
|
10
|
+
|
|
11
|
+
1. **Development and reasoning are English.** Thinking, planning, code, identifiers, comments, commits,
|
|
12
|
+
hooks, and **all artifacts** (`brief.md`, `decomposition.md`, `architecture.md`, `implementation.md`,
|
|
13
|
+
`review.md`, `validation-report.md`, plan/receipts, preset prose) are written in English. Never translate
|
|
14
|
+
code, identifiers, logs, or artifacts.
|
|
15
|
+
2. **Every user-facing interaction is in the user's native language.** Clarifying questions, plan /
|
|
16
|
+
human-gate prompts, `/task-continue` prompts, status answers, plan/progress summaries, and error
|
|
17
|
+
escalations are written in the resolved language. Every such message — no exception.
|
|
18
|
+
|
|
19
|
+
## Resolution (ordered)
|
|
20
|
+
|
|
21
|
+
1. **Explicit `.ai.local` setting** — the `## Language` section of `.ai.local/conventions.md`. The
|
|
22
|
+
**nearest** `.ai.local` wins in a monorepo.
|
|
23
|
+
2. Otherwise **infer from the prompt language**. A mixed-language prompt uses the **dominant** language of
|
|
24
|
+
the request.
|
|
25
|
+
3. Otherwise **English** (English-only / ambiguous prompt).
|
|
26
|
+
|
|
27
|
+
The `.ai.local` setting **wins over** a mid-task prompt in another language. On a disagreement, follow the
|
|
28
|
+
setting and surface the mismatch **once in one sentence** — never block, and **never ask a
|
|
29
|
+
language-confirmation question**.
|
|
30
|
+
|
|
31
|
+
## Per-task persistence
|
|
32
|
+
|
|
33
|
+
Resolve the language once at task start and reuse it for the whole task — every pipeline agent and every
|
|
34
|
+
`/task-continue`. Persist the BCP-47 tag in the `prompt.md` header (`language: <BCP-47>`) and an
|
|
35
|
+
append-only `.memlog.md` `event:` checkpoint. A later correction is an append-only memlog event (the fenced
|
|
36
|
+
verbatim block is frozen). Never store it in `status.json`, `metrics.json`, or an `artifacts[]` body.
|
|
37
|
+
|
|
38
|
+
## See also
|
|
39
|
+
|
|
40
|
+
- `ai-local-overlay` — reads `.ai.local` every turn; carries the setting read.
|
|
41
|
+
- `agent-team-intake` — resolves the language when a work request starts.
|
|
42
|
+
- `agent-team-orchestrator` — carries the resolved language across steps.
|
|
43
|
+
- `agent-artifact-contracts` — the `prompt.md` header contract.
|
|
@@ -87,6 +87,7 @@ Policy is stack-class-specific — see adapter **Stack notes**. If a Figma **plu
|
|
|
87
87
|
|
|
88
88
|
## Stack notes
|
|
89
89
|
|
|
90
|
+
- **Installed Next docs first:** the installed `next` may ship version-pinned agent docs at `node_modules/next/dist/docs/` and a managed `AGENTS.md` block. Prefer them for framework APIs (they match the installed major) — reach for Context7 only when they are insufficient or absent.
|
|
90
91
|
- Pipeline **`mockup-reviewer`** is the only agent that reads Figma for mockup review. See `mockup-review`.
|
|
91
92
|
- Shipped besides Context7: browser automation MCP (`playwright` / `playwright-test` / `user-playwright`) and `chrome-devtools`.
|
|
92
93
|
- **Split:** Playwright MCP → e2e agents (planner/generator/healer), selector checks, spec reproduction. Chrome DevTools MCP → `debugger` / `performance-auditor` against a **running app** (console, network, traces). Not a substitute for e2e.
|
|
@@ -80,6 +80,54 @@ Verify **≥3 viewport representations** (small / medium / large) via dedicated
|
|
|
80
80
|
|
|
81
81
|
Isolated **WARN** never blocks. Overall verdict = worst FAIL > BLOCKED_MCP > PASS_WITH_NOTES > PASS. Multiple WARNs without FAIL → `PASS_WITH_NOTES`, not FAIL.
|
|
82
82
|
|
|
83
|
+
## Node→component map (AC-1)
|
|
84
|
+
|
|
85
|
+
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:
|
|
86
|
+
|
|
87
|
+
- `existing` — a component already in the repo UI layer (the redesign / refactor case), **with** its intended `delta` (`new` | `restyle` | `restructure` | `unchanged`);
|
|
88
|
+
- `ds` — an attached design-system / library symbol;
|
|
89
|
+
- `new` — a proposed component name **with its parent**.
|
|
90
|
+
|
|
91
|
+
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**.
|
|
92
|
+
|
|
93
|
+
## Per-node spec (AC-4)
|
|
94
|
+
|
|
95
|
+
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**.
|
|
96
|
+
|
|
97
|
+
## Design-source defect taxonomy (AC-9)
|
|
98
|
+
|
|
99
|
+
Classify every design-source defect into exactly one category, each with the node reference and an actionable disposition:
|
|
100
|
+
|
|
101
|
+
- **(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.
|
|
102
|
+
- **(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.
|
|
103
|
+
- **(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.
|
|
104
|
+
|
|
105
|
+
A category without a disposition, or a finding without a node id → **FAIL**.
|
|
106
|
+
|
|
107
|
+
## Mockup change escalation (AC-10)
|
|
108
|
+
|
|
109
|
+
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.
|
|
110
|
+
|
|
111
|
+
## Contract freeze (AC-17)
|
|
112
|
+
|
|
113
|
+
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.
|
|
114
|
+
|
|
115
|
+
## Degradation
|
|
116
|
+
|
|
117
|
+
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.
|
|
118
|
+
|
|
119
|
+
## Post-implementation gate (mandatory)
|
|
120
|
+
|
|
121
|
+
For a UI work package with a mockup contract, post-implementation verification is **mandatory, not advisory**, and runs at **every** declared viewport (no sampling):
|
|
122
|
+
|
|
123
|
+
- **screenshot diff** — the design-source frame vs the running application captured at the same width;
|
|
124
|
+
- **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`);
|
|
125
|
+
- **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;
|
|
126
|
+
- **structural parity** — the implemented component tree against the node map, 1:1;
|
|
127
|
+
- **freeze re-check** — re-read the design-source revision and compare it to the recorded one.
|
|
128
|
+
|
|
129
|
+
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.
|
|
130
|
+
|
|
83
131
|
## Report headings
|
|
84
132
|
|
|
85
133
|
Write `mockup-review.md` with these headings (must match the agent template):
|
|
@@ -88,7 +136,7 @@ Write `mockup-review.md` with these headings (must match the agent template):
|
|
|
88
136
|
# Mockup review: <slug>
|
|
89
137
|
|
|
90
138
|
## Verdict
|
|
91
|
-
PASS | PASS_WITH_NOTES | FAIL | BLOCKED_MCP
|
|
139
|
+
PASS | PASS_WITH_NOTES | FAIL | BLOCKED_MCP | mockup-change-requested
|
|
92
140
|
|
|
93
141
|
## Scope
|
|
94
142
|
- Figma fileKey / node IDs
|
|
@@ -102,6 +150,13 @@ PASS | PASS_WITH_NOTES | FAIL | BLOCKED_MCP
|
|
|
102
150
|
## Quality (AC-6)
|
|
103
151
|
## Feature coverage (AC-7)
|
|
104
152
|
## Viewport matrix (AC-8)
|
|
153
|
+
## Design contract
|
|
154
|
+
## Node decomposition (AC-2)
|
|
155
|
+
## Per-node spec (AC-4)
|
|
156
|
+
## State matrix (AC-6)
|
|
157
|
+
## Design-source defect taxonomy (AC-9)
|
|
158
|
+
## Mockup change requests (AC-10)
|
|
159
|
+
## Contract freeze (AC-17)
|
|
105
160
|
## AC coverage
|
|
106
161
|
| Criterion | Status | Notes |
|
|
107
162
|
```
|
|
@@ -117,4 +172,25 @@ When the Figma URL contains a node id (`?node-id=…`), `mockup-reviewer` must:
|
|
|
117
172
|
1. Walk the node subtree via Figma MCP `get_metadata` and emit a **Node→component map** (each child node id/name/type → target `app/src/ui/**` component, attached library component (e.g. `@sds/*`), or `new: <ProposedName>`). The map goes in `mockup-review.md` under `## Node decomposition (AC-2)` as a table plus a short prose summary, with a `Bindings` column / per-row note for the Figma design bindings.
|
|
118
173
|
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`.
|
|
119
174
|
|
|
120
|
-
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.
|
|
175
|
+
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.md`).
|
|
176
|
+
|
|
177
|
+
### Contract artifact — `figma-contract.json` (AC-2 / AC-16)
|
|
178
|
+
|
|
179
|
+
`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).
|
|
180
|
+
|
|
181
|
+
### Verdicts + mockup-change escalation (AC-10)
|
|
182
|
+
|
|
183
|
+
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`.
|
|
184
|
+
|
|
185
|
+
### Post-implementation gate — MCP matrix + degradation (AC-7 / AC-8 / AC-23)
|
|
186
|
+
|
|
187
|
+
The stack-agnostic mandate is in the core rule; the product MCP names live here and in the requestable skill `figma-fidelity`:
|
|
188
|
+
|
|
189
|
+
- **Figma MCP** — source frames / variables / text styles / assets; `get_screenshot` per node, `get_metadata` for the freeze re-check.
|
|
190
|
+
- **chrome-devtools MCP** (preferred for the live DOM) — `getComputedStyle` for the value / geometry diff of the running app.
|
|
191
|
+
- **Playwright MCP** — rendered viewports + composed-frame / breakpoint sweep; substitute for chrome-devtools when it is down.
|
|
192
|
+
- **Storybook MCP** (when present) — story render check.
|
|
193
|
+
|
|
194
|
+
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)`.
|
|
195
|
+
|
|
196
|
+
The full post-implementation procedure (G0..G6 + the UI-WP Definition of Done) lives in the requestable skill `figma-fidelity`.
|
|
@@ -8,6 +8,9 @@ Concrete versions come **from `package.json` and configs of the target repositor
|
|
|
8
8
|
- `app/tsconfig.json`: `paths: { "@/*": ["./src/*"] }` (`baseUrl` may be absent with TS ≥5 / `moduleResolution: bundler` — check the file, do not add it blindly).
|
|
9
9
|
- **Requirement:** `@/*` instead of relative imports that climb the tree.
|
|
10
10
|
- **Router mode:** detect from the repo before adding routes — App Router (`app/src/app/**`, `page.tsx`) vs Pages Router (`app/src/pages/**`, `_app.tsx`). Do **not** assume App Router; follow the mode already in use (`next-app-router.md`, `navigation-router-stack.md`).
|
|
11
|
+
- **Deployment model:** read `output` in `next.config.*`. With `output: 'export'` the app is a static SPA — no server runtime, no API routes / middleware / SSR (`next-static-export.md`).
|
|
12
|
+
- **Consumer context:** when `.ai/context/**` exists, read it for the repo's compressed architecture, domain glossary, and test-placement conventions before deriving them yourself.
|
|
13
|
+
- **Env access:** read `NEXT_PUBLIC_*` through the repo's config module (e.g. `@/config`); new public keys must also be listed in `next.config.*` `env`. Never read `process.env` inside components.
|
|
11
14
|
|
|
12
15
|
# Architectural layers
|
|
13
16
|
|
|
@@ -28,3 +31,9 @@ Layer boundaries, ports/adapters, UI→API — **`architecture-boundaries.md`**.
|
|
|
28
31
|
- Features: `feature-delivery-workflow.md` + skill `feature-delivery`
|
|
29
32
|
- After edits: **invoke** `post-change-lint.md` (requestable, required after code edits); package manager: `package-manager.md`
|
|
30
33
|
- Copy patterns from neighboring files in the target layer; do not use `any` (prefer `unknown` + narrowing)
|
|
34
|
+
|
|
35
|
+
## Language
|
|
36
|
+
|
|
37
|
+
Development, reasoning, and artifacts stay **English**; every user-facing message (questions, gate prompts,
|
|
38
|
+
status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
|
|
39
|
+
(`## Language`) or the prompt, else English. See `language-policy`.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Static export (Next.js `output: 'export'`)
|
|
2
|
+
|
|
3
|
+
Detect the deployment model **before** writing data-fetching or routing code: read `output` in `next.config.*`. With `output: 'export'` the build produces a static SPA — there is no server runtime at request time.
|
|
4
|
+
|
|
5
|
+
## Unavailable
|
|
6
|
+
|
|
7
|
+
- `getServerSideProps`, `getInitialProps`.
|
|
8
|
+
- API routes (`pages/api/**`, App Router `route.ts`) and `middleware.ts`.
|
|
9
|
+
- Server Actions; server `cookies()` / `headers()`.
|
|
10
|
+
- ISR / `revalidate` / `dynamic = 'force-dynamic'`.
|
|
11
|
+
- The image optimizer when `images.unoptimized: true` (`next/image` `loader` / `sizes` buy nothing).
|
|
12
|
+
|
|
13
|
+
## Available / preferred
|
|
14
|
+
|
|
15
|
+
- `getStaticProps` / `getStaticPaths` run at **build** time only.
|
|
16
|
+
- Runtime data comes from the browser: store thunk → `@/api` service (`store-rtk.md`, `api-services.md`).
|
|
17
|
+
- Auth / session are enforced by the BFF plus a client route guard — not by a Next server.
|
|
18
|
+
- `basePath` / `assetPrefix`: build local links and asset URLs from those values; never hardcode `/`.
|
|
19
|
+
|
|
20
|
+
## Agent requirement
|
|
21
|
+
|
|
22
|
+
- Copy the data-fetch and navigation pattern from a sibling page under `app/src/pages/**`; do not port SSR/RSC examples from docs or blogs into a static-export repo.
|
|
23
|
+
- If a requested feature implies a server runtime, mark it **N/A — static export** and propose the client/BFF alternative instead of writing server code.
|
|
24
|
+
|
|
25
|
+
## Related
|
|
26
|
+
|
|
27
|
+
- `react-next-anti-hallucination.md` — phantom-import banlist for this deployment model.
|
|
28
|
+
- `navigation-router-stack.md` — Pages Router vs App Router.
|
|
@@ -10,6 +10,10 @@ Exceptions: documentation edits outside `app/`, CI configs, `.mavis/rules/**`, i
|
|
|
10
10
|
|
|
11
11
|
**Pipeline exception:** if the task runs through the agent team and the next step is `build-verifier`, the developer may limit lint/type-check to **changed files**; full run is **`build-verifier`’s** responsibility. In single-agent mode (no pipeline) — always a full run.
|
|
12
12
|
|
|
13
|
+
**Secondary packages:** when the repo has more than one package with a manifest (e.g. `app/` + `storybook/`), run each package's own scripts from its own directory. Do not conflate runners (app unit runner vs catalog runner).
|
|
14
|
+
|
|
15
|
+
**Run the package script, not a bare runner:** prefer `yarn lint:js` / `yarn test` over `npx eslint` / `npx jest`. Scripts carry env (`TZ`), coverage, and reporters that CI depends on; a bare runner can diverge from CI.
|
|
16
|
+
|
|
13
17
|
## Required commands
|
|
14
18
|
|
|
15
19
|
Working directory — **`app/`**. Package manager — **`package-manager.md`**.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!-- shared-core: meta/preset-goals.md -->
|
|
2
|
+
|
|
3
|
+
# Preset goals
|
|
4
|
+
|
|
5
|
+
Rules for **preset authors** (`packages/ai-rules/presets/**`). Requestable; not always-on in consumer apps.
|
|
6
|
+
|
|
7
|
+
## Primary goal
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
11
|
+
- **Simple tasks** — fast and frictionless: no new ceremony, no extra mandatory steps.
|
|
12
|
+
- **Complex tasks** — fully supported: never trade away capability, gates, or safety for a smaller diff.
|
|
13
|
+
- **Maximum quality** — prefer the better outcome; never regress a standard.
|
|
14
|
+
- **Project specifics** — stay adaptable; never hard-code one project's paths or tools into shared prose.
|
|
15
|
+
|
|
16
|
+
## Priority
|
|
17
|
+
|
|
18
|
+
1. This goal — highest.
|
|
19
|
+
2. The task's explicit goal — achieved *through* (1), never against it.
|
|
20
|
+
3. The sibling meta-rules — mechanics that keep (1) true.
|
|
21
|
+
|
|
22
|
+
A task goal that conflicts with (1) is a **blocker**: reconcile before merging.
|
|
23
|
+
|
|
24
|
+
## See also
|
|
25
|
+
|
|
26
|
+
- `preset-writing-style` — concise, no-demagogy prose.
|
|
27
|
+
- `preset-layering` — where a change belongs (core → stack → platform).
|
|
28
|
+
- `preset-twin-sync` — SoT, same-PR twins, generated trees.
|
|
29
|
+
- `preset-token-budget` — always-on caps; meta rules stay requestable.
|
|
30
|
+
- `preset-pr-checklist` — the merge checklist.
|
|
31
|
+
- `preset-no-cross-stack-leakage` — stack-agnostic wording.
|
|
@@ -24,4 +24,4 @@ Rules for **preset authors** (`packages/ai-rules/presets/**`). Not always-on in
|
|
|
24
24
|
- Per stack: **Cursor** `presets/cursor/<stack>/` → Claude twin same PR.
|
|
25
25
|
- `_shared` is **not** a `--preset` and is not copied by CLI `init`.
|
|
26
26
|
|
|
27
|
-
See also: `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`.
|
|
27
|
+
See also: `preset-goals`, `preset-twin-sync`, `preset-token-budget`, `preset-pr-checklist`, `preset-no-cross-stack-leakage`.
|
|
@@ -6,6 +6,8 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
6
6
|
|
|
7
7
|
## Before merge
|
|
8
8
|
|
|
9
|
+
- [ ] **Goal:** does the change serve the presets' primary goal (`preset-goals` — autonomous simple **and** complex execution, maximum quality, project specifics)?
|
|
10
|
+
- [ ] **Writing:** rules concise and testable, no demagogy or duplicated prose (`preset-writing-style`)
|
|
9
11
|
- [ ] **SoT:** edits in `packages/…` (not only root `.cursor/`)
|
|
10
12
|
- [ ] **Core:** if `_shared/core/**` changed — all `<!-- shared-core: … -->` consumers updated (or documented intentional fork)
|
|
11
13
|
- [ ] **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`)
|
|
@@ -26,6 +28,8 @@ Checklist for PRs that touch `packages/ai-rules/presets/**` (and dogfood `.curso
|
|
|
26
28
|
|
|
27
29
|
## Pointers
|
|
28
30
|
|
|
31
|
+
- Goal: `preset-goals`
|
|
32
|
+
- Writing style: `preset-writing-style`
|
|
29
33
|
- Layering: `preset-layering`
|
|
30
34
|
- Sync: `preset-twin-sync`
|
|
31
35
|
- Budget: `preset-token-budget`
|
|
@@ -2,98 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
# Preset twin sync
|
|
4
4
|
|
|
5
|
-
Cursor `.mdc`
|
|
5
|
+
Cursor `.mdc` is the **SoT per stack**; every other platform tree is derived in the **same PR**.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Derivations
|
|
8
8
|
|
|
9
|
-
|
|
|
10
|
-
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
| `ios-swift` | `presets/cursor/ios-swift/rules/*.mdc` | `presets/claude/ios-swift/rules/<topic>/` | Keep in `claude/ios-swift/rules/README.md` |
|
|
15
|
-
| `go` | `presets/cursor/go/rules/*.mdc` | `presets/claude/go/rules/<topic>/` | Keep in `claude/go/rules/README.md` |
|
|
16
|
-
| `java` | `presets/cursor/java/rules/*.mdc` | `presets/claude/java/rules/<topic>/` | Keep in `claude/java/rules/README.md` |
|
|
17
|
-
| `mcp-ts` | `presets/cursor/mcp-ts/rules/*.mdc` | `presets/claude/mcp-ts/rules/<topic>/` | Keep in `claude/mcp-ts/rules/README.md` |
|
|
18
|
-
| `php-hexagonal` | `presets/cursor/php-hexagonal/rules/*.mdc` | `presets/claude/php-hexagonal/rules/<topic>/` | Keep in `claude/php-hexagonal/rules/README.md` |
|
|
19
|
-
| `php-laravel` | `presets/cursor/php-laravel/rules/*.mdc` | `presets/claude/php-laravel/rules/<topic>/` | Keep in `claude/php-laravel/rules/README.md` |
|
|
20
|
-
| `android-kotlin` | `presets/cursor/android-kotlin/rules/*.mdc` | `presets/claude/android-kotlin/rules/<topic>/` | Keep in `claude/android-kotlin/rules/README.md` |
|
|
9
|
+
| Target | From | Command / rule |
|
|
10
|
+
|--------|------|----------------|
|
|
11
|
+
| **Claude twin** | `cursor/<stack>/rules/*.mdc` | hand-derived: body + `paths:` (from `globs:`), drop `alwaysApply`; row **required** in `claude/<stack>/rules/README.md` |
|
|
12
|
+
| **Mavis** | `cursor/<stack>/**` | `generate-mavis.mjs --stack <stack>`; manifest `adapter-map.json` required |
|
|
13
|
+
| **OpenCode** | `cursor/<stack>/**` | `generate-opencode.mjs --stack <stack>`; manifest `adapter-map.json` required |
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
| Stack | Cursor SoT | Mavis derive | Manifest |
|
|
25
|
-
|-------|------------|--------------|----------|
|
|
26
|
-
| `next` | `presets/cursor/next/**` | `presets/mavis/next/**` via `generate-mavis.mjs --stack next` | **Required** `adapter-map.json` |
|
|
27
|
-
| `nuxt` | `presets/cursor/nuxt/**` | `presets/mavis/nuxt/**` via `generate-mavis.mjs --stack nuxt` | **Required** `adapter-map.json` |
|
|
28
|
-
| `svelte` | `presets/cursor/svelte/**` | `presets/mavis/svelte/**` via `generate-mavis.mjs --stack svelte` | **Required** `adapter-map.json` |
|
|
29
|
-
| `ios-swift` | `presets/cursor/ios-swift/**` | `presets/mavis/ios-swift/**` via `generate-mavis.mjs --stack ios-swift` | **Required** `adapter-map.json` |
|
|
30
|
-
| `android-kotlin` | `presets/cursor/android-kotlin/**` | `presets/mavis/android-kotlin/**` via `generate-mavis.mjs --stack android-kotlin` | **Required** `adapter-map.json` |
|
|
31
|
-
| `go` | `presets/cursor/go/**` | `presets/mavis/go/**` via `generate-mavis.mjs --stack go` | **Required** `adapter-map.json` |
|
|
32
|
-
| `java` | `presets/cursor/java/**` | `presets/mavis/java/**` via `generate-mavis.mjs --stack java` | **Required** `adapter-map.json` |
|
|
33
|
-
| `mcp-ts` | `presets/cursor/mcp-ts/**` | `presets/mavis/mcp-ts/**` via `generate-mavis.mjs --stack mcp-ts` | **Required** `adapter-map.json` |
|
|
34
|
-
| `php-hexagonal` | `presets/cursor/php-hexagonal/**` | `presets/mavis/php-hexagonal/**` via `generate-mavis.mjs --stack php-hexagonal` | **Required** `adapter-map.json` |
|
|
35
|
-
| `php-laravel` | `presets/cursor/php-laravel/**` | `presets/mavis/php-laravel/**` via `generate-mavis.mjs --stack php-laravel` | **Required** `adapter-map.json` |
|
|
36
|
-
|
|
37
|
-
Mavis is a **third platform adapter**, not a Claude-style topic twin:
|
|
38
|
-
|
|
39
|
-
```text
|
|
40
|
-
_shared/core → cursor/<stack> → mavis/<stack>
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Regenerate with `node packages/ai-rules/scripts/generate-mavis.mjs --stack <stack>`; validate with `node packages/ai-rules/scripts/check-mavis-adapter-map.mjs`.
|
|
44
|
-
|
|
45
|
-
## OpenCode derivation (not a Claude twin)
|
|
46
|
-
|
|
47
|
-
| Stack | Cursor SoT | OpenCode derive | Manifest |
|
|
48
|
-
|-------|------------|-----------------|----------|
|
|
49
|
-
| `next` | `presets/cursor/next/**` | `presets/opencode/next/**` via `generate-opencode.mjs --stack next` | **Required** `adapter-map.json` |
|
|
50
|
-
| `nuxt` | `presets/cursor/nuxt/**` | `presets/opencode/nuxt/**` via `generate-opencode.mjs --stack nuxt` | **Required** `adapter-map.json` |
|
|
51
|
-
| `svelte` | `presets/cursor/svelte/**` | `presets/opencode/svelte/**` via `generate-opencode.mjs --stack svelte` | **Required** `adapter-map.json` |
|
|
52
|
-
| `ios-swift` | `presets/cursor/ios-swift/**` | `presets/opencode/ios-swift/**` via `generate-opencode.mjs --stack ios-swift` | **Required** `adapter-map.json` |
|
|
53
|
-
| `android-kotlin` | `presets/cursor/android-kotlin/**` | `presets/opencode/android-kotlin/**` via `generate-opencode.mjs --stack android-kotlin` | **Required** `adapter-map.json` |
|
|
54
|
-
| `go` | `presets/cursor/go/**` | `presets/opencode/go/**` via `generate-opencode.mjs --stack go` | **Required** `adapter-map.json` |
|
|
55
|
-
| `java` | `presets/cursor/java/**` | `presets/opencode/java/**` via `generate-opencode.mjs --stack java` | **Required** `adapter-map.json` |
|
|
56
|
-
| `mcp-ts` | `presets/cursor/mcp-ts/**` | `presets/opencode/mcp-ts/**` via `generate-opencode.mjs --stack mcp-ts` | **Required** `adapter-map.json` |
|
|
57
|
-
| `php-hexagonal` | `presets/cursor/php-hexagonal/**` | `presets/opencode/php-hexagonal/**` via `generate-opencode.mjs --stack php-hexagonal` | **Required** `adapter-map.json` |
|
|
58
|
-
| `php-laravel` | `presets/cursor/php-laravel/**` | `presets/opencode/php-laravel/**` via `generate-opencode.mjs --stack php-laravel` | **Required** `adapter-map.json` |
|
|
59
|
-
|
|
60
|
-
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/`:
|
|
15
|
+
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.
|
|
61
16
|
|
|
62
17
|
```text
|
|
63
|
-
_shared/core
|
|
18
|
+
_shared/core → cursor/<stack> → { claude/<stack>, mavis/<stack>, opencode/<stack> }
|
|
64
19
|
```
|
|
65
20
|
|
|
66
|
-
|
|
21
|
+
Validate: `check-mavis-adapter-map.mjs`, `check-opencode-adapter-map.mjs`, `check-shared-core-drift.sh`.
|
|
67
22
|
|
|
68
23
|
## Same-PR checklist
|
|
69
24
|
|
|
70
|
-
1. Edit Cursor rule first (body + frontmatter).
|
|
71
|
-
2. Update Claude twin
|
|
72
|
-
3.
|
|
73
|
-
4.
|
|
74
|
-
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`).
|
|
75
|
-
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`).
|
|
25
|
+
1. Edit the Cursor rule first (body + frontmatter).
|
|
26
|
+
2. Update the Claude twin (body + `paths:`); update the README mapping row if the stem/path changed.
|
|
27
|
+
3. Core changed → sync every `<!-- shared-core: … -->` consumer (`sync-shared-core-embeds.sh`).
|
|
28
|
+
4. Cursor source changed → regenerate `mavis/<stack>/` and `opencode/<stack>/` and refresh each `adapter-map.json` `sourceRevision`.
|
|
76
29
|
|
|
77
30
|
## Twin depth
|
|
78
31
|
|
|
79
|
-
- **Domain** rules: ≥15 body lines (FAIL if thin without documented alias reason).
|
|
32
|
+
- **Domain** rules: ≥15 body lines (FAIL if thin without a documented alias reason).
|
|
80
33
|
- **Thin aliases** (`agent-team-intake`, `technical-retro`): may be shorter (soft) if they only point to a command/skill.
|
|
81
|
-
- **Slim-companion rules** (UI-edit bundle, slim app-cores, slim tooling): may be shorter
|
|
82
|
-
- 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.
|
|
34
|
+
- **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.
|
|
83
35
|
|
|
84
36
|
## Severity (build-verifier)
|
|
85
37
|
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
- **svelte:** missing Claude twin for a changed Cursor rule → **FAIL** (mapping table required).
|
|
89
|
-
- **ios-swift:** missing Claude twin for a changed Cursor rule → **FAIL**.
|
|
90
|
-
- **go:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift; mapping table required).
|
|
91
|
-
- **java:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go; mapping table required).
|
|
92
|
-
- **mcp-ts:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go / java; mapping table required).
|
|
93
|
-
- **php-hexagonal:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go / java / mcp-ts; mapping table required).
|
|
94
|
-
- **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).
|
|
95
|
-
- **android-kotlin:** missing Claude twin for a changed Cursor rule → **FAIL** (same as next / ios-swift / go / java / mcp-ts / php-*; mapping table required).
|
|
96
|
-
- **mavis/<stack>:** `cursor/<stack>` mapped source changed without mavis regeneration / `adapter-map.json` `sourceRevision` drift → **FAIL** (`check-mavis-adapter-map.mjs`).
|
|
97
|
-
- **opencode/<stack>:** `cursor/<stack>` mapped source changed without opencode regeneration / `adapter-map.json` `sourceRevision` drift → **FAIL** (`check-opencode-adapter-map.mjs`).
|
|
38
|
+
- Missing Claude twin for a changed Cursor rule → **FAIL** (all 10 stacks; mapping table required).
|
|
39
|
+
- `cursor/<stack>` mapped source changed without mavis / opencode regeneration, or with `adapter-map.json` `sourceRevision` drift → **FAIL**.
|
|
98
40
|
|
|
99
|
-
Dogfood: sync packages → root `.cursor/` after Cursor SoT changes (
|
|
41
|
+
Dogfood: sync packages → root `.cursor/` after Cursor SoT changes (never the reverse): `sync-dogfood-cursor.sh`.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<!-- shared-core: meta/preset-writing-style.md -->
|
|
2
|
+
|
|
3
|
+
# Preset writing style
|
|
4
|
+
|
|
5
|
+
Rules for **preset authors** (`packages/ai-rules/presets/**`). Requestable; not always-on in consumer apps.
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
## Do
|
|
10
|
+
|
|
11
|
+
- One rule per line: imperative and testable (`Do X` / `Never Y`), not "it is important that X".
|
|
12
|
+
- Lead with the rule; state *what* before *why*.
|
|
13
|
+
- Keep the *why* only when it changes behavior — a hidden constraint or the failure it prevents. Drop it when the rule already implies it.
|
|
14
|
+
- Be concrete: name the file, command, symbol, or counter-example.
|
|
15
|
+
- Prefer a table or short list to a paragraph; one idea per bullet.
|
|
16
|
+
- Reuse the shared vocabulary (rule stems, `always-on`, `requestable`, `must` / `should` / `may`) — see the `PRESET-ENGLISH-STYLE` glossary.
|
|
17
|
+
- Delete any sentence that carries no instruction.
|
|
18
|
+
|
|
19
|
+
## Don't (demagogy)
|
|
20
|
+
|
|
21
|
+
- No filler, hedging, or motivational prose.
|
|
22
|
+
- No restating the heading, the rule, or a sibling rule.
|
|
23
|
+
- No emphasis inflation — bold / `must` / `never` only for a hard gate, not the whole page.
|
|
24
|
+
- No selling, urgency, or self-congratulation; no "best practice" without the failure it prevents.
|
|
25
|
+
- No scenario storytelling, rhetorical questions, or meta-narration ("this section explains…").
|
|
26
|
+
- No duplicated rule text across stems — link instead.
|
|
27
|
+
|
|
28
|
+
## Size
|
|
29
|
+
|
|
30
|
+
- Shortest form that still changes behavior: if a bullet fits as a clause, make it a clause.
|
|
31
|
+
- 12+ undifferentiated bullets → split or rank; do not append.
|
|
32
|
+
|
|
33
|
+
## Applies to
|
|
34
|
+
|
|
35
|
+
All preset prose: `_shared/core/**`, stack rules, agents, skills, commands, hook comments, and preset-facing docs (`packages/ai-rules/docs/**`, READMEs).
|
|
36
|
+
|
|
37
|
+
## See also
|
|
38
|
+
|
|
39
|
+
- `preset-goals` — why presets exist.
|
|
40
|
+
- `preset-token-budget` — the caps this style keeps in range.
|
|
41
|
+
- `code-quality-and-refactoring` § Comments & prose — the consumer-side clause.
|
|
42
|
+
- `packages/ai-rules/docs/PRESET-ENGLISH-STYLE.md` — language, glossary, modality.
|
|
@@ -114,5 +114,6 @@ Block handoff via `open_questions` until fixed:
|
|
|
114
114
|
## Stack notes
|
|
115
115
|
|
|
116
116
|
- Author via skill `spec-authoring`; templates from package assets / consumer `docs/specs/_templates/`.
|
|
117
|
+
- **Glossary & contrast (mandatory):** before authoring, read the repo glossary (`openspec/config.yaml` `context:`, `.ai/context/**`, domain README). Each generated spec maps product terms to code symbols + record types and adds one **contrast** requirement/scenario against the nearest confusable symbol. Declare **compliance impact** (None | Affected) for any spec touching medical/personal data or analytics.
|
|
117
118
|
- Field semantics match discovery stem (`routes` = URL paths; `e2e` = Playwright).
|
|
118
119
|
- Requestable — not always-on / session-start.
|
|
@@ -58,5 +58,6 @@ Same-changeset INDEX updates, frontmatter v1, required body headings, templates,
|
|
|
58
58
|
## Stack notes
|
|
59
59
|
|
|
60
60
|
- `routes`: app URL paths. `ui` / `store`: presentation + RTK/store paths (e.g. `app/src/ui/pages/...`). `e2e`: Playwright paths under `app/__tests__/e2e/**` (or repo equivalent).
|
|
61
|
+
- **Domain glossary & contrast:** read the repo glossary first (e.g. `openspec/config.yaml` `context:`). Every spec that names a domain states a **term → code symbol + record type** mapping and includes one **contrast** scenario naming the nearest confusable symbol/page (e.g. an in-person-consultation spec contrasts `OfflineConsultation*` with `OnlineConsultationPage`). This prevents the highest-frequency domain-confusion bug in these repos.
|
|
61
62
|
- Dogfood example (emedcard-web AnalysisPage): `docs/specs/domains/analysis/analysis-page.md`.
|
|
62
63
|
- Requestable / `docs/specs/**` globs — not always-on / session-start.
|
|
@@ -4,6 +4,13 @@ These rows **OVERRIDE** generation for the listed patterns. Before inventing an
|
|
|
4
4
|
|
|
5
5
|
App Router–specific rows (async `params` / `cookies()`, invented auth helpers, etc.) stay in **`next-app-router.md`**. This rule covers broader React / RTK / Next phantom imports and boundary mistakes across `app/**`.
|
|
6
6
|
|
|
7
|
+
## 0. Installed Next ships its own docs (read them first)
|
|
8
|
+
|
|
9
|
+
The installed `next` may bundle version-pinned agent docs and a managed `AGENTS.md` block written by `next dev`:
|
|
10
|
+
|
|
11
|
+
- Docs: `node_modules/next/dist/docs/` (`01-app`, `02-pages`, `03-architecture`, …). Prefer these over blog posts and over training data for framework APIs — they match the installed major.
|
|
12
|
+
- Managed block: `<!-- BEGIN:nextjs-agent-rules -->` in `AGENTS.md` (see `node_modules/next/dist/server/lib/generate-agent-files.js`). **Do not delete it** — `next dev` re-creates it; commit it with your change to keep the tree clean.
|
|
13
|
+
|
|
7
14
|
## 1. Phantom / wrong Next imports
|
|
8
15
|
|
|
9
16
|
| ❌ Avoid | ✅ Prefer |
|
|
@@ -49,6 +56,9 @@ App Router–specific rows (async `params` / `cookies()`, invented auth helpers,
|
|
|
49
56
|
| `Router.push` / Pages `withRouter` patterns in `app/` UI | App Router navigation helpers already used in `app/src/ui/**` |
|
|
50
57
|
| Client `fetch` / raw HTTP from UI or `page.tsx` bypassing `@/api` | Services via `@/api` / established loaders (`api-services.md`, `http-client.md`) |
|
|
51
58
|
| Invented `next/link` props that siblings never use (e.g. fake prefetch enums) | Match existing `<Link>` usage; verify against installed Next |
|
|
59
|
+
| `getServerSideProps` / `getInitialProps`, `pages/api/**`, `route.ts`, `middleware.ts` in an `output: 'export'` repo | build-time `getStaticProps` / `getStaticPaths` or client store/thunk fetch (`next-static-export.md`) |
|
|
60
|
+
| Hardcoded `/` root for links / assets when the repo uses `basePath` / `assetPrefix` | Derive from `basePath` / `assetPrefix` |
|
|
61
|
+
| `next/image` `loader` / `sizes` / `quality` expecting the optimizer in a repo with `images.unoptimized: true` | The repo's image primitive; no optimizer assumptions |
|
|
52
62
|
|
|
53
63
|
## 6. Version drift
|
|
54
64
|
|
|
@@ -17,6 +17,24 @@
|
|
|
17
17
|
- No nested ternaries in JSX. For not-ready / empty / error, use an early return or a dedicated `EmptyState` / `ErrorState` component.
|
|
18
18
|
- A `variant` / `mode` flag that renders two unrelated layouts is **two** components, not one.
|
|
19
19
|
|
|
20
|
+
# One component / one styled element — one purpose
|
|
21
|
+
|
|
22
|
+
- Each component **and** each styled element serves exactly **one** purpose. Do not drive two distinct shapes (different padding, slot set, alignment, visual identity) from a `variant` / `is…` flag or branchy styles.
|
|
23
|
+
- Two call sites that need visibly different markup → two named components (or two named styled exports). Share the base via a small primitive (`BaseCard` styled block + two thin extensions), not a universal branchy `Card`.
|
|
24
|
+
- A flag that flips a single non-layout property (`compact`, `disabled`) is fine; a flag that flips layout, slots, or visual identity is not — split it.
|
|
25
|
+
|
|
26
|
+
# CSS-in-JS interpolation functions
|
|
27
|
+
|
|
28
|
+
- Inside `${…}` interpolations of a styled template (`styled.*`), do **not** write an inline arrow (`${({ tone }) => …}` or `${({ gap }) => gap}`). Reference a **module-level function** that takes the styled props: `${getPromoStatusColor}`.
|
|
29
|
+
- Name it `get` + the value (`getColor`, `getGap`, `getPromoStatusColor`); keep the prop type shared between the styled generic and the function parameter.
|
|
30
|
+
- A module-level function is debuggable, type-checkable in isolation, and reusable across sibling styled blocks; an inline arrow compiles to an untestable one-shot.
|
|
31
|
+
|
|
32
|
+
# Async UI states
|
|
33
|
+
|
|
34
|
+
- Loading, empty, error, and load-failed are **distinct** states — render each explicitly; do not collapse them into one spinner/blank branch.
|
|
35
|
+
- Prefer a **per-block skeleton** over a page-level spinner, and reuse the repo's existing primitives (`Skeleton`, `EmptyState`, `ErrorState`, load-failed stub, global `ErrorBoundary`) instead of inventing new ones.
|
|
36
|
+
- Error boundaries are usually mounted once at the app root; add a local boundary only when the repo already does so for that region.
|
|
37
|
+
|
|
20
38
|
## Incorrect
|
|
21
39
|
|
|
22
40
|
```tsx
|
|
@@ -90,7 +108,7 @@ For a reusable component:
|
|
|
90
108
|
- **Forbidden** to import another component's `styles` (`../Other/styles`, `../../styles`). Allowed: `./styles`, shared primitives from `@/ui/components/...` or design-system packages.
|
|
91
109
|
- CSS / `styled` order — Stylelint idiomatic-order: `css-property-order-stylelint.md` (loads on `styles.ts` / `.css`).
|
|
92
110
|
- For visuals use **the style stack and tokens already in the project** (variables, theme, shared classes, design package).
|
|
93
|
-
- **Token binding (Figma → repo):** typography, color, spacing, radius, shadow, and imagery must bind to the project token module and the design system (`@sds/tokens-*` / `@sds/brand-colors` / DS components like `Text variant="…"`, `@sds/icon`,
|
|
111
|
+
- **Token binding (Figma → repo):** typography, color, spacing, radius, shadow, and imagery must bind to the project token module and the design system (`@sds/tokens-*` / `@sds/brand-colors` / DS components like `Text variant="…"`, `@sds/icon`, the project image primitive). Raw `#…` / `rgb(…)` / `px` where a token exists is a finding. The full discipline — including the per-element parity checklist and the developer self-check vs Figma — is in **`design-tokens-binding.md`**. When a Figma reference exists, the `mockup-review.md` `## Design contract` section is the binding table; use it.
|
|
94
112
|
- Avoid:
|
|
95
113
|
- inline styles except simple cases;
|
|
96
114
|
- duplicating styling already covered by shared primitives;
|
|
@@ -62,6 +62,11 @@ Replace **TBD** with real paths after team agreement (or on `ai-rules init` in t
|
|
|
62
62
|
| Types module | **TBD** `app/src/types/<example>/` | domain types, JSDoc, barrel export |
|
|
63
63
|
| Unit tests | **TBD** mirrored under `app/__tests__/unit/<rel>` | `*.spec.ts`, describe/it naming |
|
|
64
64
|
| E2E area | **TBD** `app/__tests__/e2e/<Area>/` | `*.cases.md`, page objects, `_shared/` |
|
|
65
|
+
| Scaffold | **TBD** `app/src/boilerplate/**` | new-component skeleton (copy, then rename) |
|
|
66
|
+
| Global singletons | **TBD** `app/src/ui/components/_singletons/**` | app-root-mounted containers (modals, sync, flags) |
|
|
67
|
+
| Layout / guard | **TBD** `app/src/ui/layouts/**`, `app/src/ui/guards/**` | route wrapping (auth, chrome) |
|
|
68
|
+
| Cross-feature hooks | **TBD** `app/src/core/**` | reusable feature hooks used across pages |
|
|
69
|
+
| Internal slices | **TBD** `app/src/store/slices/_complexSlices/**`, `_utilsSlices/**` | cross-slice orchestration / pure helpers — **no** direct slice→slice imports |
|
|
65
70
|
|
|
66
71
|
## How to use
|
|
67
72
|
|
|
@@ -76,6 +81,6 @@ Post-init gotchas / patterns / decisions: **`.ai.local/conventions.md`** (shared
|
|
|
76
81
|
|
|
77
82
|
## Related rules
|
|
78
83
|
|
|
79
|
-
- `code-quality-and-refactoring.
|
|
80
|
-
- `feature-delivery-workflow.
|
|
84
|
+
- `code-quality-and-refactoring.md` — repeat patterns, no deep-import.
|
|
85
|
+
- `feature-delivery-workflow.md` — layer order.
|
|
81
86
|
- skill `feature-delivery` — end-to-end scenario.
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Coding-time checklist. Full audit → agent `security-reviewer` + skill `code-review`.
|
|
4
4
|
|
|
5
|
+
**Deployment model first.** Read `output` in `next.config.*`. With `output: 'export'` there is **no server tier**: the Server Actions / route handlers / middleware items below are **N/A**. The applicable subset is Secrets & env, XSS, redirects, data exposure, and third-party scripts — and auth/session are enforced by the BFF plus a client route guard.
|
|
6
|
+
|
|
5
7
|
## Secrets and env
|
|
6
8
|
|
|
7
9
|
- Never put service / secret keys in `NEXT_PUBLIC_*` or client bundles (`sk_`, private API keys, DB URLs).
|
|
@@ -14,6 +16,7 @@ Coding-time checklist. Full audit → agent `security-reviewer` + skill `code-re
|
|
|
14
16
|
- Middleware may refresh sessions; do not treat middleware alone as authorization.
|
|
15
17
|
- Prefer httpOnly secure cookies over `localStorage` for tokens when the repo pattern allows.
|
|
16
18
|
- Never trust client-only session claims without a server verify step used by the project.
|
|
19
|
+
- **Static-export / SPA repos:** there is no server session verify — use the repo's client route guard plus BFF-issued httpOnly cookies; do not invent a server verifier.
|
|
17
20
|
|
|
18
21
|
## Mutations and input
|
|
19
22
|
|
|
@@ -39,6 +42,15 @@ Coding-time checklist. Full audit → agent `security-reviewer` + skill `code-re
|
|
|
39
42
|
| Invented auth helpers not in `package.json` / codebase | Copy patterns from existing auth routes |
|
|
40
43
|
| Putting secrets in `NEXT_PUBLIC_*` | Server-only env + server modules |
|
|
41
44
|
| Auth only in middleware | Server `getUser` / session verify in layout/page/action |
|
|
45
|
+
| Server session verifier / Server Action in a static-export repo | Client route guard + BFF-issued httpOnly cookie |
|
|
46
|
+
|
|
47
|
+
## Compliance / personal data (regulated apps)
|
|
48
|
+
|
|
49
|
+
For apps that ship medical or personal data (e.g. GDPR / local data-protection law):
|
|
50
|
+
|
|
51
|
+
- Logs, traces, analytics payloads, error reports, and third-party scripts must **not** carry PD, full record text, raw auth tokens, or full URL search params.
|
|
52
|
+
- Flag every new third-party script and every change to the SSR/cookie payload shape for review.
|
|
53
|
+
- Any change touching PD, medical data, analytics, or third-party scripts declares a **compliance impact** block (None | Affected) in its L2+ artifact; when unclear, default to Affected and block.
|
|
42
54
|
|
|
43
55
|
## Agent requirement
|
|
44
56
|
|
|
@@ -43,6 +43,12 @@
|
|
|
43
43
|
- avoid duplicating entity descriptions in multiple places.
|
|
44
44
|
- **Domain boundary**: in **state**, store domain models; the client **response wrapper** type is acceptable as a thunk **return type** or interim before mapping — without duplicating DTOs in state fields unnecessarily (aligned with `api-services.md` and `http-client.md`).
|
|
45
45
|
|
|
46
|
+
# Middleware and cross-slice orchestration
|
|
47
|
+
|
|
48
|
+
- Cross-cutting side effects (analytics, captcha, file lifecycle, cross-slice sync) live in **listener middleware** at `app/src/store/middleware/<Domain>Middleware/`, registered in the store factory — follow the repo's `prepend`/`concat` order.
|
|
49
|
+
- A slice **must not import another slice**. When two domains must react to each other, orchestrate in middleware or a dedicated `_complexSlices/<Domain>` module (`_utilsSlices` for pure helpers) — never a direct slice→slice import.
|
|
50
|
+
- Prefer a thunk for a single request/response; prefer middleware for reactions that span slices or emit analytics.
|
|
51
|
+
|
|
46
52
|
# Slice testing
|
|
47
53
|
|
|
48
54
|
- For important slices:
|