W5Workabilityscope: coreweight: 2fix: manual

    W5: No oversized source files

    Why this rule exists (Empirical Evidence)

    Claude Code behavior: FileReadTool hard limit is 256 KB (MAX_FILE_SIZE). Files exceeding this cause a hard error — CC cannot read them at all. Common culprits: generated files, minified JS, large SQL schemas.

    Anthropic Claude Code System Prompt Evolution (2026)Source
    Anti-pattern (Triggers W5)
    # Anti-pattern triggering W5 (No oversized source files)
    # Rule or repository configuration violates this check without verification.
    Compliant pattern (Passes W5)
    # Compliant harness passing W5 (No oversized source files)
    # Concrete, verifiable repository configuration backed by anthropic-265.
    Verify locally or online
    npm install -g agentlint-ai && agentlint check --check W5

    More Workability checks