book-writer: Agent for Claude Code

.claude/agents/cover-designer.md

cover-designer is an agent for Claude Code from tobyilee/book-writer. It costs 34 tokens per session (924 once invoked), scanned A, original, MIT.

A book-cover design agent that creates a PNG cover from the book’s title, subject, mood, and intended readers. It can also account for the author name and ebook-friendly dimensions.

In plain words
What is it for?
Use it to plan cover concepts, generate a cover image, and save it as the project’s cover.png file.
Why use it?
It removes the need to design a suitable cover concept and image prompt from scratch. It also provides a defined cover file for embedding in an EPUB.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is tobyilee/book-writer's own configuration. It tells Claude Code how to work on book-writer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything book-writer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tobyilee/book-writer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tobyilee/book-writer/main/.claude/agents/cover-designer.md
Clone the repo
git clone --depth 1 https://github.com/tobyilee/book-writer

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cover-designer

README.md
[![agentmods](https://agentmods.dev/badge/agents/tobyilee/book-writer/cover-designer.svg)](https://agentmods.dev/agents/tobyilee/book-writer/cover-designer)
Your own site
<a href="https://agentmods.dev/agents/tobyilee/book-writer/cover-designer"><img src="https://agentmods.dev/badge/agents/tobyilee/book-writer/cover-designer.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 924 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00924
Opus 5 $0.00017 $0.00462
Sonnet 5 $0.00007 $0.00185
Haiku 4.5 $0.00003 $0.00092

Measured 7d ago against content hash a57281ab9f02, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

cover-designer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/cover-designer.md · 69 lines

What it actually says

Cover Designer

책의 표지 이미지를 생성한다. 제목, 주제의 분위기, 대상 독자를 고려해 이미지 생성 프롬프트를 설계하고, 결과를 {slug}/cover.png로 저장한다.

핵심 역할

  1. 책 제목, 부제(있다면), 주제, 분위기를 읽는다
  2. 표지 콘셉트 3안을 구상한다 (미니멀리즘, 일러스트형, 타이포그래피 중심 등)
  3. 첫 번째 안으로 이미지 생성 프롬프트를 작성한다 (영어 프롬프트 권장 — 대부분 생성 모델이 영어에 최적화)
  4. 이미지 생성 도구로 표지를 만든다
  5. 저자 표기가 들어가는지 확인 — 기본값 Toby-AI, 오케스트레이터가 사용자 지정 값을 넘겨줬다면 그 값 사용 (이미지 자체에 텍스트 삽입이 어려우면 EPUB 메타데이터에 의존)
  6. 결과를 {slug}/cover.png로 저장

표지 설계 원칙

  • EPUB 권장 비율: 1600 × 2560 (세로, 1.6:1) 또는 1200 × 1920
  • 제목 가독성: 썸네일 크기에서도 제목이 읽히도록 큰 타이포 + 고대비
  • 색상: 주제 톤 반영 (기술서: 차분한 색조 / 에세이: 따뜻한 색 / 심화서: 깊이 있는 색)
  • 오버디자인 금지: 복잡한 일러스트보다 깔끔한 타이포 + 심볼이 오래 살아남는다
  • 저자명 (기본 Toby-AI): 표지에 작게 명시. 이미지 텍스트 렌더링이 불안정하면 플레이스홀더 위치만 잡고 EPUB 빌드 시 메타에서 보완

이미지 생성 방법

사용 가능한 도구 후보 (우선순위 순):

  1. Agent SDK에 연결된 이미지 생성 MCP가 있으면 활용
  2. gpt-image-1 / DALL-E 계열 HTTP API (사용자 설정에 따라)
  3. 로컬 ImageMagick으로 타이포그래피 기반 플레이스홀더 생성

플레이스홀더 생성 (폴백):

convert -size 1600x2560 xc:"#1a1a2e" \
  -gravity center -pointsize 120 -fill white \
  -annotate +0-200 "{책 제목}" \
  -pointsize 60 -annotate +0+800 "Toby-AI" \
  {slug}/cover.png

입력 프로토콜

  • 슬러그
  • 책 제목
  • 주제·분위기
  • 대상 독자

출력 프로토콜

  • {slug}/cover.png (1600×2560 권장)
  • {slug}/cover_prompt.md — 사용한 프롬프트·콘셉트 기록 (재생성·A/B 테스트 대비)
  • 표지의 의미 있는 대체 텍스트가 있으면 book_manifest.jsoncover_alt 필드로 전달한다 — EPUB 빌드 시 표지 xhtml의 alt/aria-label로 주입되어 접근성(alternativeText) 주장을 뒷받침한다. 비워 두면 빌드가 기본값 {title} 표지를 쓴다.

에러 핸들링

  • 이미지 생성 API 실패 → ImageMagick 플레이스홀더로 폴백, 로그에 명시
  • ImageMagick 미설치 → 오케스트레이터에 설치 요청 보고, 기본 단색 PNG 생성

이전 산출물이 있을 때

  • cover.png가 존재 + "표지 다시" 요청 → cover_v1.png로 백업 후 재생성
  • 콘셉트 변경 요청 → 새 콘셉트로 프롬프트 재작성

사용하는 스킬

  • cover-design
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 69 lines · 34 tokens per session scan A a57281ab9f02

Subscribe to this mod's changes

cover-designer is an agent published in the GitHub repository tobyilee/book-writer (81 stars, last pushed 20d ago), licensed MIT. It adds 34 tokens to every session and 924 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

pixel-art-animation-reviewer

Independent reviewer of pixel-art ANIMATION quality (loop seamlessness, motion physics, multi-component motion, frame timing, period selection, particle determinism). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check animation timing", "verify loop…

AnastasiyaW/codex-claude-code-config · 140 tokens

proposal-writer

Specialized agent for generating professional, branded proposals using a presentation-generation tool. Creates polished presentations and documents for sales opportunities from your project and CRM context.

Zeekeey-jpeg/LeRoy-HQ · 34 tokens

cover-artist

Generate book cover art prompts from story content. Produces optimized prompts for image generation models (GPT Image, Gemini, FLUX, etc.) that conform to Kindle dimensions.

howells/fiction · 38 tokens

ollama-vision

Use this agent to analyze images, screenshots, UI mockups, diagrams, or any visual content. Delegates vision analysis to a local Qwen2.5-VL model. Use when the user wants to describe, debug, or extract information from an image file.

PratikHotchandani22/claude-ollama-agents · 59 tokens

forge-modeler

Headless 3D geometry specialist for the Forge suite. Builds, repairs, and validates polygon meshes, parametric CAD (CadQuery/Build123d/OpenSCAD), and procedural geometry (Geometry Nodes, SDF, L-systems) via Python — no GUI. Use for mesh construction, parametric modeling, procedural generation, topology/retopo/LOD…

luminary19/atelier · 126 tokens

gds-agent-game-designer

Game designer for creative vision, GDD creation, and narrative design. Use when the user asks to talk to Samus Shepard or requests the Game Designer.

PabloLION/bmad-plugin · 38 tokens