Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

agents-md特工 MD

Agent Skill

agents-md 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

689

周安装

29

GitHub Stars

4

下载量

241
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agents-md(特工 MD)
来源仓库:https://github.com/dimitrigilbert/ai-skills
仓库路径:skills/agents-md
安装命令:
npx skills add https://github.com/dimitrigilbert/ai-skills --skill agents-md
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dimitrigilbert/ai-skills --skill agents-md

简介

提供 AGENTS.md 文件创建与维护的专业指导, 该标准被超 6 万开源项目采用。

  • 区别于 README.md, 专为 AI 代理设计,agents-md 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 包含构建步骤、测试与编码约定。适用于新项目引导、现有项目上下文补充与多代理协作规范统一。

SKILL.md

This skill provides expert guidance for creating, verifying, and improving AGENTS.md files - the open standard format for guiding AI coding agents.

What is AGENTS.md?

AGENTS.md is a simple, open format for guiding coding agents, used by over 60k open-source projects. Think of it as a README for agents: a dedicated, predictable place to provide context and instructions to help AI coding agents work on your project.

Key principle: Unlike README.md (which is for humans), AGENTS.md contains the extra, detailed context coding agents need: build steps, tests, conventions, and instructions that might clutter a README.

Learn more: https://agents.md/ | https://www.aihero.dev/a-complete-guide-to-agents-md

Quick Start

When users want to create an AGENTS.md file

Start by asking these clarifying questions:

  1. Project type: Monorepo or single package?
  2. Tech stack: What languages/frameworks?
  3. Package manager: npm, pnpm, yarn, bun, or something else?
  4. Build/test commands: Any non-standard commands?
  5. Specific concerns: Any patterns you want to encourage or avoid?

Then create a minimal AGENTS.md following the template below.

When users want to verify an existing AGENTS.md

Run through the verification checklist (see Verification below).

When users want to improve an existing AGENTS.md

Assess the file and suggest progressive disclosure refactoring (see Improvement below).

Core Principles

1. Minimal Root AGENTS.md

The root AGENTS.md should be as small as possible. Every token gets loaded on every request, so keep only what's relevant to every single task.

Essential elements only:

  • One-sentence project description (acts as a role-based prompt)
  • Package manager (if not npm; or use corepack for warnings)
  • Non-standard build/typecheck commands
  • Links to progressive disclosure files

2. Progressive Disclosure

Instead of cramming everything into AGENTS.md, give the agent only what it needs right now, and point to other resources when needed.

Example - Don't do this:

## Code style

- Always use const instead of let
- Use interface instead of type when possible
- Prefer functional patterns
- No semicolons
- Single quotes only
- ... (50 more lines)

Do this instead:

For TypeScript conventions, see docs/TYPESCRIPT.md

Benefits:

  • TypeScript rules only load when the agent writes TypeScript
  • Other tasks don't waste tokens
  • File stays focused and portable across model changes

3. Describe Capabilities, Not File Structure

File paths change constantly. Documenting structure leads to stale information that actively poisons context.

Don't:

Authentication logic lives in src/auth/handlers.ts

Do:

Authentication uses JWT tokens with refresh token rotation.
Look for modules matching **/auth/**/*.ts for implementation.

4. Nested AGENTS.md for Monorepos

Place AGENTS.md files in subdirectories - they merge with the root level.

LevelContent
RootMonorepo purpose, navigation, shared tools
PackagePackage purpose, tech stack, specific conventions

Root AGENTS.md:

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.

Package AGENTS.md (packages/api/AGENTS.md):

This package is a Node.js GraphQL API using Prisma.

Follow docs/API_CONVENTIONS.md for API design patterns.

Templates

Minimal Single-Package AGENTS.md

# AGENTS.md

[One-sentence description of what this project is]

## Package Manager

This project uses [pnpm/yarn/bun]. [Optional: brief note if workspaces/monorepo]

## Build & Test

- Build: `command here`
- Test: `command here`
- Typecheck: `command here` (if non-standard)

## Progressive Disclosure

- [Domain-specific]: [path/to/file.md]

Minimal Monorepo Root AGENTS.md

# AGENTS.md

