jpskill.com
✍️ ライティング コミュニティ

skill-from-book

書籍の内容(markdown形式)を、Claudeが効率的に活用できる構造化されたスキルパッケージに変換し、詳細な参照ファイルや利用場面に応じたガイドラインを整備することで、書籍の知識を再利用可能なスキルとして活用するSkill。

📜 元の英語説明(参考)

Create Claude skills from book content (markdown files). Transforms long-form book knowledge into structured, context-efficient skill packages with granular reference files, workflows, and use-case guidelines. Use this skill when: - Converting a book (markdown) into a reusable Claude skill - Creating knowledge bases from technical books, guides, or documentation - Building skills that need progressive disclosure of large content - Structuring book knowledge for efficient context loading

🇯🇵 日本人クリエイター向け解説

一言でいうと

書籍の内容(markdown形式)を、Claudeが効率的に活用できる構造化されたスキルパッケージに変換し、詳細な参照ファイルや利用場面に応じたガイドラインを整備することで、書籍の知識を再利用可能なスキルとして活用するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o skill-from-book.zip https://jpskill.com/download/23723.zip && unzip -o skill-from-book.zip && rm skill-from-book.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/23723.zip -OutFile "$d\skill-from-book.zip"; Expand-Archive "$d\skill-from-book.zip" -DestinationPath $d -Force; ri "$d\skill-from-book.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して skill-from-book.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → skill-from-book フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
8

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[スキル名] skill-from-book

書籍からのスキル作成

書籍の内容を、構造化された、コンテキスト効率の良い Claude スキルに変換します。

概要

このスキルは、書籍(Markdown 形式)を、以下の要素を含む適切に整理されたスキルに変換するプロセスをガイドします。

  • 粒度の細かい知識ファイル(1ファイルにつき1つの概念)
  • 繰り返し可能なタスクのためのワークフロー
  • ユースケースガイドライン(タスクと関連ファイルの対応付け)
  • 複数セッション作業の進捗追跡
  • サブエージェントによる抽出タスク

重要な指示

このワークフローに厳密に従ってください。フェーズをスキップしたり、順序を変更したりしないでください。

  1. フェーズ1を開始する前に、書籍の Markdown ファイルの内容を読まないでください。
  2. 各参照ファイルは、対応するフェーズを開始する前に必ず読んでください。
  3. 次のフェーズに進む前に、各フェーズを必ず完了してください。
  4. 抽出タスクにはサブエージェントを必ず使用してください。
  5. 最終決定の前に、ユーザーにワークフローを提案してください。

ワークフロー

フェーズ1:分析

停止!続行する前に、必ず以下を実行してください。

  1. references/analysis-guide.md を完全に読んでください。
  2. その後で、以下の手順に進んでください。

フェーズ1の手順:

  1. 目次とアウトラインのみを抽出します(書籍の全内容を読まないでください)

    # 総行数をカウント
    wc -l book.md
    
    # ヘッダー/目次を抽出 - これだけが必要です
    grep -E "^#{1,3} " book.md
  2. アウトラインから知識カテゴリを特定します

    • 中核となる原則/哲学
    • ルールとガイドライン
    • 例(良い例と悪い例)
    • パターンとアンチパターン
    • チェックリストとクイックリファレンス
  3. ユースケースを定義します

    • 誰がこのスキルを使用しますか?
    • どのようなタスクを実行しますか?
    • どのような質問をしますか?
  4. 続行する前に、特定されたカテゴリとユースケースをユーザーに確認するよう依頼します


フェーズ2:計画

停止!続行する前に、必ず以下を実行してください。

  1. references/extraction-patterns.md を完全に読んでください。
  2. references/file-templates.md を完全に読んでください。
  3. その後で、以下の手順に進んでください。

