Agent-skills create-skill
This skill should be used when the user asks to "create a skill", "new skill", "scaffold a skill", "make a skill", "init a skill", or wants to bootstrap a new agent skill in `.agents/skills` (default) or `~/.agents/skills` (with `--global`).
install
source · Clone the upstream repo
git clone https://github.com/PaulRBerg/agent-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/PaulRBerg/agent-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/create-skill" ~/.claude/skills/paulrberg-agent-skills-create-skill && rm -rf "$T"
manifest:
skills/create-skill/SKILL.mdsource content
Create Skill
Bootstrap a new agent skill, then symlink it into
.claude/skills/ so Claude Code can discover it.
Arguments
- skill-name (required): kebab-case name (e.g.,
). Stop if missing or invalid.my-skill
(optional): install under--global
instead of the current repo.~
Resolved Paths
| Mode | Skill source | Claude Code symlink |
|---|---|---|
| local (default) | | |
| | |
The symlink target is always the relative path
../../.agents/skills/<name> so it resolves correctly in both scopes.
Workflow
1. Fetch Agent Skills Docs
Always fetch the latest spec before authoring frontmatter or content:
Use
WebFetch to confirm the current SKILL.md frontmatter schema, naming rules, and conventions. Do not guess — the spec evolves.
2. Validate
- Reject names that are not kebab-case or collide with an existing skill at the resolved path.
- Stop if
or<scope>/.agents/skills/<name>/
already exists.<scope>/.claude/skills/<name>
3. Create the Skill
mkdir -p "<scope>/.agents/skills/<name>"
Write
<scope>/.agents/skills/<name>/SKILL.md with:
- Frontmatter sorted alphabetically, with
last.description - A short
.# Title - A one-line summary of what the skill does.
(if any) and## Arguments
sections with concrete steps.## Workflow
Keep it minimal. Add
scripts/ or references/ subdirectories only if the workflow needs them.
4. Create the Claude Code Symlink
Always create a relative symlink so Claude Code picks the skill up from its own discovery path:
mkdir -p "<scope>/.claude/skills" ln -s "../../.agents/skills/<name>" "<scope>/.claude/skills/<name>"
5. Verify
test -f "<scope>/.agents/skills/<name>/SKILL.md"
resolves to the source directory.readlink "<scope>/.claude/skills/<name>"- Print both absolute paths to the user.
Notes
- Frontmatter rule: sort fields alphabetically, but always place
last.description - Bash scripts inside the skill should be compatible with Bash 3.2 (Codex's default shell).
- Do not commit the new skill — leave that to the user.