Logo : Book Visuals

Book Visuals

Communauté
epicsagas
book-visuals

Book visual system: art bible and look lock, figure plan per chapter, code-rendered diagrams/charts/technical drawings, diffusion-generated illustrations and spot art, photo sourcing policy, cover, model-agnostic prompt compilation, vision QA, and asset validation for print and EPUB. Every image matches the book, the chapter, and the author's brief regardless of which image model renders it.

Présentation

Éditeurepicsagas
DépôtVelith
Nom de la compétencebook-visuals
Étoiles
40
Forks
7
Fichiers inclus
Instructions uniquement
LicenceApache-2.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Tout dans les instructions

    Tout ce dont le modèle a besoin se trouve dans les instructions : aucun fichier supplémentaire à synchroniser.

  • Open source

    Publiée par epicsagas sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Book Visuals dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/epicsagas/Velith/tree/main/skills/book-visuals
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/epicsagas/Velith.git /tmp/Velith
mkdir -p .claude/skills
cp -r /tmp/Velith/skills/book-visuals .claude/skills/book-visuals
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Book Visuals dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Book Visuals dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Book Visuals n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Book Visuals

Goal: every image in the book looks like it belongs to this book, sits where the text needs it, and is release-ready on the first export. Images that vary with the model, drift between chapters, or decorate instead of doing work are the visual equivalent of AI prose tells.

Read ${CLAUDE_PLUGIN_ROOT}/skills/loom/quality-bar.md (the visual section) and the genre skill's Visuals section.

Why images go wrong, and the fix

CauseFix in this pipeline
No shared visual spec; each prompt invents a styleart-bible.md: one canonical look, palette, medium, composition rules, character and setting constants, negative rules. Every prompt is derived from it
Free-form prompts differ per backendvelith.mjs images compile: one structured image spec → per-backend prompt syntax (Midjourney, gpt-image, Stable Diffusion/FLUX, Imagen, Ideogram) with the art bible baked in
Diagrams and drawings rendered by diffusion modelsNever. Diagrams, charts, technical drawings, maps' base layers are code-rendered (Mermaid, D2, Graphviz, SVG, matplotlib/Vega) by figure-engineer. Text-accurate, editable, print-safe
No rejection loopart-director reads every generated image (vision), scores it against the art bible, rejects and regenerates with corrected prompts; reviews the full contact sheet for consistency
Images bolted on after draftingFigure plan in the outline; chapter-writer places figure references with captions while drafting; fact-checker verifies figures match text
Assets fail at exportvelith.mjs images check: dimensions, aspect, size, color mode notes, alt text, broken references, manifest coverage

Image types and who makes them

TypeMade byMethodUsed in
Diagram (architecture, flow, sequence, concept map)figure-engineerMermaid / D2 / Graphviz → SVG (+ PNG for print)technical, nonfiction, academic
Chart (data)figure-engineermatplotlib / Vega-Lite from a data file in sources/nonfiction, academic, technical
Technical drawing, floor plan, schematic, 도면figure-engineerSVG with real dimensions, or TikZ; DXF export on requesttechnical, nonfiction, game
Table-as-figure, comparison matrixfigure-engineerMarkdown table first; SVG only when layout demandsall
Map (fantasy, historical, game world)figure-engineer base (SVG from bible geography) + illustrator stylizationhybridfiction, game, nonfiction
Scene illustration, full-page, chapter header, spot artillustratordiffusion backend with art bible + referencesfiction, poetry, children's, memoir
Character sheet, setting referenceillustrator (after look lock)diffusion; becomes reference for later imagesfiction, game, screenplay pitch
Photographauthor or licensed stock; pipeline sources and records licensenever generated for documentary use; AI-generated "photos" only as clearly stylized art with disclosurenonfiction, memoir, technical
Covercover-designerdiffusion for art + typography spec; Ideogram-class model if title text must be in-imageall
Ornaments, dividers, drop capsfigure-engineerSVG, consistent with art bibleall

Workflow

1. Art bible (/book-visuals plan)

