帮助你高效创建、修改、测试与发布 Claude Code 插件的全流程技能
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "developing-claude-code-plugins" 技能: 1. 下载 https://raw.githubusercontent.com/obra/superpowers-developing-for-claude-code/main/skills/developing-claude-code-plugins/SKILL.md 2. 保存为 ~/.claude/skills/developing-claude-code-plugins/SKILL.md 3. 装好后重载技能,告诉我可以用了
请为 Claude Code 插件生成一个初始项目结构,包含目录设计、核心文件说明、配置示例,以及一个最小可运行的 hello world 插件。
得到清晰的插件脚手架、关键文件示例和可直接开始开发的基础代码。
我正在开发一个 Claude Code 插件,请帮我设计测试方案,覆盖单元测试、集成测试、常见失败场景,并给出示例测试用例。
得到完整测试清单、测试用例建议,以及提升插件稳定性的质量保障思路。
请为 Claude Code 插件制定发布与维护流程,包括版本管理、变更日志、发布检查清单、回滚方案和后续维护建议。
得到结构化的发布流程与维护规范,便于团队稳定交付和持续迭代。
This skill provides efficient workflows for creating Claude Code plugins. Use it to make plugin development fast and correct - it synthesizes official docs into actionable steps and provides working examples.
Use this skill when:
For comprehensive official documentation, use the working-with-claude-code skill to access full docs.
| Need to... | Read This | Official Docs |
|---|---|---|
| Understand directory structure | references/plugin-structure.md |
plugins.md| Choose a plugin pattern | references/common-patterns.md | plugins.md |
| Make hooks work cross-platform | references/polyglot-hooks.md | hooks.md |
| Debug plugin issues | references/troubleshooting.md | Various |
| See working examples | examples/ directory | N/A |
Before writing code:
Define your plugin's purpose
Choose your pattern (read references/common-patterns.md)
Review examples
examples/simple-greeter-plugin/ - Minimal pluginexamples/full-featured-plugin/ - All components~/.claude/plugins/Create directories (see references/plugin-structure.md for details):
mkdir -p my-plugin/.claude-plugin
mkdir -p my-plugin/skills
# Add other component directories as needed
Write plugin.json (required):
{
"name": "my-plugin",
"version": "1.0.0",
"description": "What your plugin does",
"author": {"name": "Your Name"}
}
See references/plugin-structure.md for complete format.
Create development marketplace (for local testing):
Create .claude-plugin/marketplace.json:
{
"name": "my-dev",
"plugins": [{
"name": "my-plugin",
"source": "./"
}]
}
See references/plugin-structure.md for complete format.
Use TodoWrite to track component creation:
Example:
- Create skill: main-workflow
- Add command: /hello
- Configure hooks
- Write README
- Test installation
For each component type, see:
references/plugin-structure.mdreferences/common-patterns.mdexamples/ directoryInstall for testing:
/plugin marketplace add /path/to/my-plugin
/plugin install my-plugin@my-dev
Then restart Claude Code.
Test each component:
/your-commandIterate:
/plugin uninstall my-plugin@my-dev
# Make changes
/plugin install my-plugin@my-dev
# Restart Claude Code
If something doesn't work, read references/troubleshooting.md for:
Common issues are usually:
${CLAUDE_PLUGIN_ROOT})…
提供 Claude Code CLI、插件、MCP、配置与技能的官方使用指导
帮助 Claude Code 用户发现、安装并管理开源插件、技能与智能代理资源。