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.
- auto-commitSkill
- gemini-cliSkill
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
- Very specific: line 37
SKILL.md: Always uppercase, always this exact filename
- Very specific: line 42
Every skill MUST have a SKILL.md file with YAML frontmatter:
- Distinctive: line 140
When including executable scripts:
- Very specific: line 142
Use appropriate shebang (#!/bin/bash, #!/usr/bin/env node, etc.)
- Very specific: line 144
Write status messages to stderr: echo "Message" >&2
- Distinctive: line 145
Write machine-readable output (JSON) to stdout
- Distinctive: line 147
Document all arguments with defaults and examples
- Distinctive: line 161
Keep references one level deep - avoid deeply nested reference chains.
- Distinctive: line 174
When creating a new skill:
- Very specific: line 177
Create SKILL.md with required frontmatter
- Very specific: line 178
Add scripts directory if needed: mkdir skills/new-skill-name/scripts
- Distinctive: line 179
Write clear instructions with examples
- Distinctive: line 181
Test the skill with an agent
- Distinctive: line 182
Update README.md to list the new skill
- Distinctive: line 189
Verify all relative file paths work
- Distinctive: line 190
Test scripts execute correctly
- Very specific: line 192
Check that SKILL.md is under 500 lines
- Distinctive: line 196
Use clear, descriptive variable names
- Distinctive: line 198
Add comments for complex logic
- Distinctive: line 200
Keep scripts focused on single responsibility
≈ “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.
Files
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 agentsCreating 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, dataNaming 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 valueArguments:
--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 valueOutput
Example of what the user will see:
Expected output formatGuidelines
- 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.shKeep 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-nameAdding a New Skill Workflow
When creating a new skill:
- Create directory:
mkdir skills/new-skill-name - Create SKILL.md with required frontmatter
- Add scripts directory if needed:
mkdir skills/new-skill-name/scripts - Write clear instructions with examples
- Validate the skill format
- Test the skill with an agent
- Update README.md to list the new skill
Testing Skills
Before committing:
- Validate YAML frontmatter is correct
- Verify all relative file paths work
- Test scripts execute correctly
- Confirm trigger phrases are specific enough
- 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
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
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.