Invoke art-director. It reads PRD.md, STYLE.md, bible.md, outline.md, existing drafts, and any author-supplied references in visuals/ref/, then writes:

  • art-bible.md (human) and .velith/art-bible.json (machine): medium, technique, movement or era descriptors (never living artists' names), line, palette with roles, value range, lighting, texture, detail level, composition rules, safe margins, aspect per placement, mood words, negative rules; character and setting constants (fiction); figure system (diagram grammar, node and edge semantics, font, color roles, caption style, grayscale survivability) for nonfiction and technical; photo policy; backend profile.
  • visuals/plan.md and visuals/manifest.json: the figure list. Per image: id, chapter, placement, type, purpose (what the reader learns or feels that the text alone cannot deliver), maker, source data or scene, caption, alt text, status.

For nonfiction and technical books, the figure list is part of the argument: each figure has a purpose sentence, and a figure without one is cut. For fiction, 0-4 illustrations per chapter by weight; a chapter can have none.

2. Look lock (/book-visuals lock)

Before producing volume, produce three candidate style samples of the same subject (the book's most representative image) with three variants of the art bible. The author picks one. Record the choice, the reference image path, and the backend settings (style reference, seed) in the art bible. Required stop. For books with no diffusion images (pure technical), the look lock is a rendered sample figure instead.

3. Produce

  • figure-engineer renders every code-based figure: source file in visuals/figures/src/, output SVG and PNG (300 dpi at final size) in visuals/figures/. Verifies labels against the chapter text and the bible's term rules. Every figure survives grayscale.
  • illustrator compiles prompts (velith.mjs images compile), generates when an image tool is available (--execute) or hands the compiled prompt pack to the author, then runs vision QA on each result: reads the image, scores against the art bible (palette, medium, character constants, composition, artifacts, text contamination), rejects and regenerates with a corrected prompt up to three times, then escalates.
  • cover-designer works from the art bible, produces concepts and the print/ebook/audiobook/marketing variants, and hands the chosen art to art-director for the consistency review.
  • Photos: art-director writes the shot list or stock brief, records license and attribution in visuals/manifest.json, applies the treatment defined in the art bible.

4. Author brief (/book-visuals add "prompt" --chapter N --type T)

The author's prompt is an intent, not the final prompt. art-director interprets it through the art bible and the chapter's content, writes the spec, and the appropriate maker produces it. The result matches the book even if the author's prompt named a different style; if the author explicitly wants to break the art bible, they say so and the exception is recorded.

5. Check (/book-visuals check)

node ${CLAUDE_PLUGIN_ROOT}/velith.mjs images check <project-dir>: every manifest entry has a file; dimensions meet the placement minimum; aspect within 5%; file size within EPUB budget; every image reference in drafts resolves and has alt text; every file in visuals/ is in the manifest. Then art-director reviews the contact sheet: consistency across all images and the cover, one final pass.

6. Integrate

Chapter-writer already placed references during drafting for planned figures:

markdown
![Alt text that describes the figure for a reader who cannot see it](../visuals/figures/ch03-fig01.svg)

*Figure 3.1 — Caption in the book's voice, one sentence, ends with a period.*

Illustrations added after drafting are inserted by illustrator at the manifest's placement. book-publish resolves paths with --resource-path and prefers SVG for EPUB and PNG for PDF.

Print and screen constraints

  • Print interior: 300 dpi at final size; grayscale-safe unless the book is color; CMYK conversion at the printer's step, note it in PUBLISH-NOTES.md; bleed 3 mm / 0.125 in for full-bleed images.
  • EPUB: JPEG or PNG, sRGB, each < 500 KB, SVG allowed for figures (EPUB 3), total image payload under 20 MB. Alt text required.
  • Placement minimums: full-page 1600×2400, chapter header 2400×800, inline 1200×1200, spot 800×800, cover front 1600×2560 (2500×3750 recommended), audiobook 3200×3200, social 1200×628.
  • Text in images: only on the cover, and only via a text-capable model or typography added in the layout step. Everything else: no text in the image; labels go in SVG or captions.

Output structure

{project-dir}/
├── art-bible.md
├── visuals/
│   ├── plan.md
│   ├── manifest.json
│   ├── ref/                 # author references, look-lock samples, character sheets
│   ├── figures/src/         # .mmd .d2 .dot .svg .py .json sources
│   ├── figures/             # rendered svg + png
│   ├── illustrations/       # ch{NN}-{slug}.jpg|png
│   ├── photos/              # licensed, with LICENSES.md
│   └── prompts/             # compiled prompt packs per image, per backend
└── publish/cover/           # cover art and variants (unchanged path)

Gate

Art bible exists with a recorded look lock. Manifest covers every planned image with status done or an author-accepted deferred. images check passes. Art-director consistency review recorded in visuals/plan.md.

Post-completion

bash
node ${CLAUDE_PLUGIN_ROOT}/velith.mjs scan [project-dir]

Foire aux questions

À quoi sert la compétence IA Book Visuals ?

Book visual system: art bible and look lock, figure plan per chapter, code-rendered diagrams/charts/technical drawings, diffusion-generated illustrations and spot art, photo sourcing policy, cover, model-agnostic prompt compilation, vision QA, and asset validation for print and EPUB. Every image matches the book, the chapter, and the author's brief regardless of which image model renders it.

Pourquoi utiliser Book Visuals sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Book Visuals se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Book Visuals dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/epicsagas/Velith/tree/main/skills/book-visuals. TypingMind lit le fichier SKILL.md et l’installe sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Book Visuals ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Book Visuals ?

Autant que vous le souhaitez. Vous pouvez utiliser Book Visuals avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Book Visuals est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par epicsagas sous licence Apache-2.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