Deconstructing Books into Skills: Distill a Book into Executable Agent Skills

Foreword

After finishing a methodology book, the common practice is to write a summary or reading notes. Such outputs are suitable for human review, but they are hard for an Agent to directly invoke while coding or building solutions: they lack clear trigger conditions, executable steps, and boundary descriptions, so the model either forgets to use them or misuses them.

Below is an introduction to the community Skill on SkillHub called “Turn a Book into a Skill” (coordinate @user_1a7e2e57/cangjie-distill). It breaks an entire book down into a set of atomized SKILL.md files through a fixed pipeline, accompanied by an index and stress-test cases. Its goal is to turn “the frameworks and principles in the book” into “skills that can be invoked in real tasks,” rather than book summaries or reflections.

What Is This

One-line positioning: a meta-Skill based on the RIA-TV++ pipeline (also called book2skill / cangjie-skill within the package) that distills book text provided by the user into a set of executable skills under books/<book-slug>/.

Maintenance and origin: released by the SkillHub community, publisher user_1a7e2e57, category knowledge-management, current version 1.0.0, tag requires_api_key=false (no API Key required). The homepage inside the package points to kangarooking/cangjie-skill.

Boundaries (from the official SKILL.md):

  • Does: distillation of methodologies, decision frameworks, checklists, principles, and conceptual systems.
  • Does not do: book summaries, reading reflections, or role-playing as the author (the documentation suggests using nuwa-skill for such needs).

Core Functions

RIA-TV++ Four-Stage Pipeline

The Skill has a built-in complete SOP with a fixed execution order; details are distributed in methodology/ and extractors/. The overview is as follows:

Stage Name Main Output
0 Adler whole-book comprehension BOOK_OVERVIEW.md
1 5 sub-agents extract in parallel candidates/ candidate pool
1.5 Triple-validation filtering passing units + rejected/ audit records
2 RIA++ skill construction each unit’s SKILL.md
3 Zettelkasten linking INDEX.md (including citation relationships)
4 Stress testing (darwin compatible) each skill’s test-prompts.json

Stage 1 launches five types of extractors in parallel: frameworks, principles, cases, counterexamples, and terminology, each corresponding to a prompt file under extractors/.

Triple Validation and Quality Red Lines

Stage 1.5 performs V1 cross-domain, V2 predictive power, and V3 uniqueness checks on each candidate unit; items that fail are written to rejected/ with the reason noted.

Stage 2 fills each skill according to RIA++: Reading / Interpretation / in-book application cases / Future Trigger (written into description) / Execution steps / Boundary. The official requirement is that each paragraph’s direct quote from the original text should not exceed 150 characters, and each skill must include decoy-type tests (scenarios in which it should not be invoked).

Integration with darwin-skill

The generated test-prompts.json follows the darwin-skill format (should_trigger, should_not_trigger, edge_case, etc.). Stage 4 requires running tests locally; if they fail, the work returns to Stage 2. Once all pass, it can be handed to darwin-skill for subsequent evolution.

Runtime Dependencies

The allowed-tools declared inside the package are: Read, Write, Bash, Glob, Grep, Agent. Stage 1 requires the Agent tool to spawn sub-agents in parallel; if the environment does not support it, you must manually split the steps according to the same division of labor.

Installation and Activation

Installing the SkillHub CLI

If the CLI has not been installed yet, you can first check the version:

command -v skillhub && skillhub --version

If it is not installed, you can follow the official SkillHub installation documentation to execute it (complete installation example):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

See SkillHub Installation and Preferred Source Configuration for details.

Installing This Skill

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, the default landing in ./skills/ may not be recognized.

skillhub install @user_1a7e2e57/cangjie-distill --dir <your skills directory>

