home / skills / rohanpatriot / thinking-skills / book-to-skill
This skill converts analysis notes from books into structured Claude Code skills with frameworks, principles, and reference materials.
npx playbooks add skill rohanpatriot/thinking-skills --skill book-to-skillReview the files below or copy the command above to add this skill to your agents.
# Generate Skill from Analysis
Workflow for creating skill files from prior analysis or user-provided extraction notes.
## When to Use
- User previously ran `analyze-book.md` and now wants to generate
- User has their own analysis notes they want converted
- User wants to generate from a subset of prior extraction
## Prerequisites
- Analysis data available (from prior workflow or user input)
- User has indicated what to include
## Workflow Steps
### Step 1: Gather Analysis Input
**If coming from prior analysis, ask user (via AskUserQuestion tool):**
- Question: "I have the analysis from {Book Title}. What should I include?"
- Options: All extracted content | Specific frameworks only | Let me specify what to include
**If user providing analysis:**
Request they share analysis notes covering:
1. **Frameworks** - Named mental models with their components
2. **Principles** - Core rules or guidelines
3. **Techniques** - Step-by-step methods (optional)
4. **Anti-patterns** - What to avoid (optional)
5. **Voice notes** - How the author writes (optional)
---
### Step 2: Confirm Skill Parameters
Present proposed parameters, then **ask user (via AskUserQuestion tool):**
- Question: "I propose skill name `{proposed-name}` with {Simple/Router} structure. Proceed with these parameters?"
- Options: Yes, proceed | Change the name | Change structure type | Change reference depth
**Reference depth options** (if user wants to change):
- Essential (key frameworks only)
- Comprehensive (all frameworks + principles)
- Exhaustive (everything extracted)
---
### Step 3: Enter Plan Mode
**Present generation plan:**
```
## Generation Plan: {skill-name}
### Files to create:
{For simple skill:}
- `{skill-name}/SKILL.md` - Complete skill in single file
{For router skill:}
- `{skill-name}/SKILL.md` - Router with essential principles
- `{skill-name}/references/core-thesis.md` - Central argument
- `{skill-name}/references/frameworks.md` - {count} frameworks
- `{skill-name}/references/principles.md` - {count} principles
- `{skill-name}/references/techniques.md` - {count} techniques
- `{skill-name}/references/anti-patterns.md` - {count} anti-patterns
- `{skill-name}/references/voice.md` - Voice calibration
### Content mapping:
{Brief note on what goes where}
Ready to generate?
```
---
### Step 4: Generate Files
**Exit plan mode and create files.**
**Use templates from:**
- `references/skill-patterns.md` - Overall structure
- `references/reference-file-templates.md` - Individual file formats
**Generation sequence:**
1. Create directory structure
2. Generate SKILL.md first (router or complete)
3. Generate reference files in order:
- core-thesis.md
- frameworks.md
- principles.md
- techniques.md
- anti-patterns.md
- voice.md
4. Generate any workflows
**Quality during generation:**
- Use exact framework names from analysis
- Include specific examples where available
- Maintain consistent formatting
- Add cross-references between related concepts
---
### Step 5: Validate and Report
**Check:**
- All files created
- Frontmatter valid
- No empty sections
**Report:**
```
## Skill Generated: {skill-name}
**Location:** {path}
**Files:**
{List with line counts}
**Content included:**
- {X} frameworks
- {Y} principles
- {Z} techniques
- {W} anti-patterns
- Voice calibration: {Yes/No}
**To use:** Invoke with `/{skill-name}`
The skill is ready.
```
---
## Handling Incomplete Analysis
**Missing frameworks:**
```
"No frameworks in the analysis. This skill will focus on principles and techniques. Continue?"
```
**Missing voice:**
```
"No voice calibration data. The skill won't include writing guidance. Continue?"
```
**Very sparse analysis:**
```
"Limited content available. The generated skill will be minimal. Consider:
1. Proceeding with what we have
2. Adding more analysis
3. Converting to a simpler format (principles list only)"
```
This skill converts plain-text books, articles, or analysis notes into a structured Claude Code skill ready for deployment. It guides the transformation from raw extraction data into organized skill files, frameworks, workflows, and reference materials. The output is configured to be easily navigable and actionable for agents.
It ingests prior analysis or user-provided extraction notes that list frameworks, principles, techniques, anti-patterns, and voice guidance. The workflow confirms what to include, proposes skill parameters, generates a clear file structure and content mapping, then produces the main skill file and supporting reference files in a consistent sequence. It validates output completeness and reports file counts and included content so you can immediately use the skill.
What input does this skill require?
Either prior analysis output or user-supplied extraction notes covering frameworks, principles, and any techniques or anti-patterns you want included.
How do I control how much is included?
You select a reference depth option—Essential, Comprehensive, or Exhaustive—when confirming parameters, which determines how many frameworks and details are generated.
Can I change the skill name or structure mid-process?
Yes. The workflow asks you to confirm the proposed name and structure before generation so you can change them if needed.