skill-lint

skill-lint

Lint agent SKILL.md files and MCP tool schemas to catch issues like missing descriptions, similar skills, unconstrained parameters, and destructive tools without confirmation gates.

Category
Visit Server

README

skill-lint

Lint agent SKILL.md files and MCP tool schemas.

Agent skills and MCP tools rarely fail loudly. They fail by never being chosen — a description that never says when to use it, two tools the model can't tell apart, a schema so verbose it costs you tokens on every single turn. skill-lint finds those, plus the ones that bite harder: a destructive tool with no confirmation gate, an unconstrained command parameter, a skill pointing at a file that isn't there.

Zero dependencies. Runs as a CLI or as an MCP server.

uv tool install skill-lint          # or: pipx install skill-lint

skill-lint ~/.claude/skills          # lint a skill library
skill-lint --mcp tools.json          # lint an MCP tools/list payload
skill-lint . --format github         # CI annotations

Example

$ skill-lint ~/.claude/skills

skills/report-writer/SKILL.md
  ▲ SL007 description never says WHEN to use the skill — Generates polished reports…
      → Add an explicit trigger clause: "Use when …", "Triggers on …". This is the
        single most common reason a working skill never gets invoked.
  ▲ SL011 references a missing file — templates/quarterly.md
      → The model will try to read this and fail.

197 checked · 1 error(s) · 129 warning(s) · 75 info

As an MCP server

// claude_desktop_config.json / .mcp.json
{
  "mcpServers": {
    "skill-lint": { "command": "skill-lint-mcp" }
  }
}

Exposes lint_skills and lint_mcp_tools. The server speaks the MCP stdio protocol directly — no SDK, so it starts in milliseconds and adds nothing to your dependency tree.

Rules

Skills

Code Severity What it catches
SL001 / SL002 error Missing name / description
SL003 warn name doesn't match its directory (breaks invocation)
SL004 warn Name isn't kebab-case, or is over 64 chars
SL005 / SL006 warn Description too short to route on / long enough to cost real tokens
SL007 warn Description never says when to use the skill
SL008 info Description written in first person
SL009 warn/error Skill body large enough to bloat every load
SL010 error Frontmatter with no body
SL011 warn Links to or runs a file that doesn't exist
SL012 error Two skills share a name — one silently shadows the other
SL013 error Frontmatter doesn't parse
SL014 info Unrecognised frontmatter keys (usually typos)
SL016 warn Two descriptions so similar the model can't choose between them

SL007 is the one that matters most. On a real 197-skill library it fired 116 times — most skills describe what they are and never say when to reach for them, so the router never picks them and the author assumes the skill is fine.

Trigger detection is English-first. Descriptions that don't look English are reported at info rather than warn, since the heuristic can't judge them.

MCP tools

Code Severity What it catches
MC001 error/warn Tool has no description, or one too short to route on
MC002 warn Parameter has no description
MC003 error Destructive tool with no confirmation gate
MC004 warn Unconstrained free-form command/path/query — injection surface
MC005 info Tool name isn't snake_case
MC006 warn Description long enough to matter, paid every request
MC007 warn Schema has no required list
MC008 info additionalProperties not false
MC009 error Duplicate tool name — one is unreachable
MC010 warn More than ~40 tools; selection accuracy drops
MC011 warn Whole tool list is expensive per request

MC003 matches the tool name and its opening sentence, not the whole description — a destructive verb in later context ("use before publishing") isn't what the tool does, and matching it turns the rule into noise.

Options

--mcp                   treat paths as MCP tool-schema JSON
--format text|json|github
--fail-on error|warn|info|never     minimum severity that exits non-zero
--select SL007,MC003    only these codes
--ignore SL014          suppress these codes

CI

- run: pipx install skill-lint
- run: skill-lint .claude/skills --format github --fail-on warn

Development

PYTHONPATH=src python3 -m unittest discover -s tests -v

The test suite includes a dogfood case: this server's own tool schema has to pass its own linter.

Licence

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured