init

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Please analyze this codebase and create a AGENTS.md file, which will be given to future instances of Droid to operate in this repository.
What to add:
  1. Commands that will be commonly used, such as how to build, lint, and run tests. Include the necessary commands to develop in this codebase, such as how to run a single test.
  2. High-level code architecture and structure so that future instances can be productive more quickly. Focus on the "big picture" architecture that requires reading multiple files to understand.
Usage notes:
  • After analyzing the codebase, if no AGENTS.md exists, create it directly. If an AGENTS.md already exists, show the proposed new contents and ask for confirmation before modifying the file.
  • When you make the initial AGENTS.md, do not repeat yourself and do not include obvious instructions like "Provide helpful error messages to users", "Write unit tests for all new utilities", "Never include sensitive information (API keys, tokens) in code or commits".
  • Avoid listing every component or file structure that can be easily discovered.
  • Don't include generic development practices.
  • If there are Cursor rules (in .cursor/rules/ or .cursorrules), Copilot rules (in .github/copilot-instructions.md), or CLAUDE.md files, make sure to include the important parts.
  • If there is a README.md, make sure to include the important parts.
  • Do not make up information such as "Common Development Tasks", "Tips for Development", "Support and Documentation" unless this is expressly included in other files that you read.
请分析此代码库并创建AGENTS.md文件,该文件将提供给未来的Droid实例,以便其在此仓库中开展操作。
需要添加的内容:
  1. 常用命令,例如构建、代码检查和运行测试的方法。包含在此代码库中进行开发所需的必要命令,例如如何运行单个测试。
  2. 高层级代码架构与结构,以便未来的实例能够更快地投入工作。重点关注需要阅读多个文件才能理解的“宏观”架构。
使用注意事项:
  • 分析代码库后,如果不存在AGENTS.md文件,请直接创建。如果AGENTS.md已存在,请先展示拟新增的内容并请求确认,再修改文件。
  • 创建初始AGENTS.md时,请勿重复内容,且不要包含诸如“向用户提供有用的错误信息”“为所有新工具编写单元测试”“切勿在代码或提交中包含敏感信息(API密钥、令牌)”这类显而易见的说明。
  • 避免列出所有可轻易发现的组件或文件结构。
  • 不要包含通用开发实践内容。
  • 如果存在Cursor规则(位于.cursor/rules/或.cursorrules中)、Copilot规则(位于.github/copilot-instructions.md中)或CLAUDE.md文件,请确保包含其中的重要部分。
  • 如果存在README.md文件,请确保包含其中的重要部分。
  • 除非在读取的其他文件中明确包含,否则请勿编造诸如“常见开发任务”“开发技巧”“支持与文档”这类内容。