Scholarly Edition Workflow
SkillDev toolsCreate a DOI-ready scholarly edition of a translated book. Use when asked to publish, create an edition, mint a DOI, or prepare a book for scholarly publication. Generates front matter, creates versioned editions, builds EPUBs, and mints DOIs via Zenodo.
Use Scholarly Edition Workflow in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Scholarly Edition Workflow and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Scholarly Edition Workflow skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by embassy-of-the-free-mind/sourcelibrary-v2 in .claude/skills/scholarly-edition/SKILL.md and read by Ahel’s review.
Create a complete, citable scholarly edition of a translated historical text with DOI.
Prerequisites
Before starting, verify the book has:
- Completed OCR for all pages
- Completed translations for all pages
- Book metadata (title, author, language, publication date)
Authentication: Steps 2, 3, and 5 require admin authentication. When running as a Claude Code agent, requests go through the local dev server or use session cookies automatically. For manual curl commands, you need an authenticated session.
Workflow Steps
Step 1: Gather Book Information
First, get the book ID and check its readiness:
# Get book details and page statistics
curl -s "https://sourcelibrary.org/api/books/BOOK_ID" | jq '{
title: .title,
display_title: .display_title,
author: .author,
language: .language,
published: .published,
pages_count: .pages_count,
pages_translated: .pages_translated
}'
The book API returns pages_count and pages_translated as cached counts. Confirm pages_translated equals pages_count before proceeding. For detailed page-level text, use /api/books/BOOK_ID/text?content=translation.
Step 2: Generate Front Matter
Generate the scholarly Introduction and Methodology sections:
curl -X POST "https://sourcelibrary.org/api/books/BOOK_ID/editions/front-matter" \
-H "Content-Type: application/json" \
-d '{}'
This creates:
- Introduction: Historical context, author biography, work significance
- Methodology: OCR process, translation approach, editorial conventions
Save the response to use when creating the edition.
Step 3: Create the Edition
Create a versioned edition with the generated front matter:
curl -X POST "https://sourcelibrary.org/api/books/BOOK_ID/editions" \
-H "Content-Type: application/json" \
-d '{
"version_label": "First Edition",
"license": "CC-BY-4.0",
"changelog": "Initial scholarly edition with AI-assisted translation.",
"contributors": [
{"name": "Source Library", "role": "editor", "type": "ai"},
{"name": "ORGANIZATION_NAME", "role": "editor", "type": "human"}
],
"front_matter": {
"introduction": "INTRODUCTION_TEXT",
"methodology": "METHODOLOGY_TEXT",
"generated_at": "ISO_DATE",
"generated_by": "gemini-3-flash-preview"
}
}'
Note the returned edition_id for the next step.
Step 4: Verify Scholarly EPUB
Test the scholarly EPUB download:
curl -sL "https://sourcelibrary.org/api/books/BOOK_ID/download?format=epub-scholarly" \
-o /tmp/scholarly-test.epub
# Check file size
ls -lh /tmp/scholarly-test.epub
The EPUB should include:
- Title page with DOI badge (placeholder until minted)
- Copyright and license page
- Introduction
- Methodology
- All translated pages with facsimile images
- Summary (if indexed)
- Glossary (if vocabulary indexed)
- Index (if keywords/concepts indexed)
- Colophon with citation information
Step 5: Mint DOI via Zenodo
Mint a permanent DOI for the edition:
curl -X POST "https://sourcelibrary.org/api/books/BOOK_ID/editions/mint-doi" \
-H "Content-Type: application/json" \
-d '{"edition_id": "EDITION_ID"}'
This will:
- Create a Zenodo deposit
- Upload the translation text
- Set metadata (title, creators, license, keywords)
- Publish and mint the DOI
The response includes:
doi: The permanent DOI (e.g.,10.5281/zenodo.12345678)doi_url: The resolvable DOI URLzenodo_url: Direct link to Zenodo record
License Options
Valid SPDX license identifiers:
CC-BY-4.0- Attribution (recommended for scholarly work)CC-BY-SA-4.0- Attribution-ShareAlikeCC-BY-NC-4.0- Attribution-NonCommercialCC-BY-NC-SA-4.0- Attribution-NonCommercial-ShareAlikeCC0-1.0- Public Domain
Version Numbering
Follow semantic versioning:
1.0.0- First published edition1.1.0- Minor corrections, improved translations2.0.0- Major revision, new translations
Output Summary
After completion, provide:
| Field | Value |
|---|---|
| Book | [Title] |
| Edition | [Version] - [Label] |
| Pages | [Count] translated |
| DOI | [DOI] |
| DOI URL | [URL] |
| Zenodo Record | [URL] |
| License | [License] |
| EPUB Download | ?format=scholarly |
Troubleshooting
Zenodo Validation Errors
- Check that all required metadata fields are present
- Ensure license is a valid SPDX identifier
- Verify creators array is not empty
Missing Front Matter
- Run the front-matter API first
- Check that the book has sufficient content for AI generation
EPUB Issues
- Verify all page images are accessible
- Check that translations exist for included pages
Signals
- GitHub stars
- 21
- Forks
- 4
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
scholarly-edition- Source
- github.com/embassy-of-the-free-mind/sourcelibrary-v2
github.com/embassy-of-the-free-mind/sourcelibrary-v2