Back to home

Compare

Comparing: 30 AI Projects Wrote the Rules—But Never Wired Up Automation & 30 个 AI 项目写了规则却没接上自动化 — 执行力才是文档价值

AEN
AGENTS.mdClaude CodeCursor·

30 AI Projects Wrote the Rules—But Never Wired Up Automation

Of 30 code repositories, only 8 fully connected their AI project rules to automated checks, while another 8 scored 40 points or less. This shows that AGENTS.md—the project-rules files read by AI coding assistants—widely suffers from “says a lot, enforces very little.”

What this is

The audit assigns each repository 100 points across five dimensions: whether the documentation lists commands for tests, code checks, and similar tasks; whether the repository has continuous integration (CI, a mechanism that runs checks automatically after every code commit); whether CI actually executes those checks; whether the documented commands match the CI pipeline; and whether pre-commit gates exist.

The sample includes 5 highly followed projects and 25 small and mid-sized projects. Twenty-six repositories have CI, 20 can map commands in their documentation to pipeline steps, and only 10 use hooks—scripts triggered automatically on or before commit—or dedicated AGENTS gates. Among the 13 projects that scored 80 points, 12 were missing only the final pre-commit gate.

Notably, documentation length did not correlate with execution. One repository with just 682 tokens and six documented commands scored only 20 because it had no CI. Another, with 12,911 tokens, scored 100 because its commands, pipeline, tests, and dedicated gates were all complete.

Industry view

We believe these results expose a common mistake in enterprise adoption of AI coding tools: confusing “providing operating instructions” with “building an execution loop.” No matter how detailed a rules file is, if developers still have to remember to run the commands, it is merely a manual that is easy to overlook.

That also leaves a realistic improvement path for low-cost projects. For repositories that already have CI but lack a pre-commit gate, adding one check is usually lighter than building a test framework from scratch. The scoring system has limitations, however: it checks only recognizable configuration and command families. It cannot verify whether scripts cover critical risks, and it may treat commands that formally correspond but have different execution scopes as a match.

Another risk is that overly strict dedicated gates could repeatedly block legitimate commits. Rules should fit how the team actually works; “the machine must always run it” should not become a new source of process friction.

Impact on regular people

For enterprise IT: When introducing AI coding assistants, companies should focus not only on purchasing tools or requiring teams to write rules, but also on checking whether those rules connect to testing, access controls, and release processes. Otherwise, AI-generated code still lacks reliable automated acceptance.

For individual professionals: For developers using tools such as Claude Code and Cursor, their value lies not only in how quickly they write code, but also in whether they can turn project conventions into an executable, reusable working environment. Understanding this point is closer to real competitiveness than simply learning prompt techniques.

For consumer markets: Future AI products for mainstream users will follow the same rule: explaining what they can do is only the starting point. Stable execution, exception handling, and result validation will determine whether users keep using them.

Source: juejin.cn
BZH
AGENTS.mdClaude CodeCursor·

30 个 AI 项目写了规则却没接上自动化 — 执行力才是文档价值

30 个代码仓库中,只有 8 个把 AI 项目规则完整接入自动检查,另有 8 个得分不超过 40 分;这说明 AGENTS.md(供 AI 编程助手读取的项目规则文件)普遍存在“写得多、接得不牢”的问题。

这是什么

这项检查给每个仓库打 100 分,考察五根线:文档是否列出测试、代码检查等命令,仓库是否配置持续集成(CI,代码每次提交后自动执行检查的机制),CI 是否真正运行这些检查,文档命令与 CI 是否对应,以及是否存在提交前门禁。

样本包含 5 个高关注度项目和 25 个中小项目。26 个仓库配有 CI,20 个能让文档里的命令与流水线对应,只有 10 个设置 hook(提交或提交前自动触发的脚本)或 AGENTS 专项门禁。13 个拿到 80 分的项目中,12 个只缺最后一道提交前门禁。

值得注意的是,文档长度与执行效果并不一致。一个只有 682 个 token、列出 6 条命令的仓库因没有 CI,只得 20 分;另一个 12,911 个 token 的仓库因命令、流水线、测试和专项门禁齐全,得到 100 分。

行业怎么看

我们认为,这项结果揭示了企业采用 AI 编程工具时一个常见误区:把“提供操作说明”误当成“建立执行闭环”。规则文件写得再详细,如果仍依赖开发者记得运行,最终就只是一份容易被忽略的说明书。

这也给低成本项目留下了较现实的改进空间。对已经具备 CI、只是缺少提交前门禁的仓库,增加一项检查通常比从头建设测试体系更轻。但这套评分也有局限:它只检查可识别的配置和命令族,无法确认脚本是否覆盖关键风险,也可能把形式上对应、实际执行范围不同的命令视为匹配。

另一个风险是,专项门禁若设置得过严,可能频繁阻断正常提交。规则应与团队实际工作方式配套,不能把“机器必跑”变成新的流程负担。

对普通人的影响

对企业 IT:企业引入 AI 编程助手时,重点不应只是采购工具或要求团队编写规则,而应检查规则是否接入测试、权限与发布流程。否则,AI 生成的代码仍缺少可靠的自动验收。

对个人职场:会使用 Claude Code、Cursor 等工具的开发者,价值不只在写代码速度,还在能否把项目约定变成可执行、可复用的工作环境。理解这一点,比单纯学习提示词更接近实际竞争力。

对消费市场:未来面向普通用户的 AI 产品也会遵循同一规律:能说明自己会做什么只是起点,稳定执行、异常处理和结果校验才决定用户是否长期使用。

Source: juejin.cn