power-design

power-design is a skill for Claude Code from Jinchen-Yang/diansai-skill. It costs 90 tokens per session (636 once invoked), scanned A, original, MIT.

A workflow for designing separated power supplies for electronic systems and checking their current capacity. It uses worst-case motor and servo loads, creates power-budget documents, and requires human approval of regulator and battery choices.

In plain words
What is it for?
It is for dividing a system into power rails, assigning loads, selecting regulators from a parts list, checking current margins, and documenting the design.
Why use it?
It helps prevent a motor or servo's high startup or stalled current from resetting the computer or leaving a power rail undersized. A deterministic check identifies insufficient capacity.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It is for dividing a system into power rails, assigning loads, selecting regulators from a parts list, checking current margins, and documenting the design.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jinchen-yang/diansai-skill/power-design
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 Jinchen-Yang/diansai-skill --skill power-design
Clone the repo
git clone --depth 1 https://github.com/Jinchen-Yang/diansai-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 power-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/jinchen-yang/diansai-skill/power-design/github.svg)](https://agentmods.dev/skills/jinchen-yang/diansai-skill/power-design)
Your own site
<a href="https://agentmods.dev/skills/jinchen-yang/diansai-skill/power-design"><img src="https://agentmods.dev/badge/skills/jinchen-yang/diansai-skill/power-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for power-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/jinchen-yang/diansai-skill/power-design"><img src="https://agentmods.dev/badge/skills/jinchen-yang/diansai-skill/power-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 636 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.00090 $0.00636
Opus 5 $0.00045 $0.00318
Sonnet 5 $0.00018 $0.00127
Haiku 4.5 $0.00009 $0.00064

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

Security

Grade A, and why

power-design 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 12d ago.

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.

.claude/skills/power-design/SKILL.md · 31 lines

What it actually says

power-design —— 供电系统(流水线 ⑤)

lane: 任何模型(正确性交 power_budget.py) · : 人工批 + power_budget PASS

电源是 1 号翻车点:电机堵转瞬态把 MCU 拉掉电复位。一切按最坏情况算。

前置

design/solution.md(需求)+ design/bom.csv(选了哪些件/稳压)。

步骤

  1. 分轨(典型 4 轨,按方案裁剪):
    • VM_motor —— 电池直供电机驱动(不稳压,加保险/铺铜)。
    • V5_servo —— 舵机独立 5~6V 高电流轨(勿挂逻辑轨,堵转>1A)。
    • V3V3_logic —— MCU + 模拟传感器,AMS1117 或 buck。
    • V5_k230 —— K230 独立 5V(耗流远大于 MCU)。
  2. 派负载(Read KB 04/05 取电流;电机/舵机标 stall: true 用堵转电流)。稳压器从 bom.csv 取,没有就提示在配件表/jlc_search 选。
  3. design/power.yaml(schema 见 tools/power_budget.py 头注;参考 examples/sending-medicine-2023/power.yaml)。
  4. 跑确定性门python tools/power_budget.py design/power.yaml。FAIL(某轨欠流)就换更大稳压或加 buck,重跑直到 PASS。
  5. design/power.md(人类可读:分轨图 + 预算表 + 选的稳压 + 注意),更新 STATUS.md
  6. 人工门:用户确认稳压选型与电池容量。

关键纪律

  • 电机/舵机一律 stall: true;逻辑用标称。默认余量 30%。
  • 电机 VM 与逻辑 GND 分开回流再单点汇合(接线阶段落实)。
  • power_budget PASS 是必要非充分——电池容量/放电倍率、保险、铺铜宽度仍需人工核(接线阶段)。
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. 12d ago First seen · 31 lines · 90 tokens per session scan A c7ce02e3544d

Subscribe to this mod's changes

power-design is a skill published in the GitHub repository Jinchen-Yang/diansai-skill (9 stars, last pushed 1mo ago), licensed MIT. It adds 90 tokens to every session and 636 once invoked, about $0.0005 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

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

mspm0-skill

Tool-neutral CLI agent rules for TI MSPM0 development with SysConfig, DriverLib, CCS, Keil/uVision, CMake/GCC/OpenOCD, and supported board references. Use when an agent needs to inspect or modify MSPM0 projects, validate SysConfig output, package examples, or work on NUEDC embedded firmware.

Ibook000/mspm0-skill · 76 tokens

llama-cpp

Runs LLM inference on CPU, Apple Silicon, and consumer GPUs without NVIDIA hardware. Use for edge deployment, M1/M2/M3 Macs, AMD/Intel GPUs, or when CUDA is unavailable. Supports GGUF quantization (1.5-8 bit) for reduced memory and 4-10× speedup vs PyTorch on CPU.

davila7/claude-code-templates · 76 tokens

iot-expert

Expert-level IoT systems, embedded devices, edge computing, and IoT protocols. Use when the user mentions embedded, edge computing, MQTT, sensors, or firmware, or when the task involves IoT Architecture, IoT Protocols, Embedded Systems, or Device Design.

personamanagmentlayer/pcl · 59 tokens

embedded-debugging

Debug embedded firmware on real hardware through the jlink-mcp server — crashes, hangs, peripheral misconfiguration, silent devices. Covers loading ELF symbols for source-level backtraces, supplying an SVD for named peripheral fields, and the halt/read/resume discipline. Use whenever debugging a microcontroller over a…

Klievan/jlink-mcp · 77 tokens

agentic-hil

Use when a request operates this project's connected target board through the configured bench (flashing, resetting, probing, debugging, UART and CAN stimulus and feedback, firmware artifacts, test reports) or configures Agentic HIL, the safe local MCP bridge that performs them. Use it instead of invoking a debugger…

agentic-hil/agentic-hil · 104 tokens