Authoring Agent Skills

VerifiedSafe

How to create and maintain agent skills in .agents/skills/, including frontmatter fields, description writing, and deciding what belongs in a skill vs AGENTS.md.

Sby Skills Guide Bot
Data & AIIntermediate
8/29/2026
Claude Code
#agent-skills#skill-authoring#frontmatter#prompt-engineering#claude-code

Recommended for

Automated summary

Explains how to create and maintain agent skills under .agents/skills/: the supported frontmatter fields, how to write descriptions for auto-activation, naming conventions, and how to split content between AGENTS.md and skills.

Strengths

  • Complete annotated list of supported frontmatter fields (name, description, argument-hint, allowed-tools, context, agent, etc.)
  • Concrete description-writing advice pairing a vague example with an effective one that names the relevant files
  • Comparison table of always-loaded AGENTS.md versus on-demand skills, with explicit decision criteria
  • Hub-and-detail pattern for organizing supplementary files in complex skills

Limitations

  • Tightly coupled to this repo's .agents/skills/ layout rather than the generic skill format
  • Provides no validation or lint command to check a finished SKILL.md
  • The supplementary-files section appears cut off at the end of the document
When to use it

Reach for it when drafting a new SKILL.md or rewriting an existing skill's description so it triggers reliably.

When not to use it

Skip it if you need general project guardrails for AGENTS.md or are authoring skills outside the .agents/skills/ directory.

Security analysis

Safe
Quality score84/100

This is pure documentation about how to author SKILL.md files. It declares no allowed-tools, contains no executable commands, no network calls, no file deletion, and no obfuscated payloads. The frontmatter fields it documents (allowed-tools, context: fork, model) are only described, not invoked, and nothing instructs an agent to exfiltrate data or bypass safety controls.

No concerns found

How this analysis is made

Examples

Create a new skill
Create a new skill at .agents/skills/db-migrations/SKILL.md that walks through writing and verifying a Prisma migration, following the authoring-skills conventions.
Fix auto-triggering
My skill never auto-loads. Rewrite its description so it matches when I'm editing prisma/schema.prisma or talking about migrations.
Decide skill vs AGENTS.md
Should this multi-step release checklist live in AGENTS.md or in a skill? Use the authoring-skills decision criteria and justify the choice.

name: authoring-skills description: > How to create and maintain agent skills in .agents/skills/. Use when creating a new SKILL.md, writing skill descriptions, choosing frontmatter fields, or deciding what content belongs in a skill vs AGENTS.md. Covers the supported spec fields, description writing, naming conventions, and the relationship between always-loaded AGENTS.md and on-demand skills. user-invocable: false metadata: internal: true

Authoring Skills

Use this skill when creating or modifying agent skills in .agents/skills/.

When to Create a Skill

Create a skill when content is:

  • Too detailed for AGENTS.md (code templates, multi-step workflows, diagnostic procedures)
  • Only relevant for specific tasks (not needed every session)
  • Self-contained enough to load independently

Keep in AGENTS.md instead when:

  • It's a one-liner rule or guardrail every session needs
  • It's a general-purpose gotcha any agent could hit

File Structure

.agents/skills/
└── my-skill/
    ├── SKILL.md          # Required: frontmatter + content
    ├── workflow.md        # Optional: supplementary detail
    └── examples.md        # Optional: referenced from SKILL.md

Supported Frontmatter Fields

---
name: my-skill # Required. Used for $name references and /name commands.
description: > # Required. How Claude decides to auto-load the skill.
  What this covers and when to use it. Include file names and keywords.
argument-hint: '<pr-number>' # Optional. Hint for expected arguments.
user-invocable: false # Optional. Set false to hide from / menu.
disable-model-invocation: true # Optional. Set true to prevent auto-triggering.
allowed-tools: [Bash, Read] # Optional. Tools allowed without permission.
model: opus # Optional. Model override.
context: fork # Optional. Isolated subagent execution.
agent: Explore # Optional. Subagent type (with context: fork).
---

Only use fields from this list. Unknown fields are silently ignored.

Writing Descriptions

The description is the primary matching surface for auto-activation. Include:

  1. What the skill covers (topic)
  2. When to use it (trigger scenario)
  3. Key file names the skill references (e.g. config-shared.ts)
  4. Keywords a user or agent might mention (e.g. "feature flag", "DCE")
# Too vague - won't auto-trigger reliably
description: Helps with flags.

# Good - specific files and concepts for matching
description: >
  How to add or modify Next.js experimental feature flags end-to-end.
  Use when editing config-shared.ts, config-schema.ts, define-env-plugin.ts.

Content Conventions

Structure for Action

Skills should tell the agent what to do, not just what to know:

  • Lead with "Use this skill when..."
  • Include step-by-step procedures
  • Add code templates ready to adapt
  • End with verification commands
  • Cross-reference related skills in a "Related Skills" section

Relationship to AGENTS.md

| AGENTS.md (always loaded) | Skills (on demand) | | --------------------------------------- | ---------------------------------------------------------------------- | | One-liner guardrails | Step-by-step workflows | | "Keep require() behind if/else for DCE" | Full DCE pattern with code examples, verification commands, edge cases | | Points to skills via $name | Expands on AGENTS.md rules |

When adding a skill, also add a one-liner summary to the relevant AGENTS.md section with a $skill-name reference.

Naming

  • Short, descriptive, topic-scoped: flags, dce-edge, react-vendoring
  • No repo prefix (already scoped by .agents/skills/)
  • Hyphens for multi-word names

Supplementary Files

For complex skills, use a hub + detail pattern:

pr-status-triage/
├── SKILL.md         # Overview, quick commands, links to details
├── workflow.md      # Prioritization and patterns
└── local-repro.md   # CI env matching

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/authoring-agent-skills-mte1lh7y/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/authoring-agent-skills-mte1lh7y' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/authoring-agent-skills-mte1lh7y/download' --output '.skill-downloads/authoring-agent-skills-mte1lh7y/SKILL.md.part' && mv '.skill-downloads/authoring-agent-skills-mte1lh7y/SKILL.md.part' '.skill-downloads/authoring-agent-skills-mte1lh7y/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/authoring-agent-skills-mte1lh7y/SKILL.md' && test -s '.skill-downloads/authoring-agent-skills-mte1lh7y/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/authoring-skills' && cp -R '.skill-downloads/authoring-agent-skills-mte1lh7y' '.claude/skills/authoring-skills'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/authoring-agent-skills-mte1lh7y'

openskills read 'authoring-agent-skills-mte1lh7y'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/authoring-agent-skills-mte1lh7y/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills