bbm-plan
Что он делает
Этот скилл ведёт перевод целой книги в двуязычное издание, где перевод и оригинал идут рядом. Он нужен читателям, преподавателям и издателям, которые хотят читать перевод вместе с оригиналом.
Когда использовать
- ✓Когда вы хотите перевести книгу в двуязычное издание.
- ✓Когда у вас есть PDF и нужен переверстываемый двуязычный EPUB.
- ✓Когда нужно перевести субтитры или текстовый файл тем же инструментом.
Ссылка на скилл
https://github.com/yihong0618/bilingual_book_maker/blob/main/.agents/skills/bbm-plan/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Переведи этот английский EPUB в двуязычное издание на китайском, которое я смогу читать рядом с оригиналом.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Скилл запускает шаг планирования, который делит книгу и классифицирует её разделы, а затем полный перевод, который можно возобновить. Вы подтверждаете план и стоимость до начала перевода.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
bbm-plan: translate a book with bilingual_book_maker
This file is the router. Do the intake below, then load one flow file for the book in hand and follow it. The other flow files stay unread.
Repo: the repository this skill ships in (make_book.py at its root). Run
every command from the repo root. The user documentation is the MkDocs site
in docs/en/ of this checkout; the flow files point at the page to read for
anything they do not spell out. python make_book.py --help is the
authority on every flag, and docs/en/cmd.md lists them all in one place.
Your stance
You are the trained CLI operator. You pick every flag from the flow file's recommendations and state each choice with a one-line reason; the recommended defaults are what you pass unless the user asks for something else or the book argues otherwise. The user hands over a book, credentials and (if they have one) a prompt file, approves the plan and the cost, and gets a bilingual book back. They are never asked to experiment with flags, halt semantics or resume mechanics.
The EPUB flow uses --plan-classify agent. The plan arrives with its
uncertain signatures set to "action": null, and the translate run
refuses to start while any null remains, so you, the coding agent, own
the classification against the real samples. Do it in the main agent with
full session context; never delegate plan editing to a subagent or a
small/fast model. The one exception is the user naming a classifier
themselves (Jev, or a model): then follow "A classifier the user names" in
references/epub-plan-mode.md, and still read its skips.
All state lives on disk (bbm_providers.json, .env, the flow's own
working files, the resume cache, run.log), so any step can be redone
after a crash or in a new session.
Intake
- Route and credentials: always read
references/route-setup.mdbefore the first command. It probes what the user already has, asks one question (route, model, prompt file), binds theROUTEandCONTEXTarrays every flow uses, and probes the endpoint for a sub-cent before anything is paid. Keys never go on the command line: the handoff block reprints the whole command, and argparse echoes it back on a mistyped flag. If a key ever reaches the terminal, say so at once and tell the user to rotate it. - Book path and target language (
--language, e.g.zh-hans,ja,Simplified Chinese). For a small language the tables may not know, pass both halves:--language "ain:Ainu"(tag before the colon, name after; the tag list isdocs/en/languages.md).--source_langstates the source language for a book whose short lines or names could be misdetected. - Their prompt file, asked in the route question. If they hand one
over, lint it before the first paid run:
references/prompt-files.md. If they say no, offer one sentence of what a style instruction would buy them and move on. Independently, look for an existing template in the book's directory and the repo root (prompt.json,prompt.txt,prompt*.md,prompt_template*). A candidate must carry a diff: in a git repo only untracked or modified-against-HEAD files count; cleanly trackedprompt*files are the repo's shipped examples, not the user's voice. Found one? Ask before doing anything with it; never adopt or ignore it silently. - Anything they want changed from the recommended defaults: a visual style for the translation, specific chapters or pages only.
Bilingual is the assumption; do not ask. The output keeps every
original next to its translation unless the user asked for a
translated-only book in so many words ("just the Chinese", "replace the
original", "not bilingual", "single language"). "Translate this book to
Chinese" is not that request; it is the ordinary ask, and it means a
bilingual book. Never infer single-language output (--single_translate)
from the target language being named, from the book being short, or from
the user sounding brisk. Say which one you are producing in the same line
where you state the flag choices, so a user who wanted the other one can
say so before anything is paid for.
Branch by the book
| the book is | read, and follow | the user page behind it |
|---|---|---|
an .epub |
references/epub-plan-mode.md |
docs/en/formats/epub.md |
a .pdf |
references/pdf-route.md |
docs/en/features/pdf-to-epub.md |
a .md Datalab wr |
Частые вопросы
Какие типы файлов принимаются?
Скилл охватывает файлы EPUB, PDF, TXT, SRT и Markdown.
Можно ли продолжить прерванный перевод?
Да. Скилл описывает запуск перевода как возобновляемый.
Нужны ли учётные данные API?
Да. Скилл говорит, что вы предоставляете учётные данные для используемого сервиса перевода.
Подробности
Оригинальное описание автора
Translate a book into a bilingual edition with bilingual_book_maker ("bbm") - an EPUB through plan mode (greedy partition, an agent-reviewed classification plan, then a full resumable run), a PDF into a bilingual, reflowable EPUB (--to-epub), or a TXT, SRT or Markdown file. Use when the user says "translate this book", "translate this epub/pdf", asks for "plan mode" or "bbm" translation, or wants a book translated well (running heads, page numbers and apparatus skipped deliberately) rather than a quick --translate-tags pass.
Популярность
- Звёзды на GitHub
- 9.9k
- Место в рейтинге
- #12038
- Лицензия
- MIT
- Обновлён
- 30.10.2026
Комментарии
- …
Похожие скиллы
obsidian-vault-maintainer
394kПомогает агенту поддерживать в порядке хранилище памяти, совместимое с Obsidian: рабочие вики-ссылки, единые свойства и безопасные автогенерируемые разделы.
wiki-maintainer
394kПомогает агенту вести вики памяти OpenClaw: страницы остаются повторяемыми, управляемые блоки защищены, а противоречия и пробелы проверяются.
obsidian
394kПозволяет агенту читать, искать, создавать и редактировать заметки, задачи, ссылки и свойства Obsidian с помощью официальной командной строки Obsidian.