フェーズ2の手順:

  1. カテゴリごとに必要なファイルを含むファイル構造を設計します

    各カテゴリには、以下の3つの基本ファイルが必須です。

    • knowledge.md - 中核となる概念、定義、基礎的な理解
    • rules.md - 特定のガイドライン、すべきこととすべきでないこと
    • examples.md - 良い/悪いコード例、変更前/変更後の比較

    必要に応じて追加ファイル:

    • patterns.md - 再利用可能なソリューション
    • smells.md - アンチパターンと避けるべきこと
    • checklist.md - クイックリファレンスチェックリスト
    skill-name/
    ├── SKILL.md
    ├── progress.md
    ├── guidelines.md
    ├── workflows/           # NEW: ステップバイステップのプロセス
    │   ├── [task-1].md
    │   └── [task-2].md
    └── references/
        ├── category-1/
        │   ├── knowledge.md    # 必須
        │   ├── rules.md        # 必須
        │   ├── examples.md     # 必須
        │   ├── patterns.md     # オプション
        │   └── checklist.md    # オプション
        └── category-2/
            ├── knowledge.md    # 必須
            ├── rules.md        # 必須
            ├── examples.md     # 必須
            └── smells.md       # オプション
  2. progress.md を作成します

    • 作成するすべてのファイル(必須+オプション)をリストアップします
    • フェーズ/優先度でグループ化します
    • 完了ステータスを追跡します
  3. 抽出タスクを計画します

    • 知識ファイルごとに1つのタスク
    • 入力(行範囲を含む書籍セクション)と出力(ファイルパス)を定義します
    • タスク間の依存関係を特定します
  4. 続行する前に、ファイル構造と抽出計画をユーザーに確認するよう依頼します


フェーズ3:抽出

停止!続行する前に、必ず以下を実行してください。

  1. フェーズ1とフェーズ2を完了していること
  2. 計画についてユーザーの確認を得ていること
  3. その後で、抽出に進んでください。

重要:抽出にはサブエージェント(Task ツール)を必ず使用してください。トピックごとに1つのサブエージェントを使用し、各サブエージェントがそのトピックのすべてのファイルを作成します。

フェーズ3のメインエージェントの指示

以下の手順に必ず従ってください。

  1. トピックごとに1つのサブエージェント - 各サブエージェントは書籍のセクションを一度だけ読み込み、そのトピックのすべてのファイル(knowledge.md、rules.md、examples.md、およびオプションのファイル)を作成します。
  2. 以下のテンプレートに具体的な値を入力して、サブエージェントのプロンプトを準備します
  3. フェーズ1の分析(行番号付きの目次)から行範囲を計算します
  4. 完全なプロンプトを作成します - プレースホルダーを未入力のままにしないでください。
  5. 異なるトピックに対してサブエージェントを並行して起動します
  6. すべてのサブエージェントが完了したら、progress.md を更新します

サブエージェントのプロンプトテンプレート

重要:このテンプレートをコピーし、サブエージェントを起動する前に、すべての角括弧内のプレースホルダーを実際の値に置き換えてください。

## タスク:[TOPIC] 知識ベースの抽出

あなたは、書籍のセクションから知識を抽出し、完全なトピックリファレンスを作成します。

### 前提条件 - まずこれらのファイルを読んでください:
1. `skills/skill-from-book/references/file-templates.md` - すべてのファイルタイプのテンプレート
2. `skills/skill-from-book/references/extraction-patterns.md` - 抽出ルール

### ソース資料:
- **書籍**:[BOOK_PATH]
- **セクション**:[CHAPTER/SECTION_NAME]
- **行範囲**:offset=[START_LINE]、limit=[LINE_COUNT] で読み込みます

### 出力ディレクトリ:[OUTPUT_TOPIC_PATH]

### 作成するファイル(この順序で):

#### 1. knowledge.md (必須)
中核となる概念、定義、基礎的な理解。
- 抽出:定義、用語、主要な概念、物事の関係性
- 「知識ファイル」テンプレートを使用します

#### 2. rules.md (必須)
特定のガイドライン、すべきこととすべきでないこと。
- 抽出:明示的なルール、ガイドライン、ベストプラクティス、例外
- 「ルールファイル」テンプレートを使用します

#### 3. examples.md (必須)
良い/悪いコード例、変更前/変更後の比較。
- 抽出:すべてのコードサンプル、リファクタリング例、比較
- 「例ファイル」テンプレートを使用します

#### 4. [OPTIONAL_FILES - 必要な追加ファイルをリストアップ]
[例:patterns.md、smells.md、checklist.md - それぞれに何を含めるかを指定します]

### あなたの指示:
1. テンプレートと抽出ルールを理解するために、まず2つの前提条件ファイルを読みます。
2. offset=[START_LINE]、limit=[LINE_COUNT] を使用して、書籍のセクションを**一度だけ**読みます。
3. その一度の読み込みから、すべてのファイルの内容を抽出します。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Skill From Book

Transform book content into structured, context-efficient Claude skills.

Overview

This skill guides you through converting a book (in markdown format) into a well-organized skill with:

  • Granular knowledge files (one concept per file)
  • Workflows for repeatable tasks
  • Use-case guidelines (mapping tasks to relevant files)
  • Progress tracking for multi-session work
  • Subagent extraction tasks

CRITICAL INSTRUCTIONS

YOU MUST FOLLOW THIS WORKFLOW STRICTLY. DO NOT SKIP OR REORDER PHASES.

  1. DO NOT read the book markdown file content before starting Phase 1
  2. MUST read each reference file BEFORE starting its corresponding phase
  3. MUST complete each phase before moving to the next
  4. MUST use subagents for extraction tasks
  5. MUST propose workflows to user before finalization

Workflow

Phase 1: Analysis

STOP! Before proceeding, you MUST:

  1. Read references/analysis-guide.md completely
  2. Only then proceed with the steps below

Phase 1 Steps:

  1. Extract TOC and outline ONLY (DO NOT read full book content)

    # Count total lines
    wc -l book.md
    
    # Extract headers/TOC - THIS IS ALL YOU NEED
    grep -E "^#{1,3} " book.md
  2. Identify knowledge categories from outline

    • Core principles/philosophy
    • Rules and guidelines
    • Examples (good vs bad)
    • Patterns and anti-patterns
    • Checklists and quick references
  3. Define use cases

    • Who will use this skill?
    • What tasks will they perform?
    • What questions will they ask?
  4. Ask user to confirm the identified categories and use cases before proceeding


Phase 2: Planning

STOP! Before proceeding, you MUST:

  1. Read references/extraction-patterns.md completely
  2. Read references/file-templates.md completely
  3. Only then proceed with the steps below

Phase 2 Steps:

  1. Design file structure with required files per category

    Each category MUST contain these 3 basic files:

    • knowledge.md - Core concepts, definitions, and foundational understanding
    • rules.md - Specific guidelines, do's and don'ts
    • examples.md - Good/bad code examples, before/after comparisons

    Additional files as needed:

    • patterns.md - Reusable solutions
    • smells.md - Anti-patterns and what to avoid
    • checklist.md - Quick reference checklists
    skill-name/
    ├── SKILL.md
    ├── progress.md
    ├── guidelines.md
    ├── workflows/           # NEW: Step-by-step processes
    │   ├── [task-1].md
    │   └── [task-2].md
    └── references/
        ├── category-1/
        │   ├── knowledge.md    # REQUIRED
        │   ├── rules.md        # REQUIRED
        │   ├── examples.md     # REQUIRED
        │   ├── patterns.md     # Optional
        │   └── checklist.md    # Optional
        └── category-2/
            ├── knowledge.md    # REQUIRED
            ├── rules.md        # REQUIRED
            ├── examples.md     # REQUIRED
            └── smells.md       # Optional
  2. Create progress.md

    • List ALL files to create (required + optional)
    • Group by phase/priority
    • Track completion status
  3. Plan extraction tasks

    • One task per knowledge file
    • Define input (book section with line ranges) and output (file path)
    • Identify dependencies between tasks
  4. Ask user to confirm the file structure and extraction plan before proceeding


Phase 3: Extraction

STOP! Before proceeding, you MUST:

  1. Have completed Phase 1 and Phase 2
  2. Have user confirmation on the plan
  3. Only then proceed with extraction

CRITICAL: You MUST use subagents (Task tool) for extraction. One subagent per topic - each subagent creates ALL files for that topic.

Main Agent Instructions for Phase 3

YOU MUST follow these steps:

  1. One subagent per topic - Each subagent reads a book section ONCE and creates all files for that topic (knowledge.md, rules.md, examples.md, plus any optional files)
  2. Prepare the subagent prompt by filling in the template below with specific values
  3. Calculate line ranges from your Phase 1 analysis (TOC with line numbers)
  4. Create the complete prompt - do NOT leave placeholders unfilled
  5. Launch subagents in parallel for different topics
  6. Update progress.md after all subagents complete

Subagent Prompt Template

IMPORTANT: Copy this template and replace ALL bracketed placeholders with actual values before launching subagent.

## Task: Extract [TOPIC] Knowledge Base

You are extracting knowledge from a book section to create a complete topic reference.

### Prerequisites - Read These Files First:
1. `skills/skill-from-book/references/file-templates.md` - Templates for all file types
2. `skills/skill-from-book/references/extraction-patterns.md` - Extraction rules

### Source Material:
- **Book**: [BOOK_PATH]
- **Section**: [CHAPTER/SECTION_NAME]
- **Line range**: Read with offset=[START_LINE], limit=[LINE_COUNT]

### Output Directory: [OUTPUT_TOPIC_PATH]

### Files to Create (in this order):

#### 1. knowledge.md (REQUIRED)
Core concepts, definitions, and foundational understanding.
- Extract: definitions, terminology, key concepts, how things relate
- Use the "Knowledge File" template

#### 2. rules.md (REQUIRED)
Specific guidelines, do's and don'ts.
- Extract: explicit rules, guidelines, best practices, exceptions
- Use the "Rules File" template

#### 3. examples.md (REQUIRED)
Good/bad code examples, before/after comparisons.
- Extract: all code samples, refactoring examples, comparisons
- Use the "Examples File" template

#### 4. [OPTIONAL_FILES - list any additional files needed]
[e.g., patterns.md, smells.md, checklist.md - specify what each should contain]

### Your Instructions:
1. Read the two prerequisite files FIRST to understand templates and extraction rules
2. Read the book section ONCE using: offset=[START_LINE], limit=[LINE_COUNT]
3. From that single read, extract content for ALL files listed above
4. For each file:
   - Transform content (prose → bullets, extract rules, include examples)
   - Format using the appropriate template from file-templates.md
   - Keep each file under 200 lines
   - Write to [OUTPUT_TOPIC_PATH]/[filename].md
5. Create files in order: knowledge.md → rules.md → examples.md → optional files

### Content Guidance:
[SPECIFIC_GUIDANCE - what to focus on, what to skip]

### Language Conversion (if applicable):
- Source: [SOURCE_LANG or "N/A"]
- Target: [TARGET_LANG or "N/A"]
- Convert ALL code examples to target language

Example: Filled Subagent Prompt

## Task: Extract Functions Knowledge Base

You are extracting knowledge from a book section to create a complete topic reference.

### Prerequisites - Read These Files First:
1. `skills/skill-from-book/references/file-templates.md` - Templates for all file types
2. `skills/skill-from-book/references/extraction-patterns.md` - Extraction rules

### Source Material:
- **Book**: /path/to/clean-code.md
- **Section**: Chapter 3 - Functions
- **Line range**: Read with offset=450, limit=380

### Output Directory: skills/clean-code/references/functions

### Files to Create (in this order):

#### 1. knowledge.md (REQUIRED)
Core concepts, definitions, and foundational understanding.
- Extract: what makes a function clean, key terminology (side effects, arguments, abstraction levels), how functions relate to other concepts
- Use the "Knowledge File" template

#### 2. rules.md (REQUIRED)
Specific guidelines, do's and don'ts.
- Extract: size rules, argument limits, naming conventions, single responsibility, do one thing principle
- Use the "Rules File" template

#### 3. examples.md (REQUIRED)
Good/bad code examples, before/after comparisons.
- Extract: all code samples showing good vs bad functions, refactoring walkthroughs
- Use the "Examples File" template

#### 4. checklist.md (OPTIONAL)
Quick reference for reviewing functions.
- Create a checklist from the rules for code review

### Your Instructions:
1. Read the two prerequisite files FIRST to understand templates and extraction rules
2. Read the book section ONCE using: offset=450, limit=380
3. From that single read, extract content for ALL files listed above
4. For each file:
   - Transform content (prose → bullets, extract rules, include examples)
   - Format using the appropriate template from file-templates.md
   - Keep each file under 200 lines
   - Write to skills/clean-code/references/functions/[filename].md
5. Create files in order: knowledge.md → rules.md → examples.md → checklist.md

### Content Guidance:
Focus on practical, actionable content. Skip author anecdotes and historical context. Prioritize rules that are universally applicable.

### Language Conversion:
- Source: Java
- Target: TypeScript
- Convert ALL code examples to TypeScript

Parallel Extraction Strategy

Run in parallel: Different topics (each handled by one subagent)

  • Subagent 1: functions/ (Chapter 3)
  • Subagent 2: naming/ (Chapter 2)
  • Subagent 3: classes/ (Chapter 10)

Must wait: guidelines.md and workflows creation waits for ALL topic subagents to complete

Main Agent Checklist Before Launching Subagent

  • [ ] All placeholders replaced with actual values
  • [ ] Line offset and limit calculated from Phase 1 TOC
  • [ ] Output directory path follows naming convention
  • [ ] All required files (knowledge.md, rules.md, examples.md) listed
  • [ ] Optional files specified with clear content guidance
  • [ ] Content guidance is specific to this topic
  • [ ] Language conversion specified if needed

