balance

balance is a command for Claude Code from rhuss/cc-slidev. It costs 36 tokens per session (16,687 once invoked), scanned C, original, MIT.

A slide-review command that renders a presentation as the audience would see it, measures visual balance, and reviews flagged slides. It can apply layout or scale fixes and asks the presenter before changing slide content.

In plain words
What is it for?
It helps inspect every slide, review flagged layouts, apply approved fixes, and save screenshots, decisions, and a report.
Why use it?
It finds sparse, crowded, or overflowing slides through a repeatable review loop while keeping content decisions under the presenter's control.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Codex; mentions Gemini CLI.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the slidev plugin — 8 skills, 19 commands, 3 agents shipped together

Good fit It helps inspect every slide, review flagged layouts, apply approved fixes, and save screenshots, decisions, and a report.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add rhuss/cc-slidev
Claude Code
/plugin install slidev

Made for: Claude Code.

Or install slidev, the plugin that ships this one along with the rest of its 8 skills, 19 commands, 3 agents.

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 balance

README.md
[![agentmods](https://agentmods.dev/badge/commands/rhuss/cc-slidev/balance/github.svg)](https://agentmods.dev/commands/rhuss/cc-slidev/balance)
Your own site
<a href="https://agentmods.dev/commands/rhuss/cc-slidev/balance"><img src="https://agentmods.dev/badge/commands/rhuss/cc-slidev/balance/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 balance

Your own site · 80×15
<a href="https://agentmods.dev/commands/rhuss/cc-slidev/balance"><img src="https://agentmods.dev/badge/commands/rhuss/cc-slidev/balance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 16,687 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00036 $0.16687
Opus 5.5 $0.00014 $0.06675
Sonnet 5.5 $0.00007 $0.03337
Haiku 4.5 $0.00004 $0.01669

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

Security

Grade C, and why

balance scanned grade C with 2 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 26d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

This stops only servers the pass started (`owned=true`, `SERVER <role> stopped`), forgets a reused presenter server without stopping it (`SERVER <role> released`; the next pass checks again that it serves this deck), and

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Prints `SERVER main port=<p> owned=<bool>`: the script reuses a running server for this deck or starts one on a free port (research R5). Exit 1: show the last 20 lines of the server log (from stderr, or `tail -n 20 <DECK
slidev/commands/balance.md · 670 lines

How it starts

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

Visual Balance Pass

Render each slide in its last reveal state, measure it, flag unbalanced slides, let the visual-reviewer agent judge each flagged slide, apply automatic layout and scale fixes, and offer content fixes to the presenter one slide at a time. Every run writes its screenshots, decisions and report.md into exports/balance/<timestamp>/ in the deck.

This command orchestrates. The rules live in the references, read them instead of restating them:

  • ${CLAUDE_PLUGIN_ROOT}/references/design-constraints.md, section "Visual Balance": thresholds, flags, exempt layouts, zoom cap, hard limits.
  • ${CLAUDE_PLUGIN_ROOT}/references/balance-fixes.md: rubric, fix catalog, change shapes, the automatic-edit boundary, counting rules, Verdict schema.
  • ${CLAUDE_PLUGIN_ROOT}/references/box-styles.md: box markup, roles, palettes.
  • ${CLAUDE_PLUGIN_ROOT}/agents/visual-reviewer.md: what the reviewer gets and returns.

Guarantees

These hold for the whole pass, whatever happens:

  1. No silent content edits (SC-005). Slide text, element count and element order change only after the presenter accepted that exact fix in an AskUserQuestion. Automatic fixes go through apply-auto-fix.mjs only, which touches frontmatter layout, zoom, class and column slot markers and refuses anything that changes the body.
  2. No dependency changes (SC-007). Never run npm install, npm ci or any package manager in the deck, and never edit the deck's package.json or lockfiles. Render tooling lives in the plugin cache (render-slides.sh ensure).
  3. Previews never touch slide files (FR-017). Candidates are written to the run folder and rendered through render-slides.sh preview.
  4. No image service calls unless the presenter chose "Generate now" for that slide.
  5. Overflow is never skipped (FR-015). Overflow questions have no "Skip" option.
  6. A report always exists. Run report.mjs after every decision and after every round, so an interrupted pass leaves a current report.md.

Read the full file on GitHub · 670 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. 26d ago First seen · 670 lines · 36 tokens per session scan C ed0e8c8b9ca7

Subscribe to this mod's changes

balance is a command published in the GitHub repository rhuss/cc-slidev (55 stars, last pushed 25d ago), licensed MIT. It adds 36 tokens to every session and 16,687 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.

Related

balance compared with commands from other repositories

balance next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
balancerhuss/cc-slidevCommand5525d agoMITC36Claude Code
profilecathrynlavery/diagram-designCommand77ktodayMITA16Claude Code
information-architectTenon-Net/TenonAdminCommand47todayApache-2.0A14Claude Code, Codex
ui-flow-reviewMRCalderon3D/everything-game-dev-codeCommand11426d agoMITA15Claude Code
erne-animateJubaKitiashvili/everything-react-native-expoCommand501mo agoMITA21Claude Code
responsive-design-specialistimsaif/design-with-claudeCommand1115d agoMITA36Claude Code
design-auditw2ur/claude-code-setupCommand13d agoMITA30Claude Code