create-plugin

A guided workflow for creating a complete Claude Code plugin, from understanding the idea through designing components, implementing them, validating them, and testing them.

In plain words
What is it for?
Use it to plan plugin scope, choose commands, skills, agents, and hooks, then build and validate the plugin.
Why use it?
It helps turn an initial plugin request into a structured implementation while resolving unclear requirements and applying relevant development guidance.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/aphrody-code/bxc/create-plugin
Clone the repo
git clone --depth 1 https://github.com/aphrody-code/bxc
Per session 16 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,351 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00016 $0.03351
Opus 5 $0.00008 $0.01675
Sonnet 5 $0.00003 $0.00670
Haiku 4.5 $0.00002 $0.00335

Measured yesterday against content hash b6c0c23196c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

Origin

This is a copy

100% identical to create-plugin — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/plugin-dev-reference/commands/create-plugin.md · 416 lines

How it starts

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

Plugin Creation Workflow

Guide the user through creating a complete, high-quality Claude Code plugin from initial concept to tested implementation. Follow a systematic approach: understand requirements, design components, clarify details, implement following best practices, validate, and test.

Core Principles

  • Ask clarifying questions: Identify all ambiguities about plugin purpose, triggering, scope, and components. Ask specific, concrete questions rather than making assumptions. Wait for user answers before proceeding with implementation.
  • Load relevant skills: Use the Skill tool to load plugin-dev skills when needed (plugin-structure, hook-development, agent-development, etc.)
  • Use specialized agents: Leverage agent-creator, plugin-validator, and skill-reviewer agents for AI-assisted development
  • Follow best practices: Apply patterns from plugin-dev's own implementation
  • Progressive disclosure: Create lean skills with references/examples
  • Use TodoWrite: Track all progress throughout all phases

Initial request: $ARGUMENTS


Phase 1: Discovery

Goal: Understand what plugin needs to be built and what problem it solves

Actions:

  1. Create todo list with all 7 phases
  2. If plugin purpose is clear from arguments:
    • Summarize understanding
    • Identify plugin type (integration, workflow, analysis, toolkit, etc.)
  3. If plugin purpose is unclear, ask user:
    • What problem does this plugin solve?
    • Who will use it and when?
    • What should it do?
    • Any similar plugins to reference?
  4. Summarize understanding and confirm with user before proceeding

Output: Clear statement of plugin purpose and target users


Phase 2: Component Planning

Goal: Determine what plugin components are needed

MUST load plugin-structure skill using Skill tool before this phase.

Actions:

  1. Load plugin-structure skill to understand component types
  2. Analyze plugin requirements and determine needed components:
    • Skills: Does it need specialized knowledge? (hooks API, MCP patterns, etc.)
    • Commands: User-initiated actions? (deploy, configure, analyze)
    • Agents: Autonomous tasks? (validation, generation, analysis)
    • Hooks: Event-driven automation? (validation, notifications)
    • MCP: External service integration? (databases, APIs)
    • Settings: User configuration? (.local.md files)
  3. For each component type needed, identify:
    • How many of each type
    • What each one does
    • Rough triggering/usage patterns
  4. Present component plan to user as table:
    | Component Type | Count | Purpose |
    |----------------|-------|---------|
    | Skills         | 2     | Hook patterns, MCP usage |
    | Commands       | 3     | Deploy, configure, validate |
    | Agents         | 1     | Autonomous validation |
    | Hooks          | 0     | Not needed |
    | MCP            | 1     | Database integration |
    
  5. Get user confirmation or adjustments

Read the full file on GitHub · 416 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. yesterday First seen · 416 lines · 16 tokens per session scan A b6c0c23196c0

Subscribe to this mod's changes

create-plugin is a command published in the GitHub repository aphrody-code/bxc (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 16 tokens to every session and 3,351 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to create-plugin, differing in 0 lines, and is treated as a copy.