Skip to content

Guide · Agent skill

How to use the Cangjie Book Distiller agent skill (cangjie-skill)

Updated · written with AI from the project's own documentation and checked against our catalogue data

cangjie-skill is an agent skill that takes a long piece of content, such as a non-fiction book, a transcript, a podcast, a course or an interview, and extracts its practical frameworks, principles, checklists and procedures into a set of small, reusable skills. This guide explains what the skill does, how to install it, how to trigger it with natural requests, what it needs, and what to check before you trust its output.

Cangjie Book Distillerkangarooking/cangjie-skill · MIT

Quick start

  1. 1Download and unzip. Download the ZIP from this page and unzip the skill folder.
  2. 2Place the skill. Put it in ~/.claude/skills/ for personal use, or .claude/skills/ inside a project, or upload it under Settings → Capabilities → Skills in the Claude apps.
  3. 3Install PyYAML. Run python3 -m pip install pyyaml, then run python3 scripts/cangjie.py doctor to check the setup.
  4. 4Prepare the source. Get the book as PDF, EPUB, TXT, subtitles or accessible plain text, or a transcript for video and audio.
  5. 5Ask in plain language. Request the distillation with a phrase such as 'turn this book into skills' and provide the file path and metadata.
  6. 6Review the decisions. Check the candidate, rejected and needs-review material and confirm the output mode when the skill asks.
  7. 7Compile and install. Run the compile command to the target folder, then confirm the install location before the files are copied.

What an agent skill is and what cangjie-skill makes the agent do

An agent skill is a folder containing a SKILL.md file that tells an AI agent when to use a capability and how to carry it out. The agent reads the skill's description and loads it when a request matches.

cangjie-skill is a meta-skill: its job is to build other skills. Given source text, it reads the material, extracts methods that can be applied in real situations, checks them against the source, and compiles them into a set of focused skills plus a reader-friendly digest.

  • Extracts decision frameworks, principles, operating procedures, calculation rules, troubleshooting steps and checklists
  • Verifies candidates against the source text before keeping them
  • Groups the kept methods into atomic skills that an agent can invoke in real situations
  • Produces a digest (DIGEST.md) written for a human reader
  • Does not produce plain summaries, book reviews or role-played authors (the listing points to nuwa-skill for persona work)

Install cangjie-skill from the ZIP

Download the ZIP from the skill's page on this directory and unzip it. Place the resulting skill folder in your personal skills directory, ~/.claude/skills/, or in a project's .claude/skills/ directory if you want it available only inside that project.

If you use the Claude apps instead, open Settings, go to Capabilities, then Skills, and upload the skill there.

  • Personal install: ~/.claude/skills/
  • Project install: .claude/skills/ inside your project
  • Claude apps: Settings → Capabilities → Skills, then upload

Install the Python dependency for the compile scripts

The deterministic scripts need Python 3.10 or newer and the PyYAML package. If you run into missing-module errors, run the self-check first; the source says it prints installation guidance when PyYAML is missing.

  • Requirement: Python 3.10+
  • Requirement: PyYAML
python3 -m pip install pyyaml python3 scripts/cangjie.py doctor

Trigger the skill with natural requests

You do not need a special command. Ask in plain language that describes what you want to extract from a book or long recording. The skill's description lists trigger phrases such as 'turn a book or video into skills' and the Chinese phrases 拆书 and 蒸馏一本书. The source also gives these examples of requests that should trigger it.

Name the source and say what you want back. If you do not have the text yet, the skill asks you for it rather than working from memory, so have the file path or transcript ready.

  • 'Distill this book into skills: <path to file>'
  • 'I want to turn the methods in this book into a skill I can use.'
  • 'Turn this video, podcast or course into skills.'
  • 'Help me take apart the book and make its methods usable.'

Give the skill what it needs before it starts

The skill asks for four things. Source text is the most important: a PDF, EPUB, TXT file, subtitles, or accessible plain text. For videos and podcasts, the source suggests first getting a transcript with a video downloader-type tool.

