agentleFS
shawn-sandyshawn-sandy/cm-agent/.claude/skills/add-skill/SKILL.md

add-skill

Skill0 starsChanged 3 months agoMITView on GitHub

Scaffolds a new Agent Skill in this marketplace with the exact frontmatter, directory layout, version bump, and CHANGELOG entry the repo requires. Use when adding a skill to an existing plugin or standing up a whole new plugin.

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use publish-repo.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • PaldomSkill

    publish-repo

    Publishes this Agent Skills repository to skills.sh - pre-flight checks, public visibility flip, protections (PVR, ruleset), consumer-style install verification, telemetry seeding, and repo-page groupings. Use when the user asks to publish, deploy, release, go public, or get listed on skills.sh. Not for authoring skills or editing scaffold infrastructure.

    Also in 15 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If no name was given, ask for one plus a one-line summary of what the skill does and when an agent should reach for it.

    line 13
  2. Very specific:

    Write plugins/<plugin>/.claude-plugin/plugin.json modelled on plugins/cm-agent/.claude-plugin/plugin.json: name, version, description, …

    line 30
  3. Very specific:

    Never hand-edit versions. Then add a CHANGELOG.md entry under ## [Unreleased] in Keep a Changelog format.

    line 86
  4. Very specific:

    Run the /verify skill, or at minimum:

    line 91

“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “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
SKILL.md

Adding a skill

Arguments: $ARGUMENTS — the skill name, optionally followed by the plugin it belongs to (defaults to cm-agent).

If no name was given, ask for one plus a one-line summary of what the skill does and when an agent should reach for it. Do not invent either.

1. Check the name

Lowercase kebab-case, 64 characters or fewer, and it must not contain claude or anthropic. The directory name and the frontmatter name must be identical — nothing in CI catches a mismatch.

2. If this needs a new plugin

Skip to step 3 when adding to an existing plugin.

mkdir -p plugins/<plugin>/{.claude-plugin,skills}

Write plugins/<plugin>/.claude-plugin/plugin.json modelled on plugins/cm-agent/.claude-plugin/plugin.json: name, version, description, author{}, homepage, repository, license, keywords[], and "skills": ["./skills/"]. Keep keywords on a single line — version.mjs patches this file textually and depends on that shape.

Then add an entry to the plugins array in .claude-plugin/marketplace.json with "source": "./plugins/<plugin>" and a version byte-identical to the one in plugin.json. Drift fails validation, and plugin.json wins at install time, so a mismatch ships the wrong version quietly.

3. Create the skill

mkdir -p plugins/<plugin>/skills/<name>

Write SKILL.md:

---
name: <name>
description: <third person; what it does AND when to use it>
license: MIT
metadata:
  author: shawn-sandy
  version: "0.1.0"
allowed-tools: Read Write Edit Glob Grep
---

allowed-tools is a space-separated string, not a YAML list. Scope Bash entries (Bash(node:*)). Grant only what the skill actually needs.

The description is how an agent decides to load the skill — it is the highest-leverage line in the file. Third person, and it must cover both the what and the when. Compare against the four existing skills before settling on it.

Body rules:

  • Under 500 lines. The existing skills run 79–101.
  • Detail goes in references/, executables in scripts/, templates in assets/.
  • References are exactly one level deep from SKILL.md. A reference that points at another reference gets partially read.
  • Match the surrounding prose style: plain Markdown wrapped at roughly 80 columns. There is no formatter — the repo is deliberately dependency-free.

4. Bump and record

Adding a skill is a minor bump on its plugin:

node scripts/version.mjs <plugin> minor

Never hand-edit versions. Then add a CHANGELOG.md entry under ## [Unreleased] in Keep a Changelog format.

5. Verify

Run the /verify skill, or at minimum:

claude plugin validate . --strict
node scripts/version.mjs --self-test

Then confirm by hand that the frontmatter name matches the directory — the validator does not check this.

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.