fprime-maintenance
Fungsinya
Skill ini mengajari AI untuk membuat perubahan minimal yang dibutuhkan perbaikan bug atau pembaruan, dan bertanya sebelum melakukan perancangan ulang yang lebih besar. Skill ini untuk insinyur yang merawat perangkat lunak penerbangan F Prime yang sudah ada.
Kapan dipakai
- βSaat Anda perlu memperbaiki bug di kode F Prime yang sudah ada dengan perubahan aman sekecil mungkin.
- βSaat Anda memperbarui API atau dependensi di komponen F Prime.
- βSaat komentar tinjauan meminta perubahan kecil lanjutan pada kode yang sudah ada.
Link skill
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-maintenance/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
βTolong perbaiki bug ini di komponen F Prime yang sudah ada dengan perubahan sekecil mungkin.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI menyatakan tugas dan tes penerimaannya, menemukan kumpulan berkas terkecil yang perlu diubah, hanya membuat edit pada berkas tersebut, lalu bertanya kepada insinyur sebelum rombakan yang lebih besar.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Skill: F Prime maintenance β the doctrine of minimal effect
When maintaining existing code the goal is the minimal change necessary to complete the task. Focus explicitly on the task at hand and on low-hanging-fruit technical-debt cleanup. Do not rework the design, the architecture, or anything else. If a larger rework appears necessary (for example, to avoid adding technical debt), propose it and obtain an engineer's approval before doing it.
Creating new components, topologies, or build modules is not
maintenance; follow .github/agents/fprime-development.agent.md for
that work. This skill applies alongside the phase skills whenever the
task touches code that already exists.
1. Scope the task before touching code
- State the task in one sentence: the defect, behavior change, or update, and its acceptance criterion (the test that fails today, the warning that must go away, the API that must be adopted).
- Identify the smallest set of files and symbols that must change to meet it. That set is the scope; everything else is out of scope unless Β§3 or Β§4 admits it.
- Read the surrounding code and the component
docs/sdd.mdfirst. The change must fit the existing design, not the design you would have chosen.
2. Make the minimal change
- Change only what the task requires. Preserve existing interfaces (ports, commands, events, telemetry, parameters, public signatures), file layout, naming, and all behavior outside the task.
- Follow the surrounding conventions even where they differ from newer
code elsewhere.
fprime-cpp-designstill governs every line you write. - Do not rename, reorder, move, or reformat code the task does not
touch. Run
clang-formaton changed files only. - Do not modernize, generalize, or add abstraction, configuration, or features "while you are here".
- Update only the artifacts the change invalidates: unit tests for the
changed behavior, the component
docs/sdd.md, and thedocs/pages that describe it. - Fit the tests to the change: a regression test for the defect and one
test per behavior the task added or changed. Do not add tests for
behavior the task did not touch; record coverage gaps as future work
(Β§5). Once the new tests pass, run the consolidation step in
fprime-unit-testingΒ§1 so shared sequences become helpers or rules. - Keep comments short and about the code as it now is. Do not add comments that narrate the change, describe the old behavior, or justify the new code against it; that context belongs in the PR description.
- Keep the diff reviewable: every hunk must map to the task statement or to a cleanup item declared under Β§3.
3. Low-hanging fruit β permitted cleanup
Technical-debt cleanup is permitted only when it is adjacent to the task (a function or file you are already editing), mechanical and behavior-preserving, and small enough to verify by inspection. Examples:
- a typo, stale comment, or outdated doc line the change made you read
- a magic literal on a touched line replaced with the existing named constant
- dead code or an unused include the change makes obviously dead
- a missing
override,const,nullptr, or fixed-width type on a touched declaration - an unchecked return code on a call you are already modifying
Anything larger is not low-hanging fruit, however beneficial. List each cleanup item in the PR description so reviewers can separate it from the task itself.
4. Rework requires engineer approval
Sometimes the minimal change would add technical debt, or the task cannot be completed within the existing design. Do not decide this alone:
- Stop before starting the rework. Leave the minimal change, if one exists, in a clearly described state.
- Write a short proposal: why the minimal approach is inadequate, the rework and its extent (files, interfaces, behavior affected), alternatives considered, and the risk.
- Present it to the responsible engineer β the requesting user, the
component maintainer (
maintainer-lookup), or an issue for CCB review perGOVERNANCE.mdβ and wait for explicit approval. Silence is not approval. - Once approved, deliver the rework separately from the fix (its own PR, or clearly separated commits) so each can be reviewed and reverted independently.
Rework includes changing an FPP interface, restructuring a component or its state, changing a framework type or OSAL contract, movin
Pertanyaan umum
Apakah AI bisa merancang ulang kode saat memperbaiki bug?
Tidak. Skill ini menyebutkan untuk menghindari perombakan desain dan mengajukan perubahan yang lebih besar untuk disetujui terlebih dahulu.
Apakah skill ini mencakup pembuatan komponen baru?
Tidak. Komponen baru, topologi, dan modul build mengikuti skill pengembangan.
Apakah AI bisa membersihkan kode yang disentuhnya?
Hanya pembersihan utang teknis ringan yang berkaitan dengan tugas tersebut yang diizinkan.
Detail
Deskripsi asli dari pembuat
Use when modifying pre-existing F Prime code β bug fixes, small behavior changes, API or dependency updates, review follow-ups, or cleanup β as opposed to creating new components, topologies, or build modules. Applies the doctrine of minimal effect: make the smallest change that completes the task, take only low-hanging technical-debt cleanup along the way, and obtain engineer approval before any rework of design or architecture. Keywords: F Prime, maintenance, bug fix, minimal change, scope, technical debt, refactor, rework.
repo: nasa/fprime
Popularitas
- Bintang GitHub
- 12k
- Peringkat
- #11501
- 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
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.