Common path examples (from the official installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

The SkillHub page also supports handing the following prompt to the AI to let it complete the installation according to the installation documentation:

Please install `@user_1a7e2e57/cangjie-distill` according to https://skillhub.cn/install/skillhub.md.

After installation, if the Agent does not load the new skill, restart or refresh the skills directory as instructed by the client you are using.

Note: the SKILL.md frontmatter inside the package contains the field disable: true; if the client disables the skill by default based on this field, you need to explicitly enable it in the settings before calling it.

Typical Usage

When to Trigger

The official description and body convention state that it should be used when the user expresses intents such as “split a book,” “distill a book,” or “turn XX book into a skill,” for example:

  • “Help me split Poor Charlie’s Almanack“
  • “Distill the Selected Works of Mao into skills”
  • distill this book into skills: <path>

Information That Must Be Confirmed Before Starting

  1. Text source of the book: a path to a PDF, EPUB, TXT, or accessible plain text; if there is no text, you should request it from the user and must not split the book based on memory.
  2. Book title, author, publication year: used for directory naming and auditing.
  3. Whether it is a first pilot: it is recommended to split 1 book first to validate the process, then proceed to batches.

Output Directory Structure

After execution is complete, the book’s outputs land in a structure similar to the following (paths and file names come from the official template):

books/<book-slug>/
├── BOOK_OVERVIEW.md
├── INDEX.md
├── candidates/
├── rejected/
├── <skill-slug-1>/
│   ├── SKILL.md
│   └── test-prompts.json
└── <skill-slug-2>/
    └── ...

After Stage 0 produces BOOK_OVERVIEW.md, you should first confirm with the user whether “the skeleton is understood correctly,” before proceeding to parallel extraction.

Test Case Format Example

Each sub-skill’s test-prompts.json must include scenarios that should be invoked, should not be invoked (decoys), and boundary scenarios. The template structure is as follows (see the package’s templates/test-prompts.json for field meanings):

{
  "skill": "{{skill-slug}}",
  "version": "0.1.0",
  "source_book": "{{BOOK_TITLE}} — {{AUTHOR}}",
  "darwin_compatible": true,
  "test_cases": [
    {
      "id": "should-trigger-01",
      "type": "should_trigger",
      "prompt": "{{typical user wording}}",
      "expected_behavior": "should activate this skill and perform the expected action",
      "notes": ""
    },
    {
      "id": "should-not-trigger-01",
      "type": "should_not_trigger",
      "prompt": "{{decoy scenario}}",
      "expected_behavior": "should not activate this skill",
      "notes": "decoy fault tolerance is 0"
    }
  ],
  "minimum_pass_rate": 0.8
}

Applicable Scenarios and Notes

Who It Suits

  • Developers who want to turn domain-methodology books (management, decision-making, learning methods, etc.) into team-reusable Agent Skills.
  • Those already using clients such as Cursor, Claude Code, or Codex that support SKILL.md, and are willing to complete the multi-stage pipeline.

Limitations and Notes

  • Large workload: whole-book comprehension, five-way parallel extraction, validation, construction, linking, and stress testing—suitable for important books rather than casual reading.
  • Depends on the quality and accessibility of the book’s original text; scanned PDFs require ensuring the Agent can stably read the text first.
  • Requires an environment that supports the Agent tool; otherwise, the parallel sub-agents in Stage 1 must be manually split.
  • It has a different division of labor from nuwa-skill (distilling people) and darwin-skill (evolving skills); distinguish them by the official boundaries when choosing.

SkillHub page data (scraped on 2026-10-21): rating 100000, downloads 6446, installs 0; take the real-time data from the SkillHub Skill page as the standard.

Closing

“Turn a Book into a Skill” fills the gap between reading notes and executable Agent skills using the RIA-TV++ pipeline, triple validation, and darwin-compatible testing. If your goal is to make a book’s methodology be stably triggered in real tasks rather than left in notes, you can start with a single-book pilot and produce a books/<book-slug>/ directory following the official SOP.

  • SkillHub Skill page: https://www.skillhub.cn/skills/user_1a7e2e57/cangjie-distill
  • API coordinate page: https://api.skillhub.cn/user_1a7e2e57/cangjie-distill
  • Installation instructions: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye