Bookforge
Generate professional Korean ebooks and PDFs from topics or manuscripts in six design styles.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/bookforge-gongnyang/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Generate commercial-book-quality Korean ebook PDFs from a topic or a finished manuscript. Six design styles (practical, insight, academic, essay, business, magazine) with real book anatomy — cover, TOC with page numbers, chapter openers, running heads, QC gates. Use when the user wants an ebook, a PDF book or report, book typesetting, or mentions 전자책, PDF 책, 책 조판, 북포지, bookforge.
What this skill does
bookforge — 상업도서급 전자책 PDF 공장
주제 한 줄 또는 완성 원고를 받아, 실제 단행본 해부 구조(표지·차례·장 도비라·러닝 시스템·판권면)를 갖춘 PDF를 만든다. 콘텐츠는 마크다운으로만 쓰고, 조판은 스타일 팩과 스크립트가 전담한다. 품질은 QC 게이트가 물리적으로 강제한다 — 게이트를 통과하지 못한 PDF는 final/에 존재할 수 없다.
이 파일의 경로가 <SKILL>이다. 모든 명령은 <SKILL>을 이 스킬 폴더의 절대 경로로 치환해 실행한다.
실행 전 점검
typst --version # 0.14+ 필요 (Typst 트랙)
python3 -c "import fitz, markdown_it" # PyMuPDF + markdown-it-py (QC·변환)
npx --no-install playwright --version # HTML 트랙(insight·magazine) + 도해 프리렌더에 필요
# 도해(diagrams/)를 쓰는 책만: AntV Infographic SSR 의존성 (버전 고정 0.2.19)
node -e "require('<SKILL>/node_modules/@antv/infographic/package.json')" 2>/dev/null \
|| (cd <SKILL> && npm ci)
없는 것이 있으면 사용자에게 설치를 요청하고 중단한다. HTML 트랙·도해 없이 Typst 4스타일만 쓸 거라면 playwright와 npm ci는 생략 가능.
파이프라인 (체크리스트를 복사해 진행하며 체크)
[ ] P0 계약: 모드·스타일·분량 확정 → 책 프로젝트 스캐폴드
[ ] P1 콘텐츠: outline.json + chapters/ch-NN.md 완성
[ ] P1.5 도해(선택): diagrams/fig-NN.json 작성 → build.py가 자동 프리렌더 (계약: references/diagrams.md)
[ ] P2-3 빌드: build.py → draft/book.pdf
[ ] P4 게이트: qc_gate.py PASS → final/ 생성 확인
[ ] P5 시각 검수: contact_sheet.py → 표지·차례·도비라·본문 4면 이상 눈으로 확인
P0 — 계약
- 모드 감지: 사용자가 원고 파일(md/txt/docx)을 줬으면 manuscript 모드 → modes/manuscript.md를 읽고 따른다. 주제·아이디어만 줬으면 topic 모드 → modes/topic.md를 읽고 따른다.
- 스타일 선택: 사용자가 지정하지 않았으면 아래 표에서 내용 성격에 맞는 것을 골라 진행한다(질문하지 않는다).
| 스타일 | 성격 | 판형 | 엔진 |
|---|---|---|---|
practical | IT·실용 활용서, 단계별 가이드, 용어집 | 153×225 | typst |
insight | 기술 동향·인사이트 리포트, 데이터 브리핑 | 182×257 | html |
academic | 학술 단행본, 연구 개론, 이론서 | 153×225 | typst |
essay | 산문집, 회고, 문학적 글 | 128×188 | typst |
business | 컨설팅 리포트, 시장 분석, 전략 백서 | 200×280 | typst |
magazine | 트렌드북, 큐레이션, 룩북 | 200×265 | html |
- 스캐폴드 (책 프로젝트는 스킬 폴더 밖 작업 디렉토리에 만든다):
python3 <SKILL>/scripts/scaffold.py <book_dir> --style practical \
--title "제목" --subtitle "부제" --length short --author "저자" --date "2026-08"
--length: short(3060쪽)/standard(80150)/long. --brand "#hex"로 브랜드색 교체 가능. book.json의 images는 이미지 정책(vector=벡터만·generated=생성 아트 포함·none)이다.
P1 — 콘텐츠 계약
outline.json의 각 장에 file·title·summary(도비라에 실리는 1~2문장)를 채우고, chapters/ch-NN.md를 아래 문법만으로 쓴다:
# 장제목(파일당 1개, outline의 title과 일치) /##절 /###소제목- 문단,
**볼드**, 리스트,> 인용, GFM 표, ``` 코드블록 - 이미지:
— 파일을<book_dir>/assets/에 먼저 넣고, 반드시../assets/경로 + 이미지 단독 문단으로 쓴다(텍스트가 섞이면 조판에서 조용히 증발) - 벡터 도해:
diagrams/fig-NN.json(AntV DSL 사이드카)을 만들면 빌드가assets/fig-NN.svg로 프리렌더한다. 본문 참조는. 작성 계약·팔레트·금지 사항은 references/diagrams.md가 정본 - 콜아웃(줄 단위 디렉티브):
::: tip 제목
내용 (stat은 첫 줄=수치, 둘째 줄=설명)
:::
종류 info|tip|warn|quote|stat|pull(pull은 magazine 풀퀘트 — 본문에 실재하는 문장만, 없는 인용은 G10 하드 실패).
- 표 캡션: 표 바로 앞 문단에
[표] 제목 | 자료: 출처한 줄 — 이 줄을 준 표만 번호 라벨이 붙는다. 캡션 없는 표는 라벨 없이 렌더된다(자동 필러 캡션은 존재하지 않는다). stat의 수치는 같은 장 본문에 실재해야 한다(G10) — 박스에만 있는 숫자는 날조로 판정된다.
표지·도비라용 생성 아트를 쓸 경우 references/art-policy.md를 읽고 따른다(무텍스트 원칙).
완료 기준: outline의 모든 장 파일이 존재하고, 각 파일 첫 줄이 # {title}이며, 분량 프리셋에 맞는 총 글자수(short 기준 본문 1.2만~2.2만 자)를 갖춘다.
P2-4 — 빌드와 게이트
python3 <SKILL>/scripts/build.py <book_dir> # → draft/book.pdf
python3 <SKILL>/scripts/qc_gate.py <book_dir> # PASS 시에만 final/<slug>.pdf 생성
게이트: G10 인용·수치 실재(렌더 전) / G0 도해 SVG 소스(렌더 전 — foreignObject·외부참조·단독문단·아이콘 탈락) / G1 렌더·분량범위 / G2 폰트 임베드 / G3 오버플로 0 / G4 목차·북마크 정합 / G7 밀도(백면·꼬리 채움·판면 드리프트) / G8 공기 채움 / G9 제목 고립·widow / G11 사유 코드 무결성 / G12 필러 백면 / G13 도해 라벨 PDF 실재. 기준 수치와 대응법은 references/pagination.md가 정본이다.
실패 시 gate-report.json의 원인 항목만 고치고 재실행한다. 금지 대응: 분량 미달을 부록·용어집 추가로 메우기, 절별 강제 개면, 빈 줄·행간 확대로 면 채우기 — 전부 게이트가 다시 잡는다. 올바른 대응: G7 꼬리 미달은 refit.py(자간 미세조정 자동 탐색) → 해 없으면 문단 1~2개 국소 증감 또는 pageroles.json 사유 코드(의도된 여백 선언, G11이 진위 검증). 재배치(원고 유지) 시에는 qc_gate.py <dir> --refit으로 분량범위를 WARN 강등. 같은 게이트 3회 연속 실패면 원인을 사용자에게 보고한다.
P5 — 시각 검수 (필수, 생략 금지)
python3 <SKILL>/scripts/contact_sheet.py <book_dir>/final/*.pdf <book_dir>/qc --dpi 90 --pages 1,2,3,4,5
# 게이트 실패를 진단할 때는 final/ 대신 draft/book.pdf 를 같은 방식으로 렌더해 본다
표지·차례·도비라·본문 펼침면 PNG를 직접 열어 보고 판단한다: 글자 겹침 없음, 목차 쪽번호=실제 쪽, 도비라 스타일 성립, 본문 여백 리듬 정상. 이상이 있으면 콘텐츠(md)나 book.json을 고쳐 P2-4를 재실행한다. 파일이 생성되었다는 것은 완료가 아니다 — 눈으로 본 것만 완료다.
더 읽을 것 (필요할 때만)
- modes/topic.md — 주제만 받았을 때: 조사→목차→집필 절차
- modes/manuscript.md — 원고를 받았을 때: 인제스트·장 분할 절차
- references/pagination.md — 배치 규칙서(정본): 채움/비움의 사유, 레버 사다리, 밀도 게이트 수치, 사유 코드
- references/art-policy.md — 생성 아트(표지·도비라) 규칙: 무텍스트 원칙, 스타일별 사용처
- references/orchestration.md — (Claude Code 전용, 선택) 장별 집필을 codex 스웜·서브에이전트로 병렬화하는 법
- references/extending.md — 새 스타일 팩 추가·테마 수정 가이드
styles/<이름>/STYLE.md— 각 스타일의 전체 디자인 규칙서(집필 시 톤·구성 참고)
Related skills
Claude API Helper
anthropics
Build, debug, and optimize Claude API applications with caching and model migration support.
Documentation Co-Authoring
anthropics
Guide structured workflows for writing docs, proposals, and technical specs collaboratively.
PPTX Text Extractor
axoviq-ai
Extract text and speaker notes from PowerPoint presentations.
Memory Search
davila7
Search conversation history and recall previous discussions, decisions, and context.