New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Complete plugin development system with agent, skills, commands, and validators for Claude Code.

version
3.4.2
GitHub stars
62
View on GitHub

What it does

  • Adds /create-plugin and /validate-plugin commands, a plugin-expert agent, and six skills covering plugin structure and publishing
  • Covers the full plugin lifecycle: scaffolding, agents, skills, hooks, MCP integration, validation, and marketplace publishing
  • Enforces progressive disclosure, with skills over 2,000 words split into SKILL.md plus a references/ directory
  • Designed for developers building Claude Code plugins who want validation scripts before publishing to a marketplace

Complete Claude Code plugin development system. PROACTIVELY activate when users want to: (1) Create/build plugins with 2025 features, (2) Add skills/commands/agents/hooks, (3) Validate plugin structure, (4) Publish to marketplace, (5) Get plugin development guidance. Provides: agent-first design patterns, progressive disclosure skills, hook automation, MCP integration, marketplace publishing. Includes plugin-expert agent and validation utilities.

Add marketplace

/plugin marketplace add JosiahSiegel/claude-plugin-marketplace

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install plugin-master@claude-plugin-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Advanced Plugin Features (2025)

Quick Reference

FeatureLocationPurpose
Agent Skillsskills/*/SKILL.mdDynamic knowledge loading
Hookshooks/hooks.jsonEvent automation
MCP Servers.mcp.jsonExternal integrations
Team Config.claude/settings.jsonRepository plugins
Hook EventWhen FiredUse Case
PreToolUseBefore toolValidation
PostToolUseAfter toolTesting, linting
SessionStartSession beginsLogging, setup
SessionEndSession endsCleanup
UserPromptSubmitPrompt submittedPreprocessing
PreCompactBefore compactState save
NotificationNotification shownCustom alerts
StopUser stopsCleanup
SubagentStopSubagent endsLogging
VariablePurpose
${CLAUDE_PLUGIN_ROOT}Plugin installation path
${TOOL_INPUT_*}Tool input parameters

Agent Skills

Concept

Skills are dynamically loaded based on task context, enabling:

  • Unbounded capacity: Knowledge split across files
  • Context efficiency: Only load what's needed
  • Progressive disclosure: Three-tier loading

Three-Tier Loading

  1. Frontmatter: Loaded at startup (triggers)
  2. SKILL.md body: Loaded on activation
  3. references/: Loaded when detail needed

Structure

skills/
└── skill-name/
    ├── SKILL.md           # Core content
    ├── references/        # Detailed docs
    │   └── deep-dive.md
    ├── examples/          # Working code
    │   └── example.md
    └── scripts/           # Utilities
        └── tool.sh

SKILL.md Format

---
name: skill-name
description: |
  When to activate this skill. Include:
  (1) Use case 1
  (2) Use case 2
  Provides: what it offers
---

# Skill Title

## Quick Reference
[Tables, key points]

## Core Content
[Essential information - keep lean]

## Additional Resources
See `references/` for detailed guidance.

Hooks

Configuration

Inline in plugin.json:

{
  "hooks": {
    "PostToolUse": [{
      "matcher": "Write|Edit",
      "hooks": [{
        "type": "command",
        "command": "${CLAUDE_PLUGIN_ROOT}/scripts/lint.sh"
      }]
    }]
  }
}

Separate hooks.json:

{
  "PostToolUse": [{
    "matcher": "Write",
    "hooks": [{
      "type": "command",
      "command": "${CLAUDE_PLUGIN_ROOT}/scripts/format.sh",
      "timeout": 5000
    }]
  }]
}

Matchers

  • Write - File writes
  • Edit - File edits
  • Bash - Shell commands
  • Write|Edit - Multiple tools
  • .* - Any tool (use sparingly)

Common Patterns

Auto-test after changes:

{
  "PostToolUse": [{
    "matcher": "Write|Edit",
    "hooks": [{
      "type": "command",
      "command": "${CLAUDE_PLUGIN_ROOT}/scripts/run-tests.sh"
    }]
  }]
}

Validate before Bash:

{
  "PreToolUse": [{
    "matcher": "Bash",
    "hooks": [{
      "type": "command",
      "command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate-cmd.sh"
    }]
  }]
}

MCP Server Integration

Configuration

{
  "mcpServers": {
    "server-name": {
      "command": "node",
      "args": ["${CLAUDE_PLUGIN_ROOT}/mcp/server.js"],
      "env": {
        "API_KEY": "${API_KEY}"
      }
    }
  }
}

External Services

{
  "mcpServers": {
    "stripe": {
      "command": "npx",
      "args": ["-y", "@stripe/mcp-server"],
      "env": {
        "STRIPE_API_KEY": "${STRIPE_API_KEY}"
      }
    }
  }
}

Repository Configuration

Team Distribution

Create .claude/settings.json at repo root:

{
  "extraKnownMarketplaces": [
    "company/internal-plugins"
  ],
  "plugins": {
    "enabled": [
      "deployment-helper@company",
      "code-standards@company"
    ]
  }
}

Workflow

  1. Maintainer creates .claude/settings.json
  2. Team members clone repo
  3. Trust folder when prompted
  4. Plugins install automatically

Best Practices

Progressive Disclosure

  • Keep SKILL.md under 500 lines
  • Move details to references/
  • Use examples/ for working code
  • Reference files with relative paths

Hooks

  • Use specific matchers (avoid .*)
  • Set reasonable timeouts
  • Use ${CLAUDE_PLUGIN_ROOT} for paths
  • Test scripts independently

MCP

  • Document required env vars
  • Provide setup instructions
  • Use environment variables for secrets
  • Test connection before distribution

Additional Resources

For detailed patterns, see:

  • references/hooks-advanced.md - Complete hook patterns
  • references/mcp-patterns.md - MCP integration examples
  • references/team-distribution.md - Repository configuration
  • examples/hook-scripts.md - Working hook scripts

Readme

Plugin Master

Complete Claude Code plugin development system with 2025 best practices.

Features

  • Agent-first design - Single expert agent pattern for domain expertise
  • Progressive disclosure - Skills with three-tier loading for unbounded capacity
  • Validation utilities - Scripts to validate plugins, agents, and skills
  • Best practices - Up-to-date 2025 patterns and conventions
  • Marketplace publishing - Complete workflow for distribution

Installation

From Marketplace (Recommended)

/plugin marketplace add JosiahSiegel/claude-plugin-marketplace
/plugin install plugin-master@claude-plugin-marketplace

Local Installation

git clone https://github.com/JosiahSiegel/claude-plugin-marketplace.git
cp -r claude-plugin-marketplace/plugins/plugin-master ~/.claude/plugins/local/

Usage

Just ask about plugin development:

  • "Create a plugin for Docker automation"
  • "Help me add an agent to my plugin"
  • "Validate my plugin structure"
  • "How do I publish to a marketplace?"

Components

Agent

NamePurpose
plugin-expertPrimary expert for all plugin development questions

Skills

SkillPurpose
plugin-masterCore plugin development guide — layout, manifest, marketplace registration
advanced-features-2025Hooks, MCP, progressive disclosure, team distribution
agent-developmentAgent frontmatter, <example> blocks, system prompts, tool restriction
skill-developmentSKILL.md authoring, progressive disclosure, references/ vs examples/
hook-developmentPrompt-based and command hooks, events, matchers, security
triggering-reliabilityAnti-pattern catalog, severity tiers (P0/P1/P2), canonical checklist, description-length caps

Commands

CommandPurpose
/create-pluginCreate a new plugin
/validate-pluginValidate plugin structure

Scripts

ScriptPurpose
validate-plugin.shValidate complete plugin
validate-agent.shValidate agent file
validate-skill.shValidate skill directory

Plugin Structure

plugin-name/
├── .claude-plugin/
│   └── plugin.json          # Required manifest
├── agents/
│   └── domain-expert.md     # Primary agent
├── skills/
│   └── skill-name/
│       ├── SKILL.md         # Core content
│       ├── references/      # Detailed docs
│       └── examples/        # Working code
├── commands/                 # Optional (0-2 max)
├── hooks/
│   └── hooks.json           # Optional
└── README.md

Key Concepts

Agent-First Design

  • ONE expert agent named {domain}-expert
  • Minimal commands (0-2) for automation only
  • Users interact conversationally

Progressive Disclosure

Three-tier skill loading:

  1. Frontmatter - Loaded at startup
  2. SKILL.md body - Loaded on activation
  3. references/ - Loaded when detail needed

plugin.json Rules

{
  "name": "plugin-name",
  "version": "1.0.0",
  "description": "...",
  "author": { "name": "Name" },  // Object, NOT string
  "keywords": ["word1", "word2"] // Array, NOT string
}

Do NOT include: agents, skills, slashCommands - auto-discovered

Validation

Before publishing:

# Validate entire plugin
./scripts/validate-plugin.sh .

# Validate agent
./scripts/validate-agent.sh agents/plugin-expert.md

# Validate skill
./scripts/validate-skill.sh skills/plugin-master/

What's New

  • Thin-router commands - /create-plugin and /validate-plugin are now lean routers (~40 lines each) that delegate to the plugin-expert agent and named skills. No duplicated content between commands and skills.
  • Corrected description limits - Size limits updated to match Claude Code's actual API spec (1024-char hard ceiling per description) and listing cap (1536 chars, raised from 250 in v2.1.105). Target is now 400-1000 chars, not the obsolete ~500-char "soft target."
  • Severity table & canonical checklist - triggering-reliability skill now owns the P0/P1/P2 severity tiers and the canonical pre-publish checklist; commands point users at the skill rather than duplicating it.
  • Lean orchestrator pattern - Agent body stays an orchestrator; all domain knowledge lives in skills.
  • Progressive disclosure enforcement - Skills over 2,000 words split into SKILL.md + references/.

Technical Details

Support

Details

Marketplace
JosiahSiegel/claude-plugin-marketplace
Source
plugins/plugin-master
Author
Josiah Siegel
Category
Community
Keywords
plugin, development, skills, hooks, mcp, commands, agents, marketplace, validation, automation, progressive-disclosure
Listed since
Apr 7, 2026

More from JosiahSiegel/claude-plugin-marketplace

All 43

Similar to plugin-master

More Skill & Plugin Building