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.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
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
- 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
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
Bình luận
- …
Thêm skill từ kho mã này
agent-adaptive-coordinator
81kGiúp agent của bạn chia và cân bằng lại một nhóm agent AI khi khối lượng công việc thay đổi, chọn bố cục phù hợp với tác vụ.
agent-agent
81kDạy agent của bạn biến một mục tiêu lớn thành kế hoạch hành động có thứ tự, và lập lại kế hoạch khi điều kiện thay đổi.
agent-agentic-payments
81kGiúp agent của bạn quản lý ủy quyền chi tiêu cho mua sắm bằng AI, với hạn mức chi, khung thời gian, quy tắc người bán và phê duyệt có chữ ký.
agent-analyze-code-quality
81kGiúp agent của bạn rà soát chất lượng mã, tìm code smell, nợ kỹ thuật và gợi ý tái cấu trúc mà không thay đổi các file.
Skill tương tự
test-driven-development
311kDạy agent của bạn viết kiểm thử thất bại trước, xem nó thất bại, rồi viết đoạn mã ngắn nhất để vượt qua trước khi làm bất kỳ tính năng hay bản sửa nào.
verification-before-completion
311kDạy agent của bạn chạy kiểm tra thực tế và đọc kết quả đầu ra trước khi khẳng định một việc, bản sửa hoặc bản build đã hoàn thành hay vượt qua.
migrate-to-shoehorn
310kThay các ép kiểu rủi ro trong tệp kiểm thử bằng thư viện shoehorn, để các bài kiểm thử dùng dữ liệu một phần vẫn qua được kiểm tra kiểu.