
AI spec coverage mapper
Maps existing tests to spec requirements and names the uncovered ones
AI spec coverage mapper 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
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 18
- Last commit
- License
- MIT
- Listing updated
Similar skills
About AI spec coverage mapper
This skill takes a spec document and an existing test suite and works out which spec sections, identified by their AC IDs, each test covers. The mapping is semantic rather than line-based, so it can flag a test that exercises a requirement but asserts different wording than the spec, as well as requirements with no test at all. The output is a coverage matrix per ID with a tier for full, partial or no coverage, plus a list of gaps to act on.
The workflow is to point the mapper at the spec file and test file globs, set the pattern used to extract AC IDs, and run an LLM over the spec and tests together. The guidance recommends scheduling it regularly, comparing runs to track coverage trends, and spot-checking the model's full-coverage claims before relying on them. The skill does not generate new tests; it leaves authoring tests for gaps to a separate generator skill.
It expects a spec written with clearly numbered acceptance criteria and a test suite with descriptive test names. The worked example uses a Python script calling an OpenAI chat model, with YAML-style inputs for spec path and test globs.
When your agent uses it
Use when a spec and a test suite both exist but nobody can say which requirements are covered, before a release sign-off, an audit or planning test effort. Uses an LLM to map existing tests to spec sections, outputs a coverage matrix per spec ID and names the gaps. It does not write new tests.
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 3 files (9 KB) on GitHub on 5 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 qa-ai-assisted plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add testland/qa
/plugin install qa-ai-assisted@testland-qaOr copy only this skill to ~/.claude/skills/ai-spec-coverage-mapper:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ai-spec-coverage-mapper &&
cp -R "$tmp/plugins/qa-ai-assisted/skills/ai-spec-coverage-mapper" ~/.claude/skills/ai-spec-coverage-mapper &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/ai-spec-coverage-mapper inside it instead.
Copy the skill folder to ~/.agents/skills/ai-spec-coverage-mapper to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ai-spec-coverage-mapper &&
cp -R "$tmp/plugins/qa-ai-assisted/skills/ai-spec-coverage-mapper" ~/.agents/skills/ai-spec-coverage-mapper &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/ai-spec-coverage-mapper inside it instead.
Copy the skill folder to ~/.cursor/skills/ai-spec-coverage-mapper to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ai-spec-coverage-mapper &&
cp -R "$tmp/plugins/qa-ai-assisted/skills/ai-spec-coverage-mapper" ~/.cursor/skills/ai-spec-coverage-mapper &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/ai-spec-coverage-mapper inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/testland/qa.git --path plugins/qa-ai-assisted/skills/ai-spec-coverage-mapperOr copy the folder to ~/.gemini/skills/ai-spec-coverage-mapper yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/ai-spec-coverage-mapper:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/testland/qa.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ai-spec-coverage-mapper &&
cp -R "$tmp/plugins/qa-ai-assisted/skills/ai-spec-coverage-mapper" ~/.copilot/skills/ai-spec-coverage-mapper &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/ai-spec-coverage-mapper inside it instead.
Get the folder:
git clone --depth 1 https://github.com/testland/qa.gitThen copy qa/plugins/qa-ai-assisted/skills/ai-spec-coverage-mapper into your agent's skills folder as ai-spec-coverage-mapper. Agents that support SKILL.md read one folder per skill.
What it does
- Semantic test-to-spec mapping
- Matches each acceptance criterion to the existing tests that exercise it, based on meaning rather than code lines.
- Per-ID coverage matrix
- Lists each spec ID with a full, partial or none tier and the covering test names.
- Gap identification
- Flags partially covered and uncovered requirements, including wording drift between spec and assertions.
- Action item generation
- Turns each partial or uncovered row into a concrete follow-up item for the team.
- Coverage trend tracking
- Compares runs over time to show changes in the number of criteria and the share fully covered.
- Verification guidance
- Advises spot-checking the model's full-coverage claims and scheduling repeated runs.
Good for
- Check which checkout requirements are covered before a release sign-off
- Find spec acceptance criteria that have no matching test
- Prepare spec-to-test traceability evidence for an audit
- Spot tests that assert old wording after an acceptance criterion changed
- Plan the next test effort by listing the uncovered requirements
AI spec coverage mapper FAQ
Does AI spec coverage mapper write new tests?
No. It maps tests that already exist and names the gaps. Writing tests for those gaps is handled by the separate ai-test-generator skill.
What inputs does AI spec coverage mapper need?
A spec document, globs matching the test files, and a pattern for extracting AC IDs from the spec.
Is the mapping always accurate?
No. The LLM reads code without running it, so a test that throws at runtime may still be marked covered. The guidance recommends verifying high-priority claims.
Which tools does the worked example use?
The example is a Python script calling an OpenAI chat model, with the spec and test files supplied as input text.
How do I install AI spec coverage mapper in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/ai-spec-coverage-mapper to use it in all your projects, or to .claude/skills/ai-spec-coverage-mapper in one project. Or install the qa-ai-assisted plugin, which includes it: /plugin marketplace add testland/qa, then /plugin install qa-ai-assisted@testland-qa.
Does AI spec coverage mapper run scripts?
No. It is instructions only, with no 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 AI spec coverage mapper?
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 AI spec coverage mapper?
The closest alternatives to AI spec coverage mapper are Spec, Spec conformance check, Spec driven development, Test coverage analysis and Mt spec.
Where this comes from
- Description: from the skill's own SKILL.md.
More from testland/qa

Builds a CI ratchet that fails PRs only on new accessibility violations
- Open source
- 18 GitHub stars
- Developer tools

Guides an agent through W3C ARIA Authoring Practices patterns for custom widgets
- Open source
- 18 GitHub stars
- Developer tools

Adds automated axe-core accessibility scans to Playwright, Cypress and CI pipelines
- Open source
- 18 GitHub stars
- Developer tools

Builds manual screen-reader test scripts and signed sign-off reports for a feature
- Open source
- 18 GitHub stars
- Developer tools

Checks color pairs and design tokens against WCAG contrast ratios for text and UI
- Open source
- 18 GitHub stars
- Design and media

Aggregates multi-page accessibility scans into a WCAG 2.2 conformance report
- Open source
- 18 GitHub stars
- Documentation review





