create-plugin

create-plugin is a command for Claude Code from crathgeb/claude-code-plugins. It costs 9 tokens per session (3,521 once invoked), scanned A, original, MIT.

A guided command for creating a complete Claude Code plugin, including its commands, sub-agents, hooks, and external tool connections.

In plain words
What is it for?
Use it to build a plugin from a problem description and define its components, audience, metadata, and integrations.
Why use it?
It helps organize plugin requirements, design, implementation, testing, and documentation in one process.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions .claude-plugin; mentions subagents; names the TodoWrite tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the plugin-builder plugin — 3 commands, 2 agents shipped together

Good fit Use it to build a plugin from a problem description and define its components, audience, metadata, and integrations.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add crathgeb/claude-code-plugins
Claude Code
/plugin install plugin-builder

Made for: Claude Code.

Or install plugin-builder, the plugin that ships this one along with the rest of its 3 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-plugin

README.md
[![agentmods](https://agentmods.dev/badge/commands/crathgeb/claude-code-plugins/create-plugin/github.svg)](https://agentmods.dev/commands/crathgeb/claude-code-plugins/create-plugin)
Your own site
<a href="https://agentmods.dev/commands/crathgeb/claude-code-plugins/create-plugin"><img src="https://agentmods.dev/badge/commands/crathgeb/claude-code-plugins/create-plugin/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-plugin

Your own site · 80×15
<a href="https://agentmods.dev/commands/crathgeb/claude-code-plugins/create-plugin"><img src="https://agentmods.dev/badge/commands/crathgeb/claude-code-plugins/create-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,521 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.03521
Opus 5.5 $0.00004 $0.01408
Sonnet 5.5 $0.00002 $0.00704
Haiku 4.5 $0.00001 $0.00352

Measured 2mo ago against content hash 172868b8fd9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-plugin scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/plugin-builder/commands/create-plugin.md · 647 lines

How it starts

The opening of the file, as written. The whole thing — 647 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Claude Code Plugin Builder

You are an expert in building Claude Code plugins. Guide users through creating complete, well-structured plugins following established patterns from Anthropic and the community.

User request: $ARGUMENTS


Phase 1: Discovery & Requirements

Step 1.1: Create Todo List

Create a todo list with these phases:

  • Phase 1: Discovery & Requirements
  • Phase 2: Plugin Design & Architecture
  • Phase 3: Implementation
  • Phase 4: Testing & Documentation

Step 1.2: Gather Requirements

If the user hasn't provided clear requirements, ask:

Essential Questions:

  • What is the plugin name? (lowercase-with-dashes format)
  • What problem does this plugin solve?
  • Who is the target audience? (team, community, personal)

Component Questions:

  • Will this plugin include slash commands? If yes, what operations?
  • Will this plugin include sub-agents? If yes, what specialized tasks?
  • Will this plugin include hooks? If yes, what lifecycle events?
  • Will this plugin include MCP servers? If yes, what external tools?

Metadata Questions:

  • Author name and email (optional)?
  • Homepage or repository URL (optional)?
  • License type (optional)?
  • Keywords for discoverability?

Summarize requirements and wait for confirmation.


Phase 2: Plugin Design & Architecture

Step 2.1: Analyze Similar Plugins

Search for similar plugins in the ecosystem to understand established patterns:

  • Anthropic's official plugins (feature-dev, pr-review-toolkit, commit-commands, etc.)
  • Community plugins in available marketplaces
  • Related functionality in existing tools

Present 2-3 similar examples with links/paths.

Step 2.2: Design Plugin Structure

Based on requirements, design the complete file structure:

plugin-name/
- .claude-plugin/
|  - plugin.json              # Plugin metadata (ALWAYS REQUIRED)
- commands/                     # Slash commands (if applicable)
|   - command-1.md
|  - command-2.md
- agents/                       # Sub-agents (if applicable)
|   - agent-1.md
|  - agent-2.md
- hooks/                        # Lifecycle hooks (if applicable)
|   - hooks.json
|  - hook-implementation.py
- .mcp.json                    # MCP servers (if applicable)

Read the full file on GitHub · 647 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 647 lines · 9 tokens per session scan A 172868b8fd9d

Subscribe to this mod's changes

create-plugin is a command published in the GitHub repository crathgeb/claude-code-plugins (2 stars, last pushed 1y ago), licensed MIT. It adds 9 tokens to every session and 3,521 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

create-plugin compared with commands from other repositories

create-plugin next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
create-plugincrathgeb/claude-code-pluginsCommand21y agoMITA9Claude Code
checklistgithub/spec-kitCommand148ktodayMITA13Claude Code
clarifygithub/spec-kitCommand148ktodayMITA27Claude Code
specifygithub/spec-kitCommand148ktodayMITA13Claude Code
convergegithub/spec-kitCommand148ktodayMITA35Claude Code
speckit.bug.testgithub/spec-kitCommand148ktodayMITA13Claude Code
analyzegithub/spec-kitCommand148ktodayMITA26Claude Code