creating-plugins
Skill10 starsChanged 11 months agoMITView on GitHub
Guide for creating Claude Code plugins with commands, agents, skills, hooks, and MCP servers. Use when the user wants to create a new plugin, add plugin components (commands, agents, hooks), set up a plugin marketplace, or needs help with plugin.json configuration.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- EngDawood/emdash-claude-plugintheir own version, first seen Sep 30, 2026
- EngDawood/modern-emdash-cmstheir own version, first seen Jun 20, 2026
- NothingFancyAI/skillstheir own version, first seen Apr 15, 2026
- rfdnxbro/claude-code-marketplacetheir own version, first seen Mar 15, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- EngDawood/emdash-claude-plugin★ 3same name
- rfdnxbro/claude-code-marketplace★ 2same name
- EngDawood/modern-emdash-cms★ 1same name
- NothingFancyAI/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create Claude Code plugins to extend functionality with custom commands, agents, skills, hooks, and MCP servers.
- Distinctive: line 54
Create a test marketplace:
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Plugin Creator
Create Claude Code plugins to extend functionality with custom commands, agents, skills, hooks, and MCP servers.
Plugin Creation Workflow
1. Gather Requirements
Ask the user:
- What functionality should the plugin provide?
- Which components are needed? (commands, agents, hooks, MCP servers, skills)
- Who is the target audience? (personal, team, public)
2. Create Plugin Structure
my-plugin/
├── .claude-plugin/
│ └── plugin.json # Required
├── commands/ # Optional: slash commands
├── agents/ # Optional: sub-agents
├── skills/ # Optional: agent skills
├── hooks/ # Optional: event handlers
└── .mcp.json # Optional: MCP servers3. Write plugin.json
Minimal example:
{
"name": "my-plugin",
"description": "Brief description",
"version": "1.0.0",
"author": {"name": "Author Name"}
}4. Add Components
Based on user requirements, add:
- Commands: See commands.md for slash command format
- Agents: See agents.md for agent definition format
- Hooks: See hooks.md for event handler configuration
- MCP Servers: See mcp-servers.md for server configuration
5. Test Locally
Create a test marketplace:
mkdir test-marketplace/.claude-pluginCreate test-marketplace/.claude-plugin/marketplace.json:
{
"name": "test-marketplace",
"owner": {"name": "Developer"},
"plugins": [{"name": "my-plugin", "source": "./my-plugin"}]
}Test commands:
/plugin marketplace add ./test-marketplace
/plugin install my-plugin@test-marketplaceQuick Reference
Command File (commands/hello.md)
---
description: Greet the user
---
# Hello Command
Greet the user warmly.Agent File (agents/reviewer.md)
---
description: Code review specialist
capabilities: ["review", "suggestions"]
---
# Reviewer
Review code for quality and best practices.Hooks (hooks/hooks.json)
{
"hooks": {
"PostToolUse": [{
"matcher": "Write|Edit",
"hooks": [{"type": "command", "command": "prettier --write $CLAUDE_FILE_PATH"}]
}]
}
}References
Plugin Development
- Plugins Guide - Complete plugin creation guide
- Plugins Reference - Technical schemas and configurations
- Plugin Structure - Directory layout and plugin.json schema
- Marketplace - Plugin distribution
Plugin Components
- Commands - Slash command format
- Agents - Sub-agent definitions
- Hooks - Event handlers
- MCP Servers - External tool integration
Skills Development
- Skills Overview - What skills are and how they work
- Skills Best Practices - Writing effective skills
- Skills Schema - SKILL.md format and validation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

