battery-stats
Check macOS laptop battery telemetry, current power drain, average watt usage, battery health, cycle count, and recent real-world battery runtime from local…
Skill by kjendrzyca
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kjendrzyca-battery-stats
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/battery-stats
What's inside
- Skill name
battery-stats- Description
- Check macOS laptop battery telemetry, current power drain, average watt usage, battery health, cycle count, and recent real-world battery runtime from local pmset/ioreg/system_profiler data. Use ONLY when the user explicitly invokes this skill by name. Never trigger it automatically.
- License
- MIT
- Instructions
- 51 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- openai.yaml · agents/
- battery-stats.py · scripts/
SKILL.md (first lines)
# Battery Stats Use this skill to answer battery-status questions directly from the local Mac. Do not ask the user to run commands unless they explicitly want the commands. ## Quick Start Run the bundled script from this skill directory: ```bash python3 scripts/battery-stats.py ``` Use JSON when another tool or follow-up calculation needs structured data: ```bash python3 scripts/battery-stats.py --json ``` ## Workflow 1. Confirm the current machine is macOS. If `pmset`, `ioreg`, or `system_profiler` is missing, report that the skill only supports macOS battery telemetry. 2. Run `scripts/battery-stats.py`. 3. Read the `Current Battery` section first: - `current_drain_w` is the current whole-battery drain in watts, computed from battery voltage and amperage. - `battery_power_telemetry_w` is the battery telemetry rail when available. Treat it as secondary because it can diverge from the direct voltage/current reading. - These values are instantaneous and can move quickly with CPU, display brightness, network, browser, and background work. 4. Read the `Health` section: - Prefer health calculated from nominal capacity divided by design capacity. - Include cycle count and macOS condition when available. 5. Read the `Runtime Estimate` section: - Prefer the human `Screen-on weighted full runtime` line, or `runtime.screen_on_robust.weighted_full_runtime` in JSON, for "how long does the battery last during use?" - Treat the human `Wall-clock battery runtime including sleep` line, or `runtime.wall_clock_usable.weighted_full_runtime` in JSON, as standby-inclusive context because it includes sleep and maintenance wakes. - If the current discharge session is included, call it provisional. 6. Read the `Power Usage Estimate` section: - Use `Average screen-on draw`, or `screen_on_robust.weighted_avg_power_w` in JSON, as the best single number for typical watts during real screen-on use. - Use `Median session draw` and `Typical range (25-75%)` to describe normal variation. - Use `Heavier sessions (90%)` and `Session draw range` to describe heavier workloads without overreacting to one noisy session. - Prefer the longer stored history when available; otherwise use the regular `pmset` history. 7. Answer with concrete numbers and a short interpretation. Include the log span so the user knows what period the average covers. ## Interpretation Rules - macOS does not provide a Windows-style generated `batteryreport`; the useful local sources are `pmset -g batt`, `ioreg -rn AppleSmartBattery -r`, `system_profiler SPPowerDataType`, and `pmset -g log`. - Do not overstate precision. Report current drain to about one decimal watt and runtime to the nearest 5-15 minutes. - When current macOS "time remaining" and wattage-derived projections differ, explain that both are estimates and current drain changes second by second. - Explain average watt usage as an estimate derived from observed battery-percent drop, elapsed screen-on time, and current usable battery energy in Wh. It is useful for describing the user's real workflow, not for hardware benchmarking. - A good wording pattern is: "During real screen-on use, this Mac averages about X W. Normal sessions are roughly A-B W, heavier sessions are around C W, and that lines up with about Y hours of practical runtime." - Do not include battery serial numbers or other hardware identifiers unless the user explicitly asks for them. - If recent history has too few meaningful discharge sessions, say that the average is not reliable and fall back to the current macOS estimate plus health and drain.
From kjendrzyca/public-skills, MIT.
More from kjendrzyca/public-skills
- 0.582score
one-by-one
kjendrzyca
Ask the user a list of questions one at a time, letting each answer reshape the rest.
SkillAFreshness: A★ 1Claude Code +9 - 0.552score
video-analysis
kjendrzyca
Analyze local video or audio files with ffmpeg/ffprobe, Parakeet MLX or Whisper transcription, contact sheets, checkpoint frames, and timestamped issue notes.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
ask-claude
kjendrzyca
Delegate focused analysis, code review, execution-plan review, or second-opinion work to Claude Code through non-interactive `claude -p`.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
coding-audit-assumptions
kjendrzyca
Think out of the box about a software problem or planned solution by questioning the assumptions that make it hard, then propose a different way to solve it -…
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
coding-consult-design
kjendrzyca
Run a structured, repository-grounded consultation with Codex CLI or Claude Code on a non-trivial software problem, proposed fix, design decision…
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
record-macos-window
kjendrzyca
Record a single macOS window as silent video with a verified 60 fps export.
SkillBFreshness: B★ 1Claude Code +9 - 0.543score
tally
kjendrzyca
Create and edit Tally.so forms and read responses.
SkillBFreshness: B★ 1Claude Code +9 - 0.542score
coding-explain-problem
kjendrzyca
Explain coding problems, code behavior, review findings, architecture, or proposed changes in plain language.
SkillBFreshness: B★ 1Claude Code +9 - 0.502score
ntd-tasks
kjendrzyca
Fetch and manage NoThinkDo tasks.
SkillCFreshness: C★ 1Claude Code +9 - 0.472score
handoff
kjendrzyca
Compact the current conversation into a handoff document for another agent to continue from.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 19, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/kjendrzyca/public-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from kjendrzyca
- 0.582score
one-by-one
kjendrzyca
Ask the user a list of questions one at a time, letting each answer reshape the rest.
SkillAFreshness: A★ 1Claude Code +9 - 0.552score
video-analysis
kjendrzyca
Analyze local video or audio files with ffmpeg/ffprobe, Parakeet MLX or Whisper transcription, contact sheets, checkpoint frames, and timestamped issue notes.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
ask-claude
kjendrzyca
Delegate focused analysis, code review, execution-plan review, or second-opinion work to Claude Code through non-interactive `claude -p`.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
coding-audit-assumptions
kjendrzyca
Think out of the box about a software problem or planned solution by questioning the assumptions that make it hard, then propose a different way to solve it -…
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
coding-consult-design
kjendrzyca
Run a structured, repository-grounded consultation with Codex CLI or Claude Code on a non-trivial software problem, proposed fix, design decision…
SkillBFreshness: B★ 1Claude Code +9 - 0.546score
record-macos-window
kjendrzyca
Record a single macOS window as silent video with a verified 60 fps export.
SkillBFreshness: B★ 1Claude Code +9
Cite this page
battery-stats skill. Agent Mart. https://agentmart.dev/skills/kjendrzyca-battery-stats (last updated 2026-10-24)