AgentSkillsCN

creating-plugins

为新Claude Code插件搭建符合规范的框架结构。当您需要创建包含技能与清单的新插件包时,可使用此技能。

SKILL.md
--- frontmatter
name: creating-plugins
description: Scaffolds a new Claude Code plugin with proper structure. Use when creating a new plugin package with skills and manifests.

Creating Plugins

Create a new Claude Code plugin with the specified name and type.

Process

1. Validate Input

  • Ensure name is kebab-case (lowercase, hyphens only)
  • Determine type: skill-only or full plugin

2. Create Directory Structure

Full Plugin:

code
<name>/
├── .claude-plugin/
│   └── plugin.json
├── skills/
│   └── <name>/
│       └── SKILL.md
└── README.md

Skill Only:

code
<name>/
├── .claude-plugin/
│   └── plugin.json
└── skills/
    └── <name>/
        └── SKILL.md

3. Generate Files

Create plugin.json with:

  • Name from input
  • Placeholder description
  • Version 1.0.0
  • Author from git config

Create skill template following writing-skills skill patterns:

  • Gerund naming convention
  • Third-person description with "Use when..."
  • Progressive disclosure structure

4. Output

Display:

  • Created file structure
  • Next steps for customization
  • Installation command for testing:
bash
claude plugin add <path-to-plugin>