shuifeng1988

PDF Book Cover — Development skill for Claude Code

Development community

Print-ready wraparound book covers (back+spine+front, with bleed) from PDF books — spine width computed from thickness.

How to install PDF Book Cover

This entry records only its repository, not the path inside it, so there is no exact command to give. Open shuifeng1988/pdf-book-cover and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What PDF Book Cover does

Print-ready wraparound book covers (back+spine+front, with bleed) from PDF books — spine width computed from thickness. 从PDF生成胶装打印封面。Claude Code skill + universal CLI.

Alternatives in Development

  • Translate Book — Claude Code skill that translates entire books (PDF/DOCX/EPUB) into any language using parallel subagents 542 ★
  • Write Teaching Chapter — Write bilingual (CN+EN) Claude Code source code teaching chapters 386 ★
  • Tufte Claude Skill — Claude Code skill that turns 'make me a chart' into a Tufte-compliant chart 295 ★

README

pdf-book-cover

[![CI](https://github.com/shuifeng1988/pdf-book-cover/actions/workflows/ci.yml/badge.svg)](https://github.com/shuifeng1988/pdf-book-cover/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

**Generate print-ready wraparound book covers (back + spine + front, with bleed) from PDF books — for perfect binding at any print shop.**

**从 PDF 书籍一键生成胶装打印封面:封底 + 书脊 + 封面连体单页(含出血),交给打印店即可装订成书。**

┌──────────┬────────┬──────────┐
│          │        │          │
│  封底    │  书脊  │  封面    │   ← 单页 PDF,四周 3mm 出血
│  back    │  spine │  front   │      书脊宽度按书的厚度自动计算
│          │        │          │
└──────────┴────────┴──────────┘

English

Features

  • Extract covers from the PDF itself — page 1 becomes the front cover; a blank/white last page is auto-replaced by a solid back in the front cover's background color (median estimate that ignores text and graphics; a gradient yields its middle color)
  • Spine width computed from book thickness — pages / 2 × paper caliper + safety; measurement-based defaults (80g = 0.1233mm/sheet), explicit width, or your own --calibrate
  • Calibrate for your own paper — --calibrate 146x18 stores a measured caliper per paper; the 70g/80g defaults already come from real bound books
  • User-decided spine content — title plus optional subtitle, author, and year (--spine-subtitle, --spine-author, --spine-date); text auto-skips on spines narrower than 6mm
  • Uploaded cover images — one image → front cover + auto solid back; two images → front + back
  • Seamless spine gradient — spine color blended row-by-row from the adjacent edges of both covers; joints are invisible
  • Scanned-book friendly — --autocrop removes white scanner borders; Letter→A5 style aspect mismatches handled by half-crop/half-pad edge extension
  • Agent-friendly — plain CLI + --inspect / --json; works from Claude Code, Codex, any harness, or a terminal
  • Auto