npx claudepluginhub yasun1/claude-code-plugin-demoA comprehensive demo plugin showcasing all Claude Code plugin types: commands, skills, agents, hooks, and MCP server integration
Share bugs, ideas, or general feedback.
A marketplace demonstrating all types of Claude Code plugins in one comprehensive example.
This repository serves as both documentation and a working example of how to create Claude Code plugins. It contains one complete plugin (my-first-plugin) that showcases all five plugin types:
🆕 New to Claude Code plugins? Read PLUGIN_TYPES_EXPLAINED.md for a beginner-friendly introduction to all plugin types!
Option 1: Install from GitHub (Recommended)
# In Claude Code - this will clone the marketplace from GitHub
/plugin marketplace add yasun1/claude-code-plugin-demo
Option 2: Install from Local Directory
# If you've cloned the repository locally
/plugin marketplace add /path/to/your/clone/claude-code-plugin-demo
Note:
username/repository format tells Claude Code to clone from GitHub at https://github.com/yasun1/claude-code-plugin-demo~/.claude/plugins/marketplaces//plugin install my-first-plugin@yasun1/claude-code-plugin-demo
After installation, restart Claude Code to load the plugin.
# Test a command
/my-first-plugin:hello
# Use a skill
Use the code-reviewer skill to analyze this code
# Launch an agent
Run the bug-hunter agent to find bugs
To use the MCP server tools, you need to:
Find your marketplace clone path:
After installing from GitHub, the marketplace is cloned to:
~/.claude/plugins/marketplaces/yasun1-claude-code-plugin-demo/
For local installs, it's the path you specified.
Install dependencies in the marketplace clone:
IMPORTANT: Run npm install in the marketplace clone, not in the installed plugin folder.
# For GitHub installs:
cd ~/.claude/plugins/marketplaces/yasun1-claude-code-plugin-demo/my-first-plugin/mcp-server
npm install
# For local installs:
cd /your/local/path/claude-code-plugin-demo/my-first-plugin/mcp-server
npm install
Configure in .claude/settings.json:
Use the same marketplace clone path in your configuration:
{
"mcpServers": {
"my-first-plugin": {
"command": "node",
"args": ["~/.claude/plugins/marketplaces/yasun1-claude-code-plugin-demo/my-first-plugin/mcp-server/index.js"]
}
}
}
For local installs, use your local path:
{
"mcpServers": {
"my-first-plugin": {
"command": "node",
"args": ["/your/local/path/claude-code-plugin-demo/my-first-plugin/mcp-server/index.js"]
}
}
}
Restart Claude Code
Why use the marketplace clone path?
node_modules folder created by npm install~/.claude/plugins/) is just a reference copynpm install and where MCP Server runs fromFor detailed setup instructions, see QUICKSTART.md.
A complete demonstration plugin containing:
3 Commands:
/my-first-plugin:hello - Friendly greeting/my-first-plugin:analyze-code - Code quality analysis/my-first-plugin:project-stats - Project statistics2 Skills:
code-reviewer - Comprehensive code reviewdoc-generator - Documentation generation2 Agents:
bug-hunter - Find and fix bugs autonomouslyrefactor-master - Improve code quality3 Hooks:
pre-edit.sh - Validate before editingpost-write.sh - Auto-format after writinguser-prompt-submit.sh - Log and validate promptsMCP Server with 5 tools:
calculate - Math calculationsuuid_generate - UUID generationtimestamp - Timestamp formattingbase64_encode - Base64 encodingbase64_decode - Base64 decodingSee my-first-plugin/README.md for complete documentation.
/plugin marketplace add yasun1/claude-code-plugin-demo
/plugin install my-first-plugin@yasun1/claude-code-plugin-demo
/plugin marketplace update claude-code-plugin-demo
/plugin list
This repository is designed for learning. Each plugin type is implemented with: