create-claude-plugin
Create an empty Claude plugin with basic structure and files.
When & Why to Use This Skill
This Claude skill automates the scaffolding process for creating new Claude plugins, providing a standardized directory structure and essential configuration files. It eliminates manual setup errors and accelerates the development lifecycle by handling boilerplate tasks such as metadata generation, marketplace registration, and release configuration updates.
Use Cases
- Rapid Scaffolding: Instantly generate a compliant plugin structure including agents, skills, and hooks without manual folder creation.
- Project Standardization: Ensure all new plugins within a repository adhere to the official Claude plugin architecture and naming conventions.
- Automated Configuration Management: Automatically update root README.md, marketplace.json, and release-please configs when adding new functionality to a workspace.
- Boilerplate Generation: Create pre-configured plugin.json and basic documentation files to jumpstart the development of custom AI agents.
| name | Create Claude Plugin |
|---|---|
| description | Create an empty Claude plugin with basic structure and files. |
| allowed-tools | Read, Grep, Glob, Write, Edit, WebFetch(domain:docs.claude.com) |
Create Claude Plugin
Instruction
- Use the
Globtool to check if plugin is existing - Use Ask Question Tool to confirm overwriting if plugin already exists
- Create a new directory for the plugin
- Create a minimal plugin structure for plugin
- Update the plugin metadata file with basic information
- Update root README.md to include the new plugin
- Update
.claude-plugin/marketplace.jsonto include the new plugin - Update release please config to include the new plugin
Plugin Structure
|- .claude-plugin/
|- plugin.json
|- commands/ # Omit if no commands
|- example.md
|- agents/ # Omit if no agents
|- example-agent.md
|- skills/ # Omit if no skills
|- example-skill/
|- SKILL.md
|- hooks/ # Omit if no hooks
|- hooks.json
|- src/ # Omit if no hook script is needed
|- example.ts
|- dist/ # Auto-generated, omit
|- example.js
|- README.md
|- rolldown.config.js # Omit if no src
|- package.json # Omit if no src
|- tsconfig.json # Omit if no src
The minimal plugin.json is
{
"name": "plugin-name",
"version": "0.1.0",
"description": "A brief description of the plugin",
"author": {
"name": "Author Name"
}
}
Reference
For detailed information on creating Claude plugins, refer to following documentation: