fprime-maintenance
Qué hace
Enseña a la IA a hacer el cambio mínimo que necesita una corrección o una actualización, y a preguntar antes de cualquier rediseño mayor. Está pensada para ingenieros que mantienen software de vuelo de F Prime existente.
Cuándo usarla
- ✓Cuando necesitas corregir un error en código de F Prime existente con el cambio más pequeño y seguro.
- ✓Cuando actualizas una API o una dependencia en un componente de F Prime.
- ✓Cuando los comentarios de una revisión piden un pequeño cambio de seguimiento en código existente.
Link de la skill
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-maintenance/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Por favor, corrige este error en el componente de F Prime existente con el cambio más pequeño posible.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA indica la tarea y su prueba de aceptación, encuentra el conjunto más pequeño de archivos que cambiar, hace solo esas ediciones y pregunta a un ingeniero antes de cualquier rehacer mayor.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Puede la IA rediseñar código al corregir un error?
No. La skill indica que hay que evitar rehacer el diseño y proponer los cambios mayores para aprobación previa.
¿Cubre la creación de componentes nuevos?
No. Los componentes nuevos, las topologías y los módulos de compilación siguen las skills de desarrollo.
¿Puede limpiar el código que toca?
Solo se permite la limpieza de deuda técnica sencilla y relacionada con la tarea.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 12 mil
- Posición en el ranking
- #11501
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
fprime-cmake-build-system
12 milAyuda a tu agente a añadir módulos, objetivos de compilación y ajustes de plataforma a un proyecto de software de vuelo F Prime a través de su capa de CMake.
fprime-component-design-fpp
12 milAyuda a tu agente a convertir los requisitos aprobados de un componente de F Prime en un modelo FPP de sus puertos, comandos, eventos y telemetría.
fprime-component-development
12 milAyuda a tu agente a guiar un componente de F Prime por cada fase de desarrollo, desde los requisitos hasta las pruebas de integración.
fprime-component-implementation
12 milAyuda a tu agente a escribir el código C++ detrás de las funciones manejadoras generadas de un componente de F Prime, siguiendo las reglas del proyecto.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.