| name | skill-validator |
|---|---|
| description | Strict validator for auditing skills against the agentskills.io specification (directory structure, YAML, progressive disclosure, and best practices). |
This skill provides the logic required to audit and enforce compliance for ANY agent skill within the serenity-android project according to agentskills.io standards.
As a strict validator, I assume every skill is in violation until proven otherwise. I perform an exhaustive scan via the following protocols:
- Mandatory:
name: 1-64 chars, lowercase alphanumeric + hyphens only. No consecutive hyphens, no start/end hyphens. MUST match parent folder name.description: 1-1024 chars, non-empty.
- Optional:
license: Short description or reference to file (e.g.,LICENSE.txt).compatibility: 1-500 chars (if present).metadata: Arbitrary key-value map (string:string).allowed-tools: Space-delimited list of pre-approved tools (experimental).
- Token Limit: Metadata MUST be < 100 tokens.
- Mandatory:
SKILL.mdpresent. - Assets/References:
assets/MUST ONLY contain operational files (templates, resources).references/MUST contain structured markdown or readable text.
- Reference Management:
- All file references inside
SKILL.mdMUST use relative paths (e.g.,./references/doc.md). - Constraint: No parent traversal (
../). Chain depth MUST be 1 level. - Audit: Identify absolute paths or invalid relative links as violations.
- All file references inside
- Size:
SKILL.mdMUST be < 500 lines. - Heuristic for References:
- Flag long code blocks (> 50 lines), large tables, or deep technical manuals.
- Suggestion: Propose moving flagged content to
references/to preserve context economy.
- Token Limit: Instructions (body) MUST be < 5000 tokens.
Upon completion, I generate an HTML report with a table of results that includes both compliance findings (violations) and structural strengths (best practices/adherence):
<html>
<body>
<h1>Audit Report</h1>
<table border="1">
<tr><th>Skill</th><th>Violations</th><th>Strengths/Best Practices</th><th>Remediation Steps</th></tr>
{{#results}}
<tr><td>{{skill_name}}</td><td>{{violations}}</td><td>{{strengths}}</td><td>{{steps}}</td></tr>
{{/results}}
</table>
</body>
</html>- Exhaustive Scan: The agent reads the target
SKILL.md,references/, andassets/. - Strict Reporting: The agent generates the HTML report above and writes it to
${PROJECT_ROOT}/skill_audit.html. - Compliance Level: Strict (Pass/Fail).
- For details, see
https://agentskills.io/specification. - Variable Resolution Policy:
${PROJECT_ROOT}refers to the absolute path of the project root. Defaults to current working directory if not set.
Put this skill in a skill-validator directory, and the skill itself in a SKILL.md file. Use it to do some high level validation that your skill conforms to the specification as defined at agentskills.io