Metadata is used for naming and auditing: for a book, title, author and publication year; for a video, podcast or course, title, creator and publication time. The skill also asks what you plan to do with the output, which decides whether it recommends a single-skill or multi-skill output, and whether this is your first run.

  • Source text file or transcript (required; it will not distill from memory)
  • Title, author and date metadata
  • Intended use: study a book (usually single) or add to daily workflows (usually pack)
  • Whether this is a first trial run (the skill recommends starting with one book)

Run the compile step and review the output

After extraction and checking, the skill compiles its capability bundle into skills using the compile script. It writes the output to the folder you choose and shows you a decision report so you can confirm the mode. Compiled files are copied or symlinked into your skills location only after you approve the install location.

The skill keeps a working folder for each book. Useful files include PIPELINE_STATE.md, which lets a stopped run resume, and candidates/ and rejected/, which record what was considered and why items were dropped.

  • Working folder: books/<book-slug>/
  • Resume point: PIPELINE_STATE.md
  • Audit trail: candidates/ and rejected/
  • Final digest: DIGEST.md
python3 scripts/cangjie.py compile --bundle books/<book-slug>/.cangjie/capabilities --out <target-dir> --output auto

Safety notes: scripts and network

The skill runs scripts. Its compile and validation steps are Python scripts in the scripts/ folder, so read them before running if you have concerns. The listing says it does not use the network. Review any script output before you rely on it.

The skill's own rules say the compiled output folders are read-only in practice: if it detects local hand edits, it will not overwrite them silently. Keep copies of your source files and of any edits you make.

  • Runs local Python scripts (scripts/)
  • Listed as not using the network
  • Will not silently overwrite hand-edited output folders
  • Source copyrighted books: the project itself asks contributors not to submit copyrighted originals, so use your own copy only for your own work

Tips for getting useful results

Start with one book so you can judge the process before running a batch. Review the candidate list and the rejected list, because the skill's own review step is a human confirmation point and the skill notes that confirmation does not replace checking against the source.

Keep the output mode steady across updates. The skill keeps your chosen mode by default so new material does not quietly change the output.

  • Start with a single book on a first run
  • Check candidates/ and rejected/ for anything important that went missing
  • Verify key procedures against the original text
  • Use the same output mode for later updates

What people use it for

  • Turning a dense non-fiction book on negotiation or management into checklists and decision frameworks for work
  • Building a reusable skill library from a set of expert course lectures or interview transcripts
  • Extracting troubleshooting procedures and calculation rules from a technical handbook
  • Creating a single-book skill set for personal study, with a digest to read first

Frequently asked questions

Is cangjie-skill free to use?

The listing states the licence is MIT. Check the repository's licence file for the full terms before you redistribute or modify it.

What do I need to run cangjie-skill?

You need Python 3.10 or newer, the PyYAML package installed with python3 -m pip install pyyaml, and the source text of the book or transcript as a PDF, EPUB, TXT, subtitle file or accessible plain text.

Can cangjie-skill summarise a book for me?

No. The skill is designed to extract methods, frameworks and procedures, not to write summaries or book reviews. For a quick overview, use a summarising tool or read the book's introduction.

Does cangjie-skill work without the book text?

No. The skill asks for the source text and is instructed not to distill from memory. Provide the file or a transcript first.

How do I install cangjie-skill in Claude?

Unzip the downloaded ZIP and place the folder in ~/.claude/skills/ or a project's .claude/skills/ directory. In the Claude apps, you can instead upload it under Settings → Capabilities → Skills.

What if the Python compile script fails with a missing module?

Install PyYAML with python3 -m pip install pyyaml, then run python3 scripts/cangjie.py doctor. The source says the doctor command gives installation guidance when PyYAML is missing.

Is it the same as nuwa-skill?

No. The listing says cangjie-skill distills books into methods, while nuwa-skill distills people's thinking and speaking style. Use nuwa-skill if you want a persona of an author.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use cangjie-skill if you have the full source text of a dense book, transcript or course and want its practical methods turned into skills you can invoke, and you are willing to review what it keeps and drops. Pick something else if you want a quick summary, a book review, or an author persona, or if you cannot provide the source text.

Download the skill