# Spec lint

> Spec lint is an open-source agent skill for developer tools. Lints spec docs for orphan files, broken links and missing design-to-requirement coverage. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/kevinlin/skills/tree/main/spec-lint
- **Repository:** https://github.com/kevinlin/skills
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** spec-lint
- **Collection:** https://github.com/kevinlin/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell scripts](https://github.com/kevinlin/skills/tree/HEAD/spec-lint)
- [No network calls found in its scripts](https://github.com/kevinlin/skills/tree/HEAD/spec-lint)
- [License: MIT](https://github.com/kevinlin/skills/tree/HEAD/spec-lint)

## Features

- **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

## Install

### Claude Code

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):

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Spec compact](https://ai-powered.com/skills/spec-compact): Spec compact is an open-source agent skill for developer tools.
- [Spec scout](https://ai-powered.com/skills/spec-scout): Spec scout is an open-source agent skill for developer tools.
- [Analyze](https://ai-powered.com/skills/analyze-ramboz): Analyze is an open-source agent skill for developer tools.
- [Spec coding](https://ai-powered.com/skills/spec-coding): Spec coding is an open-source agent skill for developer tools.
- [Testing](https://ai-powered.com/skills/testing-xiaolai-2): Testing is an open-source agent skill for developer tools.
- [Create specification](https://ai-powered.com/skills/create-specification): Create specification is an open-source agent skill for developer tools.
- [Spec](https://ai-powered.com/skills/spec-jasgujral): Spec is an open-source agent skill for developer tools.
- [Mt spec](https://ai-powered.com/skills/mt-spec): Mt spec is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/spec-lint
