book-to-skill
Scannednpx machina-cli add skill rohanpatriot/thinking-skills/book-to-skill --openclawBook to Skill Converter
Transform written knowledge into actionable Claude Code skills.
Philosophy
I transform books into actionable skills by extracting their crystallized expertise—frameworks, principles, and techniques—into a format I can leverage repeatedly.
I extract structure, not summaries. A skill isn't a book report. It's a toolkit of:
- Named frameworks (mental models with clear application)
- Actionable principles (rules that guide decisions)
- Techniques (step-by-step methods)
- Anti-patterns (what to avoid and why)
- Voice calibration (how the author thinks and communicates)
I preserve the author's precision. Frameworks often have specific names and structures for reasons. "The 5 Whys" isn't interchangeable with "ask why multiple times." I capture the exact formulation.
I optimize for invocation. The generated skill should be immediately useful. When someone invokes /author-method, they should get actionable guidance, not philosophy.
I layer depth appropriately. Simple books → simple skills. Complex books with 10+ frameworks → router skills with reference files.
Supported Formats
Primary: .txt files work directly with this skill.
Requires conversion: epub, pdf, mobi, docx
Before analyzing books in other formats, convert them to .txt:
# EPUB → TXT
ebook-convert book.epub book.txt
# PDF → TXT
pdftotext book.pdf book.txt
See workflows/convert-formats.md for full instructions and dependencies.
How to Start
Three paths available:
1. Full Conversion (Default)
Trigger: User provides a .txt book file
Action: Route to workflows/convert-book.md
Output: Complete skill with all files
2. Analysis Only
Trigger: User says "analyze" or "just extract" or wants to review before generating Action: Route to workflows/analyze-book.md Output: Structured extraction report (no skill generated)
3. Generate from Prior Analysis
Trigger: User has existing analysis notes or previously ran analyze-only Action: Route to workflows/generate-skill.md Output: Skill files from provided analysis
Routing Logic
IF user provides non-.txt file (epub, pdf, mobi, docx):
→ Point to workflows/convert-formats.md first
IF user provides .txt book file path:
IF "analyze only" or "just analyze" in request:
→ workflows/analyze-book.md
ELSE:
→ workflows/convert-book.md
IF user mentions "generate" or "create skill" with analysis notes:
→ workflows/generate-skill.md
IF unclear:
Ask: "Do you want to:
1. Convert a book to a skill (provide .txt path)
2. Analyze a book without generating (provide .txt path)
3. Generate a skill from existing analysis"
For extraction categories, see references/extraction-patterns.md. For output structure patterns, see references/skill-patterns.md.
Questions to Ask
Use AskUserQuestion tool for each of these:
-
Purpose (before analysis):
- Question: "What should this skill help you do?"
- Options: Write like the author | Apply their frameworks | Think with their mental models | Build using their approach | All of the above
-
Skill Name (after analysis):
- Question: "What should this skill be named?"
- Propose
{author-lastname}-{core-concept}format - Examples:
cialdini-influence,meadows-systems,kahneman-decisions
-
Scope (after extraction):
- Present extracted elements summary
- Question: "Which elements should I include in the skill?"
- Options: All extracted content | Specific frameworks only | Let me specify
-
Reference Depth:
- Question: "How comprehensive should the reference material be?"
- Options: Essential only (key frameworks) | Comprehensive (all frameworks + principles) | Exhaustive (everything extracted)
Source
git clone https://github.com/rohanpatriot/thinking-skills/blob/main/skills/book-to-skill/SKILL.mdView on GitHub Overview
Transforms .txt books into leverageable Claude Code skills by extracting crystallized expertise—frameworks, principles, techniques, anti-patterns, and voice cues. It preserves the author's precision and outputs structured, action-ready skill files via three workflows: full conversion, analyze-only, and generate from analysis.
How This Skill Works
It analyzes the input text to extract structured elements—frameworks, principles, techniques, anti-patterns, and voice cues—rather than summaries. The result is a skill package plus referenced files, routed through the appropriate workflow (convert-book, analyze-book, or generate-skill) based on user intent.
When to Use It
- You have a .txt book and want a complete Claude Code skill via full conversion.
- You want an extraction report without creating a skill (analyze-only).
- You have prior analysis notes and want to generate a skill from them.
- Your source is not TXT; convert to TXT first (epub/pdf/mobi/docx) before extraction.
- You want to review extraction categories and references before proceeding (see references/extraction-patterns.md).
Quick Start
- Step 1: Provide the .txt book path.
- Step 2: Choose Full Conversion, Analyze Only, or Generate from Prior Analysis.
- Step 3: Retrieve the output skill files or analysis report from the workflows.
Best Practices
- Preserve the author's exact formulations and named frameworks rather than generic summaries.
- Extract structure: frameworks, principles, techniques, anti-patterns, and voice calibration.
- Make sure the skill is immediately actionable by including steps and reference files.
- Choose the correct workflow early (convert-book, analyze-book, or generate-skill) and keep outputs organized.
- Cross-check outputs against references/skill-patterns.md and references/extraction-patterns.md.
Example Use Cases
- Example: A full conversion of a TXT management book yields a Claude Code skill with 'The 5 Whys' framework, a 'Decision Log' technique, and a list of anti-patterns.
- Example: An analysis-only extraction report detailing frameworks, principles, and techniques without generating a skill.
- Example: A skill produced from prior analysis notes via the generate-skill workflow.
- Example: A TXT file from a PDF converted to TXT, then converted to a skill with proper routing.
- Example: A ready-to-call skill package that responds to /author-method to deliver actionable guidance.