cangjie-skill-book-distillation
```markdown
What this skill does
```markdown
---
name: cangjie-skill-book-distillation
description: Distill any book into a set of executable Agent Skills using the RIA-TV++ pipeline — structured extraction, triple verification, and Zettelkasten linking.
triggers:
- distill a book into skills
- convert book to agent skills
- extract methodology from a book
- create skill pack from book
- book to skill pipeline
- run cangjie skill on a book
- generate RIA skills from reading material
- build executable skills from book content
---
# Cangjie Skill — Book-to-Agent-Skill Distillation
> Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection.
Cangjie Skill is a pipeline and template system that distills any high-value book into a structured collection of executable Agent Skills. Instead of summaries or notes, the output is a multi-file skill repository that AI coding agents (Claude Code, Cursor, Codex, etc.) can install and invoke in real workflows.
---
## What It Does
- Reads a book (text, PDF, markdown) and applies the **RIA-TV++ pipeline** in six phases
- Outputs a structured skill pack: `BOOK_OVERVIEW.md`, `INDEX.md`, per-skill `SKILL.md` files, and `test-prompts.json`
- Every skill must pass **Triple Verification** (evidence, predictive power, non-obviousness) — typical pass rate is 25–50%
- Skills include trigger conditions, executable steps, boundary/blind-spots, and Zettelkasten cross-links
---
## Repository Layout
```
cangjie-skill/
├── README.md
├── SKILL.md ← Meta-skill: the book2skill execution spec
├── methodology/ ← RIA-TV++ phase docs
│ ├── phase1-adler.md
│ ├── phase2-extraction.md
│ ├── phase3-triple-verification.md
│ ├── phase4-ria-construction.md
│ ├── phase5-zettelkasten.md
│ └── phase6-stress-test.md
├── extractors/ ← 5 parallel extractor prompts
│ ├── framework-extractor.md
│ ├── principle-extractor.md
│ ├── case-extractor.md
│ ├── counter-case-extractor.md
│ └── term-extractor.md
└── templates/
├── SKILL.md.template
├── INDEX.md.template
└── BOOK_OVERVIEW.md.template
```
---
## Installation / Setup
### Clone the repo
```bash
git clone https://github.com/kangarooking/cangjie-skill.git
cd cangjie-skill
```
### Install as an agent skill (Claude Code / Cursor / Codex)
Copy or symlink `SKILL.md` into your project's `.claude/skills/` (or equivalent) directory:
```bash
# Claude Code
mkdir -p .claude/skills
cp cangjie-skill/SKILL.md .claude/skills/cangjie-skill.md
# Or reference directly in your CLAUDE.md / system prompt
echo "$(cat cangjie-skill/SKILL.md)" >> .claude/CLAUDE.md
```
---
## The RIA-TV++ Pipeline (Six Phases)
### Phase 1 — Adler Analysis (`BOOK_OVERVIEW.md`)
Apply Mortimer Adler's four-step analytical reading:
| Step | Question |
|------|----------|
| Structural | What kind of book is this? What is it about as a whole? |
| Interpretive | What is being said in detail, and how? |
| Critical | Is it true? Is it complete? |
| Applied | What of it? Where can it be used? |
**Output file:** `BOOK_OVERVIEW.md`
```markdown
# BOOK_OVERVIEW — [Book Title]
## Structural Analysis
- Genre / Type:
- Central thesis in one sentence:
- Major parts and their relationship:
## Interpretive Analysis
- Key terms the author defines specially:
- Core propositions:
- Arguments and their logical structure:
## Critical Analysis
- Where the author succeeds:
- Where the author's argument is incomplete or contested:
## Applied Analysis
- Domains where this book's methodology transfers:
- Who benefits most from this book:
```
---
### Phase 2 — Parallel Extraction (5 Extractors)
Run five extractors **in parallel** against the book text. Each extractor targets a specific unit type:
```
extractors/
├── framework-extractor.md → Repeatable multi-step frameworks
├── principle-extractor.md → Named principles / heuristics
├── case-extractor.md → Supporting examples from the book
├── counter-case-extractor.md → Failure cases / anti-patterns
└── term-extractor.md → Domain-specific vocabulary
```
**Extractor prompt pattern (framework-extractor):**
```
You are extracting FRAMEWORKS from the following book text.
A framework qualifies if:
1. It has at least 2 named steps or components
2. It is described as repeatable across different situations
3. The author presents it as a deliberate method, not a one-off observation
For each candidate framework, output:
- Name (as the author uses it, or infer a short label)
- Steps / Components (verbatim or near-verbatim from text)
- Page reference or chapter
- Raw quote (≤ 3 sentences)
Do NOT infer frameworks that are not in the text.
Output as JSON array.
```
**Example extractor output (JSON):**
```json
[
{
"type": "framework",
"name": "Two-Track Decision Process",
"steps": ["Fast intuition check", "Slow checklist verification"],
"chapter": "Chapter 4",
"quote": "Never make a major decision on intuition alone; run the checklist...",
"page_ref": "p.87"
}
]
```
---
### Phase 3 — Triple Verification
Every candidate from Phase 2 must pass **all three checks**:
```
TV-1: EVIDENCE
✓ At least 2 independent supporting instances in the book
✓ Instances must span different chapters or contexts (cross-domain)
✗ Fail: single anecdote, even if vivid
TV-2: PREDICTIVE POWER
✓ The skill can answer a NEW question not explicitly stated in the book
✓ Ask: "If I applied this skill to [novel scenario], does it give non-obvious guidance?"
✗ Fail: only restates what the book says, no generative power
TV-3: NON-OBVIOUSNESS
✓ The content would NOT appear in a generic business/self-help summary
✓ It requires reading THIS book to derive
✗ Fail: "set clear goals", "communicate openly", etc.
```
**Verification record template:**
```markdown
## Verification: [Candidate Name]
**TV-1 Evidence**
- Instance A: [chapter/page + summary]
- Instance B: [chapter/page + summary]
- Cross-domain? YES / NO
**TV-2 Predictive Power**
- Novel scenario tested: [describe]
- Non-obvious guidance produced: [yes/no + what]
**TV-3 Non-Obviousness**
- Would appear in generic summary? NO
- Unique to this book? YES
**VERDICT:** PASS / FAIL
**Reason if FAIL:**
```
Typical pass rate: **25–50%** of candidates.
---
### Phase 4 — RIA++ Construction
For each verified candidate, build a full skill file using the six-dimension RIA++ structure:
| Dimension | Meaning |
|-----------|---------|
| **R** | Raw reference — verbatim quote(s) from the book |
| **I** | Interpretation — rewritten in your own words |
| **A1** | Application 1 — case from the book |
| **A2** | Application 2 — future trigger scenario (not in the book) |
| **E** | Execution — concrete, ordered steps an agent can follow |
| **B** | Boundary — where this skill breaks down, blind spots, prerequisites |
**SKILL.md template (filled example):**
```markdown
---
skill_id: SK-007
name: inversion-before-commitment
source_book: Poor Charlie's Almanack
chapter: "The Art of Stock Picking"
verified: true
tags: [decision-making, risk, mental-models]
depends_on: [SK-003-checklist-thinking]
contrasts_with: [SK-012-optimism-bias]
---
# Inversion Before Commitment
## R — Raw Reference
> "Invert, always invert. Turn a situation or problem upside down.
> Look at it backwards." — Charlie Munger, p.211
## I — Interpretation
Before committing to any plan or investment, explicitly ask:
"What would make this fail?" rather than "Why will this succeed?"
The human brain defaults to confirming a thesis; inversion forces
it to search for disconfirming evidence first.
## A1 — Book Case
Munger describes how he evaluates every Berkshire investment by
listing all the ways the business could deteriorate, not by
building DCF models of upside. He found this caught 3 major
near-misses that conventional analysis missed.
## A2 — Future Trigger Scenario
**Trigger:** A developer is about to merge a large refactor
and asks "should I ship this?"
**Inversion applied:** Ask iRelated in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.