Rust-first library for decomposing agent SKILL.md files into page-indexed nodes and recomposing
skinny skills — only the sections you select.
This repository is the chunk-your-skills SDK monorepo. The former clear-your-tools proxy application layer has been removed; use clear-your-tools for the MCP tool-gating proxy.
- Chunk/Decompose — parse
SKILL.mdinto a tree of nodes (frontmatter, preamble, heading sections). - Cache — write
metadata.json,nodes/page_index.json, andnodes/n{id}.mdunder a catalog directory. - Recompose — rebuild a skinny
SKILL.mdfrom selected node IDs.
Published packages
|
|
Rust library and CLI |
|
|
|
Python SDK ( |
|
|
|
TypeScript SDK |
|
|
|
C library via CMake / |
|
|
|
Go SDK via cgo ( |
Install the CLI:
cargo install chunk-your-skillsOr build locally: cargo build -p chunk-your-skills --release.
Library installs:
cargo add chunk-your-skills
pip install chunk-your-skills
npm install chunk-your-skillsTry the bundled walkthrough — decompose a sample skill, then recompose skinny variants:
./examples/decompose.sh
export PATH="$PWD/target/release:$PATH"
./examples/recompose.shSee examples/README.md for node IDs, output paths, and CLI flags.
| SDK | Path | Docs |
|---|---|---|
| Python | sdk/python |
README |
| TypeScript | sdk/typescript |
README |
| Go | sdk/go |
README |
| C | sdk/c |
README |
| Rust | src |
README |
See DEV.md for local workflow, version sync, and publish notes.
Apache-2.0 — see LICENSE.