Chuyển đến nội dung
Skillpedia
Kiểm thử81k · #1680

validate-plugin

Skill này làm gì

Skill này kiểm tra thư mục, file plugin và các file skill của plugin theo định dạng Claude Code. Skill dành cho lập trình viên muốn phát hiện lỗi trước khi chia sẻ plugin.

Khi nào nên dùng

  • ✓Khi bạn vừa tạo hoặc thay đổi một plugin.
  • ✓Khi một plugin sắp được xuất bản và cần kiểm tra lần cuối.
  • ✓Khi Claude Code từ chối một plugin và bạn cần tìm nguyên nhân.

Liên kết skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-plugin-creator/skills/validate-plugin/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-plugin-creator/skills/validate-plugin/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy kiểm tra thư mục plugin của tôi xem có lỗi cấu trúc hoặc định dạng nào trước khi tôi xuất bản không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill chạy một loạt kiểm tra về bố cục thư mục, các trường trong file plugin, phần đầu của file skill và agent, và các tham chiếu công cụ. Skill báo cáo từng lỗi tìm được để bạn sửa.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

  1. Directory structure — .claude-plugin/plugin.json exists at plugin root
  2. plugin.json schema — required fields present (name, description, version, non-empty keywords array); name equals the directory name; version is semver
  3. Skills auto-discovery — every skills/<name>/SKILL.md is a valid skill (Claude Code auto-discovers from directory; plugin.json MUST NOT list a skills array)
  4. Commands auto-discovery — every commands/<name>.md is a valid command (auto-discovered; no commands array in plugin.json)
  5. Agents auto-discovery — every agents/<name>.md is a valid agent (auto-discovered; no agents array in plugin.json)
  6. No legacy arrays in plugin.json — presence of skills, commands, or agents arrays in plugin.json is a validation error (they cause Claude Code to reject the plugin)
  7. SKILL.md frontmatter — each skill has name, description, and allowed-tools (no wildcards)
  8. Agent frontmatter — each agent has name, description, and model
  9. No files in wrong locations — skills/commands/agents not inside .claude-plugin/
  10. MCP tool references — tools in allowed-tools use the mcp__plugin_ruflo-core_ruflo__* prefix AND exist: list the real tools with npx @claude-flow/cli@latest mcp tools and flag any name not in it (typos such as hooks_post_task for hooks_post-task, or agentdb_pattern_search for agentdb_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

  1. Read the plugin's plugin.json and assert no skills / commands / agents arrays present
  2. Glob skills/*/SKILL.md, commands/*.md, agents/*.md and validate each frontmatter
  3. For each SKILL.md, verify frontmatter has required fields and allowed-tools has no wildcards
  4. For each agent .md, verify frontmatter has required fields
  5. Report pass/fail for each check with actionable fix suggestions
Câu hỏi thường gặp

Nguyên nhân phổ biến khiến plugin bị từ chối là gì?

Một file plugin liệt kê skill, lệnh hoặc agent dưới dạng mảng. Nguồn nói điều này khiến Claude Code từ chối plugin.

Skill có tự sửa lỗi không?

Mô tả chỉ bao gồm việc kiểm tra và báo cáo, nên bạn quyết định cách sửa từng vấn đề.

Skill kiểm tra gì trong mỗi file skill?

Các trường name, description và allowed tools, và không dùng tên công cụ có ký tự đại diện.

Chi tiết

Mô tả gốc của tác giả

Validate a Claude Code plugin structure, frontmatter, and MCP tool references

repo: ruvnet/ruflo

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1680
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự