@bonesofspring/ai-rules 0.2.32 → 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 +31 -0
- package/README.md +1 -1
- package/docs/LOCAL-OVERLAY.md +16 -1
- package/docs/PRESET-CONTRIBUTION.md +13 -4
- package/docs/PRESET-ENGLISH-STYLE.md +23 -1
- package/package.json +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 +32 -2
- package/presets/claude/android-kotlin/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/mockup-review.md +56 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/android-kotlin/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/android-kotlin/team/README.md +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 +31 -1
- package/presets/claude/go/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/go/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/go/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/go/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/go/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/go/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/go/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/go/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/go/team/README.md +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 +32 -2
- package/presets/claude/ios-swift/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/mockup-review.md +56 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/ios-swift/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/ios-swift/team/README.md +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 +31 -1
- package/presets/claude/java/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/java/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/java/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/java/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/java/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/java/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/java/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/java/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/java/team/README.md +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 +31 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/mcp-ts/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/mcp-ts/team/README.md +17 -0
- package/presets/claude/next/REPO_AGENTS.md +3 -0
- package/presets/claude/next/agents/README.md +6 -0
- package/presets/claude/next/agents/build-verifier.md +12 -0
- package/presets/claude/next/agents/code-reviewer.md +23 -0
- package/presets/claude/next/agents/debugger.md +12 -0
- package/presets/claude/next/agents/feature-developer.md +20 -2
- package/presets/claude/next/agents/mockup-reviewer.md +25 -4
- package/presets/claude/next/agents/task-analyst.md +30 -0
- package/presets/claude/next/agents/task-router.md +8 -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 +4 -0
- package/presets/claude/next/rules/architecture/feature-delivery-workflow.md +8 -0
- package/presets/claude/next/rules/stack/next-app-core.md +6 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-intake.md +3 -0
- package/presets/claude/next/rules/tooling-and-review/agent-team-orchestrator.md +32 -2
- package/presets/claude/next/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/next/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/next/rules/tooling-and-review/code-review-mr.md +10 -0
- package/presets/claude/next/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/next/rules/tooling-and-review/mockup-review.md +77 -1
- package/presets/claude/next/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/next/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/next/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/next/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/next/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/next/rules/ui-and-accessibility/design-tokens-binding.md +23 -1
- package/presets/claude/next/skills/README.md +1 -0
- package/presets/claude/next/skills/code-review/SKILL.md +1 -1
- package/presets/claude/next/skills/figma-fidelity/SKILL.md +96 -0
- package/presets/claude/next/skills/mockup-review/SKILL.md +5 -1
- package/presets/claude/next/team/README.md +18 -0
- package/presets/claude/next/team/fixtures/artifact-manifest.example.json +1 -1
- 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 +32 -2
- package/presets/claude/nuxt/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/nuxt/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/nuxt/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/nuxt/rules/tooling-and-review/mockup-review.md +56 -1
- package/presets/claude/nuxt/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/nuxt/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/nuxt/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/nuxt/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/nuxt/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/nuxt/team/README.md +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 +31 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/php-hexagonal/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/php-hexagonal/team/README.md +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 +31 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/php-laravel/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/php-laravel/team/README.md +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 +32 -2
- package/presets/claude/svelte/rules/tooling-and-review/ai-local-overlay.md +4 -0
- package/presets/claude/svelte/rules/tooling-and-review/code-quality.md +20 -1
- package/presets/claude/svelte/rules/tooling-and-review/language-policy.md +52 -0
- package/presets/claude/svelte/rules/tooling-and-review/mockup-review.md +56 -1
- package/presets/claude/svelte/rules/tooling-and-review/preset-goals.md +40 -0
- package/presets/claude/svelte/rules/tooling-and-review/preset-layering.md +1 -1
- package/presets/claude/svelte/rules/tooling-and-review/preset-pr-checklist.md +4 -0
- package/presets/claude/svelte/rules/tooling-and-review/preset-twin-sync.md +19 -77
- package/presets/claude/svelte/rules/tooling-and-review/preset-writing-style.md +51 -0
- package/presets/claude/svelte/team/README.md +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 +32 -2
- package/presets/cursor/android-kotlin/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/android-kotlin/rules/android-app-core.mdc +6 -0
- package/presets/cursor/android-kotlin/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/android-kotlin/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/android-kotlin/rules/language-policy.mdc +52 -0
- package/presets/cursor/android-kotlin/rules/mockup-review.mdc +56 -1
- package/presets/cursor/android-kotlin/rules/preset-goals.mdc +40 -0
- package/presets/cursor/android-kotlin/rules/preset-layering.mdc +1 -1
- package/presets/cursor/android-kotlin/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/android-kotlin/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/android-kotlin/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/android-kotlin/team/README.md +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 +31 -1
- package/presets/cursor/go/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/go/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/go/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/go/rules/go-app-core.mdc +6 -0
- package/presets/cursor/go/rules/language-policy.mdc +52 -0
- package/presets/cursor/go/rules/preset-goals.mdc +40 -0
- package/presets/cursor/go/rules/preset-layering.mdc +1 -1
- package/presets/cursor/go/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/go/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/go/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/go/team/README.md +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 +32 -2
- package/presets/cursor/ios-swift/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/ios-swift/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/ios-swift/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/ios-swift/rules/ios-app-core.mdc +6 -0
- package/presets/cursor/ios-swift/rules/language-policy.mdc +52 -0
- package/presets/cursor/ios-swift/rules/mockup-review.mdc +56 -1
- package/presets/cursor/ios-swift/rules/preset-goals.mdc +40 -0
- package/presets/cursor/ios-swift/rules/preset-layering.mdc +1 -1
- package/presets/cursor/ios-swift/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/ios-swift/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/ios-swift/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/ios-swift/team/README.md +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 +31 -1
- package/presets/cursor/java/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/java/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/java/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/java/rules/java-app-core.mdc +6 -0
- package/presets/cursor/java/rules/language-policy.mdc +52 -0
- package/presets/cursor/java/rules/preset-goals.mdc +40 -0
- package/presets/cursor/java/rules/preset-layering.mdc +1 -1
- package/presets/cursor/java/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/java/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/java/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/java/team/README.md +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 +31 -1
- package/presets/cursor/mcp-ts/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/mcp-ts/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/mcp-ts/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/mcp-ts/rules/language-policy.mdc +52 -0
- package/presets/cursor/mcp-ts/rules/mcp-ts-app-core.mdc +6 -0
- package/presets/cursor/mcp-ts/rules/preset-goals.mdc +40 -0
- package/presets/cursor/mcp-ts/rules/preset-layering.mdc +1 -1
- package/presets/cursor/mcp-ts/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/mcp-ts/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/mcp-ts/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/mcp-ts/team/README.md +11 -0
- package/presets/cursor/next/REPO_AGENTS.md +3 -0
- package/presets/cursor/next/agents/README.md +7 -1
- package/presets/cursor/next/agents/build-verifier.md +12 -0
- package/presets/cursor/next/agents/code-reviewer.md +23 -0
- package/presets/cursor/next/agents/debugger.md +12 -0
- package/presets/cursor/next/agents/feature-developer.md +20 -2
- package/presets/cursor/next/agents/mockup-reviewer.md +25 -4
- package/presets/cursor/next/agents/task-analyst.md +43 -2
- package/presets/cursor/next/agents/task-router.md +8 -0
- package/presets/cursor/next/ai-local/conventions.md +8 -0
- package/presets/cursor/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
- package/presets/cursor/next/ai-local/rules-library/mcp-required-for-ui-layout.md +4 -0
- package/presets/cursor/next/ai-local/rules-library/storybook-dev-compare-figma.md +4 -0
- package/presets/cursor/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/cursor/next/commands/task-continue.md +8 -0
- package/presets/cursor/next/commands/task.md +14 -1
- package/presets/cursor/next/rules/README.md +3 -1
- package/presets/cursor/next/rules/agent-team-intake.mdc +3 -0
- package/presets/cursor/next/rules/agent-team-orchestrator.mdc +36 -2
- package/presets/cursor/next/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/next/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/next/rules/code-review-mr.mdc +10 -0
- package/presets/cursor/next/rules/design-tokens-binding.mdc +23 -1
- package/presets/cursor/next/rules/feature-delivery-workflow.mdc +8 -0
- package/presets/cursor/next/rules/language-policy.mdc +52 -0
- package/presets/cursor/next/rules/mockup-review.mdc +77 -1
- package/presets/cursor/next/rules/next-app-core.mdc +6 -0
- package/presets/cursor/next/rules/preset-goals.mdc +40 -0
- package/presets/cursor/next/rules/preset-layering.mdc +1 -1
- package/presets/cursor/next/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/next/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/next/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/next/skills/README.md +1 -0
- package/presets/cursor/next/skills/code-review/SKILL.md +1 -1
- package/presets/cursor/next/skills/figma-fidelity/SKILL.md +96 -0
- package/presets/cursor/next/skills/mockup-review/SKILL.md +5 -1
- package/presets/cursor/next/team/README.md +12 -0
- package/presets/cursor/next/team/fixtures/artifact-manifest.example.json +1 -1
- 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 +32 -2
- package/presets/cursor/nuxt/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/nuxt/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/nuxt/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/nuxt/rules/language-policy.mdc +52 -0
- package/presets/cursor/nuxt/rules/mockup-review.mdc +56 -1
- package/presets/cursor/nuxt/rules/nuxt-app-core.mdc +6 -0
- package/presets/cursor/nuxt/rules/preset-goals.mdc +40 -0
- package/presets/cursor/nuxt/rules/preset-layering.mdc +1 -1
- package/presets/cursor/nuxt/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/nuxt/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/nuxt/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/nuxt/team/README.md +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 +31 -1
- package/presets/cursor/php-hexagonal/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/php-hexagonal/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/php-hexagonal/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/php-hexagonal/rules/language-policy.mdc +52 -0
- package/presets/cursor/php-hexagonal/rules/php-app-core.mdc +6 -0
- package/presets/cursor/php-hexagonal/rules/preset-goals.mdc +40 -0
- package/presets/cursor/php-hexagonal/rules/preset-layering.mdc +1 -1
- package/presets/cursor/php-hexagonal/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/php-hexagonal/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/php-hexagonal/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/php-hexagonal/team/README.md +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 +31 -1
- package/presets/cursor/php-laravel/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/php-laravel/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/php-laravel/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/php-laravel/rules/language-policy.mdc +52 -0
- package/presets/cursor/php-laravel/rules/laravel-app-core.mdc +6 -0
- package/presets/cursor/php-laravel/rules/preset-goals.mdc +40 -0
- package/presets/cursor/php-laravel/rules/preset-layering.mdc +1 -1
- package/presets/cursor/php-laravel/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/php-laravel/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/php-laravel/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/php-laravel/team/README.md +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 +32 -2
- package/presets/cursor/svelte/rules/ai-local-overlay.mdc +4 -0
- package/presets/cursor/svelte/rules/code-quality-and-refactoring.mdc +20 -1
- package/presets/cursor/svelte/rules/feature-delivery-workflow.mdc +4 -0
- package/presets/cursor/svelte/rules/language-policy.mdc +52 -0
- package/presets/cursor/svelte/rules/mockup-review.mdc +56 -1
- package/presets/cursor/svelte/rules/preset-goals.mdc +40 -0
- package/presets/cursor/svelte/rules/preset-layering.mdc +1 -1
- package/presets/cursor/svelte/rules/preset-pr-checklist.mdc +4 -0
- package/presets/cursor/svelte/rules/preset-twin-sync.mdc +19 -77
- package/presets/cursor/svelte/rules/preset-writing-style.mdc +51 -0
- package/presets/cursor/svelte/rules/svelte-app-core.mdc +6 -0
- package/presets/cursor/svelte/team/README.md +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 +22 -2
- package/presets/mavis/android-kotlin/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/android-kotlin/rules/android-app-core.md +6 -0
- package/presets/mavis/android-kotlin/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/android-kotlin/rules/feature-delivery-workflow.md +4 -0
- package/presets/mavis/android-kotlin/rules/language-policy.md +43 -0
- package/presets/mavis/android-kotlin/rules/mockup-review.md +56 -1
- package/presets/mavis/android-kotlin/rules/preset-goals.md +31 -0
- package/presets/mavis/android-kotlin/rules/preset-layering.md +1 -1
- package/presets/mavis/android-kotlin/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/android-kotlin/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/android-kotlin/rules/preset-writing-style.md +42 -0
- package/presets/mavis/android-kotlin/team/README.md +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 +22 -2
- package/presets/mavis/go/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/go/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/go/rules/feature-delivery-workflow.md +11 -1
- package/presets/mavis/go/rules/go-app-core.md +6 -0
- package/presets/mavis/go/rules/language-policy.md +43 -0
- package/presets/mavis/go/rules/preset-goals.md +31 -0
- package/presets/mavis/go/rules/preset-layering.md +1 -1
- package/presets/mavis/go/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/go/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/go/rules/preset-writing-style.md +42 -0
- package/presets/mavis/go/team/README.md +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 +22 -2
- package/presets/mavis/ios-swift/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/ios-swift/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/ios-swift/rules/feature-delivery-workflow.md +15 -1
- package/presets/mavis/ios-swift/rules/ios-app-core.md +6 -0
- package/presets/mavis/ios-swift/rules/language-policy.md +43 -0
- package/presets/mavis/ios-swift/rules/mockup-review.md +56 -1
- package/presets/mavis/ios-swift/rules/preset-goals.md +31 -0
- package/presets/mavis/ios-swift/rules/preset-layering.md +1 -1
- package/presets/mavis/ios-swift/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/ios-swift/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/ios-swift/rules/preset-writing-style.md +42 -0
- package/presets/mavis/ios-swift/team/README.md +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 +22 -2
- package/presets/mavis/java/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/java/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/java/rules/feature-delivery-workflow.md +11 -1
- package/presets/mavis/java/rules/java-app-core.md +6 -0
- package/presets/mavis/java/rules/language-policy.md +43 -0
- package/presets/mavis/java/rules/preset-goals.md +31 -0
- package/presets/mavis/java/rules/preset-layering.md +1 -1
- package/presets/mavis/java/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/java/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/java/rules/preset-writing-style.md +42 -0
- package/presets/mavis/java/team/README.md +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 +22 -2
- 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 +3 -0
- package/presets/mavis/next/adapter-map.json +38 -3
- package/presets/mavis/next/agents/README.md +6 -0
- package/presets/mavis/next/agents/build-verifier.md +12 -0
- package/presets/mavis/next/agents/code-reviewer.md +23 -0
- package/presets/mavis/next/agents/debugger.md +12 -0
- package/presets/mavis/next/agents/feature-developer.md +20 -2
- package/presets/mavis/next/agents/mockup-reviewer.md +25 -4
- package/presets/mavis/next/agents/task-analyst.md +43 -2
- package/presets/mavis/next/agents/task-router.md +8 -0
- package/presets/mavis/next/ai-local/conventions.md +8 -0
- package/presets/mavis/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
- package/presets/mavis/next/ai-local/rules-library/mcp-required-for-ui-layout.md +4 -0
- package/presets/mavis/next/ai-local/rules-library/storybook-dev-compare-figma.md +4 -0
- package/presets/mavis/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/mavis/next/commands/task-continue.md +8 -0
- package/presets/mavis/next/commands/task.md +14 -1
- package/presets/mavis/next/rules/agent-team-intake.md +3 -0
- package/presets/mavis/next/rules/agent-team-orchestrator.md +22 -2
- package/presets/mavis/next/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/next/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/next/rules/code-review-mr.md +10 -0
- package/presets/mavis/next/rules/design-tokens-binding.md +23 -1
- package/presets/mavis/next/rules/feature-delivery-workflow.md +19 -1
- package/presets/mavis/next/rules/language-policy.md +43 -0
- package/presets/mavis/next/rules/mockup-review.md +77 -1
- package/presets/mavis/next/rules/next-app-core.md +6 -0
- package/presets/mavis/next/rules/preset-goals.md +31 -0
- package/presets/mavis/next/rules/preset-layering.md +1 -1
- package/presets/mavis/next/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/next/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/next/rules/preset-writing-style.md +42 -0
- package/presets/mavis/next/skills/README.md +1 -0
- package/presets/mavis/next/skills/code-review/SKILL.md +1 -1
- package/presets/mavis/next/skills/figma-fidelity/SKILL.md +91 -0
- package/presets/mavis/next/skills/mockup-review/SKILL.md +5 -1
- package/presets/mavis/next/team/README.md +12 -0
- package/presets/mavis/next/team/fixtures/artifact-manifest.example.json +1 -1
- 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 +22 -2
- package/presets/mavis/nuxt/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/nuxt/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/nuxt/rules/feature-delivery-workflow.md +15 -1
- package/presets/mavis/nuxt/rules/language-policy.md +43 -0
- package/presets/mavis/nuxt/rules/mockup-review.md +56 -1
- package/presets/mavis/nuxt/rules/nuxt-app-core.md +6 -0
- package/presets/mavis/nuxt/rules/preset-goals.md +31 -0
- package/presets/mavis/nuxt/rules/preset-layering.md +1 -1
- package/presets/mavis/nuxt/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/nuxt/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/nuxt/rules/preset-writing-style.md +42 -0
- package/presets/mavis/nuxt/team/README.md +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 +22 -2
- package/presets/mavis/php-hexagonal/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/php-hexagonal/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/php-hexagonal/rules/feature-delivery-workflow.md +11 -1
- package/presets/mavis/php-hexagonal/rules/language-policy.md +43 -0
- package/presets/mavis/php-hexagonal/rules/php-app-core.md +6 -0
- package/presets/mavis/php-hexagonal/rules/preset-goals.md +31 -0
- package/presets/mavis/php-hexagonal/rules/preset-layering.md +1 -1
- package/presets/mavis/php-hexagonal/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/php-hexagonal/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/php-hexagonal/rules/preset-writing-style.md +42 -0
- package/presets/mavis/php-hexagonal/team/README.md +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 +22 -2
- package/presets/mavis/php-laravel/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/php-laravel/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/php-laravel/rules/feature-delivery-workflow.md +11 -1
- package/presets/mavis/php-laravel/rules/language-policy.md +43 -0
- package/presets/mavis/php-laravel/rules/laravel-app-core.md +6 -0
- package/presets/mavis/php-laravel/rules/preset-goals.md +31 -0
- package/presets/mavis/php-laravel/rules/preset-layering.md +1 -1
- package/presets/mavis/php-laravel/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/php-laravel/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/php-laravel/rules/preset-writing-style.md +42 -0
- package/presets/mavis/php-laravel/team/README.md +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 +22 -2
- package/presets/mavis/svelte/rules/ai-local-overlay.md +4 -0
- package/presets/mavis/svelte/rules/code-quality-and-refactoring.md +20 -1
- package/presets/mavis/svelte/rules/feature-delivery-workflow.md +15 -1
- package/presets/mavis/svelte/rules/language-policy.md +43 -0
- package/presets/mavis/svelte/rules/mockup-review.md +56 -1
- package/presets/mavis/svelte/rules/preset-goals.md +31 -0
- package/presets/mavis/svelte/rules/preset-layering.md +1 -1
- package/presets/mavis/svelte/rules/preset-pr-checklist.md +4 -0
- package/presets/mavis/svelte/rules/preset-twin-sync.md +19 -77
- package/presets/mavis/svelte/rules/preset-writing-style.md +42 -0
- package/presets/mavis/svelte/rules/svelte-app-core.md +6 -0
- package/presets/mavis/svelte/team/README.md +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 +22 -2
- package/presets/opencode/android-kotlin/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/android-kotlin/rules/android-app-core.md +6 -0
- package/presets/opencode/android-kotlin/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/android-kotlin/rules/feature-delivery-workflow.md +4 -0
- package/presets/opencode/android-kotlin/rules/language-policy.md +43 -0
- package/presets/opencode/android-kotlin/rules/mockup-review.md +56 -1
- package/presets/opencode/android-kotlin/rules/preset-goals.md +31 -0
- package/presets/opencode/android-kotlin/rules/preset-layering.md +1 -1
- package/presets/opencode/android-kotlin/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/android-kotlin/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/android-kotlin/rules/preset-writing-style.md +42 -0
- package/presets/opencode/android-kotlin/team/README.md +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 +22 -2
- package/presets/opencode/go/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/go/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/go/rules/feature-delivery-workflow.md +11 -1
- package/presets/opencode/go/rules/go-app-core.md +6 -0
- package/presets/opencode/go/rules/language-policy.md +43 -0
- package/presets/opencode/go/rules/preset-goals.md +31 -0
- package/presets/opencode/go/rules/preset-layering.md +1 -1
- package/presets/opencode/go/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/go/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/go/rules/preset-writing-style.md +42 -0
- package/presets/opencode/go/team/README.md +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 +22 -2
- package/presets/opencode/ios-swift/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/ios-swift/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/ios-swift/rules/feature-delivery-workflow.md +15 -1
- package/presets/opencode/ios-swift/rules/ios-app-core.md +6 -0
- package/presets/opencode/ios-swift/rules/language-policy.md +43 -0
- package/presets/opencode/ios-swift/rules/mockup-review.md +56 -1
- package/presets/opencode/ios-swift/rules/preset-goals.md +31 -0
- package/presets/opencode/ios-swift/rules/preset-layering.md +1 -1
- package/presets/opencode/ios-swift/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/ios-swift/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/ios-swift/rules/preset-writing-style.md +42 -0
- package/presets/opencode/ios-swift/team/README.md +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 +22 -2
- package/presets/opencode/java/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/java/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/java/rules/feature-delivery-workflow.md +11 -1
- package/presets/opencode/java/rules/java-app-core.md +6 -0
- package/presets/opencode/java/rules/language-policy.md +43 -0
- package/presets/opencode/java/rules/preset-goals.md +31 -0
- package/presets/opencode/java/rules/preset-layering.md +1 -1
- package/presets/opencode/java/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/java/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/java/rules/preset-writing-style.md +42 -0
- package/presets/opencode/java/team/README.md +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 +22 -2
- 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 +3 -0
- package/presets/opencode/next/adapter-map.json +38 -3
- package/presets/opencode/next/agents/README.md +6 -0
- package/presets/opencode/next/agents/build-verifier.md +12 -0
- package/presets/opencode/next/agents/code-reviewer.md +23 -0
- package/presets/opencode/next/agents/debugger.md +12 -0
- package/presets/opencode/next/agents/feature-developer.md +20 -2
- package/presets/opencode/next/agents/mockup-reviewer.md +25 -4
- package/presets/opencode/next/agents/task-analyst.md +43 -2
- package/presets/opencode/next/agents/task-router.md +8 -0
- package/presets/opencode/next/ai-local/conventions.md +8 -0
- package/presets/opencode/next/ai-local/rules-library/agent-pipeline-gates.md +1 -1
- package/presets/opencode/next/ai-local/rules-library/mcp-required-for-ui-layout.md +4 -0
- package/presets/opencode/next/ai-local/rules-library/storybook-dev-compare-figma.md +4 -0
- package/presets/opencode/next/ai-local/rules-library/ui-change-review-gate.md +1 -0
- package/presets/opencode/next/commands/task-continue.md +8 -0
- package/presets/opencode/next/commands/task.md +14 -1
- package/presets/opencode/next/rules/agent-team-intake.md +3 -0
- package/presets/opencode/next/rules/agent-team-orchestrator.md +22 -2
- package/presets/opencode/next/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/next/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/next/rules/code-review-mr.md +10 -0
- package/presets/opencode/next/rules/design-tokens-binding.md +23 -1
- package/presets/opencode/next/rules/feature-delivery-workflow.md +19 -1
- package/presets/opencode/next/rules/language-policy.md +43 -0
- package/presets/opencode/next/rules/mockup-review.md +77 -1
- package/presets/opencode/next/rules/next-app-core.md +6 -0
- package/presets/opencode/next/rules/preset-goals.md +31 -0
- package/presets/opencode/next/rules/preset-layering.md +1 -1
- package/presets/opencode/next/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/next/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/next/rules/preset-writing-style.md +42 -0
- package/presets/opencode/next/skills/README.md +1 -0
- package/presets/opencode/next/skills/code-review/SKILL.md +1 -1
- package/presets/opencode/next/skills/figma-fidelity/SKILL.md +96 -0
- package/presets/opencode/next/skills/mockup-review/SKILL.md +5 -1
- package/presets/opencode/next/team/README.md +12 -0
- package/presets/opencode/next/team/fixtures/artifact-manifest.example.json +1 -1
- 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 +22 -2
- package/presets/opencode/nuxt/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/nuxt/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/nuxt/rules/feature-delivery-workflow.md +15 -1
- package/presets/opencode/nuxt/rules/language-policy.md +43 -0
- package/presets/opencode/nuxt/rules/mockup-review.md +56 -1
- package/presets/opencode/nuxt/rules/nuxt-app-core.md +6 -0
- package/presets/opencode/nuxt/rules/preset-goals.md +31 -0
- package/presets/opencode/nuxt/rules/preset-layering.md +1 -1
- package/presets/opencode/nuxt/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/nuxt/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/nuxt/rules/preset-writing-style.md +42 -0
- package/presets/opencode/nuxt/team/README.md +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 +22 -2
- package/presets/opencode/php-hexagonal/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/php-hexagonal/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/php-hexagonal/rules/feature-delivery-workflow.md +11 -1
- package/presets/opencode/php-hexagonal/rules/language-policy.md +43 -0
- package/presets/opencode/php-hexagonal/rules/php-app-core.md +6 -0
- package/presets/opencode/php-hexagonal/rules/preset-goals.md +31 -0
- package/presets/opencode/php-hexagonal/rules/preset-layering.md +1 -1
- package/presets/opencode/php-hexagonal/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/php-hexagonal/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/php-hexagonal/rules/preset-writing-style.md +42 -0
- package/presets/opencode/php-hexagonal/team/README.md +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 +22 -2
- package/presets/opencode/php-laravel/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/php-laravel/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/php-laravel/rules/feature-delivery-workflow.md +11 -1
- package/presets/opencode/php-laravel/rules/language-policy.md +43 -0
- package/presets/opencode/php-laravel/rules/laravel-app-core.md +6 -0
- package/presets/opencode/php-laravel/rules/preset-goals.md +31 -0
- package/presets/opencode/php-laravel/rules/preset-layering.md +1 -1
- package/presets/opencode/php-laravel/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/php-laravel/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/php-laravel/rules/preset-writing-style.md +42 -0
- package/presets/opencode/php-laravel/team/README.md +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 +22 -2
- package/presets/opencode/svelte/rules/ai-local-overlay.md +4 -0
- package/presets/opencode/svelte/rules/code-quality-and-refactoring.md +20 -1
- package/presets/opencode/svelte/rules/feature-delivery-workflow.md +15 -1
- package/presets/opencode/svelte/rules/language-policy.md +43 -0
- package/presets/opencode/svelte/rules/mockup-review.md +56 -1
- package/presets/opencode/svelte/rules/preset-goals.md +31 -0
- package/presets/opencode/svelte/rules/preset-layering.md +1 -1
- package/presets/opencode/svelte/rules/preset-pr-checklist.md +4 -0
- package/presets/opencode/svelte/rules/preset-twin-sync.md +19 -77
- package/presets/opencode/svelte/rules/preset-writing-style.md +42 -0
- package/presets/opencode/svelte/rules/svelte-app-core.md +6 -0
- package/presets/opencode/svelte/team/README.md +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-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 +34 -30
- package/scripts/fixtures/cli-golden/cursor/next.json +38 -34
- package/scripts/fixtures/cli-golden/mavis/android-kotlin.json +25 -22
- package/scripts/fixtures/cli-golden/mavis/go.json +24 -21
- package/scripts/fixtures/cli-golden/mavis/ios-swift.json +25 -22
- package/scripts/fixtures/cli-golden/mavis/java.json +24 -21
- package/scripts/fixtures/cli-golden/mavis/mcp-ts.json +22 -19
- package/scripts/fixtures/cli-golden/mavis/next.json +37 -33
- package/scripts/fixtures/cli-golden/mavis/nuxt.json +26 -23
- package/scripts/fixtures/cli-golden/mavis/php-hexagonal.json +24 -21
- package/scripts/fixtures/cli-golden/mavis/php-laravel.json +24 -21
- package/scripts/fixtures/cli-golden/mavis/svelte.json +26 -23
- package/scripts/fixtures/cli-golden/opencode/android-kotlin.json +25 -22
- package/scripts/fixtures/cli-golden/opencode/go.json +24 -21
- package/scripts/fixtures/cli-golden/opencode/ios-swift.json +25 -22
- package/scripts/fixtures/cli-golden/opencode/java.json +24 -21
- package/scripts/fixtures/cli-golden/opencode/mcp-ts.json +22 -19
- package/scripts/fixtures/cli-golden/opencode/next.json +37 -33
- package/scripts/fixtures/cli-golden/opencode/nuxt.json +26 -23
- package/scripts/fixtures/cli-golden/opencode/php-hexagonal.json +24 -21
- package/scripts/fixtures/cli-golden/opencode/php-laravel.json +24 -21
- package/scripts/fixtures/cli-golden/opencode/svelte.json +26 -23
- 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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"platform": "opencode",
|
|
4
4
|
"stack": "php-laravel",
|
|
5
5
|
"semanticSource": "cursor/php-laravel",
|
|
6
|
-
"sourceRevision": "
|
|
6
|
+
"sourceRevision": "5e13f14f8593e9965a5e5f8177afc1d90024331db9fadd1556bbb232720b71ea",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
9
9
|
"source": "AGENTS.md",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"disposition": "transform",
|
|
70
70
|
"loadMode": "native-team",
|
|
71
71
|
"reason": "Native .opencode/agents discovery; OpenCode frontmatter (mode/permission)",
|
|
72
|
-
"sharedCoreStem": "
|
|
72
|
+
"sharedCoreStem": "quality/self-review-and-context-hygiene.md"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
"source": "agents/codebase-analyzer.md",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"disposition": "transform",
|
|
87
87
|
"loadMode": "native-team",
|
|
88
88
|
"reason": "Native .opencode/agents discovery; OpenCode frontmatter (mode/permission)",
|
|
89
|
-
"sharedCoreStem": "
|
|
89
|
+
"sharedCoreStem": "quality/self-review-and-context-hygiene.md"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
"source": "agents/feature-developer.md",
|
|
@@ -451,6 +451,15 @@
|
|
|
451
451
|
"loadMode": "referenced",
|
|
452
452
|
"reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
|
|
453
453
|
},
|
|
454
|
+
{
|
|
455
|
+
"source": "rules/language-policy.mdc",
|
|
456
|
+
"target": "rules/language-policy.md",
|
|
457
|
+
"category": "rules",
|
|
458
|
+
"disposition": "transform",
|
|
459
|
+
"loadMode": "referenced",
|
|
460
|
+
"reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
|
|
461
|
+
"sharedCoreStem": "agent-team/language-policy.md"
|
|
462
|
+
},
|
|
454
463
|
{
|
|
455
464
|
"source": "rules/laravel-app-core.mdc",
|
|
456
465
|
"target": "rules/laravel-app-core.md",
|
|
@@ -508,6 +517,15 @@
|
|
|
508
517
|
"loadMode": "referenced",
|
|
509
518
|
"reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded"
|
|
510
519
|
},
|
|
520
|
+
{
|
|
521
|
+
"source": "rules/preset-goals.mdc",
|
|
522
|
+
"target": "rules/preset-goals.md",
|
|
523
|
+
"category": "rules",
|
|
524
|
+
"disposition": "transform",
|
|
525
|
+
"loadMode": "referenced",
|
|
526
|
+
"reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
|
|
527
|
+
"sharedCoreStem": "meta/preset-goals.md"
|
|
528
|
+
},
|
|
511
529
|
{
|
|
512
530
|
"source": "rules/preset-layering.mdc",
|
|
513
531
|
"target": "rules/preset-layering.md",
|
|
@@ -553,6 +571,15 @@
|
|
|
553
571
|
"reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
|
|
554
572
|
"sharedCoreStem": "meta/preset-twin-sync.md"
|
|
555
573
|
},
|
|
574
|
+
{
|
|
575
|
+
"source": "rules/preset-writing-style.mdc",
|
|
576
|
+
"target": "rules/preset-writing-style.md",
|
|
577
|
+
"category": "rules",
|
|
578
|
+
"disposition": "transform",
|
|
579
|
+
"loadMode": "referenced",
|
|
580
|
+
"reason": "Requestable Cursor rule: lazy Read from .opencode/rules; not auto-loaded",
|
|
581
|
+
"sharedCoreStem": "meta/preset-writing-style.md"
|
|
582
|
+
},
|
|
556
583
|
{
|
|
557
584
|
"source": "rules/product-specs-authoring.mdc",
|
|
558
585
|
"target": "rules/product-specs-authoring.md",
|
|
@@ -47,3 +47,8 @@ is advisory for the operator's OpenCode provider — see `task-router.md`.
|
|
|
47
47
|
| **standard** | `feature-developer`, `debugger`, `ci-investigator`, `api-contract-reviewer`, `qa-tester`, `unit-test-*`, `integration-test-*`, `openspec-author` |
|
|
48
48
|
| **strong** | `solution-architect`, `migration-specialist`, `security-reviewer`, `performance-auditor` |
|
|
49
49
|
|
|
50
|
+
## Plan contract
|
|
51
|
+
|
|
52
|
+
The analyst frames every task before decomposition: **goal frame** (goal, user value, success + result-evaluation criteria) → **requirements + AC-IDs** → **information-sufficiency** verdict → decomposition with `dependsOn[]` / DAG / epics-with-exit-criteria. `decomposition.md` is the plan graph; `pipeline.json` may add the optional, hook-ignored `epics[]`, `planRevision`, and `contextBudget` fields. Progress is checkpointed to `.memlog.md` and is resumable from `artifact-manifest.json`.
|
|
53
|
+
|
|
54
|
+
**Self-review & context hygiene (producer-side):** before its terminal receipt (per wave for multi-wave work) each producing agent self-reviews its output against the framed goal + `AC-`IDs — coverage, evidence, alignment/drift — and, on drift, **re-anchors** to the goal frame + `decomposition.md` and records the correction in `.memlog.md`. Ratchets down for `bounded`/`spike`.
|
|
@@ -45,6 +45,18 @@ You are the build verifier for **Laravel** services (and for **ai-rules preset p
|
|
|
45
45
|
|
|
46
46
|
Before writing `validation-report.md` or claiming PASS: IDENTIFY the commands, RUN them, READ exit codes, VERIFY they match the verdict, THEN claim. Do not mark PASS from memory of a prior developer run.
|
|
47
47
|
|
|
48
|
+
## Self-review & context hygiene
|
|
49
|
+
|
|
50
|
+
<!-- shared-core: quality/self-review-and-context-hygiene.md -->
|
|
51
|
+
|
|
52
|
+
Before you run the project gate and write the terminal validation receipt, self-audit the scope you are validating: every `AC-`ID covered, fresh same-turn evidence, and alignment with the framed task. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
|
|
53
|
+
|
|
54
|
+
**Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
|
|
55
|
+
|
|
56
|
+
**Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
|
|
57
|
+
|
|
58
|
+
Record a `## Self-review` block in `validation-report.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
59
|
+
|
|
48
60
|
## Preset-structure validation (when editing `packages/ai-rules/presets/**`)
|
|
49
61
|
|
|
50
62
|
From `packages/ai-rules/`:
|
|
@@ -56,6 +56,18 @@ You **issue** reviews. Implementers acting on your findings must verify each ite
|
|
|
56
56
|
- `validation-report.md` FAIL → **REQUEST_CHANGES**.
|
|
57
57
|
- Never require Playwright, XCUITest, `lint:js`, or `xcodebuild`.
|
|
58
58
|
|
|
59
|
+
## Self-review & context hygiene
|
|
60
|
+
|
|
61
|
+
<!-- shared-core: quality/self-review-and-context-hygiene.md -->
|
|
62
|
+
|
|
63
|
+
Before you emit the terminal review receipt, self-audit the review artifact: every `AC-`ID covered, findings backed by fresh evidence, and no scope creep beyond the reviewed diff. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
|
|
64
|
+
|
|
65
|
+
**Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
|
|
66
|
+
|
|
67
|
+
**Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
|
|
68
|
+
|
|
69
|
+
Record a `## Self-review` block in `review.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
70
|
+
|
|
59
71
|
## Artifact
|
|
60
72
|
|
|
61
73
|
Write `.ai.local/team/tasks/<slug>/review.md` with verdict APPROVE | REQUEST_CHANGES, findings by severity, AC coverage. Update the owned terminal receipt accordingly.
|
|
@@ -58,6 +58,18 @@ Write `.ai.local/team/tasks/<slug>/debug-report.md`.
|
|
|
58
58
|
|
|
59
59
|
After **three** unsuccessful fix attempts (or the same symptom returning twice): STOP. Do not attempt fix #4. Escalate architecture with the human or `solution-architect`. Follow skill `debug-investigation`. Before `fixApplied: true`, re-run the failing check.
|
|
60
60
|
|
|
61
|
+
## Self-review & context hygiene
|
|
62
|
+
|
|
63
|
+
<!-- shared-core: quality/self-review-and-context-hygiene.md -->
|
|
64
|
+
|
|
65
|
+
Before you set `fixApplied: true` and emit the terminal receipt, self-audit the fix: every `AC-`ID addressed, the re-run evidence present, and no scope creep beyond the framed fault. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
|
|
66
|
+
|
|
67
|
+
**Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
|
|
68
|
+
|
|
69
|
+
**Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
|
|
70
|
+
|
|
71
|
+
Record a `## Self-review` block in `debug-report.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
72
|
+
|
|
61
73
|
## MCP usage
|
|
62
74
|
|
|
63
75
|
Load requestable rule `mcp-usage` when verifying third-party library APIs (Context7) or when a local overlay MCP is present and the task fits. Discover tools at runtime; do not invent schemas. Overlay absence is not a blocker unless the user required that MCP as source of truth.
|
|
@@ -85,6 +85,18 @@ Update `.ai.local/team/tasks/<slug>/implementation.md` and the owned implementat
|
|
|
85
85
|
|
|
86
86
|
Before handoff, IDENTIFY→RUN→READ→VERIFY the scoped checks for this WP, THEN claim. Do not say the work is done without that evidence in the same turn. Full-project lint is `build-verifier`.
|
|
87
87
|
|
|
88
|
+
## Self-review & context hygiene
|
|
89
|
+
|
|
90
|
+
<!-- shared-core: quality/self-review-and-context-hygiene.md -->
|
|
91
|
+
|
|
92
|
+
Before you emit the terminal implementation receipt (per wave for multi-wave work), self-audit your own output: every `AC-`ID addressed or explicitly deferred, fresh same-turn evidence for each "done" claim, and no drift beyond the framed scope. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
|
|
93
|
+
|
|
94
|
+
**Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
|
|
95
|
+
|
|
96
|
+
**Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
|
|
97
|
+
|
|
98
|
+
Record a `## Self-review` block in `implementation.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
99
|
+
|
|
88
100
|
## Product specs (docs/specs)
|
|
89
101
|
|
|
90
102
|
When work touches a page/feature/route/alias: if `docs/specs/INDEX.md` exists (or brief lists approved specs), load **`product-specs`** and treat **approved** specs from brief/handoff as **behavior SoT**. Soft-fail on miss (`open_questions` + code / `.ai/context` fallback); **never invent** product behavior.
|
|
@@ -37,10 +37,40 @@ Before decomposing, name the class: **spike** / **bounded** / **architectural**.
|
|
|
37
37
|
- **Bounded** — few tasks, only layers actually touched; do not pad types/api/store/ui.
|
|
38
38
|
- **Architectural** — full layer table; architect when boundaries are unclear.
|
|
39
39
|
|
|
40
|
+
## Task framing
|
|
41
|
+
|
|
42
|
+
<!-- shared-core: agent-team/task-framing.md -->
|
|
43
|
+
|
|
44
|
+
Before decomposing: state the **goal frame** (goal, user value, success criteria, result-evaluation criteria = named oracle), elicit **requirements** each traceable to a testable `AC-`ID, and give an explicit **information-sufficiency** verdict (`sufficient` | `insufficient`). `insufficient` → record assumptions / unknowns / blockers in `open_questions` and mark the analysis `applyReadiness: blocked`; do not decompose. Bounded/spike emit a thin frame only.
|
|
45
|
+
|
|
46
|
+
## Plan graph
|
|
47
|
+
|
|
48
|
+
<!-- shared-core: agent-team/plan-graph.md -->
|
|
49
|
+
|
|
50
|
+
Decompose as a **dependency graph**: each task carries `dependsOn[]`, the edges form a **DAG** with a critical path and parallelizable groups. Large flows are staged into **Epics / stages** with **exit criteria** (ratchet: bounded tasks stay flat). Plan revision is a named, auditable operation (`decision: replan rev N → N+1` in `.memlog.md`, then re-gate).
|
|
51
|
+
|
|
52
|
+
## Context budget & iterative refinement
|
|
53
|
+
|
|
54
|
+
<!-- shared-core: quality/context-and-iteration.md -->
|
|
55
|
+
|
|
56
|
+
Work in bounded waves; delegate mechanical waves to repo scripts. **Checkpoint** progress to `.memlog.md` and record produced paths on the `implementation` manifest entry `authoritativePaths`, so a run can resume from `artifact-manifest.json` + `.memlog.md` without re-deriving state. Refine with the named loop **draft → evaluate against named criteria → refine**.
|
|
57
|
+
|
|
58
|
+
## Self-review & context hygiene
|
|
59
|
+
|
|
60
|
+
<!-- shared-core: quality/self-review-and-context-hygiene.md -->
|
|
61
|
+
|
|
62
|
+
Before you emit the terminal analysis receipt, self-audit the goal frame and decomposition you are about to hand off: every `AC-`ID addressed or explicitly deferred, evidence present, and alignment with the framed goal. This is a producer-side coverage/alignment audit — not a new pipeline step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
|
|
63
|
+
|
|
64
|
+
**Context loss / excess.** Name the failure class when it appears: *context loss* (dropped/misattributed AC or constraint, stale plan vs the current request, forgotten prior decision) or *context excess/noise* (irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk).
|
|
65
|
+
|
|
66
|
+
**Re-anchor.** On detected drift: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Bound to the existing `plan-graph` `replan` — no second orchestrator, no `status.json`/`metrics.json` field.
|
|
67
|
+
|
|
68
|
+
Record a `## Self-review` block in `brief.md` (goal/AC coverage, evidence, alignment/drift). Ratchet: no self-review / context-health pass / re-anchor ceremony for `bounded`/`spike` tasks (or the `light` profile).
|
|
69
|
+
|
|
40
70
|
## Deliverables
|
|
41
71
|
|
|
42
72
|
- `brief.md` — goals, non-goals, AC, open questions
|
|
43
|
-
- `decomposition.md` — ordered WPs with layer tags (HTTP / Actions-Services / Eloquent / Policies / Providers / tests)
|
|
73
|
+
- `decomposition.md` — ordered WPs with layer tags (HTTP / Actions-Services / Eloquent / Policies / Providers / tests); each WP carries `dependsOn` + `## Dependency graph` (DAG, critical path, parallel groups) / `## Epics / stages` (exit criteria) / `## Plan revision`
|
|
44
74
|
|
|
45
75
|
## Layer vocabulary
|
|
46
76
|
|
|
@@ -93,6 +93,14 @@ Name the class in `routingReasons`. Maps to profiles already in this file — do
|
|
|
93
93
|
|
|
94
94
|
SoT: `agent-team/task-classification` (shared-core marker above; do not invent a second pipeline).
|
|
95
95
|
|
|
96
|
+
## Plan graph (optional `pipeline.json` fields)
|
|
97
|
+
|
|
98
|
+
<!-- shared-core: agent-team/plan-graph.md -->
|
|
99
|
+
|
|
100
|
+
The router MAY echo the analyst's plan as additive, **hook-ignored** top-level `pipeline.json` fields: `epics[]` (staging with exit criteria), `planRevision` (current plan rev), and `contextBudget` (budget / checkpoint note). Schema v1 ignores unknown fields and the hook never parses them — emit them only when the analyst produced a plan graph.
|
|
101
|
+
|
|
102
|
+
Routing signals: a large or cross-cutting flow → prefer `full` and name epic staging in `routingReasons`; likely context pressure (broad surface, many files) → note a checkpoint / `contextBudget` plan. Bounded and spike stay flat (no `epics`).
|
|
103
|
+
|
|
96
104
|
## Routing decision rubric
|
|
97
105
|
|
|
98
106
|
Keep top-level `profile` and emit this top-level object in every new `pipeline.json`:
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Consumer-owned store for post-init gotchas, patterns, and decisions. **Not** always-on. Fill after `ai-rules init`. Root `AGENTS.md` only points here.
|
|
4
4
|
|
|
5
|
+
## Language
|
|
6
|
+
|
|
7
|
+
Consumer setting for user-facing dialogue. Change `en` to your BCP-47 tag (e.g. `ru`, `de`, `es`).
|
|
8
|
+
|
|
9
|
+
- **User-facing dialogue:** `en` — every question, plan/gate prompt, status answer, summary, and escalation
|
|
10
|
+
is written in this language. Development, reasoning, and all artifacts stay English. Unset → infer from the
|
|
11
|
+
prompt language (mixed → dominant); English-only/ambiguous → English. The nearest `.ai.local` wins.
|
|
12
|
+
|
|
5
13
|
## Gotchas
|
|
6
14
|
|
|
7
15
|
<!-- e.g. fragile flows, “never do X in this repo” -->
|
|
@@ -39,6 +39,14 @@ printf '%s\n' '{"status":"completed","action":"end_human_gate","activateNext":tr
|
|
|
39
39
|
4. **Other resume**: restore `pipelineIndex` / `currentAgent` from status and invoke that agent.
|
|
40
40
|
5. After the invoked agent completes, `chain-team-phases.sh` on `subagentStop` continues the chain when `autoChain: true`.
|
|
41
41
|
|
|
42
|
+
## Checkpoint & resume
|
|
43
|
+
|
|
44
|
+
Resume from the on-disk checkpoint, not from chat: read `.ai.local/team/tasks/<slug>/artifact-manifest.json` (authoritative paths per producer) and `.memlog.md` (`## <date>` + `event:` entries), skip completed waves, and continue at the first stage whose exit criteria are unmet. Record produced paths on the `implementation` manifest entry as you go. Do **not** overwrite or duplicate `.ai.local/team/tasks/<slug>/prompt.md` — it records the original ask (write-if-absent).
|
|
45
|
+
|
|
46
|
+
Plan revision during execution is a named, auditable operation: an evaluation oracle failing twice, a scope/requirement change, or a newly discovered dependency triggers `decision: replan rev N → N+1` in `.memlog.md`, an edit to `decomposition.md` (+ optional `planRevision`), and a **re-run of the affected gate**.
|
|
47
|
+
|
|
48
|
+
A producer-side **re-anchor** (detected context loss / excess against the framed goal) is recorded append-only in `.memlog.md` (`event:` line, or `decision: replan rev N → N+1` when the plan changes); resume reads that line with the checkpoint and does not re-derive the correction from chat.
|
|
49
|
+
|
|
42
50
|
## Artifacts for handoff
|
|
43
51
|
|
|
44
52
|
| Agent | Read |
|
|
@@ -27,7 +27,7 @@ Examples:
|
|
|
27
27
|
|
|
28
28
|
## Procedure
|
|
29
29
|
|
|
30
|
-
1. **Slug** — kebab-case from the description (≤48 characters). Create `.ai.local/team/tasks/<slug>/` via **Write** (e.g. placeholder `pipeline.json` or empty marker) — runtime/hook owns `status.json` — **not** via Shell `mkdir` (sandbox → `Operation not permitted`).
|
|
30
|
+
1. **Slug** — kebab-case from the description (≤48 characters). Create `.ai.local/team/tasks/<slug>/` via **Write** (e.g. placeholder `pipeline.json` or empty marker) — runtime/hook owns `status.json` — **not** via Shell `mkdir` (sandbox → `Operation not permitted`). Also write the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` (write-if-absent; never overwrite on resume; not a manifest `artifacts[]` body).
|
|
31
31
|
2. **Router** — invoke subagent **task-router** with the task description and slug path.
|
|
32
32
|
3. **Plan** — show the user the table from `pipeline.json`: intent, steps, skipped, humanGates.
|
|
33
33
|
4. **Intent retro** — if `intent === "retro"`, run `/technical-retro` and **stop**.
|
|
@@ -38,6 +38,12 @@ Examples:
|
|
|
38
38
|
6. **After each agent** — wait for hook handoff / reconciliation terminal receipt → `status.state`; do not start the next step until `status.json` reflects handoff (or until there is a `followup_message` from the hook).
|
|
39
39
|
7. **Human gate** — if after the current step there is a gate in `humanGates` (`after:<agent>`), after the agent finishes **stop** and ask for `/task-continue <slug>`.
|
|
40
40
|
|
|
41
|
+
## Plan contract
|
|
42
|
+
|
|
43
|
+
Intake runs the planning workflow before any implementation: **goal frame** (goal, user value, success + result-evaluation criteria) → **requirements + AC-IDs** → **information-sufficiency** verdict (`sufficient` | `insufficient`) → decompose with a **dependency graph** (`dependsOn[]`, DAG, critical path) and, for large flows, **epics / stages** with exit criteria. The plan is revisable: a **plan revision** is a named, recorded operation (`planRevision`), and progress is checkpointed to `.memlog.md` (with the optional `contextBudget` note) so a run can resume.
|
|
44
|
+
|
|
45
|
+
The producer closes each wave with a **pre-receipt self-review** — a `## Self-review` block in the owned artifact (goal/AC coverage, evidence, alignment/drift) — and names **context loss** vs **context excess/noise**; a detected drift triggers a **re-anchor**: re-read the goal frame + `decomposition.md`, repair, re-run the affected gate, and record append-only in `.memlog.md` (`event:` line, or `decision: replan rev N → N+1`). No new pipeline step; ratchets down for `bounded`/`spike`.
|
|
46
|
+
|
|
41
47
|
## Do not
|
|
42
48
|
|
|
43
49
|
- Invoke developer before router and (if in pipeline) analyst/architect.
|
|
@@ -50,6 +56,13 @@ Examples:
|
|
|
50
56
|
- `in_progress` → ask: continue or new slug.
|
|
51
57
|
|
|
52
58
|
|
|
59
|
+
## Dialogue language
|
|
60
|
+
|
|
61
|
+
Resolve the user-facing language once at task start (`.ai.local` `## Language` → prompt language → English;
|
|
62
|
+
mixed → dominant) and record it in the `prompt.md` header (`language: <BCP-47>`). Reuse it for every
|
|
63
|
+
user-facing message and `/task-continue`. See `language-policy`.
|
|
64
|
+
|
|
65
|
+
|
|
53
66
|
## Metrics
|
|
54
67
|
|
|
55
68
|
Runtime/hook owns `metrics.json` and `status.json` attempt ledgers. Before the first invocation ensure `task_started` and one `activeAttempts[attemptId]` + `attempt_started` exist (router/runtime bootstrap — parent must not invent parallel indices). On `/task-continue`, run the installed chain hook `end_human_gate` action (or wrapper) so `human_gate_ended` lands before the next attempt. Do not calculate durations in agents.
|
|
@@ -7,6 +7,9 @@ When the user message looks like a **work request** (implement, add, fix, refact
|
|
|
7
7
|
1. Prefer **`/task <their request>`** or invoke **task-router** first.
|
|
8
8
|
2. Do not jump straight to coding without router + pipeline when scope is non-trivial.
|
|
9
9
|
3. Pure questions (“how does X work”, “explain”) — prefer agent **`codebase-analyzer`** (explain-as-is); trivial one-liners may be answered inline. Do not open `/task`.
|
|
10
|
+
4. A work request now runs the planning workflow — **goal frame → requirements → information-sufficiency → decompose** (dependency graph / epics); see **task-framing** and **plan-graph**.
|
|
11
|
+
5. Every **work request** — with or without `/task`, and even when the user says “no pipeline” / “just do it” — persists the **verbatim** original prompt at `.ai.local/team/tasks/<slug>/prompt.md`. Prefer `/task` (its **Slug** step writes it). If handling inline without `/task`, first create the slug dir and write `prompt.md` (write-if-absent), then proceed. Pure questions and trivial one-liners are not work requests → no file.
|
|
12
|
+
6. **Resolve the dialogue language before you speak to the user.** Read the `## Language` section of `.ai.local/conventions.md` (nearest `.ai.local` first); else infer from the prompt language; else English (mixed → dominant). Persist it once in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line, and reuse it for the whole task. Development, reasoning, and artifacts stay English. The setting wins over a mid-task prompt switch (surface it once, never ask). See **language-policy**.
|
|
10
13
|
|
|
11
14
|
Exceptions: user explicitly says “no pipeline”, “just do it”, or continues an active slug.
|
|
12
15
|
|
|
@@ -113,6 +113,22 @@ Each slug has one `artifact-manifest.json` at `.ai.local/team/tasks/<slug>/`. Th
|
|
|
113
113
|
- The orchestration runtime/hook is the single writer for `status.json` lifecycle fields and `metrics.json`. Agents read status for eligibility but never rewrite unrelated state, gate, retry, attempt, timestamp, or metrics fields.
|
|
114
114
|
- Missing/stale manifests are reported as a handoff gap; fall back to `brief.md`, `decomposition.md`, and `pipeline.json` rather than inventing authority.
|
|
115
115
|
|
|
116
|
+
## Plan revision (replanning)
|
|
117
|
+
|
|
118
|
+
Replanning is a **named, auditable operation** — never a silent reorder. Trigger it when an evaluation oracle fails twice on the same task, when scope or requirements change, or when a previously unknown dependency/consumer is discovered. Procedure: append `decision: replan rev N → N+1` (with the reason) to `.memlog.md`, update `decomposition.md` (task add/remove or dependency change) and any optional plan fields, then **re-run the affected gate**. Scope-changing revisions return to the human gate.
|
|
119
|
+
|
|
120
|
+
## Context budget & checkpoint/resume
|
|
121
|
+
|
|
122
|
+
Work in bounded waves (one artifact class across the target surface); mechanical waves (generation, embed sync) are delegated to repo scripts rather than spent on tokens. **Checkpoint** each completed wave to `.memlog.md` (`## <date>` + an `event:` line) and record the produced paths on the `implementation` manifest entry (`authoritativePaths`). A resumed run (e.g. `/task-continue`) reads `artifact-manifest.json` + `.memlog.md` and continues at the first stage whose exit criteria are unmet — never re-derive state from the chat. See **context-and-iteration** for the budget, checkpoint, resume, and refinement loop.
|
|
123
|
+
|
|
124
|
+
## Self-review & context hygiene
|
|
125
|
+
|
|
126
|
+
Each producing agent runs a **pre-receipt self-review** of its own output — goal/AC coverage, evidence presence, and alignment/drift — **before** it emits its terminal receipt. It is a producer-side step, **not** a new pipeline agent or step, and it does not replace the evidence gate (`verification-before-completion`), the independent `code-reviewer`, or the `build-verifier` project gate.
|
|
127
|
+
|
|
128
|
+
- **Context loss vs excess/noise.** *Loss* = a dropped/misattributed AC or constraint, a stale plan vs the current request, a forgotten prior decision. *Excess/noise* = irrelevant/tangent reads, scope creep beyond the frame, duplicated or bloated artifacts, chat state that belongs on disk.
|
|
129
|
+
- **Re-anchor.** On detected drift, return the run to the framed task: re-read the `task-framing` goal frame + the current `decomposition.md` → repair the drift → re-run the affected gate → record append-only in `.memlog.md` (`event:` line; `decision: replan rev N → N+1` when the plan changes). Re-anchor is a **trigger source of the existing `plan-graph` `replan`** — no second orchestrator, no `status.json`/`metrics.json` field.
|
|
130
|
+
- **Recording & ratchet.** The producer writes a `## Self-review` block in the artifact it owns; the correction lives only in `.memlog.md` (hook-only lifecycle preserved). No self-review, context-health pass, or re-anchor for `bounded`/`spike` tasks (or the `light` profile) — ratchet up for `standard`/`architectural`, never down past a required verification gate. See the requestable `quality/self-review-and-context-hygiene` contract.
|
|
131
|
+
|
|
116
132
|
## status.json (pipeline mode)
|
|
117
133
|
|
|
118
134
|
```json
|
|
@@ -166,13 +182,17 @@ On each `subagentStop`, the hook reconciles `status.state` from the completing p
|
|
|
166
182
|
3. One role per Task call — **except** parallel steps: multiple Task calls in one message.
|
|
167
183
|
4. **Never** skip `humanGates` without `/task-continue` or explicit user approval.
|
|
168
184
|
5. Persist handoffs to disk (`brief.md`, `decomposition.md`, `debug-report.md`, `validation-report.md`, `architecture.md`, `migration-plan.md`, `ci-report.md`, `a11y-review.md`, `perf-report.md`, `security-review.md`, `api-contract-review.md`, `unit-test-plan.md`, `documentation.md`, `review.md`, `mockup-review.md`, `ux-design.md`) and update the producer-owned terminal receipt in `artifact-manifest.json`.
|
|
169
|
-
6. On `changes_requested` from reviewers: hook sets `retryAfterFix` → developer → same reviewer. Exception: embedded `mockup-reviewer` FAIL (`changes_requested` while the completed/current agent is `mockup-reviewer`) → `awaiting_approval` / `/task-continue` only — do **not** `retryAfterFix` to developer.
|
|
185
|
+
6. On `changes_requested` from reviewers: hook sets `retryAfterFix` → developer → same reviewer. Exception: embedded `mockup-reviewer` FAIL (`changes_requested` while the completed/current agent is `mockup-reviewer`) → `awaiting_approval` / `/task-continue` only — do **not** `retryAfterFix` to developer. A `mockup-reviewer` verdict `mockup-change-requested` (a defect whose fix belongs in the design source, not the implementation) routes the same way — `awaiting_approval`, no developer retry.
|
|
170
186
|
7. On `validation_failed` from `build-verifier`: hook sets `retryAfterFix: build-verifier` → developer → build-verifier.
|
|
171
187
|
8. When all steps complete, suggest `/technical-retro <slug>`.
|
|
172
188
|
9. If `autoChain: false` in pipeline, do not rely on hook — manual step only.
|
|
189
|
+
10. **Persist the verbatim original prompt.** Every `/task` and every routed work request writes the user's raw prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). It is not a manifest `artifacts[]` body — register the path on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
|
|
190
|
+
11. **Answer the user in the resolved dialogue language for the whole task.** Resolve once at task start (`.ai.local` `## Language` → prompt language → English) and pass it to every step; `/task-continue` keeps it. Never ask the user to pick a language. Development, reasoning, and artifacts stay English. See **language-policy**.
|
|
173
191
|
|
|
174
192
|
## Team artifact I/O
|
|
175
193
|
|
|
194
|
+
- **Persist the original prompt.** For **every** task — `/task` or a routed work request — write the user's **verbatim** prompt to `.ai.local/team/tasks/<slug>/prompt.md` during slug bootstrap (write-if-absent; never overwrite on resume). The header is additive provenance only; the fenced text block holds the user's words unchanged. It is not a manifest `artifacts[]` body — the path lives on the `routing` entry. See **agent-artifact-contracts** § Prompt artifact.
|
|
195
|
+
- **Answer in the resolved dialogue language.** Resolve once at task start (`.ai.local` `## Language` → prompt language → English; mixed → dominant; nearest `.ai.local` wins) and reuse it for every user-facing message and `/task-continue`. Record the tag in the `prompt.md` header (`language: <BCP-47>`) + a `.memlog.md` `event:` line; a later correction is an append-only memlog event. Development, reasoning, and artifacts stay **English**. See **language-policy**.
|
|
176
196
|
- Create/update team task dirs with the **Write** tool (parents are created automatically). Do **not** bootstrap slug dirs with Shell `mkdir -p` — default sandbox returns `Operation not permitted` (worse on macOS Desktop/Documents with TCC).
|
|
177
197
|
- If Shell must touch team paths and fails with EPERM, retry with `required_permissions: ["all"]`. Prefer Write for artifacts.
|
|
178
198
|
- Prefer repo under `~/Projects` / `WebstormProjects` over `~/Desktop` when using agent team heavily.
|
|
@@ -213,4 +233,4 @@ When user describes a **non-trivial task** (not a question), suggest `/task <mes
|
|
|
213
233
|
|
|
214
234
|
## Preset authoring
|
|
215
235
|
|
|
216
|
-
When the work edits `packages/ai-rules/presets/**` (or dogfood `.cursor/` sync of presets), follow meta-rules: **preset-pr-checklist**, **preset-twin-sync**, **preset-layering**, **preset-token-budget**, **preset-no-cross-stack-leakage**.
|
|
236
|
+
When the work edits `packages/ai-rules/presets/**` (or dogfood `.cursor/` sync of presets), follow meta-rules: **preset-goals**, **preset-pr-checklist**, **preset-twin-sync**, **preset-layering**, **preset-token-budget**, **preset-no-cross-stack-leakage**.
|
|
@@ -9,6 +9,9 @@ This rule is mandatory. **You MUST** obey it on every turn, without exception.
|
|
|
9
9
|
3. **Apply** — treat every `.ai.local/rules/*.md` and `.ai.local/conventions.md` as a higher-priority rule for this repo. Do **not** load `.ai.local/team/**` as rules (shared pipeline artifacts). The block below ("Authoring `.ai.local/rules/*.md`") defines the conventions.
|
|
10
10
|
4. **Conflict** — if a local rule conflicts with a preset rule, **the local rule wins**. If a local rule body contains `override: kill <preset-rule-name>`, drop that preset rule from your context window entirely.
|
|
11
11
|
5. **Acknowledge** — when answering a user question, briefly state which `.ai.local/` rules apply to the current task (one line is enough). Format: `Using .ai.local: <rule-name>(, <rule-name>)*`. If no `.ai.local/` exists, do NOT mention this rule.
|
|
12
|
+
6. **Language** — reply to the user in their **native language**: read the `## Language` section of
|
|
13
|
+
`.ai.local/conventions.md` (nearest `.ai.local` first); if unset, infer from the prompt language; else
|
|
14
|
+
English. Development, reasoning, and all artifacts stay **English**. See `language-policy`.
|
|
12
15
|
|
|
13
16
|
If `.ai.local/` does not exist → **no-op**, do not error. Do not produce any log line about its absence.
|
|
14
17
|
|
|
@@ -35,3 +38,4 @@ Keep files ≤ 120 lines. Match the style of preset rules (short sections, bulle
|
|
|
35
38
|
- Authoring guide: `docs/LOCAL-OVERLAY.md` in the `@bonesofspring/ai-rules` package.
|
|
36
39
|
- Living gotchas: `.ai.local/conventions.md`. Pipeline artifacts: `.ai.local/team/` (do not load as rules).
|
|
37
40
|
- Root `AGENTS.md` reinforces this rule with a `MANDATORY` section.
|
|
41
|
+
- Language policy: `language-policy` (native dialogue; English development/artifacts).
|
|
@@ -26,6 +26,26 @@
|
|
|
26
26
|
- Examples: shared utility/hook/mapper/use case; narrow unsafe types; split a large module; tokens instead of “magic”; deep import → public API.
|
|
27
27
|
- Do not do a “big” refactor on a point task (structure/public names without a request). Break large work into minimal steps; keep the repo buildable after each step.
|
|
28
28
|
|
|
29
|
+
# Comments & prose
|
|
30
|
+
|
|
31
|
+
One rule for code comments and for everything written around the code (docs, PR/MR text, agent artifacts): **carry the meaning, cut the words.**
|
|
32
|
+
|
|
33
|
+
## Comments
|
|
34
|
+
|
|
35
|
+
- **Default: no comment.** Code shows *what*; a comment earns its place only by stating non-obvious *why*.
|
|
36
|
+
- Write one for a hidden constraint, a workaround (name the bug it dodges), a surprising invariant, or an external-contract quirk.
|
|
37
|
+
- Never: paraphrase the code; decorative banners or separators; JSDoc that only repeats types/params; commented-out code; task/review references (`added for issue X`); change logs.
|
|
38
|
+
- A comment that explains a bad name → fix the name instead. Delete a comment together with the code it described.
|
|
39
|
+
- One line beats a paragraph. API contracts live in types, not inline prose.
|
|
40
|
+
|
|
41
|
+
## Prose
|
|
42
|
+
|
|
43
|
+
- Lead with the point; drop the preamble and the wind-up.
|
|
44
|
+
- One idea per paragraph or bullet; prefer a table or list to a wall of text.
|
|
45
|
+
- Concrete over abstract: name the file, symbol, command, number.
|
|
46
|
+
- No filler, hedging, selling, or restating the heading. If deleting a sentence loses no instruction, delete it.
|
|
47
|
+
- In artifacts, report decisions and evidence (what changed, what was verified) — skip process narration.
|
|
48
|
+
|
|
29
49
|
# Agent requirement
|
|
30
50
|
|
|
31
51
|
- **Boy scout:** leave the module a bit better; do not sacrifice architecture and layers for brevity.
|
|
@@ -37,7 +57,6 @@ Essentials below. Full procedural set (~17 rules) → load **`anti-sycophancy-di
|
|
|
37
57
|
- Unverifiable third-party API → if Context7 is up, load **`mcp-usage`** and query the installed major; else mark `// VERIFY: lib.symbol @ version` (or stack equivalent); never invent signatures.
|
|
38
58
|
- Before "is this correct?" — ≥3 failure modes (empty, boundary, concurrency/state) or name what you could not check.
|
|
39
59
|
- Refactor without tests → propose characterization test; if declined, label `UNTESTED`.
|
|
40
|
-
- Comments = WHY only when non-obvious; ban self-referential "added for issue Y".
|
|
41
60
|
- Urgency/authority: name the trade-off once, then comply — no apology loops.
|
|
42
61
|
- Match verification to risk; report by what was **verified**, not attempted.
|
|
43
62
|
|
|
@@ -10,10 +10,20 @@ Typical feature with data and UI. Concrete directories and rule stems — in the
|
|
|
10
10
|
2. **Transport / DTO** — DTOs and mappers Domain ↔ transport (must not leak into UI).
|
|
11
11
|
3. **Services / Data** — repository / API-service implementations via the stack’s public clients.
|
|
12
12
|
4. **State** — store / ViewModel / use cases; no direct HTTP and no DTOs in UI.
|
|
13
|
-
5. **UI** — thin views/components; data via state; design system. If the prompt or `brief.md` contains a `figma.com` URL, **mockup review must complete** (or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue`) **before UI work**. When required-signal and **no** `figma.com`, **`ux-design.md` must exist** (not `INCOMPLETE`) before UI work — else blocked, hand back to analyst. Non-UI tasks no-op these gates.
|
|
13
|
+
5. **UI** — thin views/components; data via state; design system. If the prompt or `brief.md` contains a `figma.com` URL, **mockup review must complete** (or the user must continue past FAIL/`BLOCKED_MCP` via `/task-continue`) **before UI work**. When required-signal and **no** `figma.com`, **`ux-design.md` must exist** (not `INCOMPLETE`) before UI work — else blocked, hand back to analyst. Non-UI tasks no-op these gates. When a mockup contract exists for the WP, the UI step consumes it (per-node spec = the binding baseline) and a **mandatory post-implementation verification gate** runs against it at every declared viewport — screenshot / value / state / structural-parity diff plus a freeze re-check; unmapped implemented components are findings, not silent additions.
|
|
14
14
|
6. **Tests** — unit for mappers / non-trivial logic; e2e/UI per stack convention.
|
|
15
15
|
7. **Completion** — stack post-change gate (lint/build) + package/toolchain rules. When the current WP spans **more than one** layer or module, `implementation.md` includes a **Code Map** (3–8 annotated repo-relative paths) and **Suggested Review Order** (`concern | path:line | ≤15 word note`). Omit both for a single-file or single-layer WP.
|
|
16
16
|
|
|
17
|
+
## Iterative refinement loop
|
|
18
|
+
|
|
19
|
+
Every stage runs the named loop **draft → evaluate against named criteria → refine**:
|
|
20
|
+
|
|
21
|
+
- **Draft** the artifact (or work package) for the stage.
|
|
22
|
+
- **Evaluate** it against the stage's "done when" / exit criteria with the **named oracle** — a structural gate, a reviewer parity check, a test suite, or a human approval.
|
|
23
|
+
- **Refine** and re-evaluate until the oracle passes or the human re-scopes; loop back to the owning task, never forward past a failed oracle.
|
|
24
|
+
|
|
25
|
+
**Exit criteria:** a layer or stage is complete only when its named criteria hold (mapper tests green, parity check passes, gate output clean). Do not advance to the next checklist step while the current step's oracle fails; a repeatedly failing oracle triggers **plan revision**.
|
|
26
|
+
|
|
17
27
|
## Data flow (orientation)
|
|
18
28
|
|
|
19
29
|
```mermaid
|
|
@@ -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.
|
|
@@ -28,3 +28,9 @@ artisan composer.json
|
|
|
28
28
|
**Modular variant (optional):** `app/Domain/<Module>/` — short requestable note in `domain-layer` only; default remains flat Laravel `app/`.
|
|
29
29
|
|
|
30
30
|
Boundaries — **`architecture-boundaries.md`**. Tooling — requestable **`php-tooling.md`**. After PHP edits — **`post-change-test.md`**.
|
|
31
|
+
|
|
32
|
+
## Language
|
|
33
|
+
|
|
34
|
+
Development, reasoning, and artifacts stay **English**; every user-facing message (questions, gate prompts,
|
|
35
|
+
status, summaries, escalations) uses the user's **native language** — resolved from `.ai.local`
|
|
36
|
+
(`## Language`) or the prompt, else English. See `language-policy`.
|
|
@@ -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`
|