W6Workabilityscope: coreweight: 1fix: manual

    W6: Pre-commit hooks are fast

    Why this rule exists (Empirical Evidence)

    Claude Code behavior: CC is instructed to NEVER skip hooks (--no-verify). If a pre-commit hook is slow (>10s) or flaky, CC's commit workflow stalls visibly. CC will retry indefinitely on hook failure.

    Anthropic Claude Code System Prompt Evolution (2026)Source
    Anti-pattern (Triggers W6)
    # .pre-commit-config.yaml runs full 6-minute integration suite on every commit.
    # Claude Code never passes --no-verify, so every commit hangs.
    Compliant pattern (Passes W6)
    # Pre-commit runs fast lint + format (<4s); heavy integration tests run in CI.
    Verify locally or online
    npm install -g agentlint-ai && agentlint check --check W6

    More Workability checks