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.
- License 许可
- Apache-2.0
- 最近更新
- 2026-05-28
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- agent-skill-kit-discoverability-linter
- tier
- app
- license
- Apache-2.0
- description
- 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.
- compatibility
- requires `skills-ref` CLI
03 SKILL.md 正文
Agent Skill Discoverability Linter
Wraps skills-ref lint. The first qualitative pass in the toolkit — beyond structural validation, it scores a description's likelihood of triggering the right agent activations.
When to use
- "Why doesn't my skill ever fire?"
- "Improve this description"
- "Score my SKILL.md descriptions"
- "Lint my skill against vendor-neutrality"
Sub-scores
| Sub-score | Weight | What it rewards |
|---|---|---|
| keyword density | 25 | Description tokens that also appear in the body (semantic overlap). |
| action verbs | 20 | First-token verb (12) + any-position verb (8) from action_verbs.txt. |
| trigger phrases | 20 | Presence of use when, when, if, or for. |
| specificity | 20 | Avoidance of vague phrases (helps with, general purpose, etc.). |
| length sweet spot | 15 | 60-300 chars; linear ramp on either side. |
The score is clamped to 100.
Issue codes emitted
L001_VENDOR_SPECIFIC_FIELD(warn) — top-level frontmatter key matches a vendor prefix (claude-,cursor-,devin-, etc.). Recommend moving undermetadata.L002_DESCRIPTION_QUALITY(warn) — a sub-score triggered a quality warning (vague phrases found, no action verb, no trigger phrase).W002_BROKEN_REFERENCE(warn) — same code the validator emits; the linter resolves all relative file references in the body and surfaces any that do not exist on disk.
Worked example
Before (score: 18/100):
description: A useful tool that helps with stuff related to skills.
After (score: 82/100):
description: Score a SKILL.md description for trigger quality, flag vague language, and warn on vendor-specific frontmatter. Use when the user asks to lint a skill, improve discoverability, or check why their skill never fires.
Invocation
skills-ref lint <skill-dir-or-tree> [--format json|human] [--explain] [--min-score N]
Common patterns:
# Single skill, full breakdown
skills-ref lint .agents/skills/my-skill --explain
# Tighten the bar for CI
skills-ref lint .agents/skills/ --min-score 60
# Machine-readable for the optimizer (Feature 06)
skills-ref lint .agents/skills/my-skill --format json
Exit codes
0— every scored skill scored at or above the threshold (default 40) and emitted no broken-reference warnings.1— at least one skill scored below the threshold, emittedW002_BROKEN_REFERENCE, or failed to parse.64— usage error.
JSON shape
The --format json output is consumable by the description optimizer (Feature 06):
{"breakdown":{"actionVerbs":20,"keywordDensity":25,"length":15,"specificity":20,"triggerPhrases":20},"issues":[],"path":"...","score":100}
Limits
- The scorer is deterministic — no LLM in the loop. For LLM-driven rewrites, the optimizer (Feature 06) consumes this output.
- Vague-phrase, action-verb, and stop-word lists live in the package's
assets/directory and are intentionally narrow. The lists are maintained on the mjs side and symlinked into the py side. - Vendor-neutrality is intentionally narrower than the auditor's unauthorized-field check. The auditor flags any unauthorized top-level field as MEDIUM; this linter flags only vendor-prefixed unauthorized fields as warnings and points at
metadata.
Reference
Full specification: see the canonical spec at ../../../agentskills.io.md.
04 同仓库更多 Skills
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.
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-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.