agentleFS
WeZZardWeZZard/skill-kit/skills/skill-lint/SKILL.md

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

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. tizee/skills★ 2same name
    2. turntuptechnologies-ai/skills★ 1same name
    3. 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
  1. Very specific:

    If --agent is omitted, announce: "Error: --agent is required.

    line 18
  2. Very specific:

    If directory: Use Glob to find SKILL.md, *.md, and other prompt definition files.

    line 28
  3. Distinctive:

    If file: Read the single file directly.

    line 29
  4. Distinctive:

    Use Explore subagents to gather context needed for linting — read referenced files, check if cross-referenced tools/skills exist, …

    line 30
  5. Distinctive:

    Use Grep, Glob, and regex directly (no subagents) to verify mechanically checkable properties.

    line 36
  6. Very specific:

    No unknown frontmatter fields beyond name and description

    line 43
  7. Distinctive:

    Every step referenced elsewhere in the document (e.g., "see Step 3") actually exists

    line 49
  8. Distinctive:

    No orphan sub-steps (e.g., Step 2.1 without a Step 2 header)

    line 50
  9. Distinctive:

    No obvious typos in tool/skill references

    line 56
  10. Very specific:

    Read the prompt template file from prompts/.

    line 90
  11. Distinctive:

    Write the composed prompt to a temporary file.

    line 92
  12. Distinctive:

    After all 5 complete, parse each result's stdout as a JSON array.

    line 107
  13. Distinctive:

    If no issues are found for a category, omit that category from the report.

    line 154
  14. Distinctive:

    Use this default severity table:

    line 158
  15. Distinctive:

    Read the actual files. Do NOT work from memory or assumptions.

    line 175
  16. Distinctive:

    Check EVERY field in EVERY schema.

    line 176
  17. Distinctive:

    If no issues are found for a category, omit that category from the report.

    line 178
  18. Distinctive:

    If no issues are found at all, say so explicitly.

    line 179
  19. Distinctive:

    Do NOT suggest fixes that change the semantic meaning of a field.

    line 180
  20. Distinctive:

    When in doubt about whether something is an issue, report it with Low severity rather than omitting.

    line 181

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

  1. If directory: Use Glob to find SKILL.md, *.md, and other prompt definition files. Identify the skill structure (frontmatter, steps, JSON blocks).
  2. If file: Read the single file directly.
  3. 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

  • name field exists and is non-empty
  • description field exists and is non-empty
  • name matches the parent directory name (e.g., skill-lint/SKILL.md → name: skill-lint)
  • No unknown frontmatter fields beyond name and description

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 valid plugin:skill format
  • 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

GroupPrompt TemplateCategories
1prompts/agent1-must-consistency.mdD: MUST/MUST NOT Consistency
2prompts/agent2-numeric-ungrounded.mdE1: Numeric as String + E2: Ungrounded Fields
3prompts/agent3-format-constraints.mdE3: Non-Interpretation Fields Without Format Constraints
4prompts/agent4-field-names.mdE4: Inconsistent Field Names Across Schemas
5prompts/agent5-enums-freetext.mdE5: 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.

SubagentPrompt TemplateModelRationale
1agent1-must-consistency.mdSonnetNeeds full-file reasoning to detect contradictions and redundancy across distant sections
2agent2-numeric-ungrounded.mdHaikuPattern-matching with clear heuristics; high-volume, low-complexity
3agent3-format-constraints.mdSonnetRequires understanding of verbatim-transfer semantics and domain context
4agent4-field-names.mdSonnetCross-schema semantic similarity analysis; needs nuanced judgment
5agent5-enums-freetext.mdHaikuPattern-based detection with clear signals

When --agent is an external agent

For each of the 5 check groups:

  1. Read the prompt template file from prompts/.
  2. Substitute {FILE_CONTENT} with the actual content of the file being linted.
  3. Write the composed prompt to a temporary file.
  4. 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:

AgentCommand
codexcodex exec -q "$(cat <prompt_file>)"
geminigemini -p "$(cat <prompt_file>)" --sandbox
copilotgh copilot explain "$(cat <prompt_file>)"
cursorcursor agent "$(cat <prompt_file>)" --print
kimikimi "$(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:

CategoryDefault SeverityRationale
A: Frontmatter ValidationHighPlugin discovery fails without correct frontmatter
B: Step ContinuityMediumConfuses the agent following the skill
C: Cross-Reference IntegrityHighAgent attempts to use non-existent tools/skills
D: MUST/MUST NOT ConsistencyMediumContradictory rules cause unpredictable behavior
E1: Numeric Quoted as StringHighCauses type errors in downstream consumers
E2: Ungrounded FieldsMediumCauses hallucinated values
E3: Missing Format ConstraintsMediumCauses format drift across runs
E4: Inconsistent Field NamesHighCauses integration failures
E5: Open-Ended EnumsLowCauses unpredictable but non-breaking values
E6: Structured Data as Free-TextHighCauses 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).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.