/meta:create-pluginsfrom meta
Designing, scaffolding, validating, and distributing Claude Code plugins — manifest, components, marketplaces, and evals.
Ships in meta. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
First, call the Skill tool for "writing-for-agents". Plugin skills, agents, and output styles are documents an agent consumes, so those rules govern how they are written. For the components themselves, invoke create-skills for skills and create-agents for subagents, and create-mcp for a Code Mode MCP server (many tools behind one code tool). This skill covers the plugin packaging around them. For a mod (a plugin whose hooks/hooks.json registers in-process JavaScript function hooks that draw panes or add commands, v2.1.287+), invoke create-mod, which builds it and installs it globally or into one project; the packaging, validation, and distribution rules here still apply when it is shared.
A plugin is a self-contained directory that bundles skills, agents, hooks, MCP/LSP servers, monitors, themes, output styles, workflows, bin/ executables, and default settings, so one install carries them to every project. Spec: code.claude.com/docs/en/plugins.
| Pick a plugin when | Pick standalone .claude/ config when |
|---|---|
| Sharing with a team or community | Personal workflow for one project |
| The same config is reused across projects | Quick experiment before packaging |
| You want versioned releases and updates | Short command names matter (/hello, not /my-plugin:hello) |
Every plugin component is namespaced by the manifest name: skills run as /my-plugin:skill, agents appear as my-plugin:agent. Prototype in .claude/, then move the files into a plugin once the design settles.
my-plugin/
├── .claude-plugin/
│ └── plugin.json # manifest (optional); the ONLY file in this dir
├── skills/<name>/SKILL.md
├── agents/*.md
├── hooks/hooks.json
├── .mcp.json
├── .lsp.json
├── monitors/monitors.json # experimental
├── themes/ # experimental
├── output-styles/
├── workflows/
├── bin/ # added to the Bash tool's PATH
├── settings.json # only `agent` and `subagentStatusLine` keys
└── evals/ # `claude plugin eval` cases
Rules the loader enforces:
.claude-plugin/ holds only plugin.json (or marketplace.json). Putting skills/ or agents/ inside it is the most common mistake.~/.claude/ itself.CLAUDE.md is not loaded. Ship context as a skill.SKILL.md with no skills/ dir and no skills field loads as a single-skill plugin. Set its frontmatter name, or the invocation name falls back to the install directory, which is a version string for cached installs.commands/ (flat .md files) still loads but is legacy. Use skills/ in new plugins.claude plugin init <name> [--with skills agents hooks mcp lsp output-style channel] [--description ...] writes ~/.claude/skills/<name>/, which loads as <name>@skills-dir.name (kebab-case) is the only required field. Add description, author, and version only if you will bump it on every release (see manifest.md). Custom path fields replace the default directory, except skills, which adds to it.bin/, and userConfig, follow components.md, which covers ${CLAUDE_PLUGIN_ROOT} quoting, scoped MCP tool names, and the frontmatter fields plugin agents ignore.claude --plugin-dir ./my-plugin, then /reload-plugins after each edit. Exercise every component: invoke each skill, check that agents appear in the @ typeahead as my-plugin:<agent>, and trigger each hook.claude plugin validate ./my-plugin --strict until it exits 0.claude plugin eval init, then claude plugin eval ., to measure the plugin's lift over a no-plugin baseline./plugin marketplace add and /plugin install.Done when validate --strict passes and every component was exercised from a --plugin-dir or marketplace install. For a distributed plugin, a fresh install from the marketplace must also work.
Steps 4-6 are detailed in testing.md.
./, uses /, and stays inside the plugin root. skills also accepts "." (v2.1.221+).${CLAUDE_PLUGIN_ROOT} is the install dir. It changes on every update, so never write state there.${CLAUDE_PLUGIN_DATA} (~/.claude/plugins/data/<id>/) survives updates. Put node_modules, venvs, and caches there.${CLAUDE_PROJECT_DIR} is the project root..claude-plugin/. They silently don't load.../ or absolute paths. The plugin is copied to ~/.claude/plugins/cache, so files outside it vanish. Share files through symlinks inside the marketplace instead.version set but never bumped. Users never receive the update. version in both plugin.json and the marketplace entry. plugin.json silently wins.hooks, mcpServers, or permissionMode in a plugin agent. They are ignored for security.${user_config.X} in a shell-form hook, monitor command, or headersHelper. It is rejected (v2.1.207+). Use exec-form args or CLAUDE_PLUGIN_OPTION_<KEY> instead.tools:. Plugin tools are mcp__plugin_<plugin>_<server>__<tool>./plugin Discover first.plugin.json alone in .claude-plugin/, name in kebab-case./, uses /, and stays inside the root"${CLAUDE_PLUGIN_ROOT}"${CLAUDE_PLUGIN_ROOT}userConfig with sensitive: true, never hard-codedversion strategy chosen: pinned and bumped per release, or omitted (commit SHA)claude plugin validate --strict passes--plugin-dircreate-skills / create-agents; Code Mode MCP servers per create-mcpplugin.json fields, path rules, userConfig, channels, dependencies, versioningbin/, settings.jsonmarketplace.json, source types, strict, caching, hosting, team rollout, dependencies, public submission--plugin-dir, skills-dir plugins, validate, eval, debugging, CLI referenceWhat SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/brainstorm-modsBrainstorm mods and plugins worth building, for one project or globally, then design and build the one you pick./claude-docsAnswer Claude Code questions (CLI, Agent SDK, plugins, hooks, skills, slash commands, MCP, settings) from a locally cached copy of the official docs./create-agentsDesigning, authoring, and auditing Claude Code subagents — frontmatter, tool scoping, model choice, and memory. Use when creating, editing, or auditing an agent file in `.claude/agents/`.Other plugins' skills for the same job
npx claudepluginhub sustinbebustin/.dotfiles --plugin meta