본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)12k · #11494

fprime-component-design-fpp

하는 일

F Prime 컴포넌트의 C++ 기반 코드를 생성하는 FPP 인터페이스 모델을 작성하도록 AI 에이전트를 안내합니다. 비행 소프트웨어 컴포넌트를 설계하는 엔지니어를 위한 스킬입니다.

사용하는 경우

  • ✓F Prime 컴포넌트의 요구사항이 승인되어 인터페이스를 작성해야 할 때.
  • ✓컴포넌트의 포트, 명령, 이벤트, 텔레메트리를 골라야 할 때.
  • ✓컴포넌트에 표준 F Prime 설계 패턴을 재사용하고 싶을 때.

스킬 링크

https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-design-fpp/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-design-fpp/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 컴포넌트의 FPP 모델을 작성해 주실 수 있나요?”

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

작동 방식

AI는 승인된 요구사항을 FPP 파일로 바꾸고, 불명확한 포트나 명령 선택에 대해 질문합니다. 이후 컴파일러가 기본 코드를 생성합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Skill: F Prime Component Design (FPP)

The design phase codifies requirements into an FPP model — the single source of truth for the component's interface. The FPP compiler generates C++ base classes, test harnesses, and dictionaries from this model.

For FPP syntax and modeling details, see the FPP User's Guide. For component/port/command kinds, see Selecting Component, Port, and Command Kinds.

Reference the F Prime design patterns where possible — standard solutions exist for common needs:

  • Rate Group Pattern — docs/user-manual/design-patterns/rate-group.md
  • Health Checking — docs/user-manual/design-patterns/health-checking.md
  • Manager-Worker — docs/user-manual/design-patterns/manager-worker.md
  • Application-Manager-Driver — docs/user-manual/design-patterns/app-man-drv.md
  • Common Port Patterns — docs/user-manual/design-patterns/common-port-patterns.md
  • Hub Pattern — docs/user-manual/design-patterns/hub-pattern.md
  • Subtopologies — docs/user-manual/design-patterns/subtopologies.md

STOP — Confirm Before Designing

Before writing any FPP:

  1. Requirements must be confirmed (see fprime-component-requirements).
  2. Ask the user about any ambiguity in:
    • Port types (does a suitable port already exist, or do we need a new one?)
    • Command argument types and names
    • Telemetry channel update frequency semantics (on-change vs. periodic)
    • Event severity levels (DIAGNOSTIC, ACTIVITY_LO, ACTIVITY_HI, WARNING_LO, WARNING_HI, FATAL)
    • Parameter default values
    • Whether to use existing F Prime standard ports (Fw.Signal, Svc.Sched, Svc.Ping, etc.)

Step-by-Step Process

Step 0 — Scaffold with fprime-util

Start with fprime-util new --component for the base structure. This generates the initial directory layout, CMakeLists.txt, and FPP stub.

Step 1 — Choose Component Kind

Based on requirements (see docs/user-manual/framework/component-and-port-selection.md for the full decision guide):

Work Type Component Kind When to Use
Cyclic (hard deadline) passive Rate-group driven, no own thread
Cyclic with internal queue queued Deferred work within a cycle
Event-driven active Owns a thread, processes async messages

Ask the user if unsure. The component kind determines thread ownership and port synchronization semantics.

Step 2 — Define Ports

For each interface requirement, define input/output ports. Port kinds:

  • sync input — executes in caller's thread
  • async input — enqueued, executes in component's thread
  • guarded input — sync with component-wide mutex

See the FPP User's Guide for port definition syntax.

Standard framework ports to consider including:

Need Port Import
Rate-group scheduling sync input port run: Svc.Sched import Svc.Sched
Health ping async input port pingIn: Svc.Ping drop import Svc.Ping
Time access time get port timeCaller (special port)
Command handling command recv port cmdIn (special port)
Event logging event port eventOut (special port)
Telemetry telemetry port tlmOut (special port)

If the component is active, it probably needs health-ping support. Requirements should imply whether rate-group scheduling is needed. Ask the user only if unsure about which standard services to connect to.

Step 3 — Define Commands, Telemetry, Events, Parameters

Follow the FPP User's Guide for syntax. Follow F Prime Style Guidelines for naming conventions:

  • Commands: UPPER_SNAKE_CASE
  • Telemetry channels: PascalCase
  • Events: PascalCase
  • Parameters: PascalCase

For each construct, derive names, types, and semantics from the confirmed requirements. Define an event for each command that describes what the command did, including the command arguments, so the implementation can emit it (CPP-37). Every event emission must be traceable to a single call site (CPP-36): give each site its own event, or an argument (typically an enum) whose value differs at every site. Ask the user if:

  • The command kind (sync/async/guarded) is
자주 묻는 질문

질문 없이 설계하나요?

아닙니다. 스킬은 설계 전에 불명확한 포트 타입과 인터페이스 세부 사항을 묻도록 설명합니다.

FPP 파일은 무엇을 생성하나요?

FPP 컴파일러가 그것으로 C++ 기반 클래스, 테스트 하네스, 딕셔너리를 생성합니다.

어떤 설계 패턴을 언급하나요?

레이트 그룹, 상태 점검, 매니저-워커, 허브 패턴 같은 패턴을 언급합니다.

상세 정보

작성자의 원본 설명

FPP design phase of F Prime component development. Guides the agent through creating the FPP model that codifies the component's interface — ports, commands, events, telemetry, and parameters. Trigger when the requirements are confirmed and the next step is to write the .fpp file. Keywords: F Prime, FPP, design, model, ports, commands, telemetry, events, parameters, component definition.

repo: nasa/fprime

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