# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

language: "en-US"
early_access: true
reviews:
  profile: chill
  high_level_summary: false # don't post summary until explicitly invoked
  request_changes_workflow: false
  review_status: false
  commit_status: false
  walkthrough: false
  poem: false
  auto_review:
    enabled: true
    drafts: false # Don't review drafts automatically
    auto_incremental_review: false # always review the whole PR, not just new commits
    base_branches:
      - main
  path_filters:
    # --- Shared baseline: tool configs ---
    - "!.coderabbit.yaml"
    - "!.augment/**"
    - "!eslint.config.mjs"
    # --- Shared baseline: build output ---
    - "!dist/**"
    - "!build/**"
    - "!coverage/**"
    # --- Shared baseline: vendored/generated ---
    - "!**/node_modules/**"
    - "!**/*.min.js"
    - "!**/*.generated.*"
    - "!**/*.bundle.md"
    # --- Shared baseline: package metadata ---
    - "!package-lock.json"
    # --- Shared baseline: binary/media ---
    - "!*.png"
    - "!*.jpg"
    - "!*.svg"
    # --- Shared baseline: test fixtures ---
    - "!test/fixtures/**"
    - "!test/template-test-generator/**"
    - "!tools/template-test-generator/test-scenarios/**"
    # --- Shared baseline: non-project dirs ---
    - "!_bmad*/**"
    - "!website/**"
    - "!z*/**"
    - "!sample-project/**"
    - "!test-project-install/**"
    # --- Shared baseline: AI assistant dirs ---
    - "!.claude/**"
    - "!.codex/**"
    - "!.agent/**"
    - "!.agentvibes/**"
    - "!.kiro/**"
    - "!.roo/**"
    - "!.github/chatmodes/**"
    # --- Shared baseline: build temp ---
    - "!.bundler-temp/**"
    # --- Shared baseline: generated reports ---
    - "!**/validation-report-*.md"
    - "!CHANGELOG.md"
  path_instructions:
    - path: "src/**"
      instructions: |
        Source file changed. Check whether documentation under docs/ needs
        a corresponding update — new features, changed behavior, renamed
        concepts, altered CLI flags, or modified configuration options should
        all be reflected in the relevant doc pages. Flag missing or outdated
        docs as a review comment.
    - path: "src/**/skills/**"
      instructions: |
        Skill file. Apply the full rule catalog defined in tools/skill-validator.md.
        That document is the single source of truth for all skill validation rules
        covering SKILL.md metadata, workflow.md constraints, step file structure,
        path references, variable resolution, sequential execution, and skill
        invocation syntax.
    - path: "src/**/workflows/**"
      instructions: |
        Legacy workflow file (pre-skill conversion). Apply the full rule catalog
        defined in tools/skill-validator.md — the same rules apply to workflows
        that are being converted to skills.
    - path: "src/**/tasks/**"
      instructions: |
        Task file. Apply the full rule catalog defined in tools/skill-validator.md.
    - path: "src/**/*.agent.yaml"
      instructions: |
        Agent definition file. Check:
        - Has metadata section with id, name, title, icon, and module
        - Defines persona with role, identity, communication_style, and principles
        - Menu triggers reference valid skill names that exist
    - path: "docs/**/*.md"
      instructions: |
        Documentation file. Check internal markdown links point to existing files.
    - path: "tools/**"
      instructions: |
        Build script/tooling. Check error handling and proper exit codes.
chat:
  auto_reply: true # Response to mentions in comments, a la @coderabbit review
issue_enrichment:
  auto_enrich:
    enabled: false # don't auto-comment on issues

