/sdlc-documentation:11-requirements-reusefrom sdlc-documentation
Curates approved reusable requirement patterns and product-line variants after a stable baseline exists. Produces a reusable requirements library with traceability and validation records.
Ships in sdlc-documentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Reusable requirements library is the next lifecycle deliverable.requirements-patterns when that neighbouring route owns the decision or deliverable.| Artefact | Source or provider | Required? | Behaviour when missing |
|---|---|---|---|
| Approved requirements, applicability context, variability rules, and provenance | Requirements baselines and product-line owner | Yes | Stop the affected step, name the missing source, and return only a qualified gap record. |
Reusable requirements library.| Artefact | Consumer | Acceptance condition |
|---|---|---|
| Reusable requirements library | Future project teams and requirements governance | Required sections are populated, source links resolve, and every material requirement or decision has an observable review or test oracle. |
| Evidence | Reviewer | Acceptance condition |
|---|---|---|
Source, decision, trace, and validation record for Reusable requirements library | Requirements quality reviewer | Inputs used, decisions made, checks run, failures, and unassessed items are explicit. |
Read and search are required. Editing is allowed only when the request authorises creation or repair of the named requirements artefact. Publishing, production mutation, destructive action, spending, and certification require explicit authority.
Fallback: if a required file, reviewer, standard source, network check, renderer, or execution capability is unavailable, return the narrowest useful qualified result and mark the affected check not assessed; never convert an unassessed check into a pass.
| Choice or condition | Action | Failure or risk avoided |
|---|---|---|
| A candidate requirement depends on hidden project-specific context | Keep it local or parameterise and test the variability explicitly. | Reused requirements that import wrong assumptions. |
| Required inputs and test oracles are complete | Continue through the existing workflow and record evidence. | A deliverable whose acceptance cannot be reproduced. |
| A mandatory source or owner is missing | Stop the affected branch and issue a qualified gap record. | Fabricated context or unauthorised decisions. |
Reusable requirements library and its acceptance checks.Reusable requirements library from assumed context. Fix: cite the project source or mark the scope blocked.requirements-patterns without routing the decision. Fix: hand off the named input and preserve trace links.not assessed and state the release consequence.This skill is OPTIONAL and intended for organizations building multiple related products or maintaining a portfolio of applications. It scans existing requirements artifacts, identifies candidates for reuse, classifies them by reuse type, and generates a requirements library catalog. The library accelerates future projects by providing vetted, parameterized requirements templates.
projects/<ProjectName>/<phase>/<document>/, projects/<ProjectName>/_context/vision.mdprojects/<ProjectName>/<phase>/<document>/requirements_library.md| File | Source | Required? |
|---|---|---|
All *.md artifacts | projects/<ProjectName>/<phase>/<document>/ | Yes |
vision.md | projects/<ProjectName>/_context/ | Yes |
requirements_baseline.md | projects/<ProjectName>/<phase>/<document>/ | Recommended |
traceability_matrix.md | projects/<ProjectName>/<phase>/<document>/ | Recommended |
| File | Contents | Destination |
|---|---|---|
requirements_library.md | Reusable requirements catalog with classification and adaptation guidelines | projects/<ProjectName>/<phase>/<document>/ |
Read every file in projects/<ProjectName>/<phase>/<document>/ and projects/<ProjectName>/_context/vision.md. Log each file path read. Build a consolidated list of all requirements with their full definitions, acceptance criteria, and trace links.
Scan all requirements for patterns that indicate reuse potential. Candidates fall into three categories:
Requirements that appear in virtually every software system:
| Domain | Examples |
|---|---|
| Authentication | User registration, login, password reset, session management, MFA |
| Authorization | Role-based access control, permission matrices, privilege escalation prevention |
| Logging | Audit trails, event logging, log retention policies, log format standards |
| Error Handling | Error codes, user-facing error messages, retry logic, graceful degradation |
| Data Validation | Input sanitization, format validation, boundary checks, encoding rules |
| Notification | Email dispatch, SMS alerts, in-app notifications, notification preferences |
Requirements specific to a business domain but recurring across products in that domain:
| Domain | Examples |
|---|---|
| E-Commerce | Shopping cart, checkout flow, payment processing, order tracking, returns |
| Healthcare | Patient registration, appointment scheduling, prescription management, HIPAA consent |
| Finance | Account management, transaction processing, regulatory reporting, fraud detection |
| Education | Course enrollment, grade management, attendance tracking, learning management |
Requirements mandated by law or regulation that apply to any system within scope:
| Regulation | Requirements |
|---|---|
| GDPR | Consent management, right to erasure, data portability, privacy impact assessment |
| HIPAA | Business Associate Agreement, PHI encryption, access logging, breach notification |
| SOX | Financial controls, audit trails, segregation of duties, data retention |
| PCI DSS | Cardholder data protection, network segmentation, vulnerability management |
| WCAG 2.2 | Perceivable, operable, understandable, robust accessibility requirements |
For each candidate requirement, classify the reuse type:
| Reuse Type | Definition | When to Use |
|---|---|---|
| Verbatim | Copy the requirement as-is into the new project | Regulatory mandates, universal standards |
| Parameterized | Use a template with variables to fill in | Domain patterns with project-specific values |
| Pattern | Adapt the structure and intent but rewrite specifics | Cross-cutting concerns with varying implementations |
[LIB-SEC-001] The system shall encrypt all data at rest using AES-256.
Type: Verbatim | Domain: Security | Regulation: HIPAA, PCI DSS
[LIB-AUTH-001] The system shall lock the user account after
{MAX_ATTEMPTS} consecutive failed login attempts for {LOCKOUT_DURATION}.
Type: Parameterized | Domain: Authentication
Parameters: MAX_ATTEMPTS (integer, default: 5), LOCKOUT_DURATION (minutes, default: 15)
[LIB-NOTIFY-001] The system shall deliver {NOTIFICATION_TYPE} notifications
to {RECIPIENT_ROLE} within {DELIVERY_SLA} of {TRIGGER_EVENT}.
Type: Pattern | Domain: Notification
Structure: Trigger -> Channel -> Recipient -> SLA
For each reusable requirement, create a catalog entry:
| Field | Description |
|---|---|
| Library ID | LIB-[DOMAIN]-[NNN] |
| Category | Cross-cutting, Domain, or Regulatory |
| Domain | Authentication, Security, E-Commerce, etc. |
| Reuse Type | Verbatim, Parameterized, or Pattern |
| Description | The requirement text or template |
| Parameters | Variables that must be filled (parameterized/pattern only) |
| Defaults | Default values for parameters |
| Constraints | Conditions under which this requirement applies |
| Source Projects | Projects where this requirement has been used |
| Usage Count | Number of times reused across projects |
| Last Used | Date of most recent reuse |
| Validation Status | Verified, Unverified, or Deprecated |
| Standards | Applicable IEEE/ISO/regulatory standards |
Document the process for reusing requirements from the library in new projects:
For product line engineering, perform commonality/variability analysis:
Document variation points with:
| Field | Description |
|---|---|
| Variation Point ID | VP-[NNN] |
| Description | What varies across products |
| Variants | List of possible options |
| Binding Time | Design-time, build-time, or runtime |
| Default Variant | The variant used when no explicit choice is made |
Write projects/<ProjectName>/<phase>/<document>/requirements_library.md following the output format below.
# Requirements Library: [Project Name]
**Generated:** [Date]
**Standards:** IEEE 29148-2018, Laplante Ch.9
---
## Library Summary
| Metric | Value |
|--------|-------|
| Total Library Entries | N |
| Cross-Cutting Concerns | N |
| Domain Patterns | N |
| Regulatory Requirements | N |
| Verbatim Reuse | N |
| Parameterized Reuse | N |
| Pattern Reuse | N |
---
## Library Catalog
### Cross-Cutting Concerns
| Library ID | Domain | Reuse Type | Description | Parameters |
|------------|--------|-----------|-------------|------------|
| LIB-AUTH-001 | Authentication | Parameterized | Account lockout | MAX_ATTEMPTS, LOCKOUT_DURATION |
### Domain Patterns
| Library ID | Domain | Reuse Type | Description | Parameters |
|------------|--------|-----------|-------------|------------|
| LIB-ECOM-001 | E-Commerce | Pattern | Checkout flow | PAYMENT_METHODS, TAX_RULES |
### Regulatory Requirements
| Library ID | Regulation | Reuse Type | Description | Applicability |
|------------|-----------|-----------|-------------|---------------|
| LIB-GDPR-001 | GDPR | Verbatim | Consent management | All EU-facing systems |
---
## Adaptation Guidelines
[Step-by-step process for reusing library entries]
---
## Commonality/Variability Analysis
| VP ID | Description | Variants | Binding Time |
|-------|-------------|----------|-------------|
| VP-001 | Payment processing | Stripe, PayPal, Square | Build-time |
---
## Usage Tracking
| Library ID | Source Project | Target Project | Date Reused | Adaptation Notes |
|------------|---------------|----------------|-------------|-----------------|
| LIB-AUTH-001 | Project A | Project B | [Date] | MAX_ATTEMPTS=3 |
08-requirements-management, 09-traceability-engineering, 10-requirements-metricsreferences/reuse-patterns.md: Requirements reuse pattern taxonomy and decision criteria.references/product-line-requirements.md: SPL commonality/variability analysis guide.Last Updated: 2026-03-07 Skill Version: 1.0.0
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-sdlc-documentation --plugin sdlc-documentation160 skills in this plugin
/01-deployment-guideUse when producing or updating deployment guide for release prerequisites, migration choreography, verification, rollback, and ownership. Use runbook for the neighbouring concern; this skill owns the named document contract and its acceptance evidence./01-high-level-designUse when approved requirements need a system-level architecture with boundaries, components, critical flows, deployment topology and ADRs, or an as-built design must be recovered from existing code; use system-overview for orientation, low-level-design for module internals, and infrastructure-design for infrastructure depth./01-initialize-srsUse when writing a new SRS (software requirements specification) for a business system or module: create the Waterfall SRS workspace, IEEE structure, identifiers and source context; use context-engineering next for boundaries and actors.Other plugins' skills for the same job