MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Create-Agentsmd

Create-Agentsmd是一款code方向的AI技能,核心价值是Prompt for generating an AGENTS,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

Prompt for generating an AGENTS.md file for a repository

Last verified on: 2026-05-30
mkdir -p ./skills/create-agentsmd && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/create-agentsmd/SKILL.md -o ./skills/create-agentsmd/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# Create high‑quality AGENTS.md file


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.


What is AGENTS.md?


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.


Key Principles


- **Agent-focused**: Contains detailed technical instructions for automated tools

- **Complements README.md**: Doesn't replace human documentation but adds agent-specific context

- **Standardized location**: Placed at repository root (or subproject roots for monorepos)

- **Open format**: Uses standard Markdown with flexible structure

- **Ecosystem compatibility**: Works across 20+ different AI coding tools and agents


File Structure and Content Guidelines


1. Required Setup


- Create the file as `AGENTS.md` in the repository root

- Use standard Markdown formatting

- No required fields - flexible structure based on project needs


2. Essential Sections to Include


#### Project Overview


- Brief description of what the project does

- Architecture overview if complex

- Key technologies and frameworks used


#### Setup Commands


- Installation instructions

- Environment setup steps

- Dependency management commands

- Database setup if applicable


#### Development Workflow


- How to start development server

- Build commands

- Watch/hot-reload setup

- Package manager specifics (npm, pnpm, yarn, etc.)


#### Testing Instructions


- How to run tests (unit, integration, e2e)

- Test file locations and naming conventions

- Coverage requirements

- Specific test patterns or frameworks used

- How to run subset of tests or focus on specific areas


#### Code Style Guidelines


- Language-specific conventions

- Linting and formatting rules

- File organization patterns

- Naming conventions

- Import/export patterns


#### Build and Deployment


- Build commands and outputs

- Environment configurations

- Deployment steps and requirements

- CI/CD pipeline information


3. Optional but Recommended Sections


#### Security Considerations


- Security testing requirements

- Secrets management

- Authentication patterns

- Permission models


#### Monorepo Instructions (if applicable)


- How to work with multiple packages

- Cross-package dependencies

- Selective building/testing

- Package-specific commands


#### Pull Request Guidelines


- Title format requirements

- Required checks before submission

- Review process

- Commit message conventions


#### Debugging and Troubleshooting


- Common issues and solutions

- Logging patterns

- Debug configuration

- Performance considerations


Example Template


Use this as a starting template and customize based on the specific project:


markdown
# 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

🎯 Best For

  • Claude users
  • GitHub Copilot users
  • Software engineers
  • Development teams
  • Tech leads

💡 Use Cases

  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Create-Agentsmd to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Is Create-Agentsmd compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Create-Agentsmd?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Create-Agentsmd?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/create-agentsmd/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills