agent-rules
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAGENTS.md Generator Skill
AGENTS.md生成工具Skill
Generate and maintain AGENTS.md files following the agents.md convention. AGENTS.md is FOR AGENTS, not humans.
遵循agents.md规范生成并维护AGENTS.md文件。AGENTS.md是专为AI代理设计的,而非人类。
When to Use
使用场景
- Creating or updating AGENTS.md for new/existing projects
- Standardizing agent documentation across repositories
- Checking if AGENTS.md files are current with recent code changes
- Onboarding AI agents to an unfamiliar codebase
- 为新项目或现有项目创建或更新AGENTS.md
- 跨仓库标准化代理文档
- 检查AGENTS.md文件是否与最新代码变更同步
- 让AI代理接入不熟悉的代码库
Scripts
脚本
| Script | Purpose |
|---|---|
| Generate AGENTS.md files |
| Validate structure compliance |
| Check if files are outdated |
| Verify documented files/commands match codebase |
| Verify documented commands execute |
| Detect language, version, build tools |
| Identify directories needing scoped files |
| Extract commands from build configs |
| Extract CI quality gates and version matrix |
| Extract module boundaries |
| Extract architectural decision records |
| Extract GitHub rulesets and merge rules |
See for full options.
references/scripts-guide.md| 脚本 | 用途 |
|---|---|
| 生成AGENTS.md文件 |
| 验证结构是否符合规范 |
| 检查文件是否过时 |
| 验证文档中记录的文件/命令是否与代码库一致 |
| 验证文档中记录的命令可执行 |
| 检测项目语言、版本和构建工具 |
| 识别需要生成范围化文件的目录 |
| 从构建配置中提取命令 |
| 提取CI质量门和版本矩阵 |
| 提取模块边界 |
| 提取架构决策记录 |
| 提取GitHub规则集和合并规则 |
完整选项请查看。
references/scripts-guide.mdCore Principles
核心原则
- Structured over Prose -- tables parse faster than paragraphs
- Verified Commands -- commands that don't work waste tokens
- Pointer Principle -- point to files, don't duplicate content
- Auto Symlinks -- CLAUDE.md/GEMINI.md symlinks created by default (see )
ai-tool-compatibility.md
- 优先结构化而非散文式——表格比段落解析速度更快
- 命令需验证——无法执行的命令会浪费Token
- 指针原则——指向文件而非重复内容
- 自动创建符号链接——默认自动创建CLAUDE.md/GEMINI.md符号链接(详见)
ai-tool-compatibility.md
References
参考资料
| File | Contents |
|---|---|
| Verification steps, design principles |
| Script options, validation checklist |
| 16-agent compatibility matrix |
| Root/scoped sections |
| Hook framework detection and setup |
| Complete examples |
| 文件 | 内容 |
|---|---|
| 验证步骤、设计原则 |
| 脚本选项、验证检查清单 |
| 16种AI代理兼容性矩阵 |
| 根目录/范围化文件章节说明 |
| Hook框架检测与设置 |
| 完整示例 |
Templates
模板
Root: (default), . Scoped: -- , , , , , , , , .
assets/root-thin.mdroot-verbose.mdassets/scoped/backend-go.mdbackend-php.mdpython-modern.mdtypo3.mdsymfony.mdskill-repo.mdcli.mdfrontend-typescript.mdoro.md根目录模板:(默认)、。范围化模板:下的、、、、、、、、。
assets/root-thin.mdroot-verbose.mdassets/scoped/backend-go.mdbackend-php.mdpython-modern.mdtypo3.mdsymfony.mdskill-repo.mdcli.mdfrontend-typescript.mdoro.mdSupported Projects
支持的项目类型
Go, PHP (Composer/Laravel/Symfony/TYPO3/Oro), TypeScript (React/Next/Vue/Node), Python (pip/poetry/ruff/mypy), Skill repos, Hybrid (multi-stack with auto-scoping).
Go、PHP(Composer/Laravel/Symfony/TYPO3/Oro)、TypeScript(React/Next/Vue/Node)、Python(pip/poetry/ruff/mypy)、Skill仓库、混合栈项目(支持自动范围划分的多栈项目)。