Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Workflow recipe

Ship a team Agent Skill end to end: build, test, share

An Agent Skill example project from idea to install: write SKILL.md, validate it against the spec, test when it fires and share it with one install command.

By Checked Beginner40 min6 steps
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark
On this page

This example project takes one small Agent Skill from idea to a teammate’s machine: a skill that writes a changelog entry from the staged diff. You write the description first, create the folder and SKILL.md, validate it against the open specification, test that it fires only when it should, publish the repository and install it with one command.

A skill is a folder with a SKILL.md file. The agent reads only the name and description of each installed skill at the start of a session, and loads the rest when a task matches. That makes skills the right home for instructions you need often but not always, such as “how we write changelog entries” or “how to cut a release”.

NotebookAbout 5 min

1. Pick one job and write the description first

The description decides when the agent uses the skill, so write it before anything else. Say what the skill does and when to use it, with the words a person would actually type.

Writes a CHANGELOG.md entry for the current change, following Keep a Changelog
sections. Use when the user asks for a changelog entry, release note line, or
"what changed" summary for staged or recent commits.

Rules from the spec: name is 1-64 characters of lower-case letters, digits and hyphens, with no leading, trailing or double hyphen, and must match the folder name. description is 1-1024 characters. One job per skill: if the description needs “and” three times, split it.

EditorAbout 10 min

2. Create the folder and SKILL.md

Create the skill in a new repository that will hold your team’s skills. A skills/ folder at the root keeps it tidy when you add more.

mkdir -p team-skills/skills/changelog-entry
cd team-skills
git init
---
name: changelog-entry
description: Writes a CHANGELOG.md entry for the current change, following Keep a Changelog sections. Use when the user asks for a changelog entry, release note line, or "what changed" summary for staged or recent commits.
license: MIT
metadata:
  owner: platform-team
  version: "1.0"
---

# Changelog entry

## Steps

1. Run `git diff --staged --stat`. If nothing is staged, run `git log -5 --oneline` and ask which commits to describe.
2. Read the staged diff with `git diff --staged`. Skip lock files and generated code.
3. Decide the section: Added, Changed, Deprecated, Removed, Fixed or Security.
4. Write one line per user-visible change, in the past tense, starting with a verb. Mention the user-facing effect, not the implementation.
5. Insert the lines under `## [Unreleased]` in CHANGELOG.md, creating the heading if it is missing. Do not edit released sections.

## Rules

- Internal refactors with no visible effect get no entry. Say so instead.
- Link the issue number if the branch name or commit message contains one, as `(#123)`.
- Never invent a version number or date.

## Example

