.agents/skills/skill-validator/SKILL.md
Validate agent skills for correctness, readability, workflow clarity, and isolation, ensuring they can be installed independently without dependencies on other skills.
npx skillsauth add prulloac/git-blame-vsc skill-validatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when you need to validate an agent skill folder, checking its structure, content, and adherence to best practices. This includes verifying frontmatter, readability, workflow definitions, validation steps, cross-references, and isolation from other skills.
Read the skill folder structure: Ensure the folder contains a SKILL.md file. Check for optional subdirectories like scripts/, references/, assets/, but note that the skill must work in isolation without relying on other skills.
Validate frontmatter:
SKILL.md file must start with YAML frontmatter containing at least name (short identifier) and description (clear indication of when to use the skill).Check cross-references: Parse the markdown content for links and references. Ensure internal links (e.g., to headings) point to existing sections. For file references, verify they exist within the skill's directory.
Assess readability and conciseness:
Verify clear workflow definitions:
Check for validation steps:
Detect hallucinations:
Confirm isolation:
Detect duplicate content:
Estimate token cost (skill weight):
Security audit ⭐ NEW:
scripts/security_audit.py to automatically scan the skillSummarize and validate execution:
Check for user information presentation examples:
Validate security audit report (automated via scripts/security_audit.py):
🚨 Critical Issues:
name field): Fix by adding the missing field to the YAML frontmatter.⚠️ Warnings:
ℹ️ Info:
✅ No issues found. The skill is valid and ready for use.
| Pattern | Example | Action | |---------|---------|--------| | Repeated workflow steps | Step description appears in both SKILL.md and references/workflow.md | Consolidate; cross-reference | | Duplicate examples | Same code example shown in multiple sections | Keep in one place; reference from others | | Overlapping explanations | Same concept explained twice with different wording | Merge explanations; remove redundancy | | Repeated guidelines | Same best practices listed in two sections | Single source of truth; reference | | Tool descriptions | Same tool explained in multiple files | Define once; reference elsewhere |
Total Tokens = (SKILL.md words × 1.3) + (Reference files words × 1.3) +
(Code blocks words × 1.0) + (Formatting overhead 10%) + 50
| Weight | Token Range | Description | Agent Impact | |--------|-------------|-------------|--------------| | 🟢 Lightweight | < 2,000 | Simple, focused skill | Minimal context usage; fast loading | | 🟢 Small | 2,000-4,000 | Moderate skill with examples | Low context overhead; responsive | | 🟡 Medium | 4,000-8,000 | Comprehensive skill | Balanced context usage; standard | | 🟠 Large | 8,000-15,000 | Extensive skill with many examples | Significant context usage | | 🔴 Heavy | 15,000-25,000 | Very comprehensive skill | High context consumption | | 🔴 Overweight | > 25,000 | Too large; consider splitting | Problematic for context limits |
Example 1: Lightweight Skill (1,200 tokens)
Example 2: Medium Skill (6,500 tokens)
Example 3: Heavy Skill (18,000 tokens)
═══════════════════════════════════════════════════════════
SKILL VALIDATION REPORT
═══════════════════════════════════════════════════════════
Skill: custom-agent-creator
Validation Date: 2024-02-21
───────────────────────────────────────────────────────────
GENERAL INFORMATION
───────────────────────────────────────────────────────────
Status: ✅ VALID
Skill Weight: 🟡 Medium (6,800 tokens)
Files Analyzed: 4
- SKILL.md (3,200 tokens)
- references/copilot-agents.md (1,500 tokens)
- references/opencode-agents.md (1,400 tokens)
- assets/ (2 templates, 700 tokens)
───────────────────────────────────────────────────────────
VALIDATION RESULTS
───────────────────────────────────────────────────────────
✅ Frontmatter: Valid
✅ Cross-References: All valid (3 internal, 2 file refs)
✅ Readability: Clear and concise
✅ Workflow: Well-defined (6 steps)
✅ Validation Steps: Comprehensive (5 categories)
✅ No Hallucinations: All tools/libraries verified
✅ Isolation: Self-contained (no skill dependencies)
✅ User Examples: 4 concrete examples with output
⚠️ Duplicate Content: 1 minor (see below)
───────────────────────────────────────────────────────────
DUPLICATE CONTENT DETECTED
───────────────────────────────────────────────────────────
⚠️ WARNING: Overlapping tool descriptions found
Location 1: SKILL.md, line 47 (OpenCode tools section)
Location 2: references/opencode-agents.md, line 282 (tools config section)
Issue: "Tool permissions are boolean or ask/allow/deny"
described in both locations with 85% similarity
Recommendation: Keep in SKILL.md (main reference), add cross-link
in references file for clarity
───────────────────────────────────────────────────────────
WEIGHT ANALYSIS
───────────────────────────────────────────────────────────
Total Content: 6,800 tokens
Content Distribution:
- Instructions: 35% (2,380 tokens)
- Examples: 40% (2,720 tokens)
- References: 20% (1,360 tokens)
- Formatting: 5% (340 tokens)
Classification: 🟡 MEDIUM
Impact: Balanced context usage; suitable for most use cases
Recommendation: Current size is optimal. No splitting needed.
If future expansion needed, consider:
- Moving Copilot agent examples to separate skill
- Creating OpenCode-specific variant
- Extracting template examples to assets folder
───────────────────────────────────────────────────────────
ISSUES SUMMARY
───────────────────────────────────────────────────────────
🚨 Critical Issues: 0
⚠️ Warnings: 1 (duplicate content - minor)
ℹ️ Info: 0
───────────────────────────────────────────────────────────
CONCLUSION
───────────────────────────────────────────────────────────
Status: ✅ APPROVED FOR PRODUCTION
The skill is well-structured, comprehensive, and ready for use.
Recommend addressing the minor duplicate content warning in the
next maintenance cycle for optimization.
═══════════════════════════════════════════════════════════
The skill-validator now includes a built-in security audit module (scripts/security_audit.py) that checks for common security vulnerabilities. This module implements six comprehensive validation rules:
Rule 1: Untrusted Data Detection
Rule 2: Sanitization Requirement Verification
Rule 3: High-Privilege Operation Detection
Rule 4: Injection Risk Analysis
Rule 5: Error Handling Completeness
Rule 6: Secrets Protection
# Basic usage
python3 scripts/security_audit.py /path/to/SKILL.md
# Example output
════════════════════════════════════════════════════════════
SECURITY AUDIT REPORT
════════════════════════════════════════════════════════════
Skill: /path/to/SKILL.md
Status: ✅ PASSED
────────────────────────────────────────────────────────────
SUMMARY
────────────────────────────────────────────────────────────
🚨 Critical Issues: 0
⚠️ High Priority: 0
ℹ️ Medium Priority: 0
Total Issues: 0
✅ No security issues detected!
════════════════════════════════════════════════════════════
The security audit is automatically run as Step 11 of the validation process. Security issues are categorized by severity:
SKILL.md and associated files.scripts/security_audit.py for automated vulnerability scanning (NEW)tools
Guide for creating Visual Studio Code extensions/plugins. Use when users want to build VS Code extensions, add functionality to VS Code, create language support, add themes, build webviews, implement debuggers, or any VS Code plugin development task. Helps navigate VS Code Extension API documentation and provides guidance on extension capabilities, project setup, and best practices.
development
Validate agent system prompts (such as agents.md) for being objective-driven, clear, readable, free of duplicated intentions, without missing or broken links, and ensuring required sections like general agentic guidelines, code review, and code generation are present. Use when validating or reviewing agent prompt files.
tools
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
testing
Automate the creation and updating of a CHANGELOG.md file based on Semantic Versioning (SemVer) and "Keep a Changelog" principles. Use this skill when you need to summarize changes between the current HEAD and the latest git tag, or when initializing a new changelog for a project.