From write
Export fiction manuscripts to professional book formats (PDF, ePub) with research-informed styling profiles. Includes profiles for manuscript drafts, beta readers, and publication-ready output.
npx claudepluginhub pknull/asha-marketplace --plugin writeThis skill uses the workspace's default tool permissions.
Export fiction manuscripts to professional book formats (PDF, ePub) with research-informed styling profiles.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Export fiction manuscripts to professional book formats (PDF, ePub) with research-informed styling profiles.
Wraps the Pandoc MCP (mcp__mcp-pandoc__convert-contents) with professional publishing standards for fiction books:
Use the book-export skill to export [file] as [profile]
Use the book-export skill to create manuscript draft from chapter
Use the book-export skill to generate publication-ready PDF
Use the book-export skill for beta reader ePub
mcp__mcp-pandoc__convert-contentsUse Case: Internal review, quick iteration Output: PDF Specifications:
Pandoc Parameters:
pdf-engine: xelatex
geometry:
- a4paper
- margin=1in
fontsize: 12pt
linestretch: 2
mainfont: "Lora"
Use Case: Beta reader distribution, comfortable reading Output: PDF Specifications:
Pandoc Parameters:
pdf-engine: xelatex
geometry:
- paperwidth=6in
- paperheight=9in
- margin=0.75in
fontsize: 11pt
linestretch: 1.5
mainfont: "Lora"
Use Case: Digital beta reader distribution Output: ePub3 Specifications:
***Pandoc Parameters:
css: beta-reader.css
epub-cover-image: cover.jpg (if provided)
epub-embed-font:
- Lora-Regular.ttf
- Lora-Bold.ttf
- Lora-Italic.ttf
- Lora-BoldItalic.ttf
toc: true
CSS Specifications (beta-reader.css):
body {
font-family: "Lora", Georgia, serif;
font-size: 1em;
line-height: 1.5;
text-align: left;
}
p {
text-indent: 1.5em;
margin: 0;
}
.no-indent {
text-indent: 0;
}
h1 {
font-size: 1.5em;
text-align: center;
margin-top: 2em;
margin-bottom: 1em;
page-break-before: always;
}
.scene-break {
text-align: center;
margin: 1em 0;
}
Use Case: KDP/IngramSpark print-ready Output: PDF (press-ready) Specifications:
Pandoc Parameters:
pdf-engine: xelatex
template: print-template.latex
geometry:
- paperwidth=6in
- paperheight=9in
- inner=0.625in
- outer=0.5in
- top=0.75in
- bottom=0.75in
fontsize: 11pt
linestretch: 1.5
mainfont: "Lora"
toc: true
Requirements:
Use Case: Amazon/Apple/Kobo distribution Output: ePub3 Specifications:
Pandoc Parameters:
epub-cover-image: cover-2560x1600.jpg
css: publication.css
toc: true
toc-depth: 1
CSS Specifications (publication.css):
/* Minimal styling - respect reader preferences */
body {
font-family: Georgia, serif;
font-size: 1em;
line-height: 1.5;
text-align: left;
}
p {
text-indent: 1.5em;
margin: 0;
}
.no-indent {
text-indent: 0;
}
h1 {
font-size: 1.5em;
text-align: center;
margin-top: 2em;
margin-bottom: 1em;
}
.scene-break {
text-align: center;
margin: 1em 0;
}
/* Kindle compatibility */
p {
line-height: 1.2; /* Minimum for Kindle */
}
/* Hyphenation control */
.no-hyphen {
adobe-hyphenate: none;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
-epub-hyphens: none;
hyphens: none;
}
Post-Processing Required:
# Validate ePub
java -jar epubcheck.jar output.epub
# Convert to MOBI (if needed)
ebook-convert output.epub output.mobi
Before: ~5-8k tokens (Pandoc parameters, format handling, professional standards research) After: ~1-2k tokens (profile selection + file path) Savings: ~75% context reduction
input_file - Source markdown file pathprofile - Export profile name (see Profiles section)output_file - Custom output filename (default: derived from input + profile)metadata_file - YAML metadata file for publication profilescover_image - Cover image path for ePub exportsfont_files - Array of font file paths for ePub embeddingFor optimal conversion, structure markdown as:
---
title: "Book Title"
author: "Author Name"
---
# Book Title
## Front Matter Section
### Copyright
Copyright © 2025 Author Name. All rights reserved.
### Dedication
For [person/group]
## Part I
### Chapter 1: The Opening
First paragraph (no indent).
Second paragraph (1.5em indent).
***
Scene break marker.
First paragraph after break (no indent).
### Chapter 2: Continuation
...
Heading Hierarchy:
# - Book title (appears once at start)## - Part/section divisions### - Chapter titles (triggers page breaks in PDF)Scene Breaks:
*** or # for scene breaks*** on its own line, or wrap in div: <div class="scene-break">***</div>First Paragraphs:
.no-indent class if needed)Lora Font (required for PDF profiles):
macOS:
brew tap homebrew/cask-fonts
brew install font-lora
Ubuntu/Debian:
sudo apt-get install fonts-lora
Manual Installation:
fc-list | grep LoraCreate metadata.yaml:
---
title: "The Hush"
subtitle: "A Cosmic Horror Novel"
author: "Author Name"
date: "2025-01-01"
description: |
Book description for back cover and online stores.
Can span multiple lines.
keywords: [cosmic horror, dark fantasy, transformation]
subject: "Fiction"
rights: "© 2025 Author Name. All rights reserved."
publisher: "Publisher Name"
language: "en-US"
# Publication metadata
identifier:
- scheme: ISBN-13
text: "978-1-234567-89-0"
# BISAC codes (up to 3)
category:
- "FIC015040 - FICTION / Horror / Occult & Supernatural"
- "FIC009120 - FICTION / Fantasy / Dark Fantasy"
- "FIC015050 - FICTION / Horror / Psychological"
---
Usage:
Use book-export skill with metadata.yaml to create publication-print from The-Hush.md
Use book-export skill to export chapter.md as beta-reader-pdf to /path/to/output/review-copy.pdf
For multi-file books, concatenate before export:
cat chapters/*.md > complete-manuscript.md
# Then use skill on complete-manuscript.md
Returns:
Based on research findings:
Print Standards:
***ePub Standards:
Metadata Standards:
"Font not found" error:
-V mainfont="Times New Roman""PDF engine failed":
xelatex command available: xelatex --versionePub validation failures:
java -jar epubcheck.jar output.epubChapter breaks not working:
### for chapter headingsmcp__mcp-pandoc__convert-contents