Plugin Developer Toolkit

Anthropic Official Β· plugin-dev
πŸ”Œ
What this is: An official Anthropic plugin that helps you build Claude Code plugins and skills. It ships 7 specialist skills covering every part of the plugin development workflow β€” with 21,000+ words of embedded documentation and 12+ working examples.

Install It

/plugin install plugin-dev@claude-plugins-official

That’s it. You now have 7 new skills available under the /plugin-dev: namespace.


The 7 Skills

πŸͺ

Hook Development

All 9 hook event types: PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification.

Use: /plugin-dev:hook-development

πŸ”—

MCP Server Integration

Connect external services via Model Context Protocol β€” stdio, SSE, HTTP, WebSocket protocols all covered.

Use: /plugin-dev:mcp-integration

πŸ—οΈ

Plugin Structure & Settings

Directory layout, plugin.json manifest, settings configuration, .local.md patterns for user-configurable plugins.

Use: /plugin-dev:plugin-structure

⌨️

Slash Command Creation

Custom /commands, YAML frontmatter fields, dynamic arguments, bash execution, interactive user prompts.

Use: /plugin-dev:command-development

πŸ€–

Agent Development

Creating autonomous subagents: system prompts, tools configuration, triggering conditions, isolation modes.

Use: /plugin-dev:agent-development

πŸ“‹

Skill Authoring

Writing effective SKILL.md files: frontmatter options, context modes, model selection, progressive disclosure patterns.

Use: /plugin-dev:skill-development

βœ…

Plugin Validation

Validate your plugin before publishing: structure checks, frontmatter validation, hook testing, marketplace readiness.

Use: /plugin-dev:plugin-validator


Guided Creation: 8 Phases

The fastest way to build a new plugin is the guided workflow:

> /plugin-dev:create-plugin

This launches an 8-phase creation process:

  1. Discovery

    Claude interviews you about the workflow you want to automate. What do you do manually today? What are the inputs and outputs?

  2. Planning

    Claude designs the plugin architecture: which components you need (skills, agents, hooks, MCP), how they connect.

  3. Design

    Claude drafts the skill/agent system prompts and hook logic. You review and adjust before any files are created.

  4. Implementation

    Claude generates all plugin files: directory structure, plugin.json, SKILL.md files, agent definitions, hook config.

  5. Validation

    Claude validates the structure against plugin spec β€” catches missing fields, incorrect frontmatter, broken references.

  6. Testing

    Claude generates test scenarios and walks you through local testing with claude --plugin-dir ./your-plugin.

  7. Documentation

    Claude generates a README with install instructions, usage guide, and contribution notes.

  8. Publishing

    Claude prepares the plugin for marketplace submission or team distribution.


Ask Questions Naturally

You don’t have to use the guided flow. Just ask questions and the right skill auto-loads:

> How do I create a PreToolUse hook that blocks edits to production files?

Claude loads the hook-development skill and gives you a working implementation.

> What's the difference between context: main and context: fork in a SKILL.md?

Claude loads the skill-development skill and explains the fork isolation mode.

> I want my plugin to connect to a Jira instance. What's the best approach?

Claude loads the MCP integration skill and walks you through the Jira MCP server setup.


Use It to Build RHDP Skills

The plugin-dev toolkit is how you’d build new RHDP marketplace skills. Here’s the connection:

βœ…
Building a sales skill? Use the Sales Skill Walkthrough to understand the workflow, then use /plugin-dev:skill-development to generate the SKILL.md. The toolkit knows the RHDP SKILL.md format.
βœ…
Building a frontend agent? Use the Frontend Agent Guide to design your agent, then use /plugin-dev:agent-development and /plugin-dev:hook-development to generate the files.

Validate Before Publishing

Before submitting a skill to the RHDP marketplace or sharing with your team:

> /plugin-dev:plugin-validator

This checks:


Local Testing Workflow

# Test your plugin locally (without installing to marketplace)
claude --plugin-dir ./my-plugin

# Test multiple plugins together
claude --plugin-dir ./my-plugin --plugin-dir ./another-plugin

# Reload without restarting
> /reload-plugins

When a local --plugin-dir plugin has the same name as an installed marketplace plugin, the local copy takes precedence for that session β€” useful for testing updates.


Further Reading