Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Requirements to Tests Tracing

Maps which tests actually prove each requirement, so you can answer what your test suite really covers.

Claude's review

7/10 Real requirements-to-test traceability workflow with confidence labels and link verification.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Builds and maintains bidirectional traceability between requirements and the tests that verify them: extracts a matrix from an existing codebase, annotates tests with requirement IDs, finds orphan tests and uncovered requirements, verifies that each link is real, and enforces linkage in CI. Use when a suite exists but nobody can say what it proves, when an auditor or stakeholder asks which tests cover a requirement, when a traceability matrix has gone stale, or when a requirement changes and its blast radius must be found.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: tracing-requirements-to-code
description: 'Builds and maintains bidirectional traceability between requirements and the tests that verify them: extracts a matrix from an existing codebase, annotates tests with requirement IDs, finds orphan tests and uncovered requirements, verifies that each link is real, and enforces linkage in CI. Use when a suite exists but nobody can say what it proves, when an auditor or stakeholder asks which tests cover a requirement, when a traceability matrix has gone stale, or when a requirement changes and its blast radius must be found.'
argument-hint: 'Test suite path, where requirements live (tracker, PRD, specs), any existing matrix or ID convention, and whether the goal is a one-off extraction or an enforced link'
user-invocable: true
---

# Tracing Requirements to Code

Use this skill when the tests already exist and the question is what they actually verify.

Traceability is usually taught forward: take a specification, derive requirements, plan tests. That is `requirements-test-coverage-mapper`, and it is the right skill when you start from a document. This skill handles the other and more common situation: **a live codebase, hundreds of tests, requirements scattered across a tracker and three documents, and no reliable statement of which test proves what.**

The insistence that makes this worth doing: **a traceability link is a claim, not a record.** A test tagged `@req REQ-014` claims to verify REQ-014, and nothing about writing the tag makes that true. An unverified matrix is worse than no matrix, because it converts ignorance into documented confidence, and it is exactly the artifact people reach for when deciding what not to test.

## When to Use

- a suite exists and nobody can say which requirement a given test serves
- someone asks "which tests cover this requirement" and the answer takes a day
- a matrix was built once, was accurate that week, and has not been true since
- a requirement is changing and its affected tests must be found
- tests exist that nobody can trace to any requirement
- an audit, certification, or customer questionnaire needs coverage evidence

## Operating Principles

- **Traceability runs both ways.** Requirement to test finds coverage gaps. Test to requirement finds orphan tests, and nobody looks in that direction.
- **A link is verified or it is a guess.** The test must fail when the requirement's behaviour is broken. Until it has been seen to, the link is unconfirmed and labelled as such.
- **Extract from evidence, not from titles.** A test called "validates the discount rule" is a hypothesis about what it does. The assertions are the evidence.
- **The matrix lives in the code, not in a spreadsheet.** A link stored beside the test moves when the test moves. A link in a document rots the first time anyone refactors.
- **Orphans are findings in both directions.** An uncovered requirement is a coverage gap. An orphan test is either an undocumented requirement or a test of nothing, and both are worth knowing.
- **Drift is the default.** Links rot silently through renames, deletions, and refactors. Without a CI check, the matrix is accurate on the day it is written and decreasingly true afterwards.

## Workflow

### Phase 0: Establish the requirement source

Before touching tests, fix what a requirement **is** in this project and where the authoritative list lives:

- an issue tracker with stable keys (`PROJ-1234`)
...

From jaktestowac's repository, MIT licence.

Related skills

  • Checked

    JUnit and Mockito tests

    Writes and fixes Java tests with JUnit, AssertJ and Mockito that are deterministic and keep failures visible.

    by github 42k
    8/101 credit
  • Checked

    Test code review

    Reviews new or changed tests in pytest, Jest, Go and more, so weak tests are caught before merge.

    by amElnagdy 1.3k
    7/101 credit
  • Checked

    Go table driven tests

    Writes Go tests with table cases, fakes, fuzzing, benchmarks and golden files that stay fast and reliable.

    by ericrisco 691
    8/101 credit
  • Checked

    MSTest Unit Testing

    Writes modern C# unit tests with current MSTest APIs, assertions, data driven tests and lifecycle patterns.

    by github 42k
    8/101 credit
  • Checked

    Quarkus Testing

    Writes and fixes Quarkus tests using Dev Services containers, with the right profiles, mocks and run commands.

    by github 42k
    7/101 credit
  • Checked

    Dotnet Test Hot Reload

    Sets up a live .NET test host that reruns your tests automatically each time you edit the code.

    by dotnet 6.4k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added