# Cangjie Skill: turn a book or video into skills (kangarooking/cangjie-skill) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-04 against commit a28de55 (version 2.5.0).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/kangarooking/cangjie-skill/

## Explain it to a non-programmer
Give your AI assistant the text of a book, a video transcript, a podcast or a course. It pulls out the methods, rules and checklists in it and turns them into a set of skills your assistant can use later in real work. It is not a summary tool: it keeps only what you can act on, and checks each piece against the source.

## Who it is for
- You read books or watch long videos and want your assistant to apply their methods, not just recall them
- You have the full text: a PDF, EPUB, TXT, subtitles or a transcript
- You use Claude Code, Codex, Cursor, OpenClaw, DeepSeek Harness or a similar assistant that reads skill folders
- Not for: You want a short summary, a book review or a chat in the author's voice: the pack says that is not its job
- Not for: You have no text of the source: it stops and asks for it rather than working from memory

## What it is
- Kind: knowledge, scripts
- License: MIT
- Repository: https://github.com/kangarooking/cangjie-skill

## What it does
- Read the whole source and write an outline: structure, key terms, critique, where it applies (you confirm it)
- Five helpers pull out frameworks, principles, cases, warnings and terms in parallel
- Triple check each idea: is the source enough, can it be done on a new case, does it help the task (you confirm)
- Decide which ideas deserve their own skill and which sit behind one entry skill
- Write each idea as a card: source, meaning, example, short version, steps, limits
- Link related cards and build a shared glossary
- Pressure test with sample prompts, including trick questions; failures go back to be rebuilt
- Build the result as one skill or a small pack, write a reader digest, and ask where to install it
- Never cuts: each idea must pass all three checks; each card needs all six parts; quotes from the source stay short (150 characters, or 100 English words, per quote)
- Level single: One entry skill that routes to all the cards (the default suggestion when you mainly want to learn or look things up)
- Level pack: One entry skill plus a few standalone skills for daily work or combining books

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| cangjie-skill | plain language ("distill this book into skills: <path>") | no | Turns the text of a book, video, podcast or course into a set of skills for your assistant |

