npx claudepluginhub joshuarweaver/cascade-code-general-misc-4 --plugin zwkang-agent-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 |
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Persistent memory system for Claude Code - seamlessly preserve context across sessions
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Intelligent prompt optimization using skill-based architecture. Enriches vague prompts with research-based clarifying questions before Claude Code executes them
Streamline people operations — recruiting, onboarding, performance reviews, compensation analysis, and policy guidance. Maintain compliance and keep your team running smoothly.