stm32-freertos-developer

2939387245/agent-skill_stm32-freertos · updated May 20, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/2939387245/agent-skill_stm32-freertos --skill stm32-freertos-developer
0 commentsdiscussion
summary

当用户提出请求时,根据以下规则选择性读取文档。不要一次性读取所有文档,只读取与用户请求相关的文件。

skill.md

STM32 + FreeRTOS 嵌入式开发专家

AI 使用规则

当用户提出请求时,根据以下规则选择性读取文档。不要一次性读取所有文档,只读取与用户请求相关的文件。

代码生成请求

用户说... 读取文件
"创建任务" / "创建队列" / "信号量" / "互斥锁" / "事件组" / "任务通知" EXAMPLES/BASIC.md
"UART 驱动" / "ADC 驱动" / "I2C 驱动" / "TIM 驱动" REFERENCE/HAL_DRIVERS.md + EXAMPLES/DRIVERS.md
"printf 重定向" / "printf 输出" / "ITM" REFERENCE/STD_LIBS.md
"DMA 接收" / "不定长数据" REFERENCE/HAL_DRIVERS.md + EXAMPLES/DRIVERS.md

代码审查/问题排查请求

用户说... 读取文件
"中断" / "FromISR" / "portYIELD_FROM_ISR" / "优先级配置" PATTERNS/INTERRUPT.md
"死锁" / "优先级反转" / "堆栈溢出" / "资源泄漏" PATTERNS/TRAPS.md
"生产者-消费者" / "状态机" / "资源池" / "发布-订阅" PATTERNS/DESIGN.md

调试请求

用户说... 读取文件
"SystemView" / "TRACEalyzer" / "trace 分析" REFERENCE/DEBUG_TOOLS.md
"任务统计" / "堆栈监控" / "CPU 使用率" REFERENCE/DEBUG_TOOLS.md

高级应用请求

用户说... 读取文件
"低功耗" / "Tickless" / "STOP 模式" EXAMPLES/ADVANCED.md
"CubeMX 配置" / "STM32CubeMX" EXAMPLES/ADVANCED.md
"传感器融合" / "多任务" EXAMPLES/ADVANCED.md

API 查询请求

用户说... 读取文件
"xTaskCreate 参数" / "API 语法" / "函数说明" REFERENCE/FREERTOS_API.md

使用方法

如果用户请求不够明确,无法判断读取哪个文件:

  1. 先读取 SKILL.md 和 REFERENCE/FREERTOS_API.md
  2. 询问用户具体需求
  3. 根据回答读取正确的文件

不要一次性读取所有文件!只读取与用户请求相关的文件。


技能简介

本技能专为在 STM32 微控制器 上使用 FreeRTOS 实时操作系统 进行嵌入式开发而设计。AI 将作为"嵌入式系统架构师",帮助你编写安全、高效、可维护的 C 代码。

适用场景:

  • 使用 STM32CubeMX 生成的工程
  • ARM Cortex-M 全系列(F0/F1/F3/F4/F7/H7/G0/L0/L4/L5 等)
  • FreeRTOS v10+ 版本
  • 原生 FreeRTOS API 或 CMSIS-RTOS v2 API

使用场景

代码生成

  • 创建任务、队列、信号量、互斥锁
  • 编写外设驱动模板(UART DMA、ADC DMA、I2C 等)
  • 配置低功耗 Tickless 模式
  • 实现 printf 重定向(ITM_SendChar / UART)

代码审查

  • 分析任务优先级配置是否合理
  • 检查中断与任务交互的正确性
  • 排查死锁、优先级反转、资源泄漏
  • 验证 FreeRTOSConfig.h 配置

教学辅导

  • 解释 FreeRTOS 核心概念(任务调度、上下文切换)
  • 演示生产者-消费者、发布-订阅等设计模式
  • 指导调试工具使用(SEGGER SystemView、TRACEalyzer)

核心能力模块

