fprime-topology-development
하는 일
F Prime 시스템에서 어떤 컴포넌트가 실행되고 어떻게 연결되는지 정의하는 토폴로지 파일을 편집하도록 AI 에이전트를 안내합니다. F Prime 배포를 조립하는 엔지니어를 위한 스킬입니다.
사용하는 경우
- ✓기존 F Prime 배포에 새 컴포넌트를 추가할 때.
- ✓토폴로지의 인스턴스, 연결, 레이트 그룹을 바꿀 때.
- ✓배포 안에 서브토폴로지를 만들거나 바꿔야 할 때.
스킬 링크
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-topology-development/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“새 센서 컴포넌트를 F Prime 토폴로지에 추가하고 레이트 그룹에 연결해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 인스턴스 정의와 토폴로지 연결을 편집하고, 정의와 구성원을 일치시킨 뒤, 토폴로지가 빌드되는지 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Skill: F Prime Topology Development
Covers everything between "a component exists" and "a deployment runs".
Most work here extends an existing topology rather than creating one
from scratch. Component-level work belongs to
fprime-component-development; CMake and build-cache mechanics belong
to fprime-cmake-build-system.
Canonical references:
building the topology,
port/component/topology overview,
autocoded functions.
Working exemplar: TestDeploymentsProject/Ref/Top/.
1 — Anatomy of a Top/ directory
| File | Holds |
|---|---|
instances.fpp |
Instance definitions: type, base id, queue/stack/priority/cpu |
topology.fpp |
Topology membership, pattern graphs, connection graphs, packet include |
system.fpp |
system <Name>: <Topology> — the deployment entry point |
<Dep>Packets.fppi |
telemetry packets + omit { ... } list |
<Dep>TopologyDefs.hpp |
TopologyState struct, PingEntries constants |
<Dep>Topology.cpp |
setupTopology / teardownTopology, project-specific configureTopology |
Definition and membership are separate: an instance defined in
instances.fpp only joins the topology when named by instance <name>
inside deployment topology <Name> { ... }. Defined-but-unused
instances are legal and are neither constructed nor started.
2 — Instance definitions
- Passive:
instance posixTime: Svc.PosixTime base id 0x10020000 - Queued: add
queue size ... - Active: add
queue size ...,stack size ...,priority ..., andcpu ...where affinity matters.
Base IDs must be unique and non-overlapping across the whole
deployment, including subtopologies. Ref uses 0xDSSCCxxx
(deployment / subtopology / component / reserved low 12 bits for the
instance's own events, commands, channels) — see the header comment in
instances.fpp.
Subtopologies offset from a configurable BASE_ID constant.
Thread priorities, stack sizes and affinities are project- and platform-specific; take them from the project's own conventions rather than from a generic default.
3 — Connections
Pattern graphs — one specifier per service wires the whole
deployment's command, event, telemetry, text-event, parameter, time,
and health ports, each naming the serving instance, e.g.
telemetry connections instance CdhCore.tlmSend. Prefer these over
hand-wiring service ports.
Direct graphs — named blocks connections <Name> { a.out -> b.in }.
Group by subsystem or by instance pair; port arrays are indexed, and
indices should come from an FPP enum (e.g. Ports_RateGroups) rather
than bare integers.
Matched ports — match <a> with <b> in the component model forces
parallel arrays to be connected at identical indices; FPP errors when
they are not. See
common port patterns.
Rate group scheduling — a timer drives
rateGroupDriverComp.CycleIn; each CycleOut[<group>] drives one
ActiveRateGroup.CycleIn, whose RateGroupMemberOut[<slot>] ports call
each member's schedIn-style port synchronously, in slot order. Rates
come from the DividerSet passed to RateGroupDriver::configure in the
topology .cpp. See
rate groups.
Unconnected output ports assert when invoked. A port that is
optional by design can be guarded with
isConnected_<port>_OutputPort(portNum) in the C++ implementation.
4 — Phased initialization
setupTopology calls autocoded functions in a fixed order:
initComponents → setBaseIds → connectComponents →
configComponents → project configureTopology → regCommands →
loadParameters → startTasks. Teardown reverses it:
stopTasks → freeThreads → tearDownComponents → deinitComponents.
Never start tasks or register commands before connections exist.
Per-instance C++ can be attached in FPP instead of the .cpp, via init
specifiers on an instance body:
instance $health: Svc.Health base id CdhCoreConfig.BASE_ID + 0x002000 \
queue size CdhCoreConfig.QueueSizes.$health \
{
phase Fpp.ToCpp.Phases.configComponents """
CdhCore::health.setPingEntries(...);
"""
}
Phases are mandatory inside subtopologies; d
자주 묻는 질문
인스턴스는 어디에 정의되나요?
instances.fpp에 정의되며, topology.fpp가 어떤 인스턴스가 배포에 참여할지 정합니다.
컴포넌트 자체를 빌드하는 것도 다루나요?
아닙니다. 컴포넌트 설계와 코드는 컴포넌트 개발 스킬에 속합니다.
따라 할 예제가 있나요?
네. 작동하는 참고 토폴로지로 TestDeploymentsProject를 가리킵니다.
상세 정보
작성자의 원본 설명
Develop and evolve an F Prime deployment topology: FPP instance definitions, base IDs, queue/stack/priority, connection graphs, rate group scheduling, phased initialization, subtopologies, and wiring a new or changed component into an existing deployment. Use whenever a task touches a `Top/` directory, `instances.fpp`, `topology.fpp`, a `*TopologyDefs.hpp`, or a subtopology. Keywords: F Prime, topology, deployment, instance, base id, connections, rate group, subtopology, phases, ping entries.
repo: nasa/fprime
인기도
- GitHub 스타
- 12k
- 순위
- #11503
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
fprime-cmake-build-system
12k에이전트가 F Prime 비행 소프트웨어 프로젝트의 CMake 계층을 통해 모듈, 빌드 타깃, 플랫폼 설정을 추가하도록 돕습니다.
fprime-component-design-fpp
12k에이전트가 승인된 F Prime 컴포넌트 요구사항을 포트, 명령, 이벤트, 텔레메트리의 FPP 모델로 바꾸도록 돕습니다.
fprime-component-development
12k에이전트가 요구사항에서 통합 테스트까지, F Prime 컴포넌트를 각 개발 단계마다 안내하도록 돕습니다.
fprime-component-implementation
12k에이전트가 F Prime 컴포넌트의 자동 생성된 핸들러 함수에 들어갈 C++ 코드를 프로젝트 규칙에 맞춰 작성하도록 돕습니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.