I6指令质量级别: 核心权重: 1修复方式: 手动修改

    I6: 入口文件行数控制在有效区间

    为什么设立这条规则(一手实证依据)

    4,533 仓库实证中位数为 132 行(P90 为 484 行);IFScale 研究显示超过 ~150 条指令后遵循率明显下滑。过短缺信息,过长稀释注意力,60–250 行是公认的高效甜点区。

    修复建议把根入口精简到 80–200 行,把长篇迁移手册或发布清单移到 docs/ 并按条件链接。
    Anthropic Claude Code 265 版系统提示词演进记录 (2026)出处
    Codified Context:结构化 AI 规范如何改变软件开发 (2026)
    IFScale:大规模指令遵循基准研究(NeurIPS 2025) (2026)
    反例(会触发 I6 告警)
    840-line root CLAUDE.md mixing changelog history, API schemas, and stale tips.
    推荐写法(通过 I6 检查)
    110-line root CLAUDE.md with commands, hard boundaries, and conditional pointers to `docs/`.
    本地 CLI 或浏览器一键验证
    npm install -g agentlint-ai && agentlint check --check I6

    同属「指令质量」维度的更多规则