skill-test
Skill này làm gì
Skill này kiểm tra tệp skill của agent về cấu trúc và hành vi đúng. Skill dành cho người viết hoặc bảo trì skill muốn phát hiện vấn đề trước khi người khác dùng.
Khi nào nên dùng
- ✓Khi ai đó vừa viết một skill mới và muốn kiểm tra cấu trúc trước khi chia sẻ.
- ✓Khi nhóm muốn một báo cáo độ phủ cho thấy skill nào có kiểm thử và lần chạy gần nhất là khi nào.
- ✓Khi một skill cần kiểm tra hành vi theo một đặc tả kiểm thử đã viết.
Liên kết skill
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/skill-test/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 mọi tệp skill của tôi về các vấn đề cấu trúc và cho tôi biết skill nào không đạt.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill có bốn chế độ: linter tĩnh, kiểm tra đặc tả hành vi, rubric theo danh mục và báo cáo kiểm toán. Mỗi chế độ đọc các tệp skill và báo cáo những gì tìm thấy.
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.
!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation
Automation mode: Resolve modes.automation (project.local.yaml →
project.yaml → default collaborative). Every AskUserQuestion call and
every file write follows .claude/docs/automation-modes.md
(collaborative asks always · guided major-only · autonomous logs and proceeds;
automation_always_ask categories always prompt).
Skill Test
Validates skills (.claude/skills/*/SKILL.md) and agents (.claude/agents/*.md)
for structural compliance and behavioral correctness. No external dependencies —
runs entirely within the existing skill/hook/template architecture.
Four modes:
| Mode | Command | Purpose | Token Cost |
|---|---|---|---|
static |
/skill-test static [name|all] |
Structural linter — 7 compliance checks per skill, plus agent, delegation and compatibility observations | Low (~1k/skill) |
spec |
/skill-test spec [name] |
Behavioral verifier — evaluates assertions in a skill's or agent's test spec | Medium (~5k each) |
category |
/skill-test category [name|all] |
Category rubric — checks a skill or agent against its category-specific metrics | Low (~2k each) |
audit |
/skill-test audit |
Coverage report — skills, agent specs, last test dates | Low (~3k total) |
What a pass proves. Every mode reads files; none runs the skill. static:
the file has the structure a skill needs, not that it behaves. spec: read
closely, the instructions cover each case, not that Claude follows them when it
runs. category: the skill meets its category's rubric as written. audit:
which skills and agents have specs, and when each was last checked. What a skill
does shows only when it runs: a real request in a throwaway copy of the project,
on each model you use, with and without the skill (Anthropic's Agent Skills best
practices, "Build evaluations first").
Phase 1: Parse Arguments
Determine mode from the first argument:
static [name]→ run 7 structural checks on one skill, or the agent observations on one agentstatic all→ run 7 structural checks on all skills (Glob.claude/skills/*/SKILL.md), plus the observations for every agentspec [name]→ read the skill or agent + its test spec, evaluate assertionscategory [name]→ run category-specific rubric fromstudio-tests/quality-rubric.mdcategory all→ run category rubric for every skill and every agent that has acategory:in catalogaudit(or no argument) → read catalog, list all skills and agents, show coverage
If the argument is unrecognized, output usage and stop.
The old spec folder. Glob CCGS Skill Testing Framework/catalog.yaml. When
it exists, say so first: "CCGS Skill Testing Framework/ was renamed
studio-tests/ in 1.2.0, and this skill reads only studio-tests/. Move any
specs you wrote there; UPGRADING.md (v1.1.3 → v1.2.0, studio-tests/) says how."
Then go on with studio-tests/.
Resolve the name before spec or category. Look it up in
studio-tests/catalog.yaml: an entry under skills: is a skill
(.claude/skills/[name]/SKILL.md); an entry under agents: is an agent
(.claude/agents/[name].md). With no catalog entry, use whichever of those two
files exists. Only when neither exists, report "'[name]' is neither a skill in
.claude/skills/ nor an agent in .claude/agents/." and stop. A name that is
also an ordinary word is still a name: /skill-test spec help tests the /help
skill, never a request for this skill's usage.
The 7 checks lint SKILL.md structure, so they are skills-only. Given an agent
name, static runs only the observations below: an agent file has no
phases or verdict keywords to lint. Never report the agent as missing.
Phase 2A: Static Mode — Structural Linter
For each skill being tested, read its SKILL.md and every file in its references/ folder
fully, and run all 7 checks on them as one skill — the longest skills keep each
phase in references/. The frontmatter checks (1, 6 and 7) read SKILL.md.
Check 1 — Required Frontmatter Fields
The file must contain all of these in the YAML frontmatter block:
name:description:argument-hint:user-invocable:allowed-tools:
FAIL if any are absent. A file whose frontmatter does not parse fails Check 1 too — malformed YAML is a structural defect this check exists to catch, not an unassessable file; see the per-skill result rule b
Câu hỏi thường gặp
Một lần đạt có chứng minh skill hoạt động không?
Không. Skill chỉ đọc tệp và kiểm tra cấu trúc, nên đạt không có nghĩa là hành vi đúng.
Chế độ nhẹ nhất là gì?
Linter tĩnh là chế độ nhẹ nhất, phù hợp để kiểm tra nhanh nhiều skill.
Kiểm toán cho thấy gì?
Nó cho thấy độ phủ của skill và agent, cùng ngày của lần kiểm thử gần nhất.
Chi tiết
Mô tả gốc của tác giả
Validate skill files for structural compliance and behavioral correctness. Four modes: static linter, spec, category rubric, audit.
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #8483
- Giấy phép
- MIT
- Cập nhật
- 18/10/2026
Bình luận
- …
Thêm skill từ kho mã này
adopt
33kKiểm tra xem tài liệu của một dự án game hiện có có tuân theo định dạng của mẫu studio hay không, rồi viết một kế hoạch di chuyển có đánh số để sửa các khoảng trống.
architecture-decision
33kViết một bản ghi quyết định kiến trúc cho một lựa chọn kỹ thuật, gồm bối cảnh, các phương án thay thế và hệ quả, với xem xét từ các vai trò kỹ thuật phù hợp.
architecture-review
33kKiểm tra các quyết định kỹ thuật của bạn có bao phủ mọi yêu cầu thiết kế, không mâu thuẫn và phù hợp với phiên bản động cơ, với kết luận đạt hoặc có mối lo ngại rõ ràng.
art-bible
33kViết một art bible xác định bản sắc thị giác của game, để việc sản xuất tài nguyên tuân theo một bộ quy tắc phong cách rõ ràng.
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.