book-figure is a reusable Codex skill for redrawing or creating biology, microbiology, molecular-biology, genomics, NGS, metagenomics, plant, viroid, RNA-silencing, chromatin, and regulatory schematics in one consistent editorial style.
Current version: 1.4.0
Copy the book-figure folder into your Codex skills directory:
cp -R book-figure ~/.codex/skills/
Then invoke it in a request with $book-figure.
$book-figure redraw this figure, make the double strand dna as in the atlas
Original source figure:
Book Figure redraw with Atlas double-stranded DNA:
The source provides the panels, labels, entities, relationships, and reading order. By default, the result uses the visual atlas plus genereg + detailed rendering.
$book-figure create canonical animal miRNA biogenesis—pri-miRNA → Drosha–DGCR8 → pore-exported pre-miRNA → Dicer → miRNA duplex → mature miRNA → one AGO-containing RISC bound to target mRNA → target mRNA degradation
Provide the intended entities, exact labels, relationships, and panel order. The skill builds the layout from the description.
| Mode | When to use it | Result |
|---|---|---|
| visual atlas | Default | Selects exact biological forms and complexes from seven indexed reference panels and supplies an object-only montage to ImageGen. |
genereg |
Default | Uses the bundled global reference for warm ivory paper, editorial hierarchy, and layout language. |
detailed |
Default | Adds scientifically precise 2D conventions for RNA/DNA, proteins, genes, motifs, modules, and compartments without 3D or cartoon rendering. |
ref |
When the source must provide facts only | Extracts scientific content without passing the source to ImageGen; only the atlas montage and global reference are used. |
atlas-debug |
Before spending an ImageGen request | Reports exact/composite/fallback selection and builds the reference montage without generating a figure. |
standard |
Only on explicit request | Generates without the bundled genereg reference. |
simplified |
Only on explicit request | Uses a less structurally detailed schematic treatment. |
Modes can be requested in plain language, for example: use ref mode or without detailed.
- Use Inter for headings, labels, annotations, panel letters, and English or Bulgarian text.
- Use Roboto Mono only for displayed nucleotide sequences and sequence-only motifs, including their nucleotide letters, hyphens, and 5′/3′ markers.
- Render all visible text in pure black
#000000in both typefaces, including labels inside colored biological objects. Slate blue remains reserved for outlines, arrows, and connectors.
book-figure/assets/genereg-reference.png is the bundled style-only reference. Keep it with the skill when copying, packaging, or installing it.
Version 1.4.0 adds seven immutable indexed panels with 186 biological-form references. The two new panels cover microbiology laboratory tools, microbial forms and envelopes, NGS library preparation, sequencing instruments, and metagenomics analysis forms. Stable semantic IDs and aliases replace duplicated printed identifiers. ImageGen receives only a bounded montage of relevant object crops, never the original panel grid or captions.
ruby book-figure/scripts/atlas_debug.rb \
--root book-figure/atlas \
--entities "pri-miRNA,Dicer,AGO-containing RISC,target mRNA,DNA helicase" \
--output-dir /absolute/output/path
The diagnostic command writes atlas-selection-report.yml and atlas-reference-montage.png without calling ImageGen. Missing objects use same-category and molecular-contact exemplars.
book-figure/references/design-tokens.mddefines the authoritative geometry and typography.book-figure/references/semantic-colors.mddefines stable biological-role color assignments.book-figure/references/object-atlas.mddefines reference selection, montage, fallback, and upgrades.book-figure/atlas/manifest.ymlregisters the immutable panels and panel indexes.book-figure/tests/contract-cases.ymlcontains representative consistency cases.book-figure/scripts/validate_skill.rbchecks package integrity without external dependencies.book-figure/VERSIONfollows semantic versioning.CHANGELOG.mdrecords user-visible releases.
Validate the package before publishing:
ruby book-figure/scripts/validate_skill.rb
When changing a design token or semantic role, update the relevant reference, bump VERSION, add a changelog entry, run the validator, and forward-test at least one contract case.
Prof. Vesselin Baev
Dept. Molecular Biology, Faculty of Biology
Paisii Hilendarski University of Plovdiv, Bulgaria
https://vebaev.github.io/CV/
If you use this code and skill, please cite:
Baev, V. (2026). vebaev/book-figure-skill: Codex Skill for Molecular Biology Textbook Figures (Version 1.4.0). Zenodo. https://doi.org/10.5281/zenodo.21669810
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License (CC BY-NC-ND 4.0).
You may copy and redistribute the skill with appropriate attribution for non-commercial purposes. You may not distribute modified or adapted versions. See LICENSE for details.



