fprime-component-development
Skill này làm gì
Skill dẫn AI đi qua các bước yêu cầu, thiết kế FPP, mã C++, kiểm thử đơn vị và kiểm thử tích hợp theo thứ tự. Dành cho các nhóm xây dựng thành phần phần mềm bay mới.
Khi nào nên dùng
- ✓Khi bạn bắt đầu một thành phần F Prime mới và muốn tuân theo đầy đủ quy trình.
- ✓Khi bạn muốn thêm một chức năng quan trọng vào thành phần F Prime đã có.
- ✓Khi bạn muốn mỗi giai đoạn được duyệt trước khi giai đoạn tiếp theo bắt đầu.
Liên kết skill
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-development/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể hướng dẫn tôi xây dựng một thành phần F Prime mới, từ yêu cầu đến các bài kiểm thử không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI chạy các giai đoạn theo thứ tự, hỏi thay vì đoán và chờ bạn duyệt trước khi chuyển sang giai đoạn kế tiếp.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
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.
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 (seedocs/how-to/test-driven-development.md).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.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.
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 |
Câu hỏi thường gặp
Nó có bỏ bước để tiết kiệm thời gian không?
Không. Skill nói rõ không được bỏ qua giai đoạn nào hoặc đoán các quyết định về yêu cầu và thiết kế.
Các giai đoạn gồm những gì?
Gồm yêu cầu, thiết kế FPP, triển khai C++, kiểm thử đơn vị và kiểm thử tích hợp.
Mỗi giai đoạn có cần duyệt không?
Có. Mỗi giai đoạn chỉ mở ra giai đoạn tiếp theo khi bạn duyệt rõ ràng.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 12k
- Vị trí xếp hạng
- #11495
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
fprime-cmake-build-system
12kGiúp agent của bạn thêm module, build target và cài đặt nền tảng vào dự án phần mềm bay F Prime thông qua lớp CMake của nó.
fprime-component-design-fpp
12kGiúp agent của bạn chuyển các yêu cầu thành phần F Prime đã được duyệt thành mô hình FPP cho các port, lệnh, sự kiện và telemetry.
fprime-component-implementation
12kGiúp agent của bạn viết mã C++ phía sau các hàm xử lý được sinh tự động của một thành phần F Prime, theo đúng quy tắc của dự án.
fprime-component-integration-test
12kGiúp agent của bạn viết các bài kiểm thử tích hợp pytest dùng lại được cho thành phần F Prime, chạy trên một triển khai đang hoạt động.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.