create-agentsmd by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill create-agentsmd你是一个代码助手。你的任务是在此仓库的根目录下创建一个完整、准确的 AGENTS.md 文件,并遵循 https://agents.md/ 上的公开指南。
AGENTS.md 是一种开放格式,旨在为编码助手提供有效处理项目所需的上下文和指令。
AGENTS.md 是一个 Markdown 文件,充当"面向助手的 README"——一个专门的、可预测的位置,用于提供上下文和指令,以帮助 AI 编码助手处理你的项目。它通过包含编码助手需要但可能会使面向人类的 README 变得杂乱无章的详细技术上下文,来补充 README.md。
AGENTS.md 的文件广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
以此作为起始模板,并根据具体项目进行自定义:
# AGENTS.md
## 项目概述
[项目的简要描述、其目的和关键技术]
## 设置命令
- 安装依赖:`[包管理器] install`
- 启动开发服务器:`[命令]`
- 构建生产版本:`[命令]`
## 开发工作流
- [开发服务器启动说明]
- [热重载/监视模式信息]
- [环境变量设置]
## 测试说明
- 运行所有测试:`[命令]`
- 运行单元测试:`[命令]`
- 运行集成测试:`[命令]`
- 测试覆盖率:`[命令]`
- [特定的测试模式或要求]
## 代码风格
- [语言和框架约定]
- [代码检查规则和命令]
- [格式化要求]
- [文件组织模式]
## 构建与部署
- [构建流程详情]
- [输出目录]
- [特定环境的构建]
- [部署命令]
## 拉取请求指南
- 标题格式:[组件] 简要描述
- 必需检查:`[代码检查命令]`、`[测试命令]`
- [审查要求]
## 附加说明
- [任何项目特定的上下文]
- [常见的陷阱或故障排除技巧]
- [性能注意事项]
以下是来自 agents.md 网站的真实示例:
# 示例 AGENTS.md 文件
## 开发环境提示
- 使用 `pnpm dlx turbo run where <project_name>` 跳转到某个包,而不是用 `ls` 扫描。
- 运行 `pnpm install --filter <project_name>` 将包添加到你的工作区,以便 Vite、ESLint 和 TypeScript 能够识别它。
- 使用 `pnpm create vite@latest <project_name> -- --template react-ts` 快速启动一个新的 React + Vite 包,并已准备好 TypeScript 检查。
- 检查每个包内 package.json 的 name 字段以确认正确的名称——跳过顶层的那个。
## 测试说明
- 在 .github/workflows 文件夹中找到 CI 计划。
- 运行 `pnpm turbo run test --filter <project_name>` 来运行为该包定义的所有检查。
- 从包的根目录,你可以直接调用 `pnpm test`。提交前应通过所有测试。
- 要专注于一个步骤,添加 Vitest 模式:`pnpm vitest run -t "<test name>"`。
- 修复所有测试或类型错误,直到整个套件通过。
- 移动文件或更改导入后,运行 `pnpm lint --filter <project_name>` 以确保 ESLint 和 TypeScript 规则仍然通过。
- 为你更改的代码添加或更新测试,即使没有人要求。
## PR 说明
- 标题格式:[<project_name>] <标题>
- 提交前始终运行 `pnpm lint` 和 `pnpm test`。
对于大型单体仓库:
创建 AGENTS.md 文件时,应优先考虑清晰性、完整性和可操作性。目标是让任何编码助手都有足够的上下文来有效地为项目做出贡献,而无需额外的人工指导。
每周安装量
7.8K
仓库
GitHub 星标数
26.7K
首次出现
2026年2月25日
安全审计
安装于
codex7.7K
gemini-cli7.7K
opencode7.7K
github-copilot7.7K
cursor7.7K
kimi-cli7.7K
You are a code agent. Your task is to create a complete, accurate AGENTS.md at the root of this repository that follows the public guidance at https://agents.md/.
AGENTS.md is an open format designed to provide coding agents with the context and instructions they need to work effectively on a project.
AGENTS.md is a Markdown file that serves as a "README for agents" - a dedicated, predictable place to provide context and instructions to help AI coding agents work on your project. It complements README.md by containing detailed technical context that coding agents need but might clutter a human-focused README.
AGENTS.md in the repository rootUse this as a starting template and customize based on the specific project:
# AGENTS.md
## Project Overview
[Brief description of the project, its purpose, and key technologies]
## Setup Commands
- Install dependencies: `[package manager] install`
- Start development server: `[command]`
- Build for production: `[command]`
## Development Workflow
- [Development server startup instructions]
- [Hot reload/watch mode information]
- [Environment variable setup]
## Testing Instructions
- Run all tests: `[command]`
- Run unit tests: `[command]`
- Run integration tests: `[command]`
- Test coverage: `[command]`
- [Specific testing patterns or requirements]
## Code Style
- [Language and framework conventions]
- [Linting rules and commands]
- [Formatting requirements]
- [File organization patterns]
## Build and Deployment
- [Build process details]
- [Output directories]
- [Environment-specific builds]
- [Deployment commands]
## Pull Request Guidelines
- Title format: [component] Brief description
- Required checks: `[lint command]`, `[test command]`
- [Review requirements]
## Additional Notes
- [Any project-specific context]
- [Common gotchas or troubleshooting tips]
- [Performance considerations]
Here's a real example from the agents.md website:
# Sample AGENTS.md file
## Dev environment tips
- Use `pnpm dlx turbo run where <project_name>` to jump to a package instead of scanning with `ls`.
- Run `pnpm install --filter <project_name>` to add the package to your workspace so Vite, ESLint, and TypeScript can see it.
- Use `pnpm create vite@latest <project_name> -- --template react-ts` to spin up a new React + Vite package with TypeScript checks ready.
- Check the name field inside each package's package.json to confirm the right name—skip the top-level one.
## Testing instructions
- Find the CI plan in the .github/workflows folder.
- Run `pnpm turbo run test --filter <project_name>` to run every check defined for that package.
- From the package root you can just call `pnpm test`. The commit should pass all tests before you merge.
- To focus on one step, add the Vitest pattern: `pnpm vitest run -t "<test name>"`.
- Fix any test or type errors until the whole suite is green.
- After moving files or changing imports, run `pnpm lint --filter <project_name>` to be sure ESLint and TypeScript rules still pass.
- Add or update tests for the code you change, even if nobody asked.
## PR instructions
- Title format: [<project_name>] <Title>
- Always run `pnpm lint` and `pnpm test` before committing.
Analyze the project structure to understand:
Identify key workflows by examining:
Create comprehensive sections covering:
Include specific, actionable commands that agents can execute directly
Test the instructions by ensuring all commands work as documented
Keep it focused on what agents need to know, not general project information
For large monorepos:
When creating the AGENTS.md file, prioritize clarity, completeness, and actionability. The goal is to give any coding agent enough context to effectively contribute to the project without requiring additional human guidance.
Weekly Installs
7.8K
Repository
GitHub Stars
26.7K
First Seen
Feb 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex7.7K
gemini-cli7.7K
opencode7.7K
github-copilot7.7K
cursor7.7K
kimi-cli7.7K
97,600 周安装