fprime-component-development
ما الذي تفعله
يرشد الوكيل عبر المتطلبات وتصميم FPP وشيفرة C++ واختبارات الوحدة واختبارات التكامل بالترتيب. وهي مناسبة للفرق التي تبني مكونات جديدة لبرمجيات الطيران.
متى تستخدمها
- ✓عندما تبدأ مكوّن F Prime جديدا وتريد اتباع العملية كاملة.
- ✓عندما تريد إضافة وظيفة كبيرة إلى مكوّن F Prime قائم.
- ✓عندما تريد اعتماد كل مرحلة قبل بدء المرحلة التالية.
رابط المهارة
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-development/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل تستطيع توجيهي في بناء مكوّن F Prime جديد، من المتطلبات حتى الاختبارات؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
ينفذ الوكيل المراحل بالترتيب، ويطرح الأسئلة بدل التخمين، ويتوقف لانتظار موافقتك قبل الانتقال إلى المرحلة التالية.
المحتوى التقني (ملف 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
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 |
الأسئلة الشائعة
هل سيتجاوز خطوات لتوفير الوقت؟
لا. تقول المهارة إنه لا يتجاوز أي مرحلة ولا يخمّن المتطلبات أو قرارات التصميم.
ما المراحل؟
المتطلبات، وتصميم 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
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
fprime-cmake-build-system
12kيساعد وكيلك على إضافة وحدات وأهداف بناء وإعدادات منصات إلى مشروع برمجيات طيران F Prime عبر طبقة CMake الخاصة به.
fprime-component-design-fpp
12kيساعد وكيلك على تحويل متطلبات مكوّن F Prime المعتمدة إلى نموذج FPP يصف منافذه وأوامره وأحداثه وقياساته عن بُعد.
fprime-component-implementation
12kيساعد وكيلك على كتابة شيفرة C++ خلف دوال المعالجة المولّدة لمكوّن F Prime، باتباع قواعد المشروع.
fprime-component-integration-test
12kيساعد وكيلك على كتابة اختبارات تكامل pytest قابلة لإعادة الاستخدام لمكوّن F Prime، تعمل على نشر حي.
مهارات مشابهة
api-connector-builder
280kيبني وكيلك اتصالات API جديدة على النمط الموجود، ويفيد عندما تحتاج إلى تكامل إضافي دون ابتكار طريقة جديدة للعمل.
api-design
280kيساعد وكيلك على تصميم واجهات REST API وفق أفضل الممارسات، ويوضح كيف تتواصل وكيف تُعرض الأخطاء وكيف تُنظَّم البيانات.
backend-patterns
280kيساعد وكيلك على أنماط بنية الخادم وتحسين قاعدة البيانات، ويفيد في بناء الشيفرة التي تعمل على الخادم أو مراجعتها.