fprime-component-development
Fungsinya
Skill ini memandu AI melalui persyaratan, desain FPP, kode C++, tes unit, dan tes integrasi secara berurutan. Skill ini untuk tim yang membangun komponen perangkat lunak penerbangan baru.
Kapan dipakai
- βSaat Anda memulai komponen F Prime baru dan ingin seluruh proses diikuti.
- βSaat Anda ingin menambahkan fungsi signifikan ke komponen F Prime yang sudah ada.
- βSaat Anda ingin setiap fase disetujui sebelum fase berikutnya dimulai.
Link skill
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-development/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
βBisakah Anda memandu saya membangun komponen F Prime baru, dari persyaratan hingga tes?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI menjalankan fase-fasenya secara berurutan, mengajukan pertanyaan alih-alih menebak, dan menunggu persetujuan sebelum berpindah ke fase berikutnya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Skill: F Prime Component Development Process
The flight development process for F Prime components follows a strict sequential lifecycle. Each phase produces artifacts that feed the next. Never skip a phase or guess at requirements/design decisions β always ask the user.
For the canonical process description, see the FΒ΄ Development Process.
Process Overview
1. Requirements β 2. Design (FPP) β 3. Implementation (C++) β 4. Unit Test β 5. Integration Test
Each phase has a dedicated skill with detailed guidance:
| Phase | Skill | Key Output |
|---|---|---|
| 1. Requirements | fprime-component-requirements |
Written requirements list |
| 2. Design | fprime-component-design-fpp |
.fpp model file |
| 3. Implementation | fprime-component-implementation |
.cpp / .hpp files |
| 4. Unit Test | fprime-component-unit-test |
test/ut/ test suite |
| 5. Integration Test | fprime-component-integration-test |
test/int/ pytest suite |
Cardinal Rules
Ask, don't guess. If you are unsure about a requirement, interface, behavior, naming convention, or deployment context β stop and ask the user. Wrong assumptions in flight software are costly.
Each phase gates the next β with explicit user approval. When an agent orchestrates this skill, the requirements and design phases first pass the review loop of
.github/agents/_shared/phase-review-loop.md; the writing skills themselves do not iterate. Present the requirements (with their review record, when the loop ran) to the user and obtain approval before starting design. Present the design (FPP model, port layout, behavior, and any configuration) to the user and obtain explicit confirmation before writing any implementation or unit-test code. This applies even to trivial or pass-through components; simplicity does not waive the gate. Once the model is confirmed, you may write tests against it following the test-driven development pattern (seedocs/how-to/test-driven-development.md).Reference the C++ design skill. All implementation must comply with
fprime-cpp-design(CPP-1 through CPP-37). Consult it before writing any C++ code.Follow Test-Driven Development when possible. The recommended F Prime workflow is: design in FPP β write tests β implement to pass tests. See the TDD guide.
Document as you go. Each component should have an SDD (
docs/sdd.md) that records requirements coverage, port descriptions, and design rationale.
When to Use This Skill
- Creating a new component from scratch
- Adding significant new functionality to an existing component (new ports, commands, telemetry, state machines)
- Migrating or refactoring a component where the interface changes
For small bug fixes or implementation-only changes that don't alter the component's interface, you may skip directly to the implementation and unit test phases β but confirm with the user first.
Quick Reference: Key Commands
| Action | Command |
|---|---|
| Create new component | fprime-util new --component |
| Create new port | fprime-util new --port |
| Generate impl stubs | fprime-util impl |
| Generate UT stubs | fprime-util impl --ut |
| Build component | fprime-util build |
| Run unit tests | fprime-util check |
| Run with coverage | fprime-util check --coverage |
| Generate UT build | fprime-util generate --ut |
| Scaffold rule-based tests | fprime-util new --rule-based-test |
Pertanyaan umum
Apakah skill ini akan melewati langkah untuk menghemat waktu?
Tidak. Skill ini menyebutkan untuk tidak pernah melewati fase atau menebak persyaratan maupun keputusan desain.
Apa saja fasenya?
Fasenya adalah persyaratan, desain FPP, implementasi C++, tes unit, dan tes integrasi.
Apakah setiap fase memerlukan persetujuan?
Ya, setiap fase menahan fase berikutnya sampai ada persetujuan eksplisit dari pengguna.
Detail
Deskripsi asli dari pembuat
Top-level flight development process for F Prime components. Orchestrates the full lifecycle from requirements through integration testing. Trigger on any task involving creating a new F Prime component or adding significant functionality to an existing one. Keywords: F Prime, component, development, lifecycle, flight software, requirements, design, implementation, unit test, integration test.
repo: nasa/fprime
Popularitas
- Bintang GitHub
- 12k
- Peringkat
- #11495
- 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-implementation
12kMembantu agent Anda menulis kode C++ di balik fungsi handler yang dihasilkan untuk komponen F Prime, dengan mengikuti aturan proyek.
fprime-component-integration-test
12kMembantu agent Anda menulis tes integrasi pytest yang dapat dipakai ulang untuk komponen F Prime dan dijalankan terhadap deployment yang aktif.
Skill serupa
api-connector-builder
280kMembuat agent Anda membangun koneksi API baru mengikuti pola yang sudah ada. Gunakan saat ingin menambah integrasi lagi tanpa membuat cara baru.
api-design
280kMembantu agent Anda merancang REST API sesuai praktik terbaik. Berguna untuk mengatur cara API berkomunikasi, menampilkan error, dan mengorganisasi data.
backend-patterns
280kMembantu agent Anda dengan pola arsitektur sisi server dan optimasi database. Berguna untuk membangun atau meninjau kode yang berjalan di server.