Loading...
Loading...
Compare original and translation side by side
undefinedundefined
**Do this instead:**
```markdown
For TypeScript conventions, see docs/TYPESCRIPT.md
**正确做法:**
```markdown
关于TypeScript约定,请查看docs/TYPESCRIPT.mdAuthentication logic lives in src/auth/handlers.tsAuthentication uses JWT tokens with refresh token rotation.
Look for modules matching **/auth/**/*.ts for implementation.认证逻辑位于src/auth/handlers.ts认证使用带刷新令牌轮换的JWT令牌。
查找匹配**/auth/**/*.ts的模块以查看实现细节。| Level | Content |
|---|---|
| Root | Monorepo purpose, navigation, shared tools |
| Package | Package purpose, tech stack, specific conventions |
This is a monorepo containing web services and CLI tools.
Use pnpm workspaces to manage dependencies.
See each package's AGENTS.md for specific guidelines.This package is a Node.js GraphQL API using Prisma.
Follow docs/API_CONVENTIONS.md for API design patterns.| 层级 | 内容 |
|---|---|
| 根目录 | 单体仓库用途、导航方式、共享工具 |
| 包 | 包的用途、技术栈、特定约定 |
这是一个包含Web服务和CLI工具的单体仓库。
使用pnpm workspaces管理依赖。
请查看每个包的AGENTS.md获取具体指南。本包是一个使用Prisma的Node.js GraphQL API。
请遵循docs/API_CONVENTIONS.md中的API设计模式。undefinedundefinedcommand herecommand herecommand here此处填写命令此处填写命令此处填写命令undefinedundefinedundefinedundefinedpnpm --filter <package_name>pnpm --filter <package_name>package-namepackage-nameundefinedpackage-namepackage-nameundefinedundefinedundefinedcommand herecommand herecommand here此处填写命令此处填写命令此处填写命令undefinedundefinedI want you to refactor my AGENTS.md file to follow progressive disclosure principles.
1. **Find contradictions**: Identify any instructions that conflict with each other.
For each contradiction, ask me which version I want to keep.
2. **Identify the essentials**: Extract only what belongs in the root AGENTS.md:
- One-sentence project description
- Package manager (if not npm)
- Non-standard build/typecheck commands
- Anything truly relevant to every single task
3. **Group the rest**: Organize remaining instructions into logical categories
(e.g., TypeScript conventions, testing patterns, API design, Git workflow).
4. **Create the file structure**: Output:
- A minimal root AGENTS.md with markdown links to the separate files
- Each separate file with its relevant instructions
- A suggested docs/ folder structure
5. **Flag for deletion**: Identify any instructions that are:
- Redundant (the agent already knows this)
- Too vague to be actionable
- Overly obvious (like "write clean code")我希望你遵循渐进式披露原则重构我的AGENTS.md文件。
1. **查找矛盾**:识别任何相互冲突的指令。
对于每个矛盾,询问我想要保留哪一个版本。
2. **识别必要内容**:仅提取属于根目录AGENTS.md的内容:
- 一句话项目描述
- 包管理器(如果不是npm)
- 非标准构建/类型检查命令
- 与所有任务真正相关的内容
3. **分组其余内容**:将剩余指令按逻辑类别整理
(例如TypeScript约定、测试模式、API设计、Git工作流)。
4. **创建文件结构**:输出:
- 一个简洁的根目录AGENTS.md,包含指向单独文件的Markdown链接
- 每个单独文件包含相关指令
- 建议的docs/文件夹结构
5. **标记待删除内容**:识别以下类型的指令:
- 冗余的(Agent已经知道的内容)
- 过于模糊无法执行的
- 过于显而易见的(比如“编写干净的代码”)docs/
├── TYPESCRIPT.md # TypeScript patterns and conventions
├── TESTING.md # Testing strategies and frameworks
├── API_CONVENTIONS.md # API design patterns (if applicable)
├── ARCHITECTURE.md # High-level architecture (capabilities, not file paths)
└── Git worklow items → CONTRIBUTING.mddocs/
├── TYPESCRIPT.md # TypeScript模式与约定
├── TESTING.md # 测试策略与框架
├── API_CONVENTIONS.md # API设计模式(如适用)
├── ARCHITECTURE.md # 高层级架构(描述能力,而非文件路径)
└── Git工作流内容 → CONTRIBUTING.md| Issue | Solution |
|---|---|
| Agent uses wrong package manager | Explicitly specify: "This project uses pnpm" |
| Agent generates wrong commands | List non-standard build/test commands |
| File gets too large | Apply progressive disclosure - move domain rules to separate files |
| Instructions conflict | Review for contradictions and resolve |
| Agent looks in wrong places | Describe capabilities, not file paths |
| Mixed conventions over time | Treat AGENTS.md as living documentation, review periodically |
| 问题 | 解决方案 |
|---|---|
| Agent使用了错误的包管理器 | 明确指定:“本项目使用pnpm” |
| Agent生成了错误的命令 | 列出非标准的构建/测试命令 |
| 文件过大 | 应用渐进式披露——将领域特定规则移至单独文件 |
| 指令冲突 | 检查矛盾并解决 |
| Agent查找位置错误 | 描述能力,而非文件路径 |
| 随着时间推移出现混合约定 | 将AGENTS.md视为活文档,定期审核 |
CLAUDE.mdAGENTS.mdundefinedCLAUDE.mdAGENTS.mdundefined
Both files serve the same purpose - customize how AI coding agents behave in your repository.
两个文件的用途相同——自定义AI编码Agent在你的仓库中的行为。