Agent skill

Creating Agent Skills

by davekilleen in davekilleen/Dex

Expert guidance for creating, writing, and refining Claude Code Skills.

MITAuto-check passedDocuments & Office

Install Creating Agent Skills

skills CLI
$ npx skills add davekilleen/Dex --skill creating-agent-skills -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install davekilleen/Dex creating-agent-skills --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/davekilleen/Dex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/plugins/compound-engineering/skills/create-agent-skills .claude/skills/creating-agent-skills && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
creating-agent-skills
GitHub stars
493
Used in
1 other repo
Token cost
~1.7k tokens
SKILL.md length
428 words
Files
26 (incl. references)
Skills in repo
61
Repo updated
First seen
Licence
MIT

At a glance

Expert guidance for creating, writing, and refining Claude Code Skills.

  • Works in 7 steps: Skills Are Prompts → Standard Markdown Format → Progressive Disclosure → …
  • Working with SKILL.md files
  • SKILL.md covers Core Principles, Skill Structure, What Would You Like To Do? and Creating a New Skill, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Creating Agent Skills is an agent skill from davekilleen/Dex. Expert guidance for creating, writing, and refining Claude Code Skills. Use when working with SKILL.md files, authoring new skills, improving existing skills, or understanding skill structure and best practices.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 28 other files, including reference files (for example `references/api-security.md`, `references/be-clear-and-direct.md` and `references/best-practices.md`).

It sits in Documents & Office, covering Skill authoring and Building AI agents. The repository describes itself as: Your AI Chief of Staff — a personal operating system starter kit that adapts to your role. No coding required. The licence is MIT.

When your agent uses it

  • Working with SKILL.md files
  • Authoring new skills
  • Improving existing skills
  • Understanding skill structure and best practices

Example prompts

  • “/creating-agent-skills”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Skills Are Prompts
  2. Standard Markdown Format
  3. Progressive Disclosure
  4. Effective Descriptions
  5. Choose Type
  6. Create SKILL.md
  7. Add Scripts (If Needed)

What it can do on your machine

Read from SKILL.md and the folder at commit 227f78e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown and yaml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • code.claude.com
    • platform.claude.com
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Creating Agent Skills loads about 1.7k tokens when it runs, and up to ~30k if it reads all its reference files. Until then it costs about 58 tokens; SKILL.md has 428 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~30k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from davekilleen/Dex at commit 227f78e, republished under its MIT licence (© davekilleen). 428 words, ~1,692 tokens.