Staged change: adds CSV export to the reports page.

    ### Added
    - Export any report as CSV from the report menu (#412).

Notes on the frontmatter: license and metadata are optional spec fields. metadata values must be strings, which is why version is quoted.

Browser or terminalAbout 5 min

3. Validate it against the spec

Paste the file into the skill builder on this site. It checks the frontmatter rules, the name and folder match, the description length and portability warnings in your browser, without sending the file anywhere.

If you prefer the command line, the reference validator skills-ref lives in the spec repository. It is a demonstration library rather than a production tool, but it applies the spec strictly:

git clone https://github.com/agentskills/agentskills.git
cd agentskills/skills-ref
python -m venv .venv && source .venv/bin/activate
pip install -e .
skills-ref validate /path/to/team-skills/skills/changelog-entry

skills-ref rejects any frontmatter key outside the six spec fields (name, description, license, compatibility, metadata, allowed-tools). Claude Code accepts extra keys, but claude.ai uploads and the Claude API do not, so passing the strict check keeps your skill portable.

AgentAbout 10 min

4. Test it locally, including when it should not fire

Copy the folder into your agent’s skills directory in a test repository, then try three prompts.

mkdir -p .claude/skills
cp -R /path/to/team-skills/skills/changelog-entry .claude/skills/

Invoke it directly with /changelog-entry, or let it trigger from the description.

Stage a small change, then run these prompts in fresh sessions:

Should trigger · Your agent
Write a changelog entry for what I've staged.
Should also trigger · Your agent
What changed in this branch? I need a line for the release notes.
Should not trigger · Your agent
Explain what the staged diff does to the pricing logic.

If the first two do not load the skill, make the description closer to how you asked. If the third one loads it, the description is too broad.

TerminalAbout 5 min

5. Publish the repository

Add a short README so people know what they are installing, then push.

cat > README.md <<'EOF'
# team-skills

Agent Skills used by the platform team.

| Skill | What it does |
|---|---|
| changelog-entry | Writes a Keep a Changelog entry from staged changes |

Install: npx skills add YOUR-ORG/team-skills --skill changelog-entry
EOF

git add .
git commit -m "Add changelog-entry skill"
git branch -M main
git remote add origin git@github.com:YOUR-ORG/team-skills.git
git push -u origin main
git tag v1.0.0 && git push origin v1.0.0

The tag gives your teammate something stable to pin to.

Teammate's terminalAbout 5 min

6. Have a teammate install it with one command

The skills CLI from Vercel Labs copies or symlinks a skill into the right folder for each agent it detects:

npx skills add YOUR-ORG/team-skills@v1.0.0 --skill changelog-entry

Add -a claude-code (or -a codex, -a cursor) to target one agent, and -g to install for the user rather than the project. Project installs write a skills-lock.json with a content hash, so the team can restore exactly the reviewed version later.

GitHub Copilot users can install the same folder with the GitHub CLI (version 2.90.0 or later):

gh skill install YOUR-ORG/team-skills changelog-entry --pin v1.0.0

Ask your teammate to run the “should trigger” prompt from step 4 and tell you whether it worked.

Check it worked

Verification checklist

0 of 5 done

When it goes wrong

If the skill never loads, the description is usually the cause. Agents decide from the description alone, so it must contain the words people use. Also check the file is named exactly SKILL.md and sits directly inside the skill folder.

If the skill loads for unrelated tasks, narrow the “Use when” part of the description and add what it is not for.

If npx skills add cannot find the skill, check the repository is reachable with your Git credentials and that the --skill value matches the name field. npx skills add YOUR-ORG/team-skills --list shows what the CLI can see.

If claude.ai rejects the upload, look for frontmatter keys outside the six spec fields, or the words “claude” or “anthropic” in the name. Both are refused on Anthropic’s hosted surfaces.

Variations

Anthropic’s skill-creator skill interviews you about the task, drafts the SKILL.md and can run simple evals on the description. Codex ships a built-in $skill-creator as well. Both are good for a first draft; still validate and test as above.

Inside one company, a private repository works the same way, as long as everyone’s Git credentials can read it. Claude Code users can also distribute skills inside a plugin marketplace, which adds versioning and auto-update controls.

For the reasoning behind each step, read how to create your first Agent Skill and writing skill descriptions that trigger. Packaging and sharing skills covers plugins and marketplaces once one repository is not enough, and testing and evaluating skills goes further than step 4. To make the same skill work in other agents, port it across Claude Code, Codex and Cursor. More recipes are in the AI workflow examples hub.

Outcome and tools

Outcome
A validated SKILL.md in a repository that a teammate installs with one command.
For
Developers
Variants for
Claude Code, Codex, Cursor
Agent Skills
  • What are Agent Skills (Claude skills)?

    Claude skills, or Agent Skills, are folders with a SKILL.md file that agents load on demand. What goes in one, how loading works and when a skill fits.

    Skill guideBeginner

  • Port one Agent Skill across Claude Code, Codex and Cursor

    Strip non-portable fields, make scripts path-safe and install one source folder for every agent.

    WorkflowIntermediate30 min6 steps

  • Scan a third-party Agent Skill before you install it

    Read every file, grep scripts for risky patterns, run a skill scanner, then record a yes or no and pin it.

    WorkflowBeginner20 min6 steps

  • SKILL.md

    The required file in an Agent Skill: YAML frontmatter with at least a name and description, followed by the Markdown instructions.

    Glossary

  • Progressive disclosure

    Loading only skill names and descriptions up front, and the full instructions or bundled files only when a task needs them.

    Glossary

Back to top