Logo Requirements Reuse

Requirements Reuse

Cộng đồng
jdm4pku
requirements-reuse

Systematically reuse requirements across projects using patterns, catalogs, and product-line strategies. Use when building systems similar to past projects or establishing a reuse repository for your organization.

Tổng quan

Nhà phát hànhjdm4pku
Kho mãRE-Skills
Tên kỹ năngrequirements-reuse
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 Reuse 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-reuse
  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-reuse .claude/skills/requirements-reuse
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 Reuse 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 Reuse 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 Reuse 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

Systematically identify, evaluate, and apply reusable requirements from existing sources -- past projects, requirement pattern catalogs, product-line core assets, and organizational standards. Use this to avoid re-inventing requirements for common functionality and to improve consistency across related systems.

This is not about copying an old SRS and changing the project name. It is about strategic, evaluated reuse with explicit decisions about what to reuse as-is, what to adapt, and what to write new.

Key Concepts

Three Dimensions of Requirements Reuse

Every reuse decision involves three independent dimensions:

DimensionOptionsDescription
ExtentPartial / FullReuse selected requirements or the entire specification
ModificationAs-is / AdaptedUse exactly as written or modify for the new context
MechanismCopy / ReferenceDuplicate into new project or point to a shared source

Example combinations:

  • Full / As-is / Reference -- Product line core requirements shared across all products
  • Partial / Adapted / Copy -- Selected requirements from a past project, modified for new context
  • Partial / As-is / Copy -- Standard security requirements copied into every project SRS

Requirement Patterns (Withall)

Requirement patterns are reusable templates for common requirement types. Each pattern includes:

  • Pattern name -- What it covers (e.g., "Audit Trail")
  • Basic detail -- The core requirement statement with parameters
  • Extra detail -- Optional extensions for more complex needs
  • Considerations -- Context-specific decisions to make

Common requirement patterns:

PatternApplies WhenExample Parameter
Audit TrailSystem must log who did what whenRetention period, detail level
AuthorizationAccess must be role-controlledRole hierarchy, permission granularity
ArchiveData must be retained then removedArchive period, retrieval requirements
NotificationUsers must be alerted of eventsChannel (email/SMS), timing, escalation
ExpiryItems have time-limited validityWarning period, expiry action
CalculationSystem performs domain-specific mathFormula, precision, rounding rules

Reuse Scenarios

Product Line Reuse: An organization builds multiple related products (e.g., ChemTrack for universities, ChemTrack for pharma, ChemTrack for government). Core requirements are shared; product-specific requirements are layered on top.

Re-Engineering Reuse: Replacing a legacy system. The existing system's behavior is the primary source of requirements. Reuse the "what" while redesigning the "how."

Similar Project Reuse: Building a new system that resembles a past project (e.g., a new inventory management system when you built one three years ago). Selectively reuse applicable requirements.

Why This Works

  • Reduced elicitation effort -- Common requirements like authentication, audit trails, and notifications do not need to be re-elicited from scratch every time
  • Improved consistency -- Reused requirements carry forward lessons learned and corrections from past projects
  • Faster reviews -- Reviewers are already familiar with reused requirements
  • Pattern vocabulary -- Requirement patterns give the team a shared language for common functionality

Anti-Patterns

  • NIH Syndrome (Not Invented Here) -- Rejecting reusable requirements because "our project is different." Every project is unique in some ways, but authentication, audit logging, and error handling are remarkably similar across domains.
  • NAH Syndrome (Not Applicable Here) -- Blindly assuming past requirements apply without evaluating fit. A requirement that was correct for a university lab may not be correct for a pharmaceutical facility.
  • Copy-Paste-Forget -- Copying a past SRS section without reviewing every requirement for applicability. Stale or inapplicable requirements contaminate the new specification.
  • No Catalog Maintenance -- Building a reuse catalog once and never updating it with corrections and improvements from subsequent projects.

Application

Use template.md for the fill-in structure.

Step 1: Identify Reuse Sources

Survey available sources for reusable requirements:

  1. Past project SRS documents -- Similar systems built by your organization
  2. Requirement pattern catalogs -- Withall's patterns, organizational pattern libraries
  3. Product line core assets -- If your organization has a product line architecture
  4. Regulatory standards -- Compliance requirements that apply across projects
  5. Organizational standards -- Company-wide requirements for security, accessibility, etc.

For each source, note:

  • Source name and location
  • Domain similarity to current project (High / Medium / Low)
  • Quality of the source (Was it reviewed? Tested? Maintained?)

Step 2: Screen for Reuse Candidates

For each source, identify requirements that potentially apply to the current project:

High-confidence reuse candidates (common across most systems):

  • Authentication and authorization
  • Audit trail and logging
  • Error handling and recovery
  • Data backup and archival
  • Notification and alerting
  • Report generation framework

Medium-confidence candidates (depend on domain similarity):

  • Domain-specific business rules
  • Workflow and approval processes
  • Data validation rules
  • Integration interfaces

