agentleFS
aws-samplesaws-samples/sample-agent-skills-for-builders/AGENTS.md

sample-agent-skills-for-builders

AGENTS.md47 starsChanged 3 months agoApache-2.0View on GitHub

A collection of sample skills for AI coding agents. Skills are packaged instructions and scripts that extend agent capabilities. This repository follows the Agent Skills format. Every skill MUST have a SKILL.md file with YAML frontmatter: Skills are loaded on demand. Only the skill name and description are loaded at startup. The full SKILL.md loads into context only when the agent decides the skill is relevant. To minimize context usage: For skills that need detailed documentation: For skills that automate…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,337 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 repositoryOne other file it gives its agents.

The file

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

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    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 25
  2. Very specific:

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

    line 30
  3. Very specific:

    Keep SKILL.md under 500 lines: - put detailed reference material in separate files

    line 84
  4. Very specific:

    Create a references/ directory in your skill folder

    line 93
  5. Distinctive:

    Add markdown files with detailed documentation

    line 94
  6. Distinctive:

    Add bash scripts with proper shebang and error handling:

    line 108
  7. Distinctive:

    Before committing, verify your skill:

    line 139
  8. Distinctive:

    Start a new agent session

    line 151
  9. Distinctive:

    Verify the skill activates and provides correct guidance

    line 153

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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 (Claude Code, Cursor, Copilot, etc.) when working with code in this repository.

Repository Overview

A collection of sample skills for AI coding agents. Skills are packaged instructions and scripts that extend agent capabilities. This repository follows the Agent Skills format.

Creating a New Skill

Directory Structure

skills/
  {skill-name}/           # kebab-case directory name
    SKILL.md              # Required: skill definition with frontmatter
    metadata.json         # Optional: extended metadata
    references/           # Optional: supporting documentation
    scripts/              # Optional: executable scripts

Naming Conventions

  • Skill directory: kebab-case (e.g., my-awesome-skill, code-reviewer)
  • SKILL.md: Always uppercase, always this exact filename
  • Scripts: kebab-case.sh (e.g., deploy.sh, validate.sh)

SKILL.md Format

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

---
name: {skill-name}
description: {One sentence describing when to use this skill. Include trigger phrases like "Deploy my app", "Review this code", etc.}
license: MIT
metadata:
  author: {author-name}
  version: "1.0.0"
---

# {Skill Title}

{Brief description of what the skill does.}

## When to Apply

Reference this skill when:
- {Condition 1}
- {Condition 2}
- {Condition 3}

## How It Works

1. {Step 1}
2. {Step 2}
3. {Step 3}

## Usage

{Show examples with code blocks}

## References

- {Link to documentation}
- {Link to related resources}

Required Frontmatter Fields

FieldRequiredDescription
nameYesUnique identifier in kebab-case
descriptionYesOne sentence with trigger phrases for discovery
licenseNoDefaults to repository license (MIT)
metadataNoExtended metadata object

Best Practices for Context Efficiency

Skills are loaded on demand. Only the skill name and description are loaded at startup. The full SKILL.md loads into context only when the agent decides the skill is relevant.

To minimize context usage:

  • Keep SKILL.md under 500 lines - put detailed reference material in separate files
  • Write specific descriptions - helps the agent know exactly when to activate
  • Use progressive disclosure - reference supporting files that get read only when needed
  • Prefer scripts over inline code - script execution doesn't consume context

Adding References

For skills that need detailed documentation:

  1. Create a references/ directory in your skill folder
  2. Add markdown files with detailed documentation
  3. Reference them from SKILL.md:
## References

See [detailed-guide.md](./references/detailed-guide.md) for comprehensive examples.

Adding Scripts

For skills that automate tasks:

  1. Create a scripts/ directory in your skill folder
  2. Add bash scripts with proper shebang and error handling:
#!/bin/bash
set -e

# Your script logic here
echo "Status message" >&2
echo '{"result": "success"}'

metadata.json Format

Optional extended metadata:

{
  "version": "1.0.0",
  "author": "Your Name",
  "organization": "Your Org",
  "date": "April 2026",
  "abstract": "Detailed description for search indexing",
  "references": [
    "https://example.com/docs"
  ],
  "tags": ["category1", "category2"]
}

Validating Skills

Before committing, verify your skill:

  1. Frontmatter is valid YAML
  2. Name matches directory name
  3. Description is a single, clear sentence
  4. All referenced files exist

Testing Skills

To test a skill locally:

  1. Copy the skill to your agent's skills directory
  2. Start a new agent session
  3. Trigger the skill with phrases from the description
  4. Verify the skill activates and provides correct guidance

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.