skill-lint
Skill4 starsChanged 4 months agoMITView on GitHub
Audit skill/prompt files for structural issues and JSON schema format coherence issues. Requires --agent parameter to select LLM backend (codex, gemini, copilot, claude, cursor, kimi) for semantic analysis.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- broneq/bdktheir own version, first seen Sep 25, 2026
- turntuptechnologies-ai/skillstheir own version, first seen Aug 6, 2026
- tizee/skillstheir own version, first seen Mar 12, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- tizee/skills★ 2same name
- turntuptechnologies-ai/skills★ 1same name
- broneq/bdk★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 16 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
If --agent is omitted, announce: "Error: --agent is required.
- Very specific: line 28
If directory: Use Glob to find SKILL.md, *.md, and other prompt definition files.
- Distinctive: line 29
If file: Read the single file directly.
- Distinctive: line 30
Use Explore subagents to gather context needed for linting — read referenced files, check if cross-referenced tools/skills exist, …
- Distinctive: line 36
Use Grep, Glob, and regex directly (no subagents) to verify mechanically checkable properties.
- Very specific: line 43
No unknown frontmatter fields beyond name and description
- Distinctive: line 49
Every step referenced elsewhere in the document (e.g., "see Step 3") actually exists
- Distinctive: line 50
No orphan sub-steps (e.g., Step 2.1 without a Step 2 header)
- Distinctive: line 56
No obvious typos in tool/skill references
- Very specific: line 90
Read the prompt template file from prompts/.
- Distinctive: line 92
Write the composed prompt to a temporary file.
- Distinctive: line 107
After all 5 complete, parse each result's stdout as a JSON array.
- Distinctive: line 154
If no issues are found for a category, omit that category from the report.
- Distinctive: line 158
Use this default severity table:
- Distinctive: line 175
Read the actual files. Do NOT work from memory or assumptions.
- Distinctive: line 176
Check EVERY field in EVERY schema.
- Distinctive: line 178
If no issues are found for a category, omit that category from the report.
- Distinctive: line 179
If no issues are found at all, say so explicitly.
- Distinctive: line 180
Do NOT suggest fixes that change the semantic meaning of a field.
- Distinctive: line 181
When in doubt about whether something is an issue, report it with Low severity rather than omitting.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill Lint
Overview
Audit skill/prompt files for structural issues, step continuity, cross-reference integrity, and JSON schema format coherence. Uses a two-phase approach: automated deterministic checks followed by LLM semantic analysis dispatched to the agent specified by --agent.
This is a rigid skill. Follow it exactly.
Usage: /skill-lint --agent <agent> <path>
--agent is required. One of: codex, gemini, copilot, claude, cursor, kimi.
If --agent is omitted, announce: "Error: --agent is required. Usage: /skill-lint --agent <codex|gemini|copilot|claude|cursor|kimi> <path>" and stop.
Announce at start: "I'm using the skill-lint skill to audit [path] with [agent] as the LLM backend."
The Process
Step 1: Accept and Resolve Input Path
The skill accepts a directory or file path as its argument.
- If directory: Use Glob to find
SKILL.md,*.md, and other prompt definition files. Identify the skill structure (frontmatter, steps, JSON blocks). - If file: Read the single file directly.
- Use Explore subagents to gather context needed for linting — read referenced files, check if cross-referenced tools/skills exist, understand the skill's domain.
You MUST read every file before linting it. Do NOT work from memory or assumptions.
Step 2: Phase 1 — Automated Deterministic Checks
Use Grep, Glob, and regex directly (no subagents) to verify mechanically checkable properties. These produce definitive pass/fail results.
Category A: Frontmatter Validation
namefield exists and is non-emptydescriptionfield exists and is non-emptynamematches the parent directory name (e.g.,skill-lint/SKILL.md→name: skill-lint)- No unknown frontmatter fields beyond
nameanddescription
Category B: Step Continuity
- Step numbers are sequential (no gaps: Step 1, Step 3 without Step 2)
- Sub-step numbers are sequential within their parent (1.1, 1.2, 1.3 — no gaps)
- Every step referenced elsewhere in the document (e.g., "see Step 3") actually exists
- No orphan sub-steps (e.g., Step 2.1 without a Step 2 header)
Category C: Cross-Reference Integrity
- Tool names referenced (e.g., "use the Read tool") match known Claude Code tools:
Read,Write,Edit,Bash,Grep,Glob,Agent,AskUserQuestion,WebSearch,WebFetch,EnterPlanMode,ExitPlanMode,TaskCreate,TaskUpdate,NotebookEdit,Skill,SendMessage,ToolSearch - Skill names referenced (e.g., "invoke
amplify:write-plan") follow validplugin:skillformat - No obvious typos in tool/skill references
Step 3: Phase 2 — LLM Semantic Checks
Dispatch semantic analysis to the agent specified by --agent. The checks are split into 5 groups, each with its own prompt template in the prompts/ directory adjacent to this SKILL.md.
Check Groups
| Group | Prompt Template | Categories |
| 1 | prompts/agent1-must-consistency.md | D: MUST/MUST NOT Consistency |
| 2 | prompts/agent2-numeric-ungrounded.md | E1: Numeric as String + E2: Ungrounded Fields |
| 3 | prompts/agent3-format-constraints.md | E3: Non-Interpretation Fields Without Format Constraints |
| 4 | prompts/agent4-field-names.md | E4: Inconsistent Field Names Across Schemas |
| 5 | prompts/agent5-enums-freetext.md | E5: Open-Ended Enums + E6: Structured Data as Free-Text |
Each agent MUST return findings as a JSON array with fields: category, field_path, current_text, issue, suggested_fix, severity.
When --agent claude
Launch 5 internal Claude Code subagents in a single message for maximum parallelism. Each subagent receives the full file content and the check instructions from the corresponding prompt template.
| Subagent | Prompt Template | Model | Rationale |
| 1 | agent1-must-consistency.md | Sonnet | Needs full-file reasoning to detect contradictions and redundancy across distant sections |
| 2 | agent2-numeric-ungrounded.md | Haiku | Pattern-matching with clear heuristics; high-volume, low-complexity |
| 3 | agent3-format-constraints.md | Sonnet | Requires understanding of verbatim-transfer semantics and domain context |
| 4 | agent4-field-names.md | Sonnet | Cross-schema semantic similarity analysis; needs nuanced judgment |
| 5 | agent5-enums-freetext.md | Haiku | Pattern-based detection with clear signals |
When --agent is an external agent
For each of the 5 check groups:
- Read the prompt template file from
prompts/. - Substitute
{FILE_CONTENT}with the actual content of the file being linted. - Write the composed prompt to a temporary file.
- Invoke the external agent via a background Bash call (
run_in_background: true, no timeout).
Launch all 5 background Bash calls in a single message for maximum parallelism. Wait for all 5 to complete (you will be notified automatically).
CLI invocation patterns:
| Agent | Command |
codex | codex exec -q "$(cat <prompt_file>)" |
gemini | gemini -p "$(cat <prompt_file>)" --sandbox |
copilot | gh copilot explain "$(cat <prompt_file>)" |
cursor | cursor agent "$(cat <prompt_file>)" --print |
kimi | kimi "$(cat <prompt_file>)" |
After all 5 complete, parse each result's stdout as a JSON array. If an agent wraps the JSON in markdown fences or prose, extract the JSON array from the output.
Category Reference
The full category definitions are in the prompt template files. For quick reference:
- D: MUST/MUST NOT Consistency — contradictory, vague, or redundant MUST rules
- E1: Numeric as String (High) — numeric placeholders wrapped in quotes
- E2: Ungrounded Fields (Medium) — generic placeholders without source attribution
- E3: Missing Format Constraints (Medium) — verbatim-transfer fields lacking format specs
- E4: Inconsistent Field Names (High) — same concept, different names across schemas
- E5: Open-Ended Enums (Low) — unclosed enumeration lists
- E6: Structured Data as Free-Text (High) — multiple sub-values crammed into one string field
Step 4: Compile Report
Merge Phase 1 and Phase 2 results into a single report using this exact format:
## Skill Lint Report: [path]
**Files analyzed:** [count]
**Issues found:** [count] ([N] automated, [M] semantic)
**LLM backend:** [agent name]
### Phase 1: Automated Checks
| # | Category | File | Location | Status | Detail |
|---|----------|------|----------|--------|--------|
| 1 | Frontmatter | SKILL.md | line 1-3 | FAIL | Missing `name` field |
### Phase 2: Semantic Checks
| # | Category | File | Field/Location | Severity | Detail |
|---|----------|------|----------------|----------|--------|
| 1 | E1: Numeric as String | SKILL.md | .count | High | ... |
### Finding Details
**Finding [N]: [Category]**
- **File:** [path]
- **Location:** [line range or field path]
- **Current text:** [exact current value]
- **Issue:** [one-line explanation]
- **Suggested fix:** [concrete replacement]If no issues are found for a category, omit that category from the report. If no issues are found at all, say so explicitly.
Step 5: Severity Classification
Use this default severity table:
| Category | Default Severity | Rationale |
| A: Frontmatter Validation | High | Plugin discovery fails without correct frontmatter |
| B: Step Continuity | Medium | Confuses the agent following the skill |
| C: Cross-Reference Integrity | High | Agent attempts to use non-existent tools/skills |
| D: MUST/MUST NOT Consistency | Medium | Contradictory rules cause unpredictable behavior |
| E1: Numeric Quoted as String | High | Causes type errors in downstream consumers |
| E2: Ungrounded Fields | Medium | Causes hallucinated values |
| E3: Missing Format Constraints | Medium | Causes format drift across runs |
| E4: Inconsistent Field Names | High | Causes integration failures |
| E5: Open-Ended Enums | Low | Causes unpredictable but non-breaking values |
| E6: Structured Data as Free-Text | High | Causes parsing failures downstream |
Remember
- Read the actual files. Do NOT work from memory or assumptions.
- Check EVERY field in EVERY schema. Do NOT sample.
- Report exact field paths using dot notation.
- If no issues are found for a category, omit that category from the report.
- If no issues are found at all, say so explicitly.
- Do NOT suggest fixes that change the semantic meaning of a field.
- When in doubt about whether something is an issue, report it with Low severity rather than omitting.
- Phase 1 checks are definitive (pass/fail). Phase 2 checks are advisory (may need human judgment).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

