fprime-maintenance
Ce qu’il fait
Elle apprend à l'IA à faire le changement minimal qu'exige une correction de bogue ou une mise à jour, et à demander avant toute refonte plus importante. Elle s'adresse aux ingénieurs qui maintiennent des logiciels de vol F Prime existants.
Quand l’utiliser
- ✓Quand vous devez corriger un bogue dans du code F Prime existant avec le plus petit changement sûr.
- ✓Quand vous mettez à jour une API ou une dépendance dans un composant F Prime.
- ✓Quand des commentaires de relecture demandent une petite modification de suivi sur du code existant.
Lien du skill
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-maintenance/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Pouvez-vous corriger ce bogue dans le composant F Prime existant avec le plus petit changement possible ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'IA énonce la tâche et son test d'acceptation, identifie le plus petit ensemble de fichiers à modifier, n'effectue que ces modifications et demande à un ingénieur avant toute refonte plus large.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
L'IA peut-elle redessiner le code en corrigeant un bogue ?
Non. La skill indique d'éviter de retravailler la conception et de soumettre les changements plus larges à approbation d'abord.
Couvre-t-elle la création de nouveaux composants ?
Non. Les nouveaux composants, topologies et modules de compilation suivent plutôt les skills de développement.
Peut-elle nettoyer le code qu'elle touche ?
Seul le nettoyage de dette technique simple et lié à la tâche est autorisé.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 12k
- Position au classement
- #11501
- Licence
- Apache-2.0
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
fprime-cmake-build-system
12kAide votre agent à ajouter des modules, des cibles de compilation et des réglages de plateforme à un projet de logiciel de vol F Prime, grâce à sa couche CMake.
fprime-component-design-fpp
12kAide votre agent à transformer les exigences approuvées d'un composant F Prime en un modèle FPP de ses ports, commandes, événements et télémesures.
fprime-component-development
12kAide votre agent à guider un composant F Prime à travers chaque phase de développement, des exigences jusqu'aux tests d'intégration.
fprime-component-implementation
12kAide votre agent à écrire le code C++ derrière les fonctions de traitement générées pour un composant F Prime, en suivant les règles du projet.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.