This is a monorepo containing [brief description of packages].

## Package Manager

Use [pnpm workspaces/yarn workspaces] to manage dependencies.

## Navigation

- Use `pnpm --filter <package_name>` to run commands in specific packages
- Each package has its own AGENTS.md with specific guidelines

## Packages

- [`package-name`](packages/package-name): [brief purpose]
- [`package-name`](packages/package-name): [brief purpose]

Package-Level AGENTS.md (Monorepo)

# AGENTS.md

[One-sentence description of this package]

## Tech Stack

- [Framework]
- [Language]
- [Key libraries]

## Commands

- Build: `command here`
- Test: `command here`
- Dev: `command here`

## Progressive Disclosure

- [Domain]: [path/to/file.md]

Verification

When verifying an existing AGENTS.md, check for these issues:

Bloat Indicators

  • File is longer than 50-75 lines
  • Contains detailed coding style rules that belong in separate files
  • Documents file paths extensively
  • Has extensive examples that should be in documentation
  • Contains git workflow instructions that belong in CONTRIBUTING.md

Contradiction Detection

Look for conflicting instructions:

  • "Use functional patterns" vs "Use classes for X"
  • "Prefer composition" vs "Use inheritance for Y"
  • "Always use X" vs "In cases of Y, use Z"

Stale Information Risks

  • Specific file paths (especially src/ directories)
  • Lists of files or modules
  • Version-specific toolchain commands
  • Outdated architecture descriptions

Best Practices Compliance

  • Has one-sentence project description
  • Specifies package manager (if not npm)
  • Links to progressive disclosure files
  • Uses conversational tone (not "ALWAYS", "MUST", "NEVER")
  • Describes capabilities, not structure

Improvement

Refactoring Bloated AGENTS.md

Use this process to refactor a bloated AGENTS.md:

  1. Find contradictions: Identify conflicting instructions and ask which to keep
  2. Extract essentials: Keep only what belongs in root AGENTS.md
  3. Group the rest: Organize remaining instructions into logical categories
  4. Create file structure: Set up progressive disclosure hierarchy
  5. Flag for deletion: Remove redundant, vague, or obvious instructions

Prompt template to use:

I 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")

Creating Progressive Disclosure Files

Suggested structure:

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.md

Each file should:

  • Be focused on one domain
  • Link to related files for navigation
  • Describe principles, not prescriptions
  • Include examples where helpful

Common Issues & Solutions

IssueSolution
Agent uses wrong package managerExplicitly specify: "This project uses pnpm"
Agent generates wrong commandsList non-standard build/test commands
File gets too largeApply progressive disclosure - move domain rules to separate files
Instructions conflictReview for contradictions and resolve
Agent looks in wrong placesDescribe capabilities, not file paths
Mixed conventions over timeTreat AGENTS.md as living documentation, review periodically

AGENTS.md vs CLAUDE.md

Claude Code uses CLAUDE.md instead of AGENTS.md. To maintain compatibility:

# Create a symlink from AGENTS.md to CLAUDE.md
ln -s AGENTS.md CLAUDE.md

Both files serve the same purpose - customize how AI coding agents behave in your repository.

Tools Supporting AGENTS.md

AGENTS.md is an open standard supported by many tools:

  • OpenAI Codex, Jules (Google), Factory, Aider, goose, opencode
  • VS Code, Devin (Cognition), Cursor, RooCode, Gemini CLI
  • GitHub Copilot coding agent, Windsurf (Cognition), and more

See https://agents.md/ for the full list.

Your Approach

  1. Start minimal: Begin with essential information only
  2. Apply progressive disclosure: Move domain-specific rules to separate files
  3. Avoid file paths: Describe capabilities, not structure
  4. Keep it conversational: Use natural language, not rigid commands
  5. Review periodically: Treat as living documentation
  6. Use nested files: For monorepos, place AGENTS.md in subdirectories
  7. Link, don't duplicate: Point to other resources instead of repeating

Progressive Disclosure

Deep dive on specific topics:

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

40.41%
按下载量换算97

Claude

28.9%
按下载量换算70

Cursor

18.24%
按下载量换算44

Gemini CLI

10.27%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills