validate-plugin
它能做什么
这项技能根据 Claude Code 的格式检查插件的文件夹、插件文件和技能文件。适用于希望在分享插件前发现错误的开发者。
适用场景
- ✓当你刚刚创建或修改了一个插件的时候。
- ✓当插件即将发布,需要最后一次检查的时候。
- ✓当 Claude Code 拒绝了一个插件,而你需要找出原因的时候。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-plugin-creator/skills/validate-plugin/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在发布前检查我的插件文件夹,看看有没有结构或格式问题。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能会对文件夹结构、插件文件字段、技能和智能体的标头以及工具引用运行一系列检查。它会报告发现的每个问题,方便你修复。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Validate Plugin
Validate that a plugin follows the correct Claude Code plugin format.
When to use
After creating or modifying a plugin, run validation to catch structural issues before publishing.
Checks performed
- Directory structure —
.claude-plugin/plugin.jsonexists at plugin root - plugin.json schema — required fields present (name, description, version, non-empty keywords array);
nameequals the directory name; version is semver - Skills auto-discovery — every
skills/<name>/SKILL.mdis a valid skill (Claude Code auto-discovers from directory;plugin.jsonMUST NOT list askillsarray) - Commands auto-discovery — every
commands/<name>.mdis a valid command (auto-discovered; nocommandsarray inplugin.json) - Agents auto-discovery — every
agents/<name>.mdis a valid agent (auto-discovered; noagentsarray inplugin.json) - No legacy arrays in plugin.json — presence of
skills,commands, oragentsarrays inplugin.jsonis a validation error (they cause Claude Code to reject the plugin) - SKILL.md frontmatter — each skill has
name,description, andallowed-tools(no wildcards) - Agent frontmatter — each agent has
name,description, andmodel - No files in wrong locations — skills/commands/agents not inside
.claude-plugin/ - MCP tool references — tools in
allowed-toolsuse themcp__plugin_ruflo-core_ruflo__*prefix AND exist: list the real tools withnpx @claude-flow/cli@latest mcp toolsand flag any name not in it (typos such ashooks_post_taskforhooks_post-task, oragentdb_pattern_searchforagentdb_pattern-search, are format-valid but do not exist). Also run the repo gates when inside the ruflo repo:node scripts/audit-skill-frontmatter.mjs,audit-plugin-manifest.mjs,audit-plugin-mcp-prefix.mjs
Steps
- Read the plugin's
plugin.jsonand assert noskills/commands/agentsarrays present - Glob
skills/*/SKILL.md,commands/*.md,agents/*.mdand validate each frontmatter - For each SKILL.md, verify frontmatter has required fields and
allowed-toolshas no wildcards - For each agent .md, verify frontmatter has required fields
- Report pass/fail for each check with actionable fix suggestions
常见问题
拒绝插件的常见原因是什么?
插件文件以数组形式列出技能、命令或智能体。来源说明这会导致 Claude Code 拒绝该插件。
它会自动修复问题吗?
这项技能的描述涵盖检查和报告,因此由你决定如何修复每个问题。
它会检查每个技能文件的什么内容?
名称、描述和允许使用的工具字段,且不允许使用通配符工具名。
详情
作者的原始描述
Validate a Claude Code plugin structure, frontmatter, and MCP tool references
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1680
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。