vellum-prep
Skill9 starsChanged 10 months agoMITArchived repositoryView on GitHub
Convert markdown manuscripts to Vellum-ready Word documents. Use this skill when you have a markdown manuscript (from OCR, writing, or conversion) that needs to be formatted for import into Vellum book formatting software. Programmatic cleanup (no AI tokens): - Removes OCR metadata headers - Converts --- to *** (Vellum ornamental breaks) - Removes duplicate running headers (e.g., repeated book title) - Removes [Image: ...] placeholder descriptions - Strips publisher front matter (catalogs, copyright boilerplate) - Normalizes chapter headings to #…
In this repository35 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- nano-banana-image-generatorSkill
- find-your-marginSkill
- open-education-hub-deep-divesSkill
- seo-content-writerSkill
- seo-researchSkill
- meta-ads-creativeSkill
- social-content-creationSkill
- text-contentSkill
- x-article-converterSkill
- x-postingSkill
- day-in-the-lifeSkill
- podcast-blog-post-creatorSkill
- podcast-productionSkill
- short-form-videoSkill
- video-caption-creationSkill
- youtube-clip-extractorSkill
- youtube-downloaderSkill
- youtube-title-creatorSkill
- ai-tellsSkill
- anti-ai-writingSkill
- cold-open-creatorSkill
- dude-with-sign-writerSkill
- email-writingSkill
- ghostwriterSkill
- hook-and-headline-writingSkill
- how-newslettersSkill
- human-writingSkill
- invisible-threadsSkill
- memoSkill
- transcript-polisherSkill
- verified-reviewSkill
- voice-pirate-wiresSkill
- writing-styleSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Use this skill when you have a markdown manuscript (from OCR, writing, or conversion) that needs to be formatted for import into Vellum …
- Very specific: line 73
When a document has nested "CHAPTER I/II/III" within sections (e.g., each movement family has its own Chapter I, II, III):
- Very specific: line 74
Keep top-level sections as # (Vellum chapters)
- Distinctive: line 86
Run exploratory agent to analyze structure
- Distinctive: line 87
Create book-specific prep script
- Very specific: line 89
Run prep script → intermediate .md
- Very specific: line 90
Run pandoc directly (not vellum_prep.py) to preserve images
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vellum Prep
Convert markdown manuscripts to Vellum-ready Word documents.
When to Use
Use this skill when you have a markdown manuscript (from OCR, writing, or conversion) that needs to be formatted for import into Vellum book formatting software.
What It Does
Programmatic cleanup (no AI tokens):
- Removes OCR metadata headers
- Converts
---to***(Vellum ornamental breaks) - Removes duplicate running headers (e.g., repeated book title)
- Removes
[Image: ...]placeholder descriptions - Strips publisher front matter (catalogs, copyright boilerplate)
- Normalizes chapter headings to
# Chapter X: Titleformat - Cleans common artifacts (page numbers, ellipses, broken hyphenation)
- Converts to .docx via pandoc
Usage
# From the manuscript directory:
python3 /path/to/vellum_prep.py manuscript.md
# Output: manuscript_vellum.md + manuscript.docx (if pandoc available)Or invoke via Claude:
/vellum-prep manuscript.mdVellum Formatting Rules
| Markdown | Word Style | Vellum Element |
# Chapter 1: Title | Heading 1 | Chapter |
# Dedication | Heading 1 | Dedication |
# Prologue | Heading 1 | Prologue |
## Section | Heading 2 | Level 1 Subhead |
*** | Centered asterisks | Ornamental Break |
| Single blank line | Blank paragraph | Scene Break |
Configuration
Edit the script to customize:
header_patterns: List of regex patterns for headers to removeremove_images: Whether to strip[Image: ...]tagsclean_for_vellum: Apply Vellum-specific formatting
Requirements
- Python 3.x
- pandoc (for .docx conversion)
Handling Complex Manuscripts
For manuscripts with special requirements (Notion exports, external images, nested chapters), create a book-specific preprocessing script. See Personal/Guide Abrege/prep_guide_abrege.py for an example that handles:
Notion Export Issues
- Missing image folders: Notion exports reference
FolderName/image.pngbut don't always include the folder - Substack CDN images: Can be downloaded with curl and remapped to local paths
- Image mapping pattern:
IMAGE_MAP = { "substack-uuid_dimensions.png": "images/01-descriptive-name.png", }
Nested Chapter Headings
When a document has nested "CHAPTER I/II/III" within sections (e.g., each movement family has its own Chapter I, II, III):
- Keep top-level sections as
#(Vellum chapters) - Demote internal "CHAPTER X:" labels to
##subheadings - Strip the "CHAPTER X:" prefix, keep just the descriptive title
Tables
- Multi-line cells in markdown tables don't convert well via pandoc - convert to numbered lists instead
- See
prep_guide_abrege.pyfor regex pattern to match and replace specific tables
Bold Labels as Headings
Instructional books often use **FIRST TYPE:** or **Method A:** as implicit subheadings. Convert these to actual headings (####) for proper Vellum hierarchy.
Workflow for Complex Books
- Run exploratory agent to analyze structure
- Create book-specific prep script
- Download/remap external images
- Run prep script → intermediate
.md - Run
pandocdirectly (not vellum_prep.py) to preserve images - Review in Vellum, fix Parts/special elements manually
Files
SKILL.md- This filevellum_prep.py- Main conversion script (OCR cleanup focus)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

