fprime-component-design-fpp
What it does
It guides the AI through writing the FPP interface model that generates the C++ base code for an F Prime component. It is for engineers designing flight software components.
When to use it
- βWhen requirements for an F Prime component are approved and its interface needs writing.
- βWhen you need to choose ports, commands, events or telemetry for a component.
- βWhen you want to reuse a standard F Prime design pattern in a component.
Skill link
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-design-fpp/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βOur requirements are approved. Can you write the FPP model for this F Prime component?β
5 new skills a week. 1 minute to read.
How it works
The AI turns the approved requirements into an FPP file, asks about any unclear port or command choices, and the compiler then generates the base code.
Technical content (original SKILL.md)
Original text by the author, straight from 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:
- Requirements must be confirmed (see
fprime-component-requirements). - 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 threadasync inputβ enqueued, executes in component's threadguarded 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
FAQ
Will it design without asking questions?
No. The skill says to ask about unclear port types and interface details before designing.
What does the FPP file generate?
The FPP compiler generates C++ base classes, test harnesses and dictionaries from it.
Which design patterns does it mention?
It names patterns such as rate groups, health checking, manager-worker and hub patterns.
Details
Original description by the author
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
Popularity
- GitHub stars
- 12k
- Ranking position
- #11494
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
fprime-cmake-build-system
12kHelps your agent add modules, build targets and platform settings to an F Prime flight software project through its CMake layer.
fprime-component-development
12kHelps your agent guide an F Prime component through each development phase, from requirements to integration testing.
fprime-component-implementation
12kHelps your agent write the C++ code behind an F Prime component's generated handler functions, following the project's rules.
fprime-component-integration-test
12kHelps your agent write reusable pytest integration tests for an F Prime component that run against a live deployment.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.