Low-confidence candidates (require careful evaluation):

  • Domain-specific calculations
  • UI-specific requirements
  • Performance targets (context-dependent)

Step 3: Evaluate Each Candidate

For each reuse candidate, decide on the three dimensions:

  1. Applicability: Does this requirement apply to the new system?

    • Yes, directly applicable
    • Yes, with modifications
    • No, not applicable (discard)
  2. Modification needed: If applicable, what changes?

    • None (as-is reuse)
    • Parameter changes (e.g., retention period: 5 years -> 7 years)
    • Structural changes (e.g., add additional conditions)
    • Major rewrite (may not be worth "reusing")
  3. Mechanism: How to reuse?

    • Reference (point to shared catalog) -- best for organizational standards
    • Copy (duplicate into project SRS) -- best for adapted requirements

Step 4: Adapt and Integrate

For each reused requirement:

  • Assign a new requirement ID in the current project's numbering scheme
  • Mark it as reused in the traceability matrix (link to source)
  • Update any project-specific parameters
  • Review for consistency with other requirements in the new SRS
  • Flag any assumptions carried over from the source that need validation

Step 5: Build the Reuse Catalog

After the project, contribute back to the organizational reuse catalog:

  • Add newly written requirements that have reuse potential
  • Update existing catalog entries with corrections found during this project
  • Tag requirements by domain, pattern type, and quality level

Examples

See examples/sample.md for a complete reuse assessment.

Mini example excerpt:

markdown
### Reuse Candidate: Audit Trail (from LabManager v2 SRS)

- **Source:** LabManager v2, FR-090 through FR-095
- **Applicability:** Directly applicable -- ChemTrack requires the same
  audit trail functionality
- **Modification:** Parameter change only -- retention period changes
  from 3 years to 7 years (regulatory requirement for chemical records)
- **Mechanism:** Copy (different retention parameter)
- **Reused As:**
  - CT.AUDIT.1 (from FR-090): "The system shall log all create, update,
    and delete operations on chemical records with timestamp, user ID,
    and before/after values." -- As-is
  - CT.AUDIT.2 (from FR-091): "The system shall retain audit records for
    7 years from the date of creation." -- Adapted (was 3 years)

Common Pitfalls

Pitfall 1: Reusing Without Evaluating

Symptom: Entire SRS sections copied from a past project with a find-replace on the project name.

Consequence: Requirements that do not apply to the new context, stale business rules, and inapplicable constraints clutter the SRS. Reviewers skim the "reused" sections because they assume they are correct.

Fix: Evaluate every reused requirement individually against the three dimensions (extent, modification, mechanism).


Pitfall 2: No Traceability to Source

Symptom: Reused requirements have no link to their origin.

Consequence: When a defect is found in a reused requirement, there is no way to know which other projects reused the same flawed requirement.

Fix: Maintain a reuse traceability link: each reused requirement points to its source in the catalog or source project.


Pitfall 3: Ignoring Context Differences

Symptom: Requirements from a small departmental system reused for an enterprise system without scaling considerations.

Consequence: Performance requirements, concurrency handling, and authorization models that worked for 20 users fail at 2,000 users.

Fix: Explicitly evaluate context differences (scale, regulatory environment, user population, integration landscape) before reusing.


Pitfall 4: No Catalog Investment

Symptom: Organization builds similar systems repeatedly but each team starts requirements from scratch.

Consequence: Each project re-invents the same requirements, with the same gaps and the same mistakes.

Fix: Invest in a shared reuse catalog. Start small -- catalog the 10 most commonly needed requirement sets (auth, audit, notification, etc.).

References

Related Skills

  • skills/srs-document/SKILL.md -- Reused requirements are integrated into the SRS
  • skills/requirements-traceability/SKILL.md -- Reuse traceability links source to target
  • skills/quality-attribute/SKILL.md -- Quality attribute requirements are common reuse candidates
  • skills/business-rule/SKILL.md -- Business rules from past projects may be reusable

External Frameworks

  • Karl Wiegers & Joy Beatty, Software Requirements, Third Edition (2013) -- Chapter 18: Beyond Requirements Development
  • Stephen Withall, Software Requirement Patterns (2007) -- Requirement pattern catalog
  • Klaus Pohl, Requirements Engineering: Fundamentals, Principles, and Techniques (2010) -- Chapter 26: Requirements Reuse

Skill type: Component Dependencies: None (foundational skill) Used by: skills/srs-document/SKILL.md, skills/requirements-management-process/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 Reuse làm được gì?

Systematically reuse requirements across projects using patterns, catalogs, and product-line strategies. Use when building systems similar to past projects or establishing a reuse repository for your organization.

Vì sao nên dùng Requirements Reuse 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 Reuse 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 Reuse 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-reuse. 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 Reuse?

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 Reuse 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 Reuse 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 Reuse 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 👇