By zwkang
A comprehensive Claude Code plugin template with skills, hooks, commands, and agents
npx claudepluginhub zwkang/agent-plugin-templateA comprehensive Claude Code plugin template
A comprehensive template for building Claude Code plugins.
Standard structure for Skills, Agents, Hooks, MCP & LSP.
# Clone this template
git clone https://github.com/your-username/my-plugin.git
cd my-plugin
# Install dependencies (for TypeScript hooks/scripts)
npm install
# Make scripts executable
npm run prepare
Test your plugin instantly in your current session:
claude --plugin-dir .
Check for configuration errors:
claude plugin validate
This template follows the Standard Plugin Layout.
graph TD
Root[Plugin Root] --> Manifest[.claude-plugin/plugin.json]
Root --> Skills[skills/]
Root --> Agents[agents/]
Root --> Hooks[hooks/]
Root --> MCP[.mcp.json]
Root --> LSP[.lsp.json]
Skills --> MySkill[my-skill/SKILL.md]
Agents --> MyAgent[my-agent.md]
Hooks --> HookConfig[hooks.json]
Hooks --> Scripts[scripts/*.ts]
style Root fill:#f9f9f9,stroke:#333,stroke-width:2px
style Manifest fill:#e1f5fe,stroke:#01579b
style Skills fill:#e8f5e9,stroke:#2e7d32
style Agents fill:#fff3e0,stroke:#ef6c00
skills/)Reusable workflows invoked automatically or via /slash-command.
skills/<name>/SKILL.mdagents/)Specialized sub-agents for complex, multi-step tasks.
agents/<name>.mdhooks/)Event-driven automation (e.g., SessionStart, PreToolUse).
hooks/hooks.json${CLAUDE_PLUGIN_ROOT} for paths..mcp.json): Connect external tools & APIs..lsp.json): Add language intelligence.Plugin Manifest (.claude-plugin/plugin.json)
{
"name": "my-plugin",
"version": "0.1.0",
"description": "My awesome plugin",
"skills": "./skills/",
"agents": "./agents/",
"hooks": "./hooks/hooks.json"
}
.claude-plugin/marketplace.json.claude plugin install <plugin-name>@<marketplace-url>
| Issue | Solution |
|---|---|
| Plugin not loading | Run claude --debug to see logs |
| Command fails | chmod +x your scripts |
| Path errors | Use ${CLAUDE_PLUGIN_ROOT} env var |
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.