nachafrommars/atydam-epub-v2.0/atydam-epub-v2-0
Claude Code and agent skill by nachafrommars/atydam-epub-v2.0
- community
Checking that the SKILL.md file is still in the repository.
Automated PDF→EPUB conversion pipeline v2.0 (base version). Smart 9-phase pipeline + closed-loop audit to produce premium EPUB from any PDF book (especially Vietnamese + Pali Buddhist texts with broken font encoding). NO GPT-STYLE bold emphasis. For bold version, use atyDam-epub v3.0. Aliases: pdf-epub-v2, pdf2epub-v2, pdf-to-epub-v2, atyDam-epub.
Install
npx vskill@latest install nachafrommars/atydam-epub-v2.0/atydam-epub-v2-0SKILL.md
atyDam-epub v2.0 — Automated PDF→EPUB Pipeline (Base Version)
When to use this skill
When user wants to convert a PDF book to premium EPUB format without bold emphasis:
- PDF with broken font encoding (Vietnamese + Pali Buddhist texts)
- Books with complex tables, figures, footnotes
- Books needing professional EPUB output (cover, hierarchy, italic markup)
- No GPT-style bold — plain clean text
For GPT-style bold emphasis version, use atyDam-epub v3.0 instead.
Pipeline Overview — 9 Phases + Audit Loop
Step-by-step Execution
Step 1: Setup workspace
Step 2: Run pipeline
Step 3: Validate
Key Insights from Production Use
Gemini Configuration (CRITICAL)
- Model:
gemini-2.5-flash(paid tier) - thinkingBudget: 0 ← ESSENTIAL or output truncates
- temperature: 0.1 for factual fidelity
- maxOutputTokens: 16384 safety net
- REST API (not SDK 0.8.6) because old SDK doesn't support thinkingConfig
Cost per book (~420 pages)
- Phase 1 Recovery: ~$0.54 (129 chunks)
- Phase 2 Tables: ~$0.20 (Vision rebuild)
- Phase 5 Proofread: ~$0.40
- Phase 7 Structure: ~$0.42
- Phase 8 Perfect: ~$0.42
- Audit V1: ~$0.79
- Audit V2: ~$0.38
- Total: ~$3.15 (≈ 75,000 VNĐ)
Common Issues & Fixes
- Output truncation →
thinkingBudget: 0 - Free tier 20 RPD limit → Need paid billing
- Tables flat text → Vision API with PDF page render
- Headers inline with text → Regex split at sentence boundary +
\n\n - Pandoc auto-lists → Use
markdown-fancy_lists-startnumformat - Cell numbering becomes `<ol>` → Replace
N.with(N)in cells - Caption duplicated in `<th>` → Strip first row of thead
- Table click trắng xóa → Remove background-color, only borders
- Reader theme override → Don't force color/background
- Page break orphan letters → Merge with next paragraph
Quality Indicators (v2.0 target)
- ✅ Avg paragraph length 150-380 chars (proper semantic)
- ✅ 9 chapters proper hierarchy (not broken)
- ✅ All tables HTML with thead/tbody/th/td
- ✅ Italic Pali wrapping (~1,100+ terms)
- ✅ epubcheck: 0 errors / 0 warnings
- ✅ Images embedded (~30 figures)
- ✅ Cover from PDF page 1
- ✅ NO bold emphasis (plain clean text)
Difference: v2.0 vs v3.0
| Feature | v2.0 | v3.0 | |
|---|---|---|---|
| Text recovery | ✅ | ✅ | |
| Structure detection | ✅ | ✅ | |
| Tables rebuild | ✅ | ✅ | |
| Proofreading | ✅ | ✅ | |
| GPT-Style bold | ❌ NO | ✅ YES (~1,500 patterns) | |
| Cost per book | ~$3.15 | ~$3.53 | |
| Output size | 1.4 MB | 1.4 MB |
Files Structure
Trigger Auto-run
When user provides a PDF path with intent to convert (standard aliases):
- "convert PDF sang EPUB"
- "pdf to epub"
- "pdf2epub"
- etc.
Em will run v2.0 by default. For GPT-style version, user must explicitly request v3.0.
Memory Note
atyDam-epub v2.0 is the base version without GPT-style bold. Produced from work done 16/05/2026 on Triết Học A-Tỳ-Đàm (Buddha Abhidhamma) — Dr. Mehm Tin Mon.
- V10 (LANDMARK): v2.0 base pipeline
- V11: v3.0 with GPT-style bold emphasis
For GPT-style version, see atyDam-epub v3.0 skill.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nachafrommars/atydam-epub-v2.0/atydam-epub-v2-0)