aio-epub-upload

aio-epub-upload is a skill for Claude Code from aiocean/claude-plugins. It costs 66 tokens per session (1,026 once invoked), scanned A, original, MIT.

A book-import tool that uploads an EPUB file, reads its table of contents, counts its words, and prepares it for chapter translation.

In plain words
What is it for?
Use it to add a new EPUB book to a translation workspace and queue it for analysis.
Why use it?
It removes the manual work of inspecting a book and getting it ready before translation begins.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the aio-epub-translate plugin — 9 skills shipped together

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.

agentmods
npx agentmods add skills/aiocean/claude-plugins/aio-epub-upload
Any agent
npx skills add aiocean/claude-plugins --skill aio-epub-upload
Clone the repo
git clone --depth 1 https://github.com/aiocean/claude-plugins

Made for: Claude Code.

Or install aio-epub-translate, the plugin that ships this one along with the rest of its 9 skills.

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 aio-epub-upload

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-epub-upload.svg)](https://agentmods.dev/skills/aiocean/claude-plugins/aio-epub-upload)
Your own site
<a href="https://agentmods.dev/skills/aiocean/claude-plugins/aio-epub-upload"><img src="https://agentmods.dev/badge/skills/aiocean/claude-plugins/aio-epub-upload.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,026 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00066 $0.01026
Opus 5 $0.00033 $0.00513
Sonnet 5 $0.00013 $0.00205
Haiku 4.5 $0.00007 $0.00103

Measured 2d ago against content hash 56a56993c6e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

aio-epub-upload scanned grade A with 1 finding 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.

Makes network callslowCapability

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

import json, urllib.request, os
plugins/aio-epub-translate/skills/aio-epub-upload/SKILL.md · 141 lines

How it starts

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

EPUB Upload & Prepare

Upload an EPUB file to the translation server and prepare it for translation.

Prerequisite: Cần có API key. Chưa có? Dùng aio-epub-setup trước.

API Setup

import json, urllib.request, os

BASE = "https://read-api.aiocean.dev/ListBooks.v1.BookService"
KEY = os.environ.get("AIO_EPUB_API_KEY", "")

def api(method, body):
    data = json.dumps(body).encode('utf-8')
    req = urllib.request.Request(f"{BASE}/{method}", data=data, headers={
        "Content-Type": "application/json",
        "X-License-Key": KEY
    })
    with urllib.request.urlopen(req) as resp:
        return json.loads(resp.read())

Workflow

1. Upload EPUB

Read the EPUB file as bytes and upload:

import base64

with open("path/to/book.epub", "rb") as f:
    epub_bytes = f.read()

# UploadEpub is streaming — use raw HTTP
data = json.dumps({
    "epubData": base64.b64encode(epub_bytes).decode(),
    "filename": "book.epub"
}).encode('utf-8')

req = urllib.request.Request(f"{BASE}/UploadEpub", data=data, headers={
    "Content-Type": "application/json",
    "X-License-Key": KEY
})
with urllib.request.urlopen(req) as resp:
    result = json.loads(resp.read())
    book_id = result["bookId"]
    print(f"Uploaded: {book_id}")

2. Prepare Book (if not auto-prepared)

# PrepareBook cleans HTML, marks translatable content, generates guidelines
result = api("PrepareBook", {"bookId": book_id})
print(result["message"])

3. Generate Translation Guideline

result = api("GenerateGuideline", {
    "bookId": book_id,
    "sourceLanguage": "en",
    "targetLanguage": "vi",
    "templateName": "literary",
    "modelId": ""  # uses default model
})
print(result["guideline"])

4. Verify Setup

# Check book exists and has content
book = api("GetBook", {"bookId": book_id})
print(f"Title: {book['book']['title']}")
print(f"Author: {book['book']['author']}")

# Check TOC
toc = api("GetTableOfContent", {"bookId": book_id})
for item in toc["tableOfContent"]["items"]:
    print(f"  {item['title']} -> {item['filePath']}")

# Check translation progress (should be 0%)
progress = api("GetTranslationProgress", {"bookId": book_id})
print(f"Progress: {progress['progress']['translationPercentage']:.1f}%")

Read the full file on GitHub · 141 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. 2d ago First seen · 141 lines · 66 tokens per session scan A 56a56993c6e5

Subscribe to this mod's changes

aio-epub-upload is a skill published in the GitHub repository aiocean/claude-plugins (4 stars, last pushed 3d ago), licensed MIT. It adds 66 tokens to every session and 1,026 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

guide-recap

Transform CHANGELOG entries into social content (LinkedIn, Twitter/X, Newsletter, Slack) in FR + EN. Use after releases or weekly to generate ready-to-post content from guide updates.

FlorianBruniaux/claude-code-ultimate-guide · 42 tokens

tech-doc-writer

Write, review, and improve technical documents (技术文档, 设计文档, 操作手册, 故障报告, API文档). Use when users ask to write/draft/review/improve a technical document, create an RFC/ADR, write a runbook or operation guide, produce API docs, or create any structured technical writing deliverable. Audience-aware, evidence-based, with…

johnqtcg/awesome-skills · 133 tokens

local-transcript

Transcribe a specified local video or audio file into cleaned final .txt, .pdf, or .docx transcripts using speech recognition with Apple Silicon GPU acceleration and optional LLM-based proofreading. Use when the user wants text extracted from a local media file path such as .mp4, .mov, .mkv, .webm, .mp3, .m4a, or…

johnqtcg/awesome-skills · 139 tokens

managing-artifacts

Artifact storage paths and project-encoded conventions for generated documents, reports, plans, and audits. Loaded by the core rule module. Triggers: 'where should I put this', 'save report', 'output directory'.

axiomantic/spellbook · 49 tokens

azure-ai-translation-document-py

Client library for Azure AI Translator document translation service for batch document translation with format preservation.

rootcastleco/rei-skills · 0 tokens

alego-translate-docs

Manually run the extended Alego bilingual-document workflow, including generated briefings, delegated prose translation, whole-document translation, and scoped pairing verification.

singula-ai/alego · 36 tokens