任务管理

  • 创建静态/动态任务(xTaskCreate, xTaskCreateStatic
  • 设置优先级、堆栈大小、任务名
  • 任务状态监控(uxTaskGetStackHighWaterMark

任务间通信

  • 队列(Queue):生产者-消费者模型
  • 信号量(Semaphore):二值/计数型
  • 互斥锁(Mutex):避免竞态条件,含优先级继承
  • 事件组(Event Groups):多条件等待
  • 任务通知(Task Notifications):轻量级替代方案

中断与任务交互

  • 在 HAL 回调中使用 xQueueSendFromISR / vTaskNotifyGiveFromISR
  • ISR 中不阻塞,仅发送通知
  • portYIELD_FROM_ISR(xHigherPriorityTaskWoken) 用法

外设集成

  • UART DMA + 队列:不定长数据接收(IDLE 中断)
  • ADC DMA + 任务通知:连续采样
  • I2C 主/从模式:传感器通信
  • TIM 定时器/PWM:周期任务

内存与性能优化

  • 推荐静态分配(避免 heap 碎片)
  • 合理估算堆栈大小
  • 开启 configASSERT()configCHECK_FOR_STACK_OVERFLOW
  • 使用 configUSE_PREEMPTION = 1 提升实时性

调试与诊断

  • 生成任务列表打印代码(vTaskList
  • SEGGER SystemView(Keil/IAR 环境)
  • Percep TRACEalyzer(FreeRTOS 环境)
  • ITM/SWO 配置与 printf 调试

文件索引

类型 文件 说明
主文件 SKILL.md AI 唯一自动读取的文件
用户指南 USER_GUIDE.md 仅用户阅读,不读取
API 参考 REFERENCE/FREERTOS_API.md FreeRTOS API 语法
API 参考 REFERENCE/STD_LIBS.md 标准库集成
API 参考 REFERENCE/HAL_DRIVERS.md HAL 外设驱动
API 参考 REFERENCE/DEBUG_TOOLS.md 调试工具配置
代码示例 EXAMPLES/BASIC.md 基础组件示例
代码示例 EXAMPLES/DRIVERS.md 外设驱动模板
代码示例 EXAMPLES/ADVANCED.md 高级应用
设计模式 PATTERNS/DESIGN.md 设计模式
设计模式 PATTERNS/INTERRUPT.md 中断最佳实践
设计模式 PATTERNS/TRAPS.md 常见陷阱

脚本工具

freertos_config_check.py

验证 FreeRTOSConfig.h 关键配置:

python scripts/freertos_config_check.py FreeRTOSConfig.h

输出 JSON 格式,便于 CI 集成。

how to use stm32-freertos-developer

How to use stm32-freertos-developer on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add stm32-freertos-developer
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/2939387245/agent-skill_stm32-freertos --skill stm32-freertos-developer

The skills CLI fetches stm32-freertos-developer from GitHub repository 2939387245/agent-skill_stm32-freertos and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/stm32-freertos-developer

Reload or restart Cursor to activate stm32-freertos-developer. Access the skill through slash commands (e.g., /stm32-freertos-developer) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.659 reviews
  • Pratham Ware· Dec 20, 2024

    stm32-freertos-developer has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Isabella Mensah· Dec 20, 2024

    Keeps context tight: stm32-freertos-developer is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Zara Bansal· Dec 20, 2024

    Solid pick for teams standardizing on skills: stm32-freertos-developer is focused, and the summary matches what you get after install.

  • Lucas Farah· Dec 8, 2024

    Registry listing for stm32-freertos-developer matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Lucas Nasser· Dec 4, 2024

    stm32-freertos-developer reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Isabella Wang· Nov 27, 2024

    stm32-freertos-developer fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Dev Menon· Nov 19, 2024

    I recommend stm32-freertos-developer for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Sakshi Patil· Nov 11, 2024

    Solid pick for teams standardizing on skills: stm32-freertos-developer is focused, and the summary matches what you get after install.

  • Lucas Zhang· Nov 11, 2024

    stm32-freertos-developer is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Lucas Haddad· Nov 11, 2024

    stm32-freertos-developer has been reliable in day-to-day use. Documentation quality is above average for community skills.

showing 1-10 of 59

1 / 6