/hpm-sdk-helper:hpm-buildfrom hpm-sdk-helper
Builds HPM microcontroller SDK projects: queries compatible boards and build types, generates CMake build directories, compiles samples/applications, and localizes SDK for standalone projects.
Ships in hpm-sdk-helper. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
以下工具由 hpmsdkctl MCP server 提供。前提: 先通过 config.check 确认配置就绪。
查询 — 调用 build.list_options:
{ "sample": "hello_world" }{ "app_dir": "/path/to/project" }hpm_build_type 和 cmake_build_type 组合选择配置 — 直接询问用户需要构建的 board、hpm_build_type、cmake_build_type,从结果中选一组: board + hpm_build_type + cmake_build_type
生成 — 调用 build.generate:
sample 或 app_dir(与上一步一致)board;自定义开发板传 custom_board 并省略 board,两者必须且只能选择一个hpm_build_type, cmake_build_typecustom_gcc_linker_file, build_dir, clean编译 — 调用 build.compile,传入 generate 返回的 build_dir
project.localize_sdk — 传入 build_dir,将 SDK 复制到项目内project.unlocalize_sdk — 传入本地化后的项目目录,恢复原始状态对于包含 core0、core1 且 core0/app.yaml 声明 linked_project 的多核 sample,
向 build.list_options 和 build.generate 传入 sample 根路径。工具会选择 core0 作为主工程,
HPM SDK 的 CMake 流程会按照 linked_project.build_type 自动构建从核工程。
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub hpmicro/hpmicro-ai-tools --plugin hpm-sdk-helper3 skills in this plugin
/hpm-configHPMicro 微控制器 HPM SDK 开发环境配置。用于初始化和管理 hpmsdkctl 工具链配置。 Use when user needs to (1) initialize HPM SDK environment for first use, (2) switch SDK version, (3) verify the current toolchain configuration, or (4) modify individual tool paths. Triggered by phrases like "初始化环境", "配置 SDK", "切换 SDK", "check config", "setup toolchain".
/hpm-flash-debugHPM 微控制器烧录和调试。用于查询 OpenOCD 配置、烧录固件到目标板、启动 GDB 调试服务器。 Use when user wants to (1) flash firmware to an HPM board, (2) start a GDB server for debugging, (3) discover OpenOCD probe/SoC/board configurations. Triggered by phrases like "烧录", "flash", "调试", "debug", "gdb", "OpenOCD", "program board", "下载固件".