/hpm-pintool-helper:hpm-hpmpc-projectfrom hpm-pintool-helper
Reads HPM .hpmpc project files to generate pin/clock source code, or wraps ProjectEntity config validation into .hpmpc format. Handles project import/export and source conversion without build or flash tasks.
Ships in hpm-pintool-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.
Read when SKILL.md points to them.
先读取远程会话与目标选择。按输入类型选择以下分支;远程工具接收内容,本地文件读写由当前客户端执行。
content、secretKey。 content 在标准文件中是 ProjectEntity 对象。以其中的 SDK/SoC/封装为目标,不擅自换成默认版本。content 序列化为 JSON 字符串,调用 generate_code_from_hpmpc_file({ content, secretKey })。如果输入本身已是 JSON 字符串,解析检查后只编码一层;工具不接收整份外层文件或本地 filePath。完整性校验失败时报告错误,检查用户是否修改过内容。只有用户要求编辑或修复工程时才重新封装;不通过自动重签掩盖导入失败。
generate_hpmpc_file_content({ projectEntity })。该工具会做 schema 解析和代码生成可行性校验,返回 { clientKey, secretKey, content }。保存服务端返回的完整对象;保留其规范化后的 content,因为它与 key 配套。content 序列化,并用返回的 secretKey 调用 generate_code_from_hpmpc_file,再保存所需源码。修改内容之后重新封装,不本地仿造 clientKey/secretKey。生成能力按 SDK/SoC 的 pinmux、clock 分别限制。某类能力关闭而对应 functions 非空时会失败;保留用户配置并报告该限制,不能删除函数或切换 SDK 让校验通过。
交付工程/源码输出位置、目标 SDK/SoC/封装、服务返回的生成文件及实际验证结果。只有拿到有效工具结果并完成用户要求的保存才报告导出成功;完整性校验和代码生成不等于编译或硬件验证。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
hpmpc, project-entity, pinmux, clock-generation, project-export
npx claudepluginhub hpmicro/hpmicro-ai-tools --plugin hpm-pintool-helper4 skills in this plugin
/hpm-clock-config查询 HPM 时钟树,按目标频率规划 PLL、源时钟和功能时钟,生成时钟 C 代码或 Mermaid 信号路径。用于配置 CPU/外设时钟、查看时钟来源或分析分频;不测量硬件实际频率。/hpm-pinmux-config查询 HPM 芯片的引脚与信号,规划外设引脚分配、PAD 参数和 TRGM/GPIOM 路由,并生成 pinmux C 代码。用于选引脚、检查复用冲突或配置触发路由;不负责固件烧录。/hpm-pla-config查询 HPM PLA 模块和可选参数,把滤波、AND/OR 门及 CFF 逻辑需求转换为通道配置,生成初始化 C 代码或 Mermaid 流程图。用于可编程逻辑阵列配置与信号逻辑可视化。Other plugins' skills for the same job