capture-baseline

capture-baseline is a command for Claude Code from aegntic/cldcde. It costs 0 tokens per session (289 once invoked), scanned A, original, MIT.

A command for capturing reference screenshots of selected pages or components at mobile, tablet, and desktop sizes. These reference images, called baselines, are later used to check whether the interface has changed.

In plain words
What is it for?
Use it to start an app or Storybook when needed, hide dynamic content, capture full-page screenshots, and save a manifest of the results.
Why use it?
It creates consistent images for visual regression testing and reduces false differences from changing content or incomplete page loads. It also records where the baseline files are stored.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the visual-regression plugin — 2 commands shipped together

Good fit Use it to start an app or Storybook when needed, hide dynamic content, capture full-page screenshots, and save a manifest of the results.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/aegntic/cldcde/capture-baseline
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.

Clone the repo
git clone --depth 1 https://github.com/aegntic/cldcde

Made for: Claude Code.

Or install visual-regression, the plugin that ships this one along with the rest of its 2 commands.

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 capture-baseline

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/aegntic/cldcde/capture-baseline"><img src="https://agentmods.dev/badge/commands/aegntic/cldcde/capture-baseline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 289 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.00000 $0.00289
Opus 5.5 $0.00000 $0.00116
Sonnet 5.5 $0.00000 $0.00058
Haiku 4.5 $0.00000 $0.00029

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

Security

Grade A, and why

capture-baseline 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 2d 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.

plugins/visual-regression/commands/capture-baseline.md · 28 lines

What it actually says

/capture-baseline - Capture Visual Baseline

Capture baseline screenshots for visual regression testing.

Steps

  1. Identify the pages or components to capture baselines for
  2. Check if a visual testing tool is configured (Percy, Chromatic, reg-suit, or Playwright)
  3. Determine viewport sizes for captures: mobile (375px), tablet (768px), desktop (1280px)
  4. Start the application or Storybook server if needed
  5. Navigate to each target page and wait for all assets to load
  6. Remove dynamic content (timestamps, ads, animations) using CSS injection or masking
  7. Capture full-page screenshots at each viewport size
  8. Save screenshots to the baselines directory with descriptive naming: {page}-{viewport}-baseline.png
  9. Generate a manifest file listing all captured baselines with timestamps
  10. Report total baselines captured, file sizes, and storage location
  11. Commit baseline images to the repository or upload to cloud storage

Rules

  • Always capture at minimum three viewport sizes (mobile, tablet, desktop)
  • Wait for network idle before capturing to avoid incomplete renders
  • Mask or hide dynamic content that changes between runs
  • Use consistent browser and device emulation settings
  • Name baselines clearly with page name and viewport size
  • Store baselines in a dedicated directory separate from test code
  • Compress images to keep repository size manageable
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. 2d ago First seen · 28 lines · 0 tokens per session scan A fbe2be99ab12

Subscribe to this mod's changes

capture-baseline is a command published in the GitHub repository aegntic/cldcde (11 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 289 tokens. 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-11-05.

Related

capture-baseline compared with commands from other repositories

capture-baseline next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
capture-baselineaegntic/cldcdeCommand112d agoMITA0Claude Code
scriptwriter-draftcambridgetcg/agenttoolCommand0yesterdayApache-2.0A35Claude Code
scriptwriter-opencambridgetcg/agenttoolCommand0yesterdayApache-2.0A47Claude Code
scriptwriter-paircambridgetcg/agenttoolCommand0yesterdayApache-2.0A38Claude Code
scriptwriter-statuscambridgetcg/agenttoolCommand0yesterdayApache-2.0A52Claude Code
scriptwriter-drawcambridgetcg/agenttoolCommand0yesterdayApache-2.0A43Claude Code
scriptwriter-initcambridgetcg/agenttoolCommand0yesterdayApache-2.0A34Claude Code