ioc-edit

ioc-edit is a skill for Claude Code from Ibook000/ibook-skill. It costs 126 tokens per session (1,925 once invoked), scanned A, original, MIT.

A tool for editing STM32CubeMX .ioc files, which store the hardware and project settings for STM32 microcontrollers.

In plain words
What is it for?
It helps add or remove pins, configure peripherals such as I2C and USART, change clocks, manage interrupts, adjust project settings, and validate the result.
Why use it?
It reduces the risk of manually changing pin, peripheral, clock, interrupt, or build settings in a structured configuration file.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Good fit It helps add or remove pins, configure peripherals such as I2C and…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ibook000/ibook-skill/ioc-edit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Ibook000/ibook-skill --skill ioc-edit
Clone the repo
git clone --depth 1 https://github.com/Ibook000/ibook-skill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ioc-edit

README.md
[![agentmods](https://agentmods.dev/badge/skills/ibook000/ibook-skill/ioc-edit.svg)](https://agentmods.dev/skills/ibook000/ibook-skill/ioc-edit)
Your own site
<a href="https://agentmods.dev/skills/ibook000/ibook-skill/ioc-edit"><img src="https://agentmods.dev/badge/skills/ibook000/ibook-skill/ioc-edit.svg" alt="Measured on agentmods" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,925 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00126 $0.01925
Opus 5 $0.00063 $0.00962
Sonnet 5 $0.00025 $0.00385
Haiku 4.5 $0.00013 $0.00193

Measured 6d ago against content hash b35926d4d184, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

ioc-edit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/ioc_editor.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ioc-edit/SKILL.md · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

STM32CubeMX .ioc Editor Skill

编辑 STM32CubeMX .ioc 配置文件的专用技能。

调用方式

当用户通过 /ioc-edit <需求> 调用时,按以下流程执行。

工作流程

1. 理解需求

分析用户意图,确定操作类型:

  • 引脚操作:添加/删除/修改引脚及其信号分配
  • 外设配置:修改 I2C、USART、TIM、ADC 等外设参数
  • 时钟配置:修改 RCC 时钟树参数
  • 中断配置:使能/禁用 NVIC 中断,设置优先级
  • 工程配置:修改堆栈大小、工具链等
  • 查看/验证:查看当前配置或验证一致性

2. 定位 .ioc 文件

在当前项目目录中查找 .ioc 文件:

  • 使用 Glob 工具查找 **/*.ioc
  • 如果有多个,询问用户选择哪个
  • 如果只有一个,直接使用

3. 查看当前状态

在修改前,先查看相关当前配置:

# 查看所有配置
python ~/.claude/skills/ioc-edit/scripts/ioc_editor.py <file.ioc> show

# 查看特定部分
python ~/.claude/skills/ioc-edit/scripts/ioc_editor.py <file.ioc> show --section "TIM2."
python ~/.claude/skills/ioc-edit/scripts/ioc_editor.py <file.ioc> show --section "RCC."

# 查看引脚列表
python ~/.claude/skills/ioc-edit/scripts/ioc_editor.py <file.ioc> list-pins

# 查看外设列表
python ~/.claude/skills/ioc-edit/scripts/ioc_editor.py <file.ioc> list-ips

4. 创建备份

修改前自动备份:

python ~/.claude/skills/ioc-edit/scripts/ioc_editor.py <file.ioc> backup

5. 执行修改

根据需求执行对应命令(见下方命令参考)。多项修改按顺序执行。

6. 验证结果

修改后验证一致性:

python ~/.claude/skills/ioc-edit/scripts/ioc_editor.py <file.ioc> validate

7. 展示变更摘要

向用户展示:

  • 执行了哪些修改
  • 验证结果
  • 提醒用户在 CubeMX 中重新打开确认

命令参考

脚本路径:~/.claude/skills/ioc-edit/scripts/ioc_editor.py

路径说明~ 会自动展开为用户家目录。Windows: C:\Users\用户名\.claude\skills\ioc-edit\scripts\ioc_editor.py

引脚操作

# 添加引脚(自动更新 Mcu.Pin 列表)
python ioc_editor.py <file.ioc> add-pin PA9 --signal USART1_TX --mode Asynchronous
python ioc_editor.py <file.ioc> add-pin PB6 --signal I2C1_SCL --mode I2C
python ioc_editor.py <file.ioc> add-pin PA1 --signal GPIO_Output --locked

# 删除引脚(自动清理所有相关键)
python ioc_editor.py <file.ioc> remove-pin PA1

# 查看所有引脚
python ioc_editor.py <file.ioc> list-pins

外设配置

# 设置外设参数(自动更新 IPParameters 列表)
python ioc_editor.py <file.ioc> config TIM2 Prescaler 71
python ioc_editor.py <file.ioc> config TIM2 Period 999
python ioc_editor.py <file.ioc> config USART1 BaudRate 115200

# 添加/删除外设 IP
python ioc_editor.py <file.ioc> add-ip ADC1
python ioc_editor.py <file.ioc> remove-ip TIM3

Read the full file on GitHub · 199 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 199 lines · 126 tokens per session scan A b35926d4d184

Subscribe to this mod's changes

ioc-edit is a skill published in the GitHub repository Ibook000/ibook-skill (2 stars, last pushed 7d ago), licensed MIT. It adds 126 tokens to every session and 1,925 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

animation-motion-capture

Implement motion capture integration and real-time synchronization.

LgrappaG/Workflows-Agents · 13 tokens

intent-recognition

Classifies automation requests using two decisions: anchor (which primitive owns the top-level control flow — workflow-anchored, agent-anchored, needs-clarification, or out-of-scope) and embedsother (whether the other primitive appears embedded inside — an agent step inside a workflow, or a workflow invoked as an…

n8n-io/n8n · 146 tokens

mspm0-ccs

Tool-neutral CLI agent rules for TI MSPM0 development with Code Composer Studio, Keil/uVision, CMake/GCC/OpenOCD, SysConfig, and DriverLib. Use when an agent needs to inspect or modify MSPM0 projects, edit .syscfg configuration, avoid generated SysConfig/build files, use DriverLib APIs, validate SysConfig output…

mc3545dada/mspm0-skill · 101 tokens

freecad-scripts

Expert skill for writing FreeCAD Python scripts, macros, and automation. Use when asked to create FreeCAD models, parametric objects, Part/Mesh/Sketcher scripts, workbench tools, GUI dialogs with PySide, Coin3D scenegraph manipulation, or any FreeCAD Python API task. Covers FreeCAD scripting basics, geometry creation…

boshi-xixixi/TraeSkill · 85 tokens

legacy-circuit-mockups

Generate breadboard circuit mockups and visual diagrams using HTML5 Canvas drawing techniques. Use when asked to create circuit layouts, visualize electronic component placements, draw breadboard diagrams, mockup 6502 builds, generate retro computer schematics, or design vintage electronics projects. Supports 555…

boshi-xixixi/TraeSkill · 111 tokens

memory-merger

Merges mature lessons from a domain memory file into its instruction file. Syntax: /memory-merger >domain [scope] where scope is global (default), user, workspace, or ws.

boshi-xixixi/TraeSkill · 49 tokens