Chuyển đến nội dung
Skillpedia
Tài liệu kỹ thuật12k · #11502

fprime-requirements-review

Skill này làm gì

Skill xem xét từng yêu cầu để biết nó có thể kiểm thử khách quan không, và kiểm tra xem cả tập yêu cầu có bao quát toàn bộ đề bài và các trường hợp lỗi không. Dành cho kỹ sư và người thẩm định yêu cầu F Prime.

Khi nào nên dùng

  • ✓Khi một tập yêu cầu F Prime cần được xem xét kỹ trước khi thiết kế bắt đầu.
  • ✓Khi một thay đổi yêu cầu được đề xuất và cần được xem lại.
  • ✓Khi bạn muốn biết một yêu cầu có tiêu chí đạt rõ ràng hay không.

Liên kết skill

https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-requirements-review/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-requirements-review/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể xem lại các yêu cầu này và cho tôi biết yêu cầu nào không thể kiểm thử khách quan không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI kiểm tra từng yêu cầu xem có tác nhân rõ ràng, kết quả quan sát được và tiêu chí đạt hay không, rồi kiểm tra xem cả tập có bao quát đề bài gốc không.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Skill: F Prime Requirements Review

A requirement is the contract everything downstream is verified against (fprime-component-requirements). This skill is the review side of that contract: it asks of every requirement can it be objectively verified? and of the set does it cover the request? It is adversarial — look for the requirement that a wrong component would still satisfy, and the request element no requirement covers.

Inputs: the requirements table in the fprime-component-requirements Step 2 form, the request it serves (issue, human goals, parent requirements), and the SDD if one exists. Review against the request, never against an implementation. The FPP model of an existing component may be opened only to enumerate its interfaces for RS-2, never to decide what a requirement means.


1. Per-requirement checks

RQ-1 — Objectively verifiable

From the row alone the reviewer can write three things: the stimulus or condition, the observable a test or inspector reads (a named event, channel, command response, return value, file state…), and the pass criterion with units and bounds. If any of the three cannot be written, the row fails. "Appropriately", "quickly", "robust", "as needed", "handle", and undefined qualifiers such as "invalid" fail by construction. Two independently testable outcomes are two requirements; one pipeline (read, packetize, send) is one.

Finding-class: req-not-verifiable.

RQ-2 — Easily understood

One sentence, active voice, shall; terms defined in the request, the SDD, or F Prime documentation; readable by someone who has not seen the design. No design or implementation content (port kinds, FPP constructs, data structures, algorithms) — those are design decisions (fprime-component-requirements Step 3).

Finding-class: req-unclear (reader cannot state the behaviour, or wording is clear but not crisp) / req-contains-design.

RQ-3 — Rationale

The rationale names an RS-1 request element, a parent REQ-ID, or an RS-2 fault scenario. One that names none — empty, or a restatement of the shall statement — fails. The reviewer never supplies a missing rationale; a requirement nobody can justify is a deletion candidate.

Finding-class: req-no-rationale.

RQ-4 — Verification method, strongest feasible

Each row names a method; the first entry must be the strongest that can observe RQ-1's outcome, further entries may follow:

Method Use when
Unit test The outcome is observable at the component boundary alone (ports, commands, events, telemetry, parameters) with a component unit-test harness.
Integration test (system test) The outcome needs more than one component, a deployment, real timing, or real hardware.
Inspection The outcome is not observable at run time (coding constraints, documentation, build-time budgets). Last resort.

Missing, "TBD", unqualified "Test", or a method that cannot observe the outcome (unit test for a timing or cross-component behaviour; inspection for a run-time behaviour) → req-no-verification: the requirement stands, the method must change. A method that can observe the outcome when a stronger one in the table also can ("integration test" for an outcome observable at the component boundary alone) → req-weak- verification. Inspection of a run-time behaviour is never "weak": it cannot observe it and is req-no-verification. Absence of a written test is never a reason to accept a weaker method.


2. Set-level checks

RS-1 — Breadth of the request

Before reading the rows, list every element of the request — each goal sentence, named command, telemetry item, event, parameter, interface, mode, constraint — then map each to the requirement(s) that cover it. An element is covered only when a mapped requirement's observable outcome is the element's outcome (the operator's setpoint change takes effect, not "a setpoint parameter exists"). Naming the element is not coverage. An element with no covering requirement is a gap unless the request explicitly excludes it. Only elements the request states count here; do not infer others.

Finding-class: req-set-gap.

RS-2 — Fault and failure scenarios

For each interface, input, resource and external dependency named in the request or in any requirement's shall statement, ask what happens on: invalid or out-of-range input; input or command in a mode/state that does not accept it; no response or timeo

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

Điều gì khiến một yêu cầu bị đánh trượt khi thẩm định?

Các từ mơ hồ như “phù hợp” hoặc “vững chắc”, hay thuật ngữ không được định nghĩa như “không hợp lệ”, khiến yêu cầu không thể kiểm thử.

Skill có xem xét mã không?

Không. Skill xem xét yêu cầu dựa trên đề bài gốc, không xét theo phần triển khai.

Skill kiểm tra độ bao quát như thế nào?

Skill tìm các yếu tố còn thiếu trong đề bài và các trường hợp lỗi, sự cố mà không có yêu cầu nào bao phủ.

Chi tiết

Mô tả gốc của tác giả

Adversarial review of an F Prime requirements set before design or code exists, or when a human asks for one on a PR that changes requirements. Checks each requirement for objective verifiability, clarity, rationale, and the strongest feasible verification method (unit test, then integration/system test, then inspection), and checks the set for breadth of the request and fault/failure coverage. Keywords: F Prime, requirements, review, verifiable, rationale, verification method, fault coverage, shall statement.

repo: nasa/fprime

Độ phổ biến

Sao GitHub
12k
Vị trí xếp hạng
#11502
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự