跳到正文
Skillpedia
API 与服务器(后端)12k · #11495

fprime-component-development

它能做什么

它依次引导 AI 完成需求、FPP 设计、C++ 代码、单元测试和集成测试。适用于开发新飞行软件组件的团队。

适用场景

  • ✓当你开始一个新的 F Prime 组件,并希望遵循完整流程时。
  • ✓当你想为现有 F Prime 组件添加重要功能时。
  • ✓当你希望每个阶段获得批准后,才进入下一阶段时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-development/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请引导我从需求到测试,完整构建一个新的 F Prime 组件。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会按顺序执行各阶段,遇到问题时先提问而不是猜测,并在批准后才进入下一阶段。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Skill: F Prime Component Development Process

The flight development process for F Prime components follows a strict sequential lifecycle. Each phase produces artifacts that feed the next. Never skip a phase or guess at requirements/design decisions — always ask the user.

For the canonical process description, see the F´ Development Process.


Process Overview

1. Requirements  →  2. Design (FPP)  →  3. Implementation (C++)  →  4. Unit Test  →  5. Integration Test

Each phase has a dedicated skill with detailed guidance:

Phase Skill Key Output
1. Requirements fprime-component-requirements Written requirements list
2. Design fprime-component-design-fpp .fpp model file
3. Implementation fprime-component-implementation .cpp / .hpp files
4. Unit Test fprime-component-unit-test test/ut/ test suite
5. Integration Test fprime-component-integration-test test/int/ pytest suite

Cardinal Rules

  1. Ask, don't guess. If you are unsure about a requirement, interface, behavior, naming convention, or deployment context — stop and ask the user. Wrong assumptions in flight software are costly.

  2. Each phase gates the next — with explicit user approval. When an agent orchestrates this skill, the requirements and design phases first pass the review loop of .github/agents/_shared/phase-review-loop.md; the writing skills themselves do not iterate. Present the requirements (with their review record, when the loop ran) to the user and obtain approval before starting design. Present the design (FPP model, port layout, behavior, and any configuration) to the user and obtain explicit confirmation before writing any implementation or unit-test code. This applies even to trivial or pass-through components; simplicity does not waive the gate. Once the model is confirmed, you may write tests against it following the test-driven development pattern (see docs/how-to/test-driven-development.md).

  3. Reference the C++ design skill. All implementation must comply with fprime-cpp-design (CPP-1 through CPP-37). Consult it before writing any C++ code.

  4. Follow Test-Driven Development when possible. The recommended F Prime workflow is: design in FPP → write tests → implement to pass tests. See the TDD guide.

  5. Document as you go. Each component should have an SDD (docs/sdd.md) that records requirements coverage, port descriptions, and design rationale.


When to Use This Skill

  • Creating a new component from scratch
  • Adding significant new functionality to an existing component (new ports, commands, telemetry, state machines)
  • Migrating or refactoring a component where the interface changes

For small bug fixes or implementation-only changes that don't alter the component's interface, you may skip directly to the implementation and unit test phases — but confirm with the user first.


Quick Reference: Key Commands

Action Command
Create new component fprime-util new --component
Create new port fprime-util new --port
Generate impl stubs fprime-util impl
Generate UT stubs fprime-util impl --ut
Build component fprime-util build
Run unit tests fprime-util check
Run with coverage fprime-util check --coverage
Generate UT build fprime-util generate --ut
Scaffold rule-based tests fprime-util new --rule-based-test
常见问题

它会为了节省时间而跳过步骤吗?

不会。该技能要求绝不跳过任何阶段,也不对需求或设计决定进行猜测。

阶段有哪些?

依次为需求、FPP 设计、C++ 实现、单元测试和集成测试。

每个阶段都需要批准吗?

需要。每个阶段都需要你明确批准,才能进入下一阶段。

详情

作者的原始描述

Top-level flight development process for F Prime components. Orchestrates the full lifecycle from requirements through integration testing. Trigger on any task involving creating a new F Prime component or adding significant functionality to an existing one. Keywords: F Prime, component, development, lifecycle, flight software, requirements, design, implementation, unit test, integration test.

repo: nasa/fprime

热度

GitHub 星标
12k
排名
#11495
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能