본문으로 건너뛰기
Skillpedia
일반 코딩12k · #11501

fprime-maintenance

하는 일

버그 수정이나 업데이트에 필요한 가장 작은 변경만 하고, 더 큰 재설계 전에는 묻도록 AI를 가르칩니다. 기존 F Prime 비행 소프트웨어를 유지보수하는 엔지니어를 위한 스킬입니다.

사용하는 경우

  • ✓가장 작고 안전한 변경으로 기존 F Prime 코드의 버그를 고쳐야 할 때.
  • ✓F Prime 컴포넌트의 API나 의존성을 업데이트할 때.
  • ✓리뷰 의견이 기존 코드에 대한 작은 후속 변경을 요구할 때.

스킬 링크

https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-maintenance/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-maintenance/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“기존 F Prime 컴포넌트의 이 버그를 가능한 한 작은 변경으로 고쳐 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 작업과 수락 테스트를 밝히고, 바꿔야 할 가장 작은 파일 집합을 찾아 그 파일만 수정하며, 더 큰 재작업 전에는 엔지니어에게 묻습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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.md first. 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-design still governs every line you write.
  • Do not rename, reorder, move, or reformat code the task does not touch. Run clang-format on 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 the docs/ 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:

  1. Stop before starting the rework. Leave the minimal change, if one exists, in a clearly described state.
  2. Write a short proposal: why the minimal approach is inadequate, the rework and its extent (files, interfaces, behavior affected), alternatives considered, and the risk.
  3. Present it to the responsible engineer — the requesting user, the component maintainer (maintainer-lookup), or an issue for CCB review per GOVERNANCE.md — and wait for explicit approval. Silence is not approval.
  4. 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

자주 묻는 질문

버그를 고치면서 설계를 다시 짤 수 있나요?

아닙니다. 스킬은 설계를 다시 짜지 말고, 더 큰 변경은 승인을 위해 먼저 제안하라고 설명합니다.

새 컴포넌트를 만드는 것도 다루나요?

아닙니다. 새 컴포넌트, 토폴로지, 빌드 모듈은 개발 스킬이 다룹니다.

건드린 코드를 정리할 수 있나요?

작업과 관련된 손쉬운 기술 부채 정리만 허용됩니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
12k
순위
#11501
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