Requirements Traceability logo

Requirements Traceability

Community
jdm4pku
requirements-traceability

Build and maintain a requirements traceability matrix linking business objectives, requirements, design, and tests. Use when you need to demonstrate coverage, perform impact analysis, or satisfy regulatory audit requirements.

Overview

Publisherjdm4pku
RepositoryRE-Skills
Skill namerequirements-traceability
Stars
27
Forks
1
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jdm4pku on GitHub. Read the source before you install it.

Installation

Install the Requirements Traceability AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/requirements-traceability
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jdm4pku/RE-Skills.git /tmp/RE-Skills
mkdir -p .claude/skills
cp -r /tmp/RE-Skills/skills/requirements-traceability .claude/skills/requirements-traceability
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Requirements Traceability in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Requirements Traceability on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Requirements Traceability is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Purpose

Create a traceability matrix that establishes bidirectional links between business objectives, requirements, design elements, and test cases. Use this to answer the four questions that traceability exists to serve:

  1. Forward from source: Which requirements implement this business objective?
  2. Backward to source: Which business objective does this requirement serve?
  3. Forward to implementation: Which design/code/test covers this requirement?
  4. Impact analysis: If X changes, what else is affected?

Key Concepts

Traceability Chain

Business Objectives (Vision & Scope)
    |
    v
User Requirements (Use Cases / User Stories)
    |
    v
Functional Requirements (SRS)
    |
    v
Design Elements (Architecture / Components)
    |
    v
Test Cases (Test Plan)

Each link is bidirectional. You should be able to trace forward (objective -> requirement -> test) and backward (test -> requirement -> objective).

Types of Traceability Links

Link TypeFromToPurpose
Source traceBusiness objectiveUser requirementEnsure every business need is addressed
Requirement traceUser requirementFunctional requirementEnsure user needs decompose to system behavior
Design traceFunctional requirementDesign elementEnsure every requirement is designed
Test traceFunctional requirementTest caseEnsure every requirement is tested
Dependency traceRequirementRequirementTrack inter-requirement dependencies

Traceability Matrix Formats

Simple two-column trace:

RequirementTest Case(s)
FR-001TC-001, TC-002

Full chain matrix:

Business ObjUser ReqFunctional ReqTest CaseStatus
BO-1UC-3CT.CATALOG.SEARCH.1TC-101Verified

N-to-M matrix (coverage view):

BO-1BO-2BO-3
FR-001X
FR-002XX
FR-003X

Traceability Red Flags

  • Requirement with no source -- Where did this come from? It may be gold-plating.
  • Business objective with no requirements -- A stated goal with no implementation path.
  • Requirement with no test -- An untestable or untested requirement.
  • Orphan test case -- A test that does not trace to any requirement (testing what?).

Anti-Patterns

  • Trace Everything to Everything -- Links that are too loose to be meaningful. Every requirement traces to "improve user experience."
  • Trace Once, Never Update -- Traceability matrix created at start, never maintained as requirements change.
  • Tool Without Process -- Having a requirements tool but no process for maintaining trace links.

Application

Step 1: Establish the Traceability Structure

Decide what artifacts to trace:

  • Minimum: Business Objectives <-> Functional Requirements <-> Test Cases
  • Standard: Business Objectives <-> User Requirements <-> Functional Requirements <-> Test Cases
  • Full: Add Design Elements and Code Components to the chain

Step 2: Create the Matrix

For each functional requirement:

  1. Link backward to its source (user requirement, business objective)
  2. Link forward to its test case(s)
  3. Record the current status

Use template.md for the structure.

Step 3: Analyze Coverage

Run these checks:

Forward coverage (no gaps):

  • Every business objective should have at least one requirement
  • Every requirement should have at least one test case

Backward coverage (no gold-plating):

  • Every requirement should trace to at least one business objective
  • Every test case should trace to at least one requirement

Completeness metrics:

  • Coverage = (requirements with traces / total requirements) * 100%
  • Target: 100% for both forward and backward traces

Step 4: Perform Impact Analysis

