power-analysis

power-analysis is a skill for Claude Code, Codex from chipweaver/veripower. It costs 43 tokens per session (1,863 once invoked), scanned A, original, MIT.

A workflow for measuring average power use from a post-synthesis hardware netlist, using gate-level simulation and PrimeTime PX.

In plain words
What is it for?
Use it to generate SAIF activity files for power scenarios, run averaged PrimeTime PX analysis, and finalize PPA power-gating results.
Why use it?
It replaces manual inspection with a defined process that produces reports and a pass-or-fail decision for power targets. It is not for checking RTL behavior, static timing, or power changes over time.

Skill for Claude CodeCodex

Part of the veripower plugin — 12 skills, 3 hooks shipped together

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.

agentmods
npx agentmods add skills/chipweaver/veripower/power-analysis
Any agent
npx skills add chipweaver/veripower --skill power-analysis
Clone the repo
git clone --depth 1 https://github.com/chipweaver/veripower

Made for: Claude Code, Codex.

Or install veripower, the plugin that ships this one along with the rest of its 12 skills, 3 hooks.

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-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/chipweaver/veripower/power-analysis.svg)](https://agentmods.dev/skills/chipweaver/veripower/power-analysis)
Your own site
<a href="https://agentmods.dev/skills/chipweaver/veripower/power-analysis"><img src="https://agentmods.dev/badge/skills/chipweaver/veripower/power-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,863 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00043 $0.01863
Opus 5 $0.00022 $0.00932
Sonnet 5 $0.00009 $0.00373
Haiku 4.5 $0.00004 $0.00186

Measured 4d ago against content hash 9ec323f2b682, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

power-analysis 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 4d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (scripts/power/__init__.py, scripts/power/__main__.py, scripts/power/bootstrap.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/power-analysis/SKILL.md · 132 lines

How it starts

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

Power Analysis

Your sole responsibility: run VCS gate-level simulation against the post-synthesis netlist and the UVM TB infrastructure to produce one SAIF per power scenario, run PrimeTime PX in averaged mode over each of them, and close the run through the power CLI. You never grade power_mw by eye — finalize parses the reports, judges the target, and writes the verdict.

Iron Rule

  • Write only under {workdir}. Every injected input location is read-only, as is every other stage's output.
  • Scripts are black boxes, never Read their source. Invoke them per this skill's documented command lines (flags via --help); on a non-zero exit act on the documented failure protocol (stderr, stdout verdict), not the source. Sole exception: debugging a suspected bug in a script itself.

What you read, and what you produce

<skill> is this skill's own base directory, named on the first line of this file.

{workdir}/dispatch.json carries the inputs table, and you open almost none of what it points at: bootstrap resolves <TOP> from the single out/<TOP>_syn.v under the synthesis stage root and writes every upstream location into env.sh, which the make targets read from there. The netlist, the SDC and the SDF are consumed by the tools; VCS back-annotates delays out of the SDF, which is what makes the SAIF a gate-level one rather than an RTL toggle count.

The one file you open yourself is <ppa>/ppa.json, and only when a power_mw miss makes you decide which side of it is wrong. finalize reads it for the gate on its own.

Three env vars are yours to supply before make:

LIB_V std-cell Verilog models, linked against the netlist at compile time
LIB_DB the Liberty .db synthesis linked against — PT maps activity to power through it, so a different library is a different answer
UVM_HOME the UVM tree the TB infrastructure was built against

env.sh refuses to run unless all three name readable files, and every target sources it, so a wrong path stops the run at the first target instead of after the simulation.

Read the full file on GitHub · 132 lines

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. 4d ago First seen · 132 lines · 43 tokens per session scan A 9ec323f2b682

Subscribe to this mod's changes

power-analysis is a skill published in the GitHub repository chipweaver/veripower (4 stars, last pushed 4d ago), licensed MIT. It adds 43 tokens to every session and 1,863 once invoked, about $0.0002 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.