Skip to content
Skill

Spec lint

Lints spec docs for orphan files, broken links and missing design-to-requirement coverage

Spec lint is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
shell
Platforms
Claude Code, Codex, Cursor
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About Spec lint

Spec lint audits the markdown specification files a project produces during spec-driven development, such as requirements, design, plan and task documents. It detects which framework is in use among Kiro, Superpowers, OpenSpec, GitHub spec-kit, BMad Method, GSD, or falls back to a generic profile, then applies that profile's rules.

The workflow seeds a local convention reference into the spec tree so the rules can be customized, inventories every file, checks the root index or registry, and runs a fixed set of checks covering naming, dead links, orphan files, empty sections, TODO markers, frontmatter, registry drift, and whether each design covers its requirements and each plan covers its design. Results are written to a dated report, and fixes such as scaffolding an index are only applied after the user approves them. Renames, deletions and filling sections always require explicit confirmation.

The skill is written in Markdown instructions and uses bash for its scripts. It works on local project files, so the agent needs read access to the repository and permission to write a report under the spec tree's meta folder.

When your agent uses it

Lint the project's specification docs (requirements / design / plan / task markdown): orphan specs, dead cross-doc links, index and naming drift, empty sections, stale TODOs, and — most importantly — reverse consistency between layers (design must cover its requirements, plans must cover their design). Auto-detects which spec-driven framework is in use — Kiro IDE, Superpowers, OpenSpec, GitHub spec-kit, BMad Method, GSD, or a generic default profile — and applies that profile's rules. Use when the user asks to lint, audit, or health-check spec docs ("/spec-lint", "check the specs", "spec health check"), asks whether design covers requirements or plans match the design, reports orphan specs or broken spec links, or names a supported framework in a context that implies auditing its spec artefacts.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 16 files (69 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the ai-sdlc-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add kevinlin/skills
/plugin install ai-sdlc-skills@ai-sdlc

Or copy only this skill to ~/.claude/skills/spec-lint:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kevinlin/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/spec-lint &&
cp -R "$tmp/spec-lint" ~/.claude/skills/spec-lint &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/spec-lint inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/spec-lint to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kevinlin/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/spec-lint &&
cp -R "$tmp/spec-lint" ~/.agents/skills/spec-lint &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/spec-lint inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/spec-lint to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kevinlin/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/spec-lint &&
cp -R "$tmp/spec-lint" ~/.cursor/skills/spec-lint &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/spec-lint inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/kevinlin/skills.git --path spec-lint

Or copy the folder to ~/.gemini/skills/spec-lint yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/spec-lint:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kevinlin/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/spec-lint &&
cp -R "$tmp/spec-lint" ~/.copilot/skills/spec-lint &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/spec-lint inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/kevinlin/skills.git

Then copy skills/spec-lint into your agent's skills folder as spec-lint. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Framework auto-detection
Identifies which spec-driven toolkit a project uses from its folder signals, or applies a locked profile set in a local config.
Dead link and anchor checks
Resolves cross-document links and heading anchors and flags targets that do not exist.
Orphan and naming audit
Finds spec files with no inbound references and flags generic or non-canonical file names.
Requirement coverage tracing
Checks that design documents address each requirement item and that plans cover their design sections.
Registry drift detection
Compares roadmap, status and index files against the files actually on disk in both directions.
Dated lint report
Writes a summary of errors, warnings and info findings to a dated markdown report.

Good for

  • Check whether the design document covers every requirement in the spec folder
  • Find orphan spec files and broken links across the project's docs
  • Run a spec health check before starting a new feature
  • Confirm that the task plan matches the agreed design
  • Audit a Kiro or OpenSpec spec tree for missing required files

Spec lint FAQ

How does the skill decide which framework's rules to apply?

It checks for an explicit pointer in the README or CLAUDE.md first, then probes for profile signals such as the .kiro/specs folder or the openspec folder. A local convention file can also lock the profile.

Does Spec lint change my spec files?

Spec content is read-only. It writes a convention reference and a dated lint report under the meta folder. Other changes such as scaffolding an index or renaming files require approval, and deletion is never performed.

Does Spec lint check the code in the project?

No. The scope is limited to spec markdown structure. Code validation such as typechecking or running tests is out of scope.

How do I install Spec lint in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/spec-lint to use it in all your projects, or to .claude/skills/spec-lint in one project. Or install the ai-sdlc-skills plugin, which includes it: /plugin marketplace add kevinlin/skills, then /plugin install ai-sdlc-skills@ai-sdlc.

Does Spec lint run scripts?

Yes. It runs shell scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Spec lint?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Spec lint?

The closest alternatives to Spec lint are Spec compact, Spec scout, Analyze, Spec coding and Testing.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from kevinlin/skills

  1. Builds a cross-tool report on how you use your local AI coding agent sessions

    • Open source
    • 5 GitHub stars
    • Developer tools
  2. Gives your agent a senior-engineer checklist for reviewing diffs, PRs and branches

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Removes AI-writing tells from any text and rewrites it to fit its genre

    • Open source
    • 5 GitHub stars
    • Writing style
  4. Produces structured HTML gap analysis reports and a master gap register for bids

    • Open source
    • 5 GitHub stars
    • Productivity
  5. Generates styled HTML/CSS architecture and pipeline diagrams that embed directly

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Turns meeting recordings and notes into speaker-attributed transcripts and verified recaps

    • Open source
    • 5 GitHub stars
    • Productivity