installskill

Skills / anthropics/claude-plugins-official

command-development

Guide to writing Claude Code slash commands: frontmatter, arguments and bash execution.

Pinned commit
0fbfda5a91f4Committed 2026-11-25
Files
11151 KB
License
Apache-2.0
Snapshot taken
2026-11-28
Description from the skill
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.

This is the text your agent reads to decide when to use the skill.

Install

Choose your agent. Pinned commands install exactly the commit this page describes.

Skill directory .claude/skills/Claude Code · Official docs

Does not read the shared .agents/skills directory. A skill must land in .claude/skills, or arrive inside a plugin.

GitHub CLIpinned

$ gh skill install anthropics/claude-plugins-official plugins/plugin-dev/skills/command-development --agent claude-code --pin 0fbfda5a91f4adc311daca25acc99132f40f0b6e

gh picks the directory for the agent, names the folder after the source directory (command-development), and writes source metadata into the SKILL.md frontmatter, so the content hash below will not match. Check the github-tree-sha it records instead: it should read 063d7ee84bc5f14b70f71cc6305d868e0db8257c.

skills CLIpinned

$ npx skills add anthropics/claude-plugins-official@0fbfda5a91f4adc311daca25acc99132f40f0b6e --skill command-development -a claude-code --copy

Downloads and runs the skills package from npm. --copy writes real files instead of symlinks. The CLI sends anonymous telemetry unless DISABLE_TELEMETRY=1 is set, and that setting also turns off its audit lookups.

Claude Code pluginnot pinnedrun inside the agent

> /plugin marketplace add anthropics/claude-plugins-official
> /plugin install plugin-dev@claude-plugins-official

Not pinned: installs whatever the marketplace currently serves. The plugin bundles 6 other skills with this one. It also installs things this page does not cover: slash commands, subagents. Plugin scope is chosen in the /plugin dialog.

Plain gitpinned

$ tmp=$(mktemp -d)
$ git clone --quiet https://github.com/anthropics/claude-plugins-official.git "$tmp"
$ git -C "$tmp" checkout --quiet 0fbfda5a91f4adc311daca25acc99132f40f0b6e
$ mkdir -p .claude/skills
$ cp -R "$tmp/plugins/plugin-dev/skills/command-development" .claude/skills/command-development

No extra tooling. Files land byte for byte as published in .claude/skills/command-development, so the content hash below can be checked directly.

Check what landed

Run this after installing. It prints one SHA-256 for the whole directory. If your installer reported a different directory, cd there instead.

$ cd .claude/skills/command-development && find . -type f -print0 | LC_ALL=C sort -z | xargs -0 shasum -a 256 | shasum -a 256

Expectedb71173bcccecf1e13f653e62e47e8fd608b632335d33f7b7c65eb2aa13881cce

It matches only when the files are byte for byte as published. A difference means something changed: by the installer, by you, or upstream.

What is inside

Pattern matches in the files, each linked to its line. A match is a place to read, not a verdict, and no match is not proof of absence.

Docs · 10SKILL.md · 1

Runs commands22

Code that spawns other processes, or shell code blocks in the instructions.

0 in scripts · 22 in docs and other text files

Network accessNo match

Calls that fetch from or send to a remote host.

Installs packagesNo match

Commands that pull and run third-party packages at use time.

Reads env or credentialsNo match

References to environment variables, tokens, keys or credential files.

Privileged or destructive3

sudo, recursive deletes, permission changes and similar commands.

0 in scripts · 3 in docs and other text files

Dynamic or encoded codeNo match

eval, exec, base64 decoding and remote-script piping, which hide what runs.

Outside hosts mentioned

Hostnames of every URL in the text files.

  • docs.example.com×2
  • community.example.com×1
  • git-scm.com×1
  • github.com×1
  • nodejs.org×1
  • releases.example.com×1
  • stedolan.github.io×1

Entries worth a second look

No symlinks, submodules, hidden files, archives, compiled files or unscanned files.

File manifest

Every file in the skill directory at the pinned commit.

Content hash
b71173bcccecf1e13f653e62e47e8fd608b632335d33f7b7c65eb2aa13881cce
Git tree SHA
063d7ee84bc5f14b70f71cc6305d868e0db8257c
PathKindSizeSHA-256
README.mdDocs7.5 KBdd4ba7eded93d7ba…
SKILL.mdSKILL.md19 KBc55ad02cfe4cbb2a…
examples/plugin-commands.mdDocs14 KB7d71d7b516020a6c…
examples/simple-commands.mdDocs8.5 KBf2533ed834305166…
references/advanced-workflows.mdDocs13 KBeb258095b5a411b6…
references/documentation-patterns.mdDocs15 KB70c6c9b0a9b2d46a…
references/frontmatter-reference.mdDocs8.9 KBdb1ea175ca4b0bb7…
references/interactive-commands.mdDocs20 KB09ab1f18bfa3ff5f…
references/marketplace-considerations.mdDocs16 KBab30835431d06a8e…
references/plugin-features-reference.mdDocs14 KB57e11ae6a4bbc1a4…
references/testing-strategies.mdDocs14 KBe6ccf78d85c23bc5…

Spec and portability

Checked against the Agent Skills specification.

Frontmatter
Parses as YAML
Name matches directory
Yes
Name uses lowercase letters, digits and hyphens
Yes
Description length
488limit 1,024 characters
SKILL.md body
880 linesthe spec suggests under 500 lines
Fields outside the spec
versionAgents that do not know these fields ignore them, and uploading to claude.ai or the Skills API can fail on them.
License field
None declared
License file
None declared
Repository license
LICENSE (Apache-2.0)
Claude Code plugin
plugin-dev@claude-plugins-official

Change history

No changes recorded since the first snapshot on 2026-11-28.

Follow changes to this skill in a feed reader: Atom feed · all skills

Get an email when this skill changes

Email alerts are not built yet. Leave your address and we will write to you once, when they are. The feed above works today.

We store your address, the name of this skill and the date. It is used for nothing else.