Phase 4: Guidelines Creation

STOP! Before proceeding, you MUST:

  1. Have completed all extraction tasks in Phase 3
  2. Read references/guidelines-template.md completely
  3. Only then proceed with guidelines creation

Phase 4 Steps:

Create guidelines.md that maps:

  • Tasks → relevant files (and workflows)
  • Code elements → relevant files
  • Symptoms/problems → relevant files
  • Decision trees for common scenarios

Phase 5: Workflow Proposal

STOP! Before proceeding, you MUST:

  1. Have completed Phase 4 (Guidelines)
  2. Read references/workflow-templates.md completely
  3. Only then proceed with workflow proposal

Phase 5 Steps:

  1. Identify potential workflows from the book content

    Look for:

    • Process descriptions ("how to do X")
    • Repeated tasks (mentioned multiple times)
    • Checklists in the book
    • Anti-pattern sections (imply correct process)
    • Multi-step procedures
  2. Propose workflows to user

    Present a list of potential workflows:

    Based on the book content, I recommend these workflows:
    
    | Workflow | Purpose | Key Steps |
    |----------|---------|-----------|
    | [name] | [what it does] | [brief step summary] |
    | [name] | [what it does] | [brief step summary] |
  3. Ask user to select which workflows to create

    Which workflows would you like me to create?
    - Select from the list above
    - Suggest additional workflows
    - Skip workflow creation
  4. Create selected workflows

    For each selected workflow:

    • Use the template from references/workflow-templates.md
    • Include cross-references to relevant knowledge files
    • Add checkboxes for each step
    • Define clear exit criteria
  5. Update guidelines.md to include workflow references

    Add a "Workflows" section at the top of guidelines.md:

    ## Workflows
    
    | Task | Workflow |
    |------|----------|
    | [task description] | `workflows/[name].md` |

Phase 6: Finalization

Phase 6 Steps:

  1. Review all files for consistency
  2. Update progress.md (mark complete)
  3. Test with sample queries
  4. Refine guidelines based on testing
  5. Ask user to review the final skill

Key Principles

Granularity

  • One concept per file
  • Files should be 50-200 lines
  • Split large topics into subtopics

Context Efficiency

  • Only load what's needed
  • Guidelines file routes to specific knowledge
  • Avoid duplication across files

Actionable Content

  • Rules over explanations
  • Examples over theory
  • Checklists for quick reference
  • Workflows for repeatable tasks

Subagent-Friendly

  • Each extraction task is independent
  • Clear input/output specification
  • Can run multiple extractions in parallel

File Naming Conventions

skill-name/
├── SKILL.md
├── guidelines.md
├── progress.md
├── workflows/                # Step-by-step processes
│   ├── [verb]-[noun].md      # e.g., code-review.md, bug-fix.md
│   └── ...
└── references/
    ├── [category]/           # Noun, plural (e.g., functions, classes)
    │   ├── knowledge.md      # REQUIRED: Core concepts and definitions
    │   ├── rules.md          # REQUIRED: Specific guidelines
    │   ├── examples.md       # REQUIRED: Good/bad examples
    │   ├── patterns.md       # Optional: Reusable solutions
    │   ├── smells.md         # Optional: Anti-patterns
    │   └── checklist.md      # Optional: Quick reference

Progress Tracking

Always maintain progress.md:

# [Skill Name] - Creation Progress

## Status: [X/Y files complete]

## Phase 1: Foundation
- [x] SKILL.md
- [x] progress.md
- [ ] guidelines.md

## Phase 2: Workflows
- [ ] workflows/[name].md
- [ ] workflows/[name].md

## Phase 3: [Category Name]
- [ ] category/knowledge.md   # REQUIRED
- [ ] category/rules.md       # REQUIRED
- [ ] category/examples.md    # REQUIRED
- [ ] category/patterns.md    # Optional
...

Quick Start

  1. User provides the book markdown file path
  2. DO NOT read the book content yet
  3. Run Phase 1: Analysis (extract TOC only)
  4. Get user confirmation
  5. Run Phase 2: Planning
  6. Get user confirmation
  7. Run Phase 3: Extraction (use subagents)
  8. Run Phase 4: Guidelines Creation
  9. Run Phase 5: Workflow Proposal (get user selection)
  10. Run Phase 6: Finalization

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。