fprime-component-requirements
Fungsinya
Skill ini membantu AI mengajukan pertanyaan yang tepat dan menyusun daftar persyaratan untuk komponen perangkat lunak penerbangan, yang Anda tinjau sebelum desain dimulai. Skill ini untuk insinyur yang mendefinisikan komponen baru.
Kapan dipakai
- βSaat Anda memulai komponen F Prime baru dan perlu persyaratannya ditulis.
- βSaat Anda ingin mendefinisikan perintah, telemetri, event, dan parameter komponen.
- βSaat langkah berikutnya adalah desain dan persyaratan harus dikonfirmasi terlebih dahulu.
Link skill
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-requirements/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBantu saya menulis persyaratan untuk komponen F Prime baru yang membaca sensor suhu.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI menanyakan tujuan komponen, komponen lain yang diajak berinteraksi, dan perintahnya, lalu menyusun draf persyaratan untuk Anda tinjau dan konfirmasi.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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
Pertanyaan umum
Apakah AI bisa menulis persyaratan sendiri?
Tidak. Skill ini menyebutkan bahwa draf harus berasal dari masukan Anda dan ditinjau bersama Anda sebelum pengembangan.
Pertanyaan apa yang diajukan?
Skill ini menanyakan peran komponen, apa yang dihubungkannya, perintah dan telemetri apa yang dibutuhkan, serta apakah kerjanya berbasis event atau berjalan di latar belakang.
Apakah skill ini mencakup event dan parameter?
Ya, skill ini menanyakan event, tingkat keparahan, dan parameter runtime apa yang sebaiknya dimiliki komponen.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 12k
- Peringkat
- #11498
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
fprime-cmake-build-system
12kMembantu agent Anda menambahkan modul, target build, dan pengaturan platform ke proyek perangkat lunak penerbangan F Prime melalui lapisan CMake-nya.
fprime-component-design-fpp
12kMembantu agent Anda mengubah persyaratan komponen F Prime yang sudah disetujui menjadi model FPP untuk port, perintah, event, dan telemetri-nya.
fprime-component-development
12kMembantu agent Anda memandu komponen F Prime melalui setiap fase pengembangan, dari persyaratan hingga tes integrasi.
fprime-component-implementation
12kMembantu agent Anda menulis kode C++ di balik fungsi handler yang dihasilkan untuk komponen F Prime, dengan mengikuti aturan proyek.
Skill serupa
technical-documentation
394kMembantu agent Anda menulis dan meninjau dokumentasi teknis serta file instruksi agent yang jelas, agar orang dan alat AI dapat mengikutinya dengan mudah.
architecture-decision-records
280kMembuat agent Anda mencatat keputusan penting terkait struktur proyek. Membantu memahami alasan di balik pilihan dan menjaga riwayat perubahan yang jelas.
code-tour
280kMembuat agent Anda menyusun panduan kode langkah demi langkah dengan referensi file dan nomor baris yang tepat. Berguna untuk pengenalan, penjelasan, dan review.