Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Scour

$ scour Community Low Risk
scour-project · Design & Docs · Apache-2.0 · macos / linux / windows

Scour is a Python SVG optimizer and cleaner that strips editor metadata, unused definitions, redundant precision, and XML prologs to produce smaller, cleaner SVG files. It runs headlessly via -i/-o files or stdin/stdout (--quiet suppresses summary stderr output).

FCRS-1.0 Score
80 /100
Good
Medium Confidence
Zero-Friction Install
brew install scour
CLI vs MCP Decision CLI Only

Local SVG cleanup and minification with scour runs directly on workspace assets without MCP overhead.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 18 / 25

Headless -i/-o/stdin execution with --quiet and clean exit codes, though no --json stats output.

  • Non-interactive -i/-o and stdout piping with --quiet
Trust & Safety 23 / 25

100% offline XML/SVG cleaner with separate -i input and -o output paths.

  • Reads -i and writes -o (or stdout) without network access
Setup & Portability 14 / 15

Installable across macOS, Linux, and Windows via brew install scour, pip, or uvx scour.

  • Available via Homebrew, PyPI, and uvx
Utility & Efficiency 12 / 15

Reliable SVG cleaner in Python environments, though svgo is often preferred in Node-heavy frontend stacks.

  • Strips editor metadata, comments, and redundant attributes cleanly
Maintenance & Lineage 6 / 10

Mature community tool (scour-project/scour) with rare upstream updates.

  • Stable, slow-moving codebase on GitHub
Docs & Verifiability 7 / 10

Clear --help output and GitHub wiki documenting optimization flags.

  • Wiki and --help reference

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; operates strictly on local SVG XML files or stdin.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and Apache-2.0 open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Scour Agent Rules
- Always write to a distinct `-o out.svg` path (or omit `-o` to inspect stdout) rather than overwriting source art.
- Pass `--quiet` when capturing stdout so optimization stats do not mix with SVG XML.

Agent-Ready Command Recipes

Safe Read-Only Queries

Optimize an SVG to stdout without writing a file
scour -i in.svg --quiet --enable-viewboxing

Emits the cleaned SVG to stdout with --quiet so in.svg remains untouched.

Controlled Writes & Previews

Clean and minify an SVG to a separate file
scour -i in.svg -o out.svg --enable-viewboxing --strip-xml-prolog

Removes Inkscape/editor metadata and XML prologs while writing the result to out.svg.

Strengths for Agents

  • + Outputs cleaned SVG to stdout by default when -o is omitted, enabling safe inspection.
  • + Zero-Node install via brew install scour or uvx scour.
  • + Effectively strips Inkscape/Illustrator metadata and XML prologs.

Caveats & Pitfalls

  • ! No --json savings report; optimization summaries are plain text unless silenced with --quiet.
  • ! Upstream maintenance cadence is very slow compared to svgo.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI