run-epub-ts
Skill by likecoin
Run-epub-ts builds, runs, screenshots and drives the epub.ts reader in headless Chrome. It is for developers who need to check a change in the actual reader rather than only in tests.
Install run-epub-ts
Built from the published package, never by AI.
git clone --depth 1 https://github.com/likecoin/epub.ts /tmp/epub.ts && mkdir -p ~/.claude/skills && cp -r /tmp/epub.ts/.claude/skills/run-epub-ts ~/.claude/skills/run-epub-tsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/likecoin/epub.ts /tmp/epub.ts && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/epub.ts/.claude/skills/run-epub-ts ~/.gemini/antigravity-cli/skills/run-epub-tsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
epub.ts is a library, so this skill drives an example page in the examples folder that loads the built dist/epub.umd.js and renders an EPUB into iframes. A driver script serves the repo root, opens an example against a committed fixture, waits for the rendition to paint, and then exposes paging, screenshots, CFI reads and page JavaScript. A separate no-browser mode parses an EPUB with dist/epub.node.js.
The skill is written for AI agents and developers working on the epub.ts codebase. It covers a build step that must run before every browser test, a scripted paging smoke test, and a persistent interactive session that survives across separate shell calls. It also lists common errors and their fixes.
Written from the project's SKILL.md and checked against it.
What it can do
- Screenshot one renderOpens the spreads example with a test EPUB and saves a PNG of the render.
- Scripted paging flowPages forward and back, takes screenshots at each step, and checks that the CFIs moved.
- Interactive sessionKeeps one reader session alive across shell calls using a FIFO and commands such as next, prev, goto and text.
- Read location and textReports the current CFI, href and page, and returns the rendered section text.
- Table of contentsPrints the EPUB table of contents from the running reader.
- Run page JavaScriptEvaluates arbitrary JavaScript in the example page with the eval command.
- Parse without a browserLoads dist/epub.node.js and prints title, creator, spine length, TOC entries and one section.
- Example and fixture selectionAccepts other example pages and EPUB paths, such as the continuous scrolled example.
What you need
- Node.js (Node 24 works)
- npm ci to install dependencies
- Chrome installed through puppeteer
- A local build with npm run build
Try asking
- Run the epub.ts reader and screenshot the first render.
- Run the paging flow smoke test on epub.ts and report the result.
- Parse test/fixtures/alice.epub without a browser and show the TOC.
Good to know
- The browser driver blocks all non-localhost requests.
- The text command returns whole section text, not the text of a single page.
- Bench fixtures are gitignored and need npm run bench:fixtures over the network.
- The driver script itself is not linted.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/run-epub-ts/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to run-epub-ts
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
run-epub-ts: common questions
Why don't my source changes show up in the browser?
The example pages load the built dist file, which is gitignored. Any change under src needs npm run build before the browser run.
Can this check the EPUB without starting Chrome?
Yes. The parse mode loads dist/epub.node.js and uses the linkedom peer dependency to read the book without a browser.
Does the driver need internet access?
No for the default fixture. It blocks external requests, so only the bench fixture download needs network access.
How do I install run-epub-ts?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is run-epub-ts free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is run-epub-ts safe to use?
It scores 56 of 100. Grades: maintenance A, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to run-epub-ts?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