When a requirement changes:

  1. Find the requirement in the matrix
  2. Trace forward: Which test cases need updating?
  3. Trace backward: Does the change align with the business objective?
  4. Trace laterally: Which other requirements depend on this one?
  5. Document the impact scope in the change request

Step 5: Maintain Over Time

  • Update traces when requirements are added, changed, or deleted
  • Review the matrix at each milestone or sprint review
  • Track traceability metrics: coverage percentage, broken links
  • Assign ownership: someone must be responsible for maintaining traces

Examples

See examples/sample.md for a complete traceability matrix.

Mini example:

markdown
| Business Obj | User Req | Functional Req | Test Case | Status |
|-------------|----------|---------------|-----------|--------|
| BO-1: Reduce reporting time | UC-8: Generate Report | CT.REPORT.GEN.1: Generate EPA report within 30s | TC-201: EPA report generation load test | Verified |
| BO-2: Eliminate expired chemicals | UC-5: Alert Expiration | CT.ALERT.EXPIRY.1: Send 30-day alert | TC-150: 30-day alert email verification | Verified |
| BO-2 | UC-5 | CT.ALERT.EXPIRY.2: Send 7-day urgent alert | TC-151: 7-day urgent alert verification | Implemented |
| -- | -- | CT.CATALOG.ADD.3: Allow bulk import from CSV | -- | Proposed |

Analysis of this mini example:

  • CT.CATALOG.ADD.3 has no backward trace to a business objective (possible gold-plating)
  • CT.CATALOG.ADD.3 has no test case yet (needs test planning)
  • BO-1 and BO-2 have forward coverage through requirements and tests

Common Pitfalls

Pitfall 1: Requirements Without Sources

Symptom: Several requirements have no backward trace to a business objective or user need.

Consequence: These may be gold-plating -- features nobody asked for that consume development resources.

Fix: For each untraced requirement, ask: "Which business objective does this serve?" If none, either find the missing objective or remove the requirement.


Pitfall 2: Matrix Not Maintained

Symptom: The traceability matrix was created at project start and has not been updated since. New requirements have no traces.

Consequence: The matrix is useless for impact analysis. Changes are evaluated without understanding the full chain.

Fix: Make traceability updates a required step in the change control process. No requirement change is complete until traces are updated.


Pitfall 3: No Forward Trace to Tests

Symptom: Requirements exist without corresponding test cases.

Consequence: These requirements are never verified. Defects in these areas are discovered by users in production.

Fix: Every requirement should have at least one test case before it is marked "Verified." Use the matrix to identify untested requirements and assign test case creation.

References

Related Skills

  • skills/vision-and-scope/SKILL.md -- Business objectives that serve as trace sources
  • skills/srs-document/SKILL.md -- Functional requirements that are traced
  • skills/requirements-management-process/SKILL.md -- Traceability is maintained as part of requirements management
  • skills/change-control-advisor/SKILL.md -- Impact analysis uses traceability

External Frameworks

  • Karl Wiegers & Joy Beatty, Software Requirements, Third Edition (2013) -- Chapter 27: Requirements Management Practices
  • IEEE 830 / ISO/IEC/IEEE 29148 -- Requirements traceability guidance
  • CMMI -- Requirements Management process area

Skill type: Component Dependencies: References skills/vision-and-scope/SKILL.md, skills/srs-document/SKILL.md Used by: skills/requirements-management-process/SKILL.md, skills/change-control-advisor/SKILL.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Requirements Traceability AI skill do?

Build and maintain a requirements traceability matrix linking business objectives, requirements, design, and tests. Use when you need to demonstrate coverage, perform impact analysis, or satisfy regulatory audit requirements.

Why use Requirements Traceability on TypingMind?

Because you install it once and use it with any model. Requirements Traceability is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Requirements Traceability in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jdm4pku/RE-Skills/tree/main/skills/requirements-traceability. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Requirements Traceability?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Requirements Traceability?

As many as you like. As long as a model supports skills, you can use Requirements Traceability with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Requirements Traceability AI skill free?

It is published on GitHub by jdm4pku. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