agentleFS
X-Zero-LX-Zero-L/agent-skills/AGENTS.md

agent-skills

AGENTS.md2 starsChanged 10 months agoMITView on GitHub

This file provides guidance to AI coding agents when working with this repository. A collection of skills for AI coding agents (Claude Code, Cursor, etc.). Skills are packaged instructions and scripts that extend agent capabilities and follow the Agent Skills specification. Every skill MUST have a SKILL.md file with YAML frontmatter: bash node scripts/example.mjs --arg value bash # Example 1: Basic usage node scripts/example.mjs --prompt "Do something" Expected output format Skills are loaded on-demand to minimize context usage: Keep SKILL.md…

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

20 rules. About 0 are common, 13 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    SKILL.md: Always uppercase, always this exact filename

    line 37
  2. Very specific:

    Every skill MUST have a SKILL.md file with YAML frontmatter:

    line 42
  3. Distinctive:

    When including executable scripts:

    line 140
  4. Very specific:

    Use appropriate shebang (#!/bin/bash, #!/usr/bin/env node, etc.)

    line 142
  5. Very specific:

    Write status messages to stderr: echo "Message" >&2

    line 144
  6. Distinctive:

    Write machine-readable output (JSON) to stdout

    line 145
  7. Distinctive:

    Document all arguments with defaults and examples

    line 147
  8. Distinctive:

    Keep references one level deep - avoid deeply nested reference chains.

    line 161
  9. Distinctive:

    When creating a new skill:

    line 174
  10. Very specific:

    Create SKILL.md with required frontmatter

    line 177
  11. Very specific:

    Add scripts directory if needed: mkdir skills/new-skill-name/scripts

    line 178
  12. Distinctive:

    Write clear instructions with examples

    line 179
  13. Distinctive:

    Test the skill with an agent

    line 181
  14. Distinctive:

    Update README.md to list the new skill

    line 182
  15. Distinctive:

    Verify all relative file paths work

    line 189
  16. Distinctive:

    Test scripts execute correctly

    line 190
  17. Very specific:

    Check that SKILL.md is under 500 lines

    line 192
  18. Distinctive:

    Use clear, descriptive variable names

    line 196
  19. Distinctive:

    Add comments for complex logic

    line 198
  20. Distinctive:

    Keep scripts focused on single responsibility

    line 200

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

This file provides guidance to AI coding agents when working with this repository.

Repository Overview

A collection of skills for AI coding agents (Claude Code, Cursor, etc.). Skills are packaged instructions and scripts that extend agent capabilities and follow the Agent Skills specification.

Repository Structure

agent-skills/
├── skills/              # Individual skill directories
│   └── gemini-cli/     # Gemini CLI skill
│       ├── SKILL.md    # Skill definition and instructions
│       └── scripts/    # Helper scripts
├── README.md           # User-facing documentation
└── AGENTS.md          # This file - instructions for AI agents

Creating a New Skill

Directory Structure

skills/
  {skill-name}/           # kebab-case directory name
    SKILL.md              # Required: skill definition
    scripts/              # Optional: executable scripts
    references/           # Optional: additional documentation
    assets/              # Optional: templates, images, data

Naming Conventions

  • Skill directory: kebab-case (e.g., gemini-cli, pdf-tools)
  • SKILL.md: Always uppercase, always this exact filename
  • Scripts: Descriptive names with appropriate extensions (.sh, .mjs, .py)

SKILL.md Format

Every skill MUST have a SKILL.md file with YAML frontmatter:

---
name: skill-name
description: Clear description of what this skill does and when to use it. Include trigger phrases.
license: Apache-2.0  # Optional
metadata:            # Optional
  author: your-name
  version: "1.0"
---

# Skill Title

Brief description of what the skill does.

## When To Use

Use this skill when:
- Specific condition or trigger phrase
- User asks to do X
- Working with Y technology

## How It Works

1. Step-by-step explanation
2. Of the skill's workflow
3. And what it does

## Usage

If the skill includes scripts:

```bash
node scripts/example.mjs --arg value

Arguments:

  • --arg - Description (optional, defaults to X)

Examples:

# Example 1: Basic usage
node scripts/example.mjs --prompt "Do something"

# Example 2: Advanced usage
node scripts/example.mjs --prompt "..." --option value

Output

Example of what the user will see:

Expected output format

Guidelines

  • Important guideline 1
  • Best practice 2
  • Safety rule 3

Troubleshooting

  • Issue: Solution

### Required Frontmatter Fields

- `name`: Must be 1-64 characters, lowercase letters/numbers/hyphens only, no leading/trailing hyphens, must match directory name
- `description`: Must be 1-1024 characters, describe what the skill does and when to use it

### Optional Frontmatter Fields

- `license`: License name or reference (e.g., "Apache-2.0", "MIT", "Proprietary")
- `compatibility`: Environment requirements (e.g., "Requires Node.js 18+")
- `metadata`: Arbitrary key-value pairs for additional info

### Best Practices for Context Efficiency

Skills are loaded on-demand to minimize context usage:

1. **Metadata** (~100 tokens): Only name/description loaded at startup
2. **Instructions** (<5000 tokens): Full SKILL.md loaded when skill activates
3. **Resources** (as needed): Scripts/references loaded only when required

**Keep SKILL.md under 500 lines** - move detailed documentation to `references/` directory.

**Write specific descriptions** with trigger phrases so agents know when to activate.

**Use progressive disclosure** - reference supporting files that load only when needed.

**Prefer scripts over inline code** - script execution doesn't consume context (only output does).

### Script Requirements

When including executable scripts:

- Use appropriate shebang (`#!/bin/bash`, `#!/usr/bin/env node`, etc.)
- For bash: Use `set -e` for fail-fast behavior
- Write status messages to stderr: `echo "Message" >&2`
- Write machine-readable output (JSON) to stdout
- Include error handling with helpful messages
- Document all arguments with defaults and examples
- Reference the script with relative paths from skill root

### File References

Reference other files using relative paths from the skill root:

```markdown
See [detailed guide](references/GUIDE.md) for more information.

Run the script:
bash scripts/deploy.sh

Keep references one level deep - avoid deeply nested reference chains.

Validation

Validate your skill format using the reference implementation:

npm install -g @agentskills/skills-ref
skills-ref validate ./skills/your-skill-name

Adding a New Skill Workflow

When creating a new skill:

  1. Create directory: mkdir skills/new-skill-name
  2. Create SKILL.md with required frontmatter
  3. Add scripts directory if needed: mkdir skills/new-skill-name/scripts
  4. Write clear instructions with examples
  5. Validate the skill format
  6. Test the skill with an agent
  7. Update README.md to list the new skill

Testing Skills

Before committing:

  1. Validate YAML frontmatter is correct
  2. Verify all relative file paths work
  3. Test scripts execute correctly
  4. Confirm trigger phrases are specific enough
  5. Check that SKILL.md is under 500 lines

Code Style

  • Use clear, descriptive variable names
  • Include error handling
  • Add comments for complex logic
  • Follow language-specific conventions
  • Keep scripts focused on single responsibility

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.