agentleFS
jelbirtjelbirt/LLM-Skill-Build/new-skill/SKILL.md

new-skill

Skill1 starsChanged 3 months agoApache-2.0View on GitHub

Scaffold a new Agent Skill - interview for intent, then create the folder and a conventions-following SKILL.md with valid, pre-filled frontmatter, and lint it. Use whenever the user wants to create, start, scaffold, or bootstrap a skill, says "new skill", "make a skill for it", "turn this into a skill", or is about to hand-write a SKILL.md. Prefer this over writing a SKILL.md from scratch so the name, description, and layout follow conventions. For heavy eval or benchmark-driven iteration, hand off to skill-creator instead.

22 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 8 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Ask only what you cannot infer from the conversation (if the user just said "turn this into a skill", mine the history first).

    line 17
  2. Very specific:

    Search the current working directory and its ancestors for the nearest directory containing CONVENTIONS.md, _template/, and …

    line 41
  3. Very specific:

    If none is found, treat it as standalone use: create ./NAME/ in the current directory (or ask where the skill should live) and use the …

    line 42
  4. Very specific:

    Create TARGET/NAME/SKILL.md.

    line 46
  5. Distinctive:

    Keep it 1024 characters max (hard cap in the portable standard).

    line 74
  6. Distinctive:

    Use no angle-bracket or XML-tag content in the name or description - it is disallowed by claude.ai and the API.

    line 75
  7. Very specific:

    Avoid a literal : (colon then space) in an unquoted description - it can break YAML parsing.

    line 76
  8. Distinctive:

    Put "when to use" only in the description.

    line 77
  9. Very specific:

    If support files are needed, create the scripts/, references/, or assets/ dirs and reference them from SKILL.md using the …

    line 92
  10. Very specific:

    After the SKILL.md is written, run the repo linter with the Bash tool.

    line 98
  11. Distinctive:

    If the validator is not reachable (standalone use), verify by hand against this checklist:

    line 106
  12. Distinctive:

    no secrets or keys committed

    line 112
  13. Very specific:

    If REPO_ROOT/scripts/install.sh exists, install with it (it re-lints, then copies).

    line 122
  14. Very specific:

    If an IDEAS.md exists at the repo root, offer to update this skill's row (set its status to building, or add a new row if it was not …

    line 134
  15. Distinctive:

    If a README.md with a skills table exists at the repo root, offer to add a row for the new skill (name, one-line description, install …

    line 135
  16. Distinctive:

    If they want trigger-accuracy tuning or benchmark-grade evals, hand off to the skill-creator skill - this skill intentionally stops at a …

    line 138

“Common” is measured: kept by at least 6 in 10 of the 19 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

new-skill

Scaffold one new skill, fast and correctly. The goal is a valid, dogfood-ready skill folder on disk in a single interaction - not a full eval loop. If the user wants rigorous, benchmark-driven iteration, point them at the skill-creator skill.

The skill name may be passed as an argument ($ARGUMENTS). If absent, ask for it.

1. Capture intent

Ask only what you cannot infer from the conversation (if the user just said "turn this into a skill", mine the history first). Keep it to a short interview:

  1. One job - what should this skill enable, in one sentence? If it is two jobs, split into two skills.
  2. Triggers - what would a user actually say or be doing when this should fire? Collect real phrasings.
  3. Output - what should the skill produce or do (format, steps, side effects)?
  4. Support files - does it need a scripts/ helper, references/ docs, or assets/? Usually no.

2. Settle the name

The folder name equals the name field equals the slash command. It must be:

  • kebab-case: lowercase a-z, 0-9, hyphens; no leading, trailing, or consecutive hyphens; 64 chars max
  • free of the reserved words anthropic and claude
  • distinct from existing skills (check siblings and installed skills)

Confirm the name with the user before writing anything.

3. Locate the repo root

The new skill should land beside the others, where the helper scripts live. This skill is usually installed in ~/.claude/skills/ but run from inside the repo, so find the repo from the working directory - NOT from this skill's own location:

  • Search the current working directory and its ancestors for the nearest directory containing CONVENTIONS.md, _template/, and scripts/validate.sh. That is REPO_ROOT. New skills go as siblings: REPO_ROOT/NAME/.
  • If none is found, treat it as standalone use: create ./NAME/ in the current directory (or ask where the skill should live) and use the manual checklist in step 5 instead of the repo scripts.

4. Write the SKILL.md

Create TARGET/NAME/SKILL.md. Prefer copying REPO_ROOT/_template/SKILL.md and filling it in. If the template is not reachable (standalone use), write this skeleton (replace each brace placeholder; keep it plain markdown, no angle-bracket tags):

---
name: {folder-name}
description: {what it does}. Use when {natural trigger phrases the user would say}.
---

# {Title}

{One line: the single job.}

## Instructions

{Imperative steps. State what to do, not why - the body stays in context across
turns once invoked, so every line is recurring cost.}

1. ...
2. ...
3. {output or what to return}

Crafting the description (this is the trigger and the most important field):

  • Lead with the key use case, then what it does, then when - woven with the real trigger phrases from step 1.
  • Lean slightly pushy - skills under-trigger. e.g. append "Use this whenever the user mentions X, Y, or Z, even if they don't explicitly ask for it."
  • Keep it 1024 characters max (hard cap in the portable standard).
  • Use no angle-bracket or XML-tag content in the name or description - it is disallowed by claude.ai and the API. Use square brackets or quotes for placeholders.
  • Avoid a literal : (colon then space) in an unquoted description - it can break YAML parsing. Rephrase, or quote the whole value.
  • Put "when to use" only in the description.

Frontmatter keys (this is what most often breaks loading): include ONLY keys Claude Code recognizes - name, description, and optionally argument-hint, when_to_use, arguments, allowed-tools, disallowed-tools, disable-model-invocation, user-invocable, model, effort, context, agent, hooks, paths, shell. Do NOT add license, metadata, or compatibility: Claude Code silently hides a skill from the / menu if it sees an unrecognized key. The repo's license lives in the top-level LICENSE file, not in frontmatter.

Crafting the body: imperative, concise, under 500 lines. Briefly explain why a step matters rather than stacking rigid all-caps rules - the model follows reasoning better than rules. Move anything long into references/ and link it.

If support files are needed, create the scripts/, references/, or assets/ dirs and reference them from SKILL.md using the ${CLAUDE_SKILL_DIR} path prefix so paths resolve wherever the skill is installed.

5. Lint it

After the SKILL.md is written, run the repo linter with the Bash tool. Do NOT use a shell-injection block for this - injection runs when this skill loads, before the new skill exists, so it would lint nothing. If REPO_ROOT was found in step 3, run:

bash REPO_ROOT/scripts/validate.sh NAME

If the validator is not reachable (standalone use), verify by hand against this checklist:

  • name matches the folder; valid kebab-case; 64 chars max; no reserved words
  • frontmatter has only Claude Code-recognized keys (no license, metadata, compatibility)
  • description non-empty, 1024 chars max, leads with use case plus trigger phrases, no XML tags, no unquoted :
  • body under 500 lines
  • no secrets or keys committed
  • one clear job

Fix anything that fails and re-check.

6. Install and verify it loads

Passing the linter proves the file is well-formed; it does NOT prove Claude Code will surface it. Close that loop:

  • If REPO_ROOT/scripts/install.sh exists, install with it (it re-lints, then copies). Add --symlink to keep the repo as the single source of truth:
bash REPO_ROOT/scripts/install.sh NAME

Otherwise copy the folder into the personal skills dir: cp -r NAME ~/.claude/skills/NAME.

  • Tell the user to FULLY quit and relaunch Claude Code. A brand-new skill appears in the / menu only after a restart; edits to an already-loaded skill hot-reload without one.
  • Have them confirm it shows: type /NAME, or run /doctor to list discovered skills. If it does not appear, the usual cause is an unrecognized frontmatter key - re-check step 4.

7. Wrap up

  • If an IDEAS.md exists at the repo root, offer to update this skill's row (set its status to building, or add a new row if it was not listed).
  • If a README.md with a skills table exists at the repo root, offer to add a row for the new skill (name, one-line description, install command).
  • Remind the user to dogfood it in real work before publishing - that is the cheapest test.
  • For sharing, others install it the same way: copy the folder into ~/.claude/skills/ (or use scripts/install.sh), then restart.
  • If they want trigger-accuracy tuning or benchmark-grade evals, hand off to the skill-creator skill - this skill intentionally stops at a solid, linted draft.

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.