Logo Requirements Traceability

Requirements Traceability

Cộng đồng
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.

Tổng quan

Nhà phát hànhjdm4pku
Kho mãRE-Skills
Tên kỹ năngrequirements-traceability
Sao
27
Bản fork
1
Tệp đi kèm
2
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được jdm4pku công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Requirements Traceability trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/requirements-traceability
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Requirements Traceability trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Requirements Traceability ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Requirements Traceability với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Requirements Traceability làm được gì?

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.

Vì sao nên dùng Requirements Traceability trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Requirements Traceability là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Requirements Traceability trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/jdm4pku/RE-Skills/tree/main/skills/requirements-traceability. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Requirements Traceability?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Requirements Traceability với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Requirements Traceability với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Requirements Traceability có miễn phí không?

Kỹ năng này được jdm4pku phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