fprime-component-requirements
Skill này làm gì
Skill giúp AI đặt đúng câu hỏi và soạn danh sách yêu cầu cho một thành phần phần mềm bay, để bạn xem xét trước khi thiết kế bắt đầu. Dành cho kỹ sư định nghĩa thành phần mới.
Khi nào nên dùng
- ✓Khi bạn bắt đầu một thành phần F Prime mới và cần ghi lại các yêu cầu.
- ✓Khi bạn muốn xác định lệnh, telemetry, sự kiện và tham số của một thành phần.
- ✓Khi bước tiếp theo là thiết kế và các yêu cầu phải được xác nhận trước.
Liên kết skill
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-requirements/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Giúp tôi viết yêu cầu cho một thành phần F Prime mới để đọc cảm biến nhiệt độ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI hỏi về mục đích của thành phần, các thành phần mà nó giao tiếp và các lệnh của nó, rồi soạn yêu cầu để bạn xem lại và xác nhận.
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 Component Requirements
Requirements define what the component must do — its behaviors, interfaces, and constraints. This phase produces a written requirements list that drives all subsequent design and testing.
For context on the overall development process and where requirements fit, see the F´ Development Process. For guidance on work types and component kinds, see Selecting Component, Port, and Command Kinds.
STOP — Ask the User
You may draft requirements based on user input, but you cannot do requirements in isolation from the user. Draft requirements must stem from user-provided context and must be reviewed with the user before proceeding into development.
If any of the following are unclear, ask before proceeding:
- What is the component's purpose / role in the system?
- What other components does it interact with (upstream / downstream)?
- What commands should the ground operator be able to send?
- What telemetry should the component report?
- What events (logs) should it emit and at what severity?
- What parameters should be configurable at runtime?
- Is this work event-driven, deadline-driven, or background? (See
docs/user-manual/framework/component-and-port-selection.mdfor an explanation of the types of work.) - Are there any critical deadlines for this work?
- Are there fault-handling or off-nominal requirements?
- What existing F Prime components (Svc/, Drv/) can be built on top of?
Step-by-Step Process
Step 1 — Gather Context
Ask the user for:
- Component name and module: Where does this live in the project
tree? (e.g.,
MyProject/Components/ThermalController) - Work type: Event-driven, deadline-driven (cyclic), or
background? This determines the component kind (active, passive, or
queued). See
docs/user-manual/framework/component-and-port-selection.md. - High-level purpose: One-paragraph description of what this component does.
Step 2 — Define Behavioral Requirements
Requirements are written as "shall" statements; each must be something that can be verified (a pass/fail observable). Goals that are not pass/fail ("should") go in the SDD narrative, not the table.
Requirements are typically shipped as a table:
| ID | Shall Statement | Rationale | Verification Method |
|---|---|---|---|
| REQ-<Component>-001 | The component shall <behavior>. | <Why: request element, parent requirement, or fault scenario> | <Unit test / integration test / inspection — strongest feasible, in that order> |
| REQ-<Component>-002 | ... | ... | ... |
Categories to cover:
| Category | Ask the user |
|---|---|
| Nominal behavior | What does it do on each cycle / invocation? |
| Commands | What operator commands does it accept? What are the args? |
| Telemetry | What values does it periodically report? |
| Events | What noteworthy occurrences does it log? Severity? |
| Parameters | What runtime-configurable values does it store? |
| Error handling | How does it respond to invalid inputs or faults? |
| State management | Does it have modes or states? Transitions? |
Step 3 — Define Interface Requirements
For each external connection, define what data the component exchanges — not port types (those are a design decision, not a requirement):
- Inputs: What data/invocations does the component receive? From whom?
- Outputs: What data does the component send out? To whom?
- Data types: What are the arguments/payloads crossing each interface?
Port types (sync/async/guarded) and FPP port definitions are determined during the Design phase based on the work type and timing constraints established here.
Step 4 — Confirm with User
Present the full requirements table to the user and wait for confirmation before proceeding to design. Requirements are the contract — everything downstream is verified against them.
Output Artifact
A requirements document (typically captured in the component's
docs/sdd.md or as a structured list in the PR description) with:
- Component name, module, and work type
- Requirements table (ID, shall statement, rationale, verification method)
- Interface summary (data exchanged, not port types)
- Any constraints
Câu hỏi thường gặp
AI có tự viết yêu cầu được không?
Không. Skill ghi rõ bản nháp phải dựa trên đầu vào của bạn và được xem xét cùng bạn trước khi phát triển.
Skill hỏi những câu hỏi nào?
Skill hỏi về vai trò của thành phần, nó kết nối với gì, cần những lệnh và telemetry nào, và công việc là theo sự kiện hay chạy nền.
Skill có bao quát sự kiện và tham số không?
Có. Skill hỏi thành phần cần những sự kiện, mức độ nghiêm trọng và tham số lúc chạy nào.
Chi tiết
Mô tả gốc của tác giả
Requirements phase of F Prime component development. Guides the agent through eliciting, documenting, and confirming component requirements before any design or code is written. Trigger when starting a new component or when the user says to define requirements. Keywords: F Prime, requirements, SDD, behavior, interface, specification.
repo: nasa/fprime
Độ phổ biến
- Sao GitHub
- 12k
- Vị trí xếp hạng
- #11498
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
fprime-cmake-build-system
12kGiúp agent của bạn thêm module, build target và cài đặt nền tảng vào dự án phần mềm bay F Prime thông qua lớp CMake của nó.
fprime-component-design-fpp
12kGiúp agent của bạn chuyển các yêu cầu thành phần F Prime đã được duyệt thành mô hình FPP cho các port, lệnh, sự kiện và telemetry.
fprime-component-development
12kGiúp agent của bạn hướng dẫn một thành phần F Prime qua từng giai đoạn phát triển, từ yêu cầu đến kiểm thử tích hợp.
fprime-component-implementation
12kGiúp agent của bạn viết mã C++ phía sau các hàm xử lý được sinh tự động của một thành phần F Prime, theo đúng quy tắc của dự án.
Skill tương tự
technical-documentation
394kGiúp agent của bạn viết và rà soát tài liệu kỹ thuật cùng file hướng dẫn cho agent, rõ ràng để mọi người và công cụ AI đều dễ làm theo.
architecture-decision-records
280kGiúp agent của bạn ghi lại các quyết định quan trọng về cấu trúc dự án, giúp hiểu lý do đằng sau các lựa chọn và giữ lịch sử thay đổi rõ ràng.
code-tour
280kGiúp agent của bạn tạo các hướng dẫn đọc code từng bước, có tham chiếu chính xác đến file và dòng, hữu ích cho phần giới thiệu, giải thích và rà soát.