Book2Skill
Skill by zhimaAi
Converts TXT, Markdown, DOCX, and PDF documents into a reusable skill zip with a JSONL knowledge index. Useful for turning reference documents into a skill an assistant can search.
Install Book2Skill
Built from the published package, never by AI.
git clone --depth 1 https://github.com/zhimaAi/chatwiki /tmp/chatwiki && mkdir -p ~/.claude/skills && cp -r /tmp/chatwiki/clawbot/skills_system/alone_doc/doc-to-skill ~/.claude/skills/book2skillRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/zhimaAi/chatwiki /tmp/chatwiki && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/chatwiki/clawbot/skills_system/alone_doc/doc-to-skill ~/.gemini/antigravity-cli/skills/book2skillAntigravity 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
Book2Skill converts one or more TXT, Markdown, DOCX, or PDF documents into a reusable skill zip. The zip contains normalized Markdown, extracted images, and a JSONL knowledge index built from the source text. The workflow runs bundled Python scripts that prepare the documents, extract knowledge in batches, merge the index, and build the package.
The index uses chunks of at most 5,000 Unicode characters, and the model cites only allowed source IDs, so the final content is restored from the source text. The skill can also update an existing package with new documents while keeping its name unchanged. The source states that the workflow does not call vision models or interpret images. It suits anyone who wants to turn a set of documents into a reusable skill.
Written from the project's SKILL.md and checked against it.
What it can do
- Convert documentsConverts TXT, Markdown, DOCX, and PDF files into normalized Markdown.
- Extract imagesPreserves DOCX and PDF images and renders PDF pages without usable text as images.
- Build knowledge indexCreates a grounded JSONL knowledge index from batched document chunks.
- Update existing skillAdds newly uploaded documents to an existing skill zip and keeps its name unchanged.
- Package skill zipOutputs a skill zip with SKILL.md, the index, source Markdown, assets, and a search script.
What you need
- Python 3 to run the bundled scripts
- Online OCR only when the system prompt enables it
Try asking
- Convert these PDF and DOCX files into a reusable skill zip
- Update my existing skill with the newly uploaded Markdown document
- Build a searchable knowledge skill from this set of TXT files
Good to know
- Does not interpret images or call vision models
- Online OCR runs only when the system prompt explicitly enables it
- Image-only content is not inferred from filenames or surrounding text
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: clawbot/skills_system/alone_doc/doc-to-skill/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Book2Skill
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
Book2Skill: common questions
Which file types does Book2Skill support?
It accepts .txt, .md, .docx, and .pdf files. Source conversion failure fails the whole task.
Does Book2Skill analyze images in documents?
No. It preserves DOCX and PDF images and renders image-only PDF pages, but the workflow never performs image interpretation. The generated skill can inspect the images later through file operations.
Can I add documents to an existing skill?
Yes. Update mode reuses the existing normalized Markdown and assets from the validated package, converts only the new documents, and keeps the skill name exactly unchanged.
How do I install Book2Skill?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is Book2Skill free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is Book2Skill safe to use?
It scores 78 of 100. Grades: maintenance A, licence F, quality A. 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 Book2Skill?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