### cangjie-skill
- Asks for: The source text: a PDF, EPUB, TXT, subtitle file or transcript path
- Asks for: Title, author and year (or the video's title, creator and date)
- Asks for: What you want it for: learning and looking things up, or daily work and combining books
- Asks for: Whether this is your first try (it suggests one source before a batch)
- Gives: BOOK_OVERVIEW.md: the outline, key terms and critique
- Gives: Lists of kept, reference, to-check and dropped ideas, with reasons
- Gives: GLOSSARY.md: shared terms
- Gives: DIGEST.md: a long reader digest of the verified ideas
- Gives: One entry skill or a small pack, ready to install
- Gives: Test prompts for each skill
- Say: "Distill this book into skills: ~/Books/my-book.epub"

## Know before installing
- It needs the real text of the source. Without it, the assistant stops and asks instead of working from memory.
- It starts five helper assistants at once for the extraction step, so a run can take longer and use more of your plan than a normal chat. Where helpers are not available, it runs the same five steps one by one.
- The assistant runs the pack's Python scripts to build and check the result; they need Python 3.10+ and PyYAML.
- It writes a books/<slug>/ folder where you run it, and it can pick up an interrupted run from a state file.
- Get the release ZIP, not GitHub's automatic source archive: the author says the September 2026 refresh is only in the release download.
- Install only one build of the same book (single or pack), not both.

## Install (official commands)
- Any agent (release ZIP): Download cangjie-skill-2.5.0.zip and its SHA256 from the v2.5.0 release, extract it and copy the whole cangjie-skill/ folder (not only SKILL.md) into your agent's skills folder, for example ~/.claude/skills/ for Claude Code or ~/.codex/skills/ for Codex. Remove: `delete the cangjie-skill folder from the skills folder`.
- Agent-guided install (official site): The site's install guide is written for an agent: it lists skills folders per host (Claude Code ~/.claude/skills/, Cursor ~/.cursor/skills/, Gemini CLI ~/.gemini/skills/ and more) and says to check scripts and ask before overwriting.
- DeepSeek Harness: `mkdir -p ~/.dsh/packages` && `curl -fL "https://github.com/kangarooking/cangjie-skill/releases/download/v2.5.0/dsh-cangjie-skill-2.5.0.tgz" -o ~/.dsh/packages/dsh-cangjie-skill-2.5.0.tgz` && `curl -fL "https://github.com/kangarooking/cangjie-skill/releases/download/v2.5.0/dsh-cangjie-skill-2.5.0.tgz.sha256" -o ~/.dsh/packages/dsh-cangjie-skill-2.5.0.tgz.sha256` && `(cd ~/.dsh/packages && shasum -a 256 -c dsh-cangjie-skill-2.5.0.tgz.sha256)` && `dsh plugin --profile web add ~/.dsh/packages/dsh-cangjie-skill-2.5.0.tgz` && `dsh web` — Install DeepSeek Harness first; the adapter is only in the release package.

## What runs on the user's machine
- Code on the machine: yes (when the assistant follows the pipeline (build, check, update, roll back))
- Network: optional
- Install: Markdown plus Python scripts copied into a skills folder. No hooks; nothing runs on install.
- Self-check (doctor): Checks that Python, PyYAML and the schema files are present. Prints only.
- Build step (compile): The assistant runs python3 scripts/cangjie.py compile. It writes run reports to books/<slug>/.cangjie/runs/, builds in a staging folder next to the output, checks it, snapshots the old output to .cangjie/snapshots/ and swaps in the new one. It refuses to overwrite hand edits unless --force-overwrite is given.
- update / repair / rollback / eval: Local scripts that compare sources, prepare tasks for the assistant, restore snapshots or score test results. No model calls of their own.
- benchmark (optional): count_tokens.py uses the optional tiktoken package; tiktoken may download its token tables on first use.
- Maintainer only: generate_star_history.py calls the GitHub API to redraw the star chart; it runs in the repo's own daily GitHub workflow, not in the skill.

## Settings
- `--output auto|single|pack`: build mode for compile; auto shows a recommendation and needs --yes to go on
- `--force-overwrite`: discard hand edits in an already built folder

## Examples (from the pack's own files)
- A sample build: The Almanack of Naval Ravikant as one entry skill: output format defined in dist/naval-almanack-single/SKILL.md

## Author's numbers (as reported, not run by AgentGid)
- In the Naval pilot, the always-loaded skill descriptions shrink from 3897 to 340 tokens when 19 separate skills are compiled into one entry skill (Static token count of the files with a fixed tokenizer (cl100k_base); the report says this is not the host's real billing). Source: kangarooking/cangjie-skill/benchmarks/naval/metrics-v2/a-class-metrics.md

## Steps only the person can do
- Provide the full text of the source (PDF, EPUB, TXT, subtitles or a transcript) that you have the right to use (SKILL.md (inputs it asks for)) Then: The agent reads the whole source and writes the outline
- Confirm the outline, the list of kept and dropped ideas, and the single or pack build when the agent pauses (SKILL.md (stages 0, 1.5 and 5)) Then: The agent continues to the next stage
- Choose where the finished skills are installed (methodology/07-stage5-deliver.md) Then: The agent copies the built skill or pack into that skills folder

## Mistakes to avoid
- Not: Copy only SKILL.md into the skills folder. Instead: Copy the whole cangjie-skill/ folder from the release ZIP. Why: The skill relies on its methodology files, templates and Python scripts next to SKILL.md
- Not: Download GitHub's automatic "Source code" archive for v2.5.0. Instead: Download the release asset cangjie-skill-2.5.0.zip and check its SHA256. Why: The September 2026 refresh is only in the release asset
- Not: Run scripts/cangjie.py on a raw book and expect finished skills. Instead: Let the assistant follow SKILL.md stage by stage; the CLI only compiles and checks already verified capability cards. Why: The script does not distill a book by itself
- Not: Install both the single and the pack build of the same book. Instead: Pick one build per book. Why: Both sets of descriptions cover the same intents and get in each other's way
- Not: Ask it for a book summary or to talk as the author. Instead: Use it to build skills from the methods; for a person's thinking style use a pack made for that. Why: The skill says summaries, reviews and author role-play are out of scope

## What leaves the machine
- A download request for tokenizer tables; no book text is sent → The tiktoken library's file host, First run of the optional benchmark script count_tokens.py, if tiktoken is installed and the tables are not cached. Opt out: Skip the benchmark or do not install tiktoken; the main pipeline does not need it

## Lines in the pack aimed at agents (ask the person first)
- "已经能从当前环境确认时，不要反问用户。" (website/public/install/cangjie-skill.md): Still tell the person which skills folder you will install into, and ask before installing a global skill
- "python3 -m pip install pyyaml" (SKILL.md): Ask the person before installing PyYAML; prefer a virtual environment over a global pip install

## May I use it like this?
- commercial-app: yes (MIT: keep the license notice)
- redistribute-files: yes (MIT: keep the copyright and permission notice in copies)
- client-work: yes (MIT allows use in work for others)

## Which one to pick
- If You want the methods in a book, video, podcast or course turned into checked, reusable skills: skill:kangarooking/cangjie-skill
- If You want to capture how a person thinks and talks, not the methods in one work: skill:alchaincyf/nuwa-skill
- If You want one technical book PDF turned into a single Claude Code skill to study and look up: skill:virgiliojr94/book-to-skill

## Works well with
- tool:yt-dlp: The pack needs subtitles or a transcript for videos and suggests getting them with a video download tool first
- tool:faster-whisper: Turns a podcast or video's audio into the transcript the pack needs as input
- agent:claude-code: The skill starts five parallel Task sub-agents, which Claude Code supports
- skill:alchaincyf/darwin-skill: The README names it as the companion that keeps built skills improving

## Works in and needs
- Works in Claude Code: skills folder
- Works in Codex: skills folder
- Works in Cursor: skills folder
- Works in Windsurf: skills folder
- Works in Gemini CLI: skills folder
- Works in QoderWork: skills folder
- Works in WorkBuddy: skills folder
- Works in DeepSeek Harness: plugin package from the release
- Needs Python 3.10+ with PyYAML: The assistant runs the pack's scripts to compile and check the result
- Needs The text of the source: It stops and asks instead of working from memory

## How to tell it works
Install it, then give your assistant one book file and say "distill this book into skills: <path>". It should ask for the title, author and your purpose, then show you an outline of the book and wait for your OK before going on. That pause is how you know the skill is driving the work.

## Related
- alchaincyf/nuwa-skill
- alchaincyf/darwin-skill
- kangarooking/kangarooking-skills

## Safety
Install from github.com/kangarooking/cangjie-skill and its v2.5.0 release, and check the SHA256 file. The skill has your assistant run its Python scripts; they write inside the books/ folder and the output folder you choose. Respect the copyright of the books you feed it; the pack itself limits quotes to 150 characters each.
