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

EPUBCheck

$ epubcheck Official Low Risk
W3C · Design & Docs · BSD-3-Clause · macos / linux / windows

EPUBCheck is the official W3C conformance validator for EPUB 2 and EPUB 3 publications. It validates packaging, OPF metadata, spine/manifest integrity, and XHTML/CSS rules, emitting structured JSON via --json report.json or directly to stdout with --json -.

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

EPUB conformance validation inspects local .epub zip archives directly via epubcheck without MCP.

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 21 / 25

Supports --json <file> and --json - stdout streaming, --quiet, and deterministic exit codes without any interactive prompts.

  • --json - streams structured JSON validation results to stdout
  • Supports --quiet and deterministic pass/fail exit codes
Trust & Safety 24 / 25

Strictly read-only on target .epub files; only writes if a file path is passed to --json / --out.

  • Never modifies source .epub archives
Setup & Portability 12 / 15

Cross-platform via brew install epubcheck or release archives, but requires a Java JRE runtime.

  • Java JRE dependency alongside Homebrew or ZIP release
Utility & Efficiency 13 / 15

Gold-standard W3C publishing compliance gate required by major ebook storefronts.

  • Official W3C EPUB 2/3 conformance suite
Maintenance & Lineage 9 / 10

Official W3C repository (w3c/epubcheck) actively maintained under BSD-3-Clause.

  • Official w3c/epubcheck repository
Docs & Verifiability 8 / 10

Clear official W3C docs covering CLI modes (--mode, --json, --profile) and error codes.

  • Official docs at w3.org/publishing/epubcheck/docs/

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; validates local .epub archives or expanded EPUB directories.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and BSD-3-Clause open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# EPUBCheck Agent Rules
- Prefer `--quiet --json -` to stream JSON diagnostics to stdout without writing extra files.
- Use `--mode exp` when validating an unzipped EPUB directory before packaging.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate an EPUB and stream JSON report to stdout
epubcheck book.epub --quiet --json -

Validates book.epub read-only and prints the structured W3C JSON report directly to stdout (-).

Controlled Writes & Previews

Validate an EPUB and save JSON report to disk
epubcheck book.epub --quiet --json build/epubcheck-report.json

Writes the full conformance report to build/epubcheck-report.json while keeping book.epub untouched.

Strengths for Agents

  • + Official W3C conformance gate with native --json - stdout streaming.
  • + Never mutates source .epub files.
  • + Supports validating both packaged .epub archives and expanded directories (--mode exp).

Caveats & Pitfalls

  • ! Requires a Java runtime (JVM startup adds slight latency).
  • ! Verbose plain-text logging when --quiet and --json are omitted.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI