一键导入
embedded-framework
Universal Embedded Knowledge Framework for Ankh Agent - recognizes embedded frameworks, maps domains, and applies native-first patterns
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Universal Embedded Knowledge Framework for Ankh Agent - recognizes embedded frameworks, maps domains, and applies native-first patterns
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Universal Embedded Knowledge Framework for AI Coding Agents - recognizes embedded frameworks, maps domains, and applies native-first patterns
Universal Embedded Knowledge Framework for Hermes Agent - recognizes embedded frameworks, maps domains, and applies native-first patterns
Embedded debugging skill using CmBacktrace + GDB for crash log analysis, symbolication, GDB session management, and Cortex-M hardfault analysis
基于 SOC 职业分类
| name | embedded-framework |
| description | Universal Embedded Knowledge Framework for Ankh Agent - recognizes embedded frameworks, maps domains, and applies native-first patterns |
| trigger | **/*.c, **/*.h, **/*.cpp, **/*.ino, **/*.py, **/*.md |
| version | 1.0.0 |
This skill enables Ankh to analyze, understand, and contribute to embedded projects by:
Load this skill when:
Before any code generation, you MUST:
Output a domain map before writing any code:
## Running Domains Identified
1. **[Domain Name]**
- Location: path/
- Stack: technology
- Responsibility: what it does
2. **[Another Domain]**
- Location: path/
- Stack: technology
Native Framework API > Framework Adapter > Custom Abstraction
| Framework | Use | Don't Use |
|---|---|---|
| PX4 | uORB, module, parameter | FreeRTOS APIs |
| openvela | openvela framework, NuttX/POSIX | FreeRTOS xTaskCreate |
| FreeRTOS | xTaskCreate, xQueueSend | pthread, POSIX |
| Zephyr | device tree, Kconfig, device model | hardcoded GPIO |
| ESP-IDF | ESP-IDF components, FreeRTOS | vanilla FreeRTOS |
| RT-Thread | rt_device, rt_thread | FreeRTOS patterns |
| NuttX | POSIX, VFS, nxsem | FreeRTOS patterns |
| Bare metal | ISR, state machine, HAL | RTOS APIs |
Cross-domain communication MUST use explicit protocols:
| Transport | Protocol Format |
|---|---|
| UART | [HEADER, LEN, CMD, DATA, CRC] |
| CAN | [ID, DLC, DATA, CRC] |
| Ethernet | TCP/UDP with length prefix or protobuf |
# Detect project type
ls CMakeLists.txt Kconfig Makefile west.yml sdkconfig 2>/dev/null
# Check for specific frameworks
grep -r "xTaskCreate\|FreeRTOSConfig.h" . --include="*.c" # FreeRTOS
grep -r "uORB\|px4_add_module" . --include="*.cpp" # PX4
grep -r "rt_thread\|rt_mq_" . --include="*.c" # RT-Thread
grep -r "k_thread_\|DT_\|#include <zephyr" . --include="*.c" # Zephyr
grep -r "esp_\|sdkconfig" . --include="*.c" --include="*.h" # ESP-IDF
| Indicator | Framework |
|---|---|
uORB/, msg/, px4_add_module | PX4 |
apps/, frameworks/, Kconfig | openvela / NuttX |
xTaskCreate, FreeRTOSConfig.h | FreeRTOS |
rt_device, SConscript | RT-Thread |
dts/, west.yml, Kconfig | Zephyr |
sdkconfig, main/ | ESP-IDF |
Based on detected framework, route to appropriate knowledge:
| Framework | Primary Skill | Secondary Skill |
|---|---|---|
| PX4 | domains/px4/README.md | vendor_sdks/px4.md |
| Motor control | domains/motor_control/README.md | — |
| Robotics | domains/robotics/README.md | — |
| STM32 | vendor_sdks/stm32cube.md | — |
| ESP32 | vendor_sdks/esp_idf.md | — |
| Zephyr | domains/zephyr/README.md | vendor_sdks/zephyr.md |
| NuttX/openvela | domains/nuttx/README.md | — |
Before outputting code, verify:
When scanning a project, output:
# Project Analysis Report
## Project Type
[Multi-domain embedded / Single-domain / Linux-based / etc.]
## Framework Detected
[Primary framework with version if identifiable]
## Build System
[west / make / cmake / scons / etc.]
## Running Domains
### Domain 1: [Name]
- **Location:** path/
- **Stack:** technology stack
- **Responsibility:** what this domain does
### Domain 2: [Name]
- **Location:** path/
- **Stack:** technology stack
- **Responsibility:** what this domain does
## Communication Boundaries
| Boundary | Type | Protocol |
|----------|------|----------|
| Linux ↔ MCU | UART | Custom binary protocol |
## Code Generation Recommendations
1. [Recommendation 1]
2. [Recommendation 2]
EMBEDDED_SKILLPACK_DIR=/home/ubuntu/embedded-agent-skillpack
Load this skill when: