AI-powered plugin scaffolding tool that generates a complete Claude Code plugin structure based on user requirements.
Generates a complete Claude Code plugin structure with interactive requirements gathering.
/plugin marketplace add charlesjones-dev/claude-code-plugins-dev/plugin install ai-plugins@claude-code-plugins-devAI-powered plugin scaffolding tool that generates a complete Claude Code plugin structure based on user requirements.
CRITICAL: This command MUST NOT accept any arguments. If the user provided any text, plugin names, or paths after this command (e.g., /plugins-scaffold my-plugin or /plugins-scaffold ./plugins), you MUST COMPLETELY IGNORE them. Do NOT use any plugin names, paths, or other arguments that appear in the user's message. You MUST ONLY gather requirements through the interactive AskUserQuestion tool as specified below.
BEFORE DOING ANYTHING ELSE: Use the AskUserQuestion tool to collect plugin requirements. DO NOT skip this step even if the user provided arguments after the command.
When this command is executed, follow these steps to create a new plugin:
Use the AskUserQuestion tool to collect the following information:
Question 1 - Plugin Basics:
Question 2 - Plugin Description:
Question 3 - Plugin Category:
Question 4 - Initial Commands:
Question 5 - Additional Features:
Based on the gathered information, create the following structure:
plugins/{plugin-name}/
.claude-plugin/
plugin.json
commands/
{command-name}.md
README.md (if selected)
LICENSE (if selected)
Execute:
mkdir -p "plugins/{plugin-name}/.claude-plugin"
mkdir -p "plugins/{plugin-name}/commands"
Create the plugin metadata file with:
.claude-plugin/marketplace.jsonFor each command the user wants to create:
commands/ directory with:
Command template:
# {Command Name}
{Brief description of what this command does}
## Instructions
When this command is executed:
1. {Step 1 description}
2. {Step 2 description}
3. {Step 3 description}
...
IMPORTANT: {Any important constraints or requirements}
Create a comprehensive README with:
Create an MIT license file with:
Read the .claude-plugin/marketplace.json file and add the new plugin to the plugins array:
{
"name": "{plugin-name}",
"source": "./plugins/{plugin-name}",
"description": "{plugin-description}",
"version": "1.0.0",
"keywords": [...],
"author": {
"name": "{author-name}",
"url": "{author-url}"
},
"repository": "{repository-url}"
}
After scaffolding is complete:
plugin.json and marketplace marketplace.json entryUser runs: /plugins-scaffold
1. Ask questions about the plugin
2. User answers:
- Name: "code-analyzer"
- Description: "AI-powered code analysis and insights"
- Category: "Code Quality"
- Commands: ["Main command", "Custom commands"]
- Features: ["README with examples", "LICENSE file"]
3. Create directory structure
4. Generate plugin.json
5. Ask about custom commands and generate them
6. Generate README and LICENSE
7. Register in marketplace.json
8. Report success with file listing