fprime-topology-development
Fungsinya
Skill ini memandu AI untuk mengedit berkas topologi yang menentukan komponen mana yang berjalan dan bagaimana komponen tersebut terhubung dalam sistem F Prime. Skill ini untuk insinyur yang merakit deployment F Prime.
Kapan dipakai
- βSaat Anda menambahkan komponen baru ke deployment F Prime yang sudah ada.
- βSaat Anda mengubah instance, koneksi, atau rate group dalam topologi.
- βSaat Anda perlu membuat atau mengubah subtopologi dalam deployment.
Link skill
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-topology-development/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTolong tambahkan komponen sensor baru saya ke topologi F Prime dan hubungkan ke rate group.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI mengedit definisi instance dan koneksi topologi, menjaga definisi serta keanggotaan tetap selaras, lalu memeriksa bahwa topologi dapat dibangun.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Di mana instance didefinisikan?
Instance didefinisikan di instances.fpp, dan topology.fpp menentukan instance mana yang ikut dalam deployment.
Apakah skill ini mencakup pembuatan komponen itu sendiri?
Tidak. Desain dan kode komponen termasuk dalam skill pengembangan komponen.
Apakah ada contoh untuk diikuti?
Ya, skill ini menunjuk ke topologi referensi TestDeploymentsProject sebagai contoh yang berfungsi.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 12k
- Peringkat
- #11503
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
fprime-cmake-build-system
12kMembantu agent Anda menambahkan modul, target build, dan pengaturan platform ke proyek perangkat lunak penerbangan F Prime melalui lapisan CMake-nya.
fprime-component-design-fpp
12kMembantu agent Anda mengubah persyaratan komponen F Prime yang sudah disetujui menjadi model FPP untuk port, perintah, event, dan telemetri-nya.
fprime-component-development
12kMembantu agent Anda memandu komponen F Prime melalui setiap fase pengembangan, dari persyaratan hingga tes integrasi.
fprime-component-implementation
12kMembantu agent Anda menulis kode C++ di balik fungsi handler yang dihasilkan untuk komponen F Prime, dengan mengikuti aturan proyek.
Skill serupa
api-connector-builder
280kMembuat agent Anda membangun koneksi API baru mengikuti pola yang sudah ada. Gunakan saat ingin menambah integrasi lagi tanpa membuat cara baru.
api-design
280kMembantu agent Anda merancang REST API sesuai praktik terbaik. Berguna untuk mengatur cara API berkomunikasi, menampilkan error, dan mengorganisasi data.
backend-patterns
280kMembantu agent Anda dengan pola arsitektur sisi server dan optimasi database. Berguna untuk membangun atau meninjau kode yang berjalan di server.