agent-skill-kit-validator
Validate one or many SKILL.md files against the agentskills.io specification — frontmatter, naming, body, optional-directory, and reference checks. Use when the user asks to validate a skill, audit skills, check SKILL.md, or run skills-ref against an existing skill or directory tree.
- License 许可
- Apache-2.0
- 最近更新
- 2026-05-28
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- agent-skill-kit-validator
- tier
- org
- license
- Apache-2.0
- description
- Validate one or many SKILL.md files against the agentskills.io specification — frontmatter, naming, body, optional-directory, and reference checks. Use when the user asks to validate a skill, audit skills, check SKILL.md, or run skills-ref against an existing skill or directory tree.
- compatibility
- requires `skills-ref` CLI from `.agents/skills/agent-skill-kit-commons/packages/mjs` or `.agents/skills/agent-skill-kit-commons/packages/py`; node>=20 or python>=3.11
03 SKILL.md 正文
Agent Skill Validator
Wraps the skills-ref validate CLI in three modes: single-skill, recursive scan, and CI (machine-readable JSON output). Use this skill when the user has a skill (or skill tree) and wants to know whether it conforms to the agentskills.io specification.
When to use
- User says: "validate this skill", "is my SKILL.md valid", "check the skills directory", "run the validator", "audit my skills".
- After authoring or editing any SKILL.md, before committing.
- In CI, on every PR touching
.agents/skills/**.
Modes
Mode A — single skill
skills-ref validate /absolute/path/to/skill-dir
Exit 0 = PASS. Exit 1 = errors present. Exit 2 = warnings only (use --strict to treat as failure).
Mode B — recursive scan
skills-ref validate /path/to/.agents/skills/
Walks every direct child directory looking for SKILL.md. Reports per-skill PASS/FAIL/WARN with a final aggregate.
Mode C — CI
skills-ref validate /path/ --format json --no-color > report.json
Stable JSON output suitable for machine parsing. Schema: {path, status, issues: [...], summary: {errors, warnings}}.
Flags
--tiers(alias--agents-skills-kit-tiers) — enforce thetierfrontmatter field. Off by default: without this flagtieris optional, so a skill with notier:PASSES and an invalid tier value is ignored (E006/E007 are suppressed). Pass it to require a present, valid tier.--extra-tiers <list>— accept additional tier values beyond the spec's four (e.g.,company,enterprise,applicationfor the creator's six-tier scheme). Only meaningful alongside--tiers.--strict— promote warnings to errors (exit 1 instead of 2).--format human|json— output format. Defaulthuman.--no-color— strip ANSI codes (auto-stripped when not a TTY).
Reference
The validator is implemented twice — .agents/skills/agent-skill-kit-commons/packages/mjs/ (Node ESM) and .agents/skills/agent-skill-kit-commons/packages/py/ (Python).
Both runtimes share the fixture suite under .agents/skills/agent-skill-kit-commons/fixtures/ and a cross-runtime parity harness
(make parity). Either CLI satisfies this skill — pick whichever toolchain is already
installed on the host.
04 同仓库更多 Skills
agent-skill-kit-security-auditor
Audit a skills tree for the four canonical security findings — unauthorized frontmatter fields, command-injection patterns in scripts, unvetted cross-repo dependency origins, and host-path leaks in body or scripts. Use when the user asks to audit, scan, security-check, or harden a skill or skills directory.
agent-skill-kit-prompt-emitter
Emit progressive-disclosure artifacts from a skills tree — an `<available_skills>` XML block for stage-1 agent startup, or canonical JSON of frontmatter properties for CI consumption. Use when the user asks to export skill metadata, build a prompt block, generate JSON for CI, or wire skills into an agent host.
agent-skill-kit-discoverability-linter
Score a SKILL.md description 0-100 for trigger quality, flag vague language, warn on vendor-specific frontmatter, and verify relative file references resolve. Use when the user asks to lint a skill, improve discoverability, score a description, or check why an agent never fires their skill.
agent-skill-kit-description-optimizer
Optimize a SKILL.md description for trigger quality — generate synthetic positive and negative queries, score the current description by hit-rate vs false-positive, and propose three ranked rewrites. Use when the user asks to auto-tune, improve, or rewrite a skill description, fix a skill that never fires, or measure description quality.
agent-skill-kit-dependency-resolver
Resolve and topologically sort skill dependencies, enforce the spec §3.3 inversion rule (project→app→team→org), warn on unpinned versions, and fail-closed on incompatible range conflicts. Use when the user asks to check skill dependencies, sort skills by build order, detect cycles, or audit skill version pinning.
agent-skill-kit-creator
Scaffold and validate agent skills against SKILL_SPEC.md (frontmatter, naming rules, structure). Use when the user asks to create a new agent skill, generate a SKILL.md file, scaffold a skill directory, or validate existing skills. Tier/scope (company, enterprise, org, team, project, application) is optional and off by default — engaged only when the user opts in with --tiers / --agents-skills-kit-tiers.