plugin-creator
Automatically creates new claude code plugins with proper structure, validation, and marketplace integration when user mentions creating a plugin, new plugin, or plugin from template. specific to claude-code-plugins repository workflow.
- License 许可
- MIT
- 最近更新
- 2025-12-18
- Stars
- ★ 29
- Forks
- 9
01 前言 Front Matter
- name
- plugin-creator
- license
- MIT
- description
- Automatically creates new claude code plugins with proper structure, validation, and marketplace integration when user mentions creating a plugin, new plugin, or plugin from template. specific to claude-code-plugins repository workflow.
- allowed-tools
- [ "Write", "Read", "Grep", "Bash" ]
02 资源文件 3
- 资产文件assets/README.md525 B
- 参考文档references/README.md580 B
- 脚本scripts/README.md622 B
03 SKILL.md 正文
Plugin Creator
Purpose
Automatically scaffolds new Claude Code plugins with complete directory structure, required files, proper formatting, and marketplace catalog integration - specifically optimized for the claude-code-plugins repository.
Trigger Keywords
- "create plugin" or "new plugin"
- "plugin from template"
- "scaffold plugin"
- "generate plugin"
- "add new plugin to marketplace"
Plugin Creation Process
When activated, I will:
-
Gather Requirements
- Plugin name (kebab-case)
- Category (productivity, security, devops, etc.)
- Type (commands, agents, skills, MCP, or combination)
- Description and keywords
- Author information
-
Create Directory Structure
plugins/[category]/[plugin-name]/ ├── .claude-plugin/ │ └── plugin.json ├── README.md ├── LICENSE └── [commands|agents|skills|hooks|mcp]/ -
Generate Required Files
- plugin.json with proper schema (name, version, description, author)
- README.md with comprehensive documentation
- LICENSE (MIT by default)
- Component files based on type
-
Add to Marketplace Catalog
- Update
.claude-plugin/marketplace.extended.json - Run
npm run sync-marketplaceautomatically - Validate catalog schema
- Update
-
Validate Everything
- Run
./scripts/validate-all.shon new plugin - Check JSON syntax with
jq - Verify frontmatter in markdown files
- Ensure scripts are executable
- Run
Plugin Types Supported
Commands Plugin
- Creates
commands/directory - Generates example command with proper frontmatter
- Includes
/demo-commandexample
Agents Plugin
- Creates
agents/directory - Generates example agent with capabilities
- Includes model specification
Skills Plugin
- Creates
skills/skill-name/directory - Generates SKILL.md with proper format
- Includes trigger keywords and allowed-tools
MCP Plugin
- Creates
src/,dist/,mcp/directories - Generates TypeScript boilerplate
- Includes package.json with MCP SDK
- Adds to pnpm workspace
Full Plugin
- Combines all types
- Creates complete example structure
- Ready for customization
File Templates
plugin.json Template
{
"name": "plugin-name",
"version": "1.0.0",
"description": "Clear description",
"author": {
"name": "Author Name",
"email": "[email protected]"
},
"repository": "https://github.com/jeremylongshore/claude-code-plugins",
"license": "MIT",
"keywords": ["keyword1", "keyword2"]
}
Command Template
---
name: command-name
description: What this command does
model: sonnet
---
# Command Title
Instructions for Claude...
Skill Template
---
name: Skill Name
description: What it does AND when to use it
allowed-tools: Read, Write, Grep
---
# Skill Name
## Purpose
[What this skill does]
## Trigger Keywords
- keyword1
- keyword2
## Instructions
[Step-by-step for Claude]
Marketplace Integration
I automatically:
- Add plugin entry to
marketplace.extended.json - Run
npm run sync-marketplaceto update CLI catalog - Validate both catalogs with
jq - Check for duplicate names
- Verify source paths exist
Validation Steps
After creation:
- ✅ All required files present
- ✅ Valid JSON (plugin.json, catalogs)
- ✅ Proper frontmatter in markdown
- ✅ Scripts executable (
chmod +x) - ✅ No duplicate plugin names
- ✅ Category is valid
- ✅ Keywords present
Repository-Specific Features
For claude-code-plugins repo:
- Follows exact directory structure
- Uses correct marketplace slug (
claude-code-plugins-plus) - Includes proper LICENSE file
- Adds to correct category folder
- Validates against existing plugins
- Updates version in marketplace
Output
I provide:
✅ Created plugin: plugin-name
? Location: plugins/category/plugin-name/
? Files created: 8
? Validation: PASSED
? Marketplace: UPDATED
✨ Ready to commit!
Next steps:
1. Review files in plugins/category/plugin-name/
2. Customize README.md and component files
3. Run: git add plugins/category/plugin-name/
4. Run: git commit -m "feat: Add plugin-name plugin"
Examples
User says: "Create a new security plugin called 'owasp-scanner' with commands"
I automatically:
- Create directory:
plugins/security/owasp-scanner/ - Generate plugin.json, README, LICENSE
- Create
commands/with example - Add to marketplace.extended.json
- Sync marketplace.json
- Validate all files
- Report success
User says: "Scaffold a Skills plugin for code review"
I automatically:
- Create directory with
skills/subdirectories - Generate SKILL.md templates
- Add trigger keywords for code review
- Add to marketplace
- Validate and report
04 同仓库更多 Skills
testing-visual-regression
Detect visual changes in UI components using screenshot comparison. Use when detecting unintended UI changes or pixel differences. Trigger with phrases like "test visual changes", "compare screenshots", or "detect UI regressions".
generating-unit-tests
Automatically generate comprehensive unit tests from source code covering happy paths, edge cases, and error conditions. Use when creating test coverage for functions, classes, or modules. Trigger with phrases like "generate unit tests", "create tests for", or "add test coverage".
generating-test-reports
Generate comprehensive test reports with metrics, coverage, and visualizations. Use when performing specialized testing. Trigger with phrases like "generate test report", "create test documentation", or "show test metrics".
orchestrating-test-execution
Coordinate parallel test execution across multiple environments and frameworks. Use when performing specialized testing. Trigger with phrases like "orchestrate tests", "run parallel tests", or "coordinate test execution".
managing-test-environments
Provision and manage isolated test environments with configuration and data. Use when performing specialized testing. Trigger with phrases like "manage test environment", "provision test env", or "setup test infrastructure".
generating-test-doubles
Generate mocks, stubs, spies, and fakes for dependency isolation. Use when creating mocks, stubs, or test isolation fixtures. Trigger with phrases like "generate mocks", "create test doubles", or "setup stubs".