fprime-topology-development
O que ela faz
Ele orienta a IA na edição dos arquivos de topologia que definem quais componentes rodam e como se conectam em um sistema F Prime. É para engenheiros que montam implantações F Prime.
Quando usar
- ✓Quando você adiciona um novo componente a uma implantação F Prime existente.
- ✓Quando altera as instâncias, conexões ou grupos de taxa em uma topologia.
- ✓Quando precisa criar ou alterar uma subtopologia em uma implantação.
Link da skill
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-topology-development/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Por favor, adicione meu novo componente de sensor à topologia F Prime e conecte-o ao grupo de taxa.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA edita as definições de instância e as conexões da topologia, mantém as definições e a participação em sincronia e depois verifica se a topologia compila.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Onde as instâncias são definidas?
São definidas em instances.fpp, e topology.fpp decide quais delas entram na implantação.
Ele cobre a construção dos próprios componentes?
Não. O projeto e o código do componente pertencem aos skills de desenvolvimento de componentes.
Existe um exemplo para seguir?
Sim. A skill aponta para a topologia de referência TestDeploymentsProject como exemplo funcional.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 12 mil
- Posição no ranking
- #11503
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
fprime-cmake-build-system
12 milAjuda seu agente a adicionar módulos, alvos de build e configurações de plataforma a um projeto de software de voo F Prime pela sua camada CMake.
fprime-component-design-fpp
12 milAjuda seu agente a transformar requisitos aprovados de um componente F Prime em um modelo FPP de suas portas, comandos, eventos e telemetria.
fprime-component-development
12 milAjuda seu agente a conduzir um componente F Prime por cada fase de desenvolvimento, desde os requisitos até os testes de integração.
fprime-component-implementation
12 milAjuda seu agente a escrever o código C++ por trás das funções de tratamento geradas de um componente F Prime, seguindo as regras do projeto.
Skills parecidas
api-connector-builder
280 milFaz seu agente construir novas conexões com APIs seguindo o padrão já existente. Use quando precisar adicionar mais uma integração sem criar um novo jeito de fazer.
api-design
280 milAjuda seu agente a projetar APIs REST seguindo as melhores práticas. É útil para definir como as APIs se comunicam, como os erros são mostrados e como organizar os dados.
backend-patterns
280 milAjuda seu agente com padrões de arquitetura do lado do servidor e otimização de banco de dados. É útil para construir ou revisar o código que roda no servidor.