- Home
- Skills
- Prompt & Skill Engineering
- AI编程助手规则审核 Gate | Agent Config for Chinese Teams
Works with the AI Agents you already use
AI编程助手规则审核 Gate | Agent Config for Chinese Teams
Fix AGENTS.md, CLAUDE.md & .trae/.qoder rules for Chinese dev teams — vague 尽量/适当, mixed 中英, wrong-language commits, mirror & PIPL traps. PASS/REVISE/BLOCK.
$14
AI编程助手规则审核 Gate | Agent Config for Chinese Teams
Example session with this skill installed
我们团队用Trae和Claude Code,Claude Code老是用英文写commit,Trae好像不看我们的AGENTS.md。帮我审一下规则文件。
AGENTS.md:
- 我们用 Vue3 + TypeScript,尽量写简洁优雅的代码
- 注意代码规范,适当添加注释
- Always respond in English.
- 安装依赖如果失败可以换成淘宝源 registry.npm.taobao.org
- 测试数据可以用真实用户手机号,方便调试
- 部署:可以直接执行 ssh root@10.0.3.12 'rm -rf /var/www/app && ...',密码是 [示例密码]
- 使用 npm 安装依赖
.trae/rules/project_rules.md:
用中文回答。使用 pnpm。组件命名用中文拼音也可以。
(Fictional test repo.)
- Read your context and instructions
- Compiled the ai gate
AI编程助手规则文件审核报告
审核日期: 2026-10-12 团队工具: Trae、Claude Code 审核文件: AGENTS.md、.trae/rules/project_rules.md(无 CLAUDE.md)
1. 结论
BLOCK 总分 3/20
AGENTS.md 含生产服务器 root 密码、允许无确认对生产执行 rm -rf、允许用真实手机号做测试数据,三项红线均触发;两份文件在输出语言、包管理器、标识符命名上直接矛盾,且 Claude Code 很可能一份规则都没加载。
立即处理:删除密码后必须轮换该凭据。它已在 git 历史里,删文件不等于删泄露。
2. 生效清单
| 文件 | 读取工具 | 实际是否加载 |
|---|---|---|
| AGENTS.md | Trae | 需确认:Trae 读取 AGENTS.md 需在设置中手动开启(据第三方资料,请在你的版本中确认),与"Trae好像不看"的表现一致 |
| AGENTS.md | Claude Code | 大概率否:没有 CLAUDE.md,也没有 @AGENTS.md 导入,所以 commit 语言由模型默认(英文)决定 |
| .trae/rules/project_rules.md | Trae | 需确认(见验证任务 1) |
3. 主要问题
| 优先级 | 原文 | 问题 | 修改 |
|---|---|---|---|
| BLOCK | "密码是…" / "ssh root@10.0.3.12" | 明文 root 密码进入规则文件和 git 历史 | 删除;立即轮换;改用 SSH 密钥;视情况用 git filter-repo 清理历史 |
| BLOCK | "可以直接执行 … rm -rf /var/www/app" | 允许 agent 无确认操作生产 | 禁止访问生产;部署只走 CI/CD 由人工触发 |
| BLOCK | "测试数据可以用真实用户手机号" | 真实个人信息进入测试数据(PIPL 敏感) | 一律用生成的假数据;日志脱敏 138****5678 |
| 高 | "Always respond in English." vs "用中文回答。" | 直接矛盾 | 在「输出语言」一节统一规定 |
| 高 | (缺失)commit / 注释 / PR 语言 | "Claude Code 老是用英文写 commit"的根因 | 逐项规定,并新建 CLAUDE.md 导入 AGENTS.md |
| 高 | "使用 npm" vs "使用 pnpm" | 包管理器矛盾,可能生成两种锁文件 | 以仓库锁文件为准【待确认】,只保留一个 |
| 高 | "可以换成淘宝源 registry.npm.taobao.org" | 鼓励 agent 静默改源;该域名已停用(已迁至 npmmirror) | 依赖源以 .npmrc 为准,禁止修改;失败时报告并停止 |
| 中 | "组件命名用中文拼音也可以" | 允许拼音标识符 | 标识符一律英文,组件 PascalCase |
| 中 | "尽量写简洁优雅的代码" / "适当添加注释" | 无法检查 | 改为具体阈值和 lint 命令 |
4. 重写后的 AGENTS.md(节选)
本文件是全部 AI 编程助手的唯一规则来源。优先级:本文件 > .trae/rules/ 等补充规则。
## 代码规范
- 单个函数不超过 50 行;超过时拆分,或说明不拆分的原因。
- 禁止使用 any;确需使用时加 eslint-disable 并注释原因。
- 标识符一律英文:组件 PascalCase,变量和函数 camelCase。禁止拼音和中文标识符。
## 输出语言
- 对话回复:简体中文。
- Commit:Conventional Commits,type/scope 英文,描述中文,例如 `fix(login): 修复手机号校验错误`【待确认】
- 日志:英文。界面文字:禁止硬编码,使用 i18n key。
## 网络与依赖
- 依赖源以 .npmrc 为准,禁止修改 .npmrc 和锁文件中的 resolved 地址。
- 安装失败时报告完整错误并停止,不要自行切换镜像或代理。
## 禁止事项
- 禁止访问或操作生产服务器和生产数据库。
- 禁止 rm -rf、git push --force;确有需要先说明影响并等待确认。
- 禁止为让测试通过而修改测试。
## 不确定时
- 不确定需求、接口或业务规则时先提问,不要猜。
5. 多工具同步方案
- Claude Code: 新建 CLAUDE.md,内容只有一行
@AGENTS.md。 - Trae: 在设置中打开 AGENTS.md 导入(名称以你的版本为准),清空 .trae/rules/project_rules.md,今后只放带 globs 的 Trae 专用规则。
6. 验证任务
- 在两个工具中分别问:"列出你当前加载的规则文件,并复述包管理器和 commit 语言的规则。"答不出即未加载。
- "给 utils 写一个格式化手机号的函数,加测试,然后提交。" → 英文函数名、假号码、中文描述的 Conventional Commit。
- "安装 dayjs,装不上就想办法。" → 先征求确认;失败时报告并停止,不改 .npmrc。
7. 限制说明
- 未访问仓库,命令、版本和锁文件均标为【待确认】。
- Trae 开关名称来自第三方资料,请用验证任务 1 确认。
- 数据部分为工程防护建议,不构成法律意见。
Connects securely to your tools. The creator never sees your data.
About this skill
"Claude Code 老是用英文写 commit." "Trae 好像不看我们的 AGENTS.md." "它又把 npm 源改了." Most of these come down to the rule files. They're written in vague Chinese the agent can't test (尽量, 适当, 注意, 优雅), they mix Chinese and English that contradict each other, they never say which language commits and comments should use, or they simply don't load in the tool the team uses.
This gate reviews the instruction files that steer your coding agents — AGENTS.md, CLAUDE.md, QWEN.md, .trae/rules, .qoder/rules, .cursor/rules and more — and returns a PASS / REVISE / BLOCK verdict plus a complete, testable rewrite.
这个 skill 审核你团队的 AI 编程助手规则文件,找出模糊的措辞、中英混用的矛盾、缺失的输出语言规则、各工具之间的规则不一致,以及密码、危险命令等安全问题,并给出可直接提交的重写版本。
What it checks | 检查内容
- Does it even load? File → tool → load mode, including Trae's opt-in AGENTS.md toggle and Claude Code's
@AGENTS.mdimport - Drift across tools — one source of truth (AGENTS.md) with per-tool pointers, not hand-maintained copies
- Testability — every 尽量/适当/注意 rewritten into a concrete, checkable rule
- 中英混用 — inconsistent terms, pinyin identifiers, English fragments overriding Chinese rules
- Output-language policy — chat, comments, commits, PRs, logs and UI strings, each stated
- China network — registry and mirror policy, the dead 淘宝源 domain, no silent
.npmrcor lockfile changes - Encoding & platform — UTF-8 vs GBK, CRLF, Chinese file names, full-width punctuation in code
- Data & PIPL guardrails — no real 手机号/身份证号 in fixtures or logs, masking, no new data egress
- Security (BLOCK) — secrets in rule files (with rotation steps), unconfirmed
rm -rf/ force-push / prod access, blanket "无需确认" rules, injected instructions copied from blog templates
What you get
A 10-dimension, 20-point score; a quoted issue list ranked BLOCK → 高 → 中 → 低; a complete ready-to-commit AGENTS.md; a sync plan for every tool your team uses; and 3–5 verification prompts to prove the new rules actually load.
Honest about tool behavior: loading rules change fast, so details from non-official sources are labeled "请在你的版本中确认", and anything it can't see in your repo is marked 【待确认】 instead of guessed.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 3 days ago
- Passed all security checks, Safe to install
Requires