Download SKILL.mdSave it as .claude/skills/creating-agent-skills/SKILL.md (or your agent's skills folder). This skill also uses 25 other files; get the full folder from GitHub.
name
creating-agent-skills
description
Expert guidance for creating, writing, and refining Claude Code Skills. Use when working with SKILL.md files, authoring new skills, improving existing skills, or understanding skill structure and best practices.

Creating Agent Skills

This skill teaches how to create effective Claude Code Skills following Anthropic's official specification.

Core Principles

1. Skills Are Prompts

All prompting best practices apply. Be clear, be direct. Assume Claude is smart - only add context Claude doesn't have.

2. Standard Markdown Format

Use YAML frontmatter + markdown body. No XML tags - use standard markdown headings.

markdown
---
name: my-skill-name
description: What it does and when to use it
---

# My Skill Name

## Quick Start
Immediate actionable guidance...

## Instructions
Step-by-step procedures...

## Examples
Concrete usage examples...
3. Progressive Disclosure

Keep SKILL.md under 500 lines. Split detailed content into reference files. Load only what's needed.

my-skill/
├── SKILL.md              # Entry point (required)
├── reference.md          # Detailed docs (loaded when needed)
├── examples.md           # Usage examples
└── scripts/              # Utility scripts (executed, not loaded)
4. Effective Descriptions

The description field enables skill discovery. Include both what the skill does AND when to use it. Write in third person.

Good:

yaml
description: Extracts text and tables from PDF files, fills forms, merges documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.

Bad:

yaml
description: Helps with documents

Skill Structure

Required Frontmatter
FieldRequiredMax LengthDescription
nameYes64 charsLowercase letters, numbers, hyphens only
descriptionYes1024 charsWhat it does AND when to use it
allowed-toolsNo-Tools Claude can use without asking
modelNo-Specific model to use
Naming Conventions

Use gerund form (verb + -ing) for skill names:

  • processing-pdfs
  • analyzing-spreadsheets
  • generating-commit-messages
  • reviewing-code

Avoid: helper, utils, tools, anthropic-*, claude-*

Body Structure

Use standard markdown headings:

markdown
# Skill Name

## Quick Start
Fastest path to value...

## Instructions
Core guidance Claude follows...

## Examples
Input/output pairs showing expected behavior...

## Advanced Features
Additional capabilities (link to reference files)...

## Guidelines
Rules and constraints...

What Would You Like To Do?

  1. Create new skill - Build from scratch
  2. Audit existing skill - Check against best practices
  3. Add component - Add workflow/reference/example
  4. Get guidance - Understand skill design

Creating a New Skill

Step 1: Choose Type

Simple skill (single file):

  • Under 500 lines
  • Self-contained guidance
  • No complex workflows

Progressive disclosure skill (multiple files):

  • SKILL.md as overview
  • Reference files for detailed docs
  • Scripts for utilities
Step 2: Create SKILL.md
markdown
---
name: your-skill-name
description: [What it does]. Use when [trigger conditions].
---

# Your Skill Name

## Quick Start

[Immediate actionable example]

```[language]
[Code example]

Instructions

[Core guidance]

Examples

Example 1: Input: [description] Output:

[result]
Show full SKILL.md (175 more words)Show less

Guidelines

  • [Constraint 1]
  • [Constraint 2]

### Step 3: Add Reference Files (If Needed)

Link from SKILL.md to detailed content:

```markdown
For API reference, see [REFERENCE.md](REFERENCE.md).
For form filling guide, see [FORMS.md](FORMS.md).

Keep references one level deep from SKILL.md.

Step 4: Add Scripts (If Needed)

Scripts execute without loading into context:

markdown
## Utility Scripts

Extract fields:
```bash
python scripts/analyze.py input.pdf > fields.json

### Step 5: Test With Real Usage

1. Test with actual tasks, not test scenarios
2. Observe where Claude struggles
3. Refine based on real behavior
4. Test with Haiku, Sonnet, and Opus

## Auditing Existing Skills

Check against this rubric:

- [ ] Valid YAML frontmatter (name + description)
- [ ] Description includes trigger keywords
- [ ] Uses standard markdown headings (not XML tags)
- [ ] SKILL.md under 500 lines
- [ ] References one level deep
- [ ] Examples are concrete, not abstract
- [ ] Consistent terminology
- [ ] No time-sensitive information
- [ ] Scripts handle errors explicitly

## Common Patterns

### Template Pattern

Provide output templates for consistent results:

```markdown
## Report Template

```markdown
# [Analysis Title]

## Executive Summary
[One paragraph overview]

## Key Findings
- Finding 1
- Finding 2

## Recommendations
1. [Action item]
2. [Action item]

### Workflow Pattern

For complex multi-step tasks:

```markdown
## Migration Workflow

Copy this checklist:
  • Step 1: Backup database
  • Step 2: Run migration script
  • Step 3: Validate output
  • Step 4: Update configuration

**Step 1: Backup database**
Run: `./scripts/backup.sh`
...
Conditional Pattern

Guide through decision points:

markdown
## Choose Your Approach

**Creating new content?** Follow "Creation workflow" below.
**Editing existing?** Follow "Editing workflow" below.

Anti-Patterns to Avoid

  • XML tags in body - Use markdown headings instead
  • Vague descriptions - Be specific with trigger keywords
  • Deep nesting - Keep references one level from SKILL.md
  • Too many options - Provide a default with escape hatch
  • Windows paths - Always use forward slashes
  • Punting to Claude - Scripts should handle errors
  • Time-sensitive info - Use "old patterns" section instead

Reference Files

For detailed guidance, see:

Success Criteria

A well-structured skill:

  • Has valid YAML frontmatter with descriptive name and description
  • Uses standard markdown headings (not XML tags)
  • Keeps SKILL.md under 500 lines
  • Links to reference files for detailed content
  • Includes concrete examples with input/output pairs
  • Has been tested with real usage

Sources:

© davekilleen, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 25 other files (references) in .claude/plugins/compound-engineering/skills/create-agent-skills of davekilleen/Dex.

  • SKILL.md
  • references/api-security.md
  • references/be-clear-and-direct.md
  • references/best-practices.md
  • references/common-patterns.md
  • references/core-principles.md
  • references/executable-code.md
  • references/iteration-and-testing.md
  • references/official-spec.md
  • references/recommended-structure.md
  • references/skill-structure.md
  • references/using-scripts.md
  • references/using-templates.md
  • references/workflows-and-validation.md
  • templates/router-skill.md
  • templates/simple-skill.md
  • workflows/add-reference.md
  • workflows/add-script.md
  • … and 8 more

Open the folder on GitHubat commit 227f78e

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in davekilleen/Dex, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Creating Agent Skills next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Creating Agent Skills compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Creating Agent Skills this skilldavekilleen/Dex4931 repos~1.7kAutomated safety check: PassMIT
Microsoft Skill CreatorMicrosoftDocs/mcp1.9k3 repos~2.1kAutomated safety check: PassCC-BY-4.0
Agent Creatorjdforsythe/forge151—~4.5kAutomated safety check: PassMIT
Librarianjdforsythe/forge151—~5.1kAutomated safety check: PassMIT
Guidancetestdouble/han279—~1.8kAutomated safety check: PassMIT
Create Agent Skillsglittercowboy/taches-cc-resources2k—~1.7kAutomated safety check: PassMIT

Similar skills

  • Microsoft Skill Creator

    MicrosoftDocs/mcp

    Official

    Create agent skills for Microsoft technologies using official documentation.

    1.9k GitHub starsUsed in 3 repos~2.1k tokens
    Agent WorkflowsAuto-check passed
  • Agent Creator

    jdforsythe/forge

    Creates structured agent definitions using the 7-component format grounded in persona science (the alignment-accuracy tradeoff), vocabulary routing, and the MAST failure taxonomy + Forge watchlist.

    151 GitHub stars~4.5k tokensUpdated 3 mo ago
    Agent WorkflowsAuto-check passed
  • Librarian

    jdforsythe/forge

    Reviews, curates, and maintains the Forge library of agents, skills, and templates.

    151 GitHub stars~5.1k tokensUpdated 3 mo ago
    Agent WorkflowsAuto-check passed
  • Guidance

    testdouble/han

    Authoritative guidance for building Claude Code skills, agents, and plugins, plus init and update steps that install and refresh the plugin-building skills in the current repository.

    279 GitHub stars~1.8k tokensUpdated 8 days ago
    Agent WorkflowsAuto-check passed
  • Create Agent Skills

    glittercowboy/taches-cc-resources

    Expert guidance for creating, writing, building, and refining Claude Code Skills.

    2k GitHub stars~1.7k tokensUpdated 6 mo ago
    AI & LLM EngineeringAuto-check passed
  • Skill Creator

    jdforsythe/forge

    Creates high-quality Claude Code and Cowork skills using evidence-based principles: expert vocabulary payloads for knowledge routing, dual-register descriptions for reliable triggering, named…

    151 GitHub stars~4.1k tokensUpdated 3 mo ago
    Agent WorkflowsAuto-check passed

More from davekilleen/Dex

All 61 skills in this repo
  • Dspy Ruby

    davekilleen/Dex

    This skill should be used when working with DSPy.rb, a Ruby framework for building type-safe, composable LLM applications.

    493 GitHub starsUsed in 1 repo~3.9k tokens
    Auto-check passed
  • Diff Adopt Profile

    davekilleen/Dex

    Adopt a full published Heydex profile by handle ('set me up like @davekilleen').

    493 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Diff Generate

    davekilleen/Dex

    Package one workflow — how you use Dex for a specific job — into a shareable DexDiff methodology doc.

    493 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Feedback

    davekilleen/Dex

    Report a Dex bug to the Dex team with zero homework — Dex investigates locally, builds a privacy-safe report, shows it to you (or auto-sends if you've chosen that), and tracks the ticket until it's…

    493 GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Dhh Rails Style

    davekilleen/Dex

    This skill should be used when writing Ruby and Rails code in DHH's distinctive 37signals style.

    493 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Skill Score

    davekilleen/Dex

    Grade a Dex skill against the shape-aware quality rubric and report a ship/revise/no verdict with the exact fixes.

    493 GitHub stars~2.6k tokensUpdated today
    Auto-check passed

Questions about Creating Agent Skills

What does Creating Agent Skills do?

Expert guidance for creating, writing, and refining Claude Code Skills. Creating Agent Skills is an agent skill from davekilleen/Dex. Expert guidance for creating, writing, and refining Claude Code Skills.

When should I use Creating Agent Skills?

Creating Agent Skills fits situations like: working with SKILL.md files; authoring new skills; improving existing skills; understanding skill structure and best practices.

How do I install Creating Agent Skills in Claude Code?

Run `npx skills add davekilleen/Dex --skill creating-agent-skills -a claude-code`. Or copy the skill folder (.claude/plugins/compound-engineering/skills/create-agent-skills in davekilleen/Dex) into .claude/skills/creating-agent-skills in your project. Claude Code loads it when a task matches its description.

How do I install Creating Agent Skills in Codex?

Run `npx skills add davekilleen/Dex --skill creating-agent-skills -a codex`. Or copy the skill folder (.claude/plugins/compound-engineering/skills/create-agent-skills in davekilleen/Dex) into .agents/skills/creating-agent-skills in your project. Codex loads it when a task matches its description.

Can I use Creating Agent Skills in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davekilleen/Dex --skill creating-agent-skills -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/creating-agent-skills, .gemini/skills/creating-agent-skills, .github/skills/creating-agent-skills and .opencode/skills/creating-agent-skills in your project.

What does Creating Agent Skills need to run?

SKILL.md names no scripts, command-line tools or credentials: Creating Agent Skills is instructions for the agent only. Our summary lists: Python 3.

Does Creating Agent Skills access the network?

SKILL.md names 3 domains. As links in the text: code.claude.com, platform.claude.com and github.com. This is read from the text; nothing was executed.

Is Creating Agent Skills safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Creating Agent Skills use?

Creating Agent Skills is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Creating Agent Skills use?

About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 28k tokens, read only when the agent opens those files.

What are the alternatives to Creating Agent Skills?

Skills that share tags, products or a category with Creating Agent Skills: Microsoft Skill Creator (MicrosoftDocs/mcp, 1.9k stars), Agent Creator (jdforsythe/forge, 151 stars), Librarian (jdforsythe/forge, 151 stars) and Guidance (testdouble/han, 279 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Creating Agent Skills?

davekilleen (a GitHub user) maintains it in davekilleen/Dex, which has 493 GitHub stars. The repository holds 61 skills in this directory. The repository was last updated on October 8, 2026.

Source: davekilleen/Dex on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.