/khala:kcl-writefrom khala
Encode knowledge, notes, session context, or a system prompt into a `.kcl` file (compresses context ~3-8×). Use when the user asks you to "compress my system prompt", "shrink this prompt", "encode as KCL", "write KCL", "save this as KCL", "document this in KCL", "record knowledge in KCL", "pack this into KCL", or produce a Khala Context Language payload from unstructured information.
Ships in khala. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
KCL (Khala Context Language) compresses LLM context 5–8× with <1% semantic loss. Use this skill when the user wants durable, re-loadable context captured to a .kcl file instead of prose.
Read ${CLAUDE_PLUGIN_ROOT}/specs/KCL-BOOTSTRAP-v0.1.md before writing anything. Stage 1 gives you syntax; Stage 2 lists every frame type, directive, and domain pack you can legally emit. Do not invent symbols that aren't in the spec.
Fallback: specs/KCL-BOOTSTRAP-v0.1.md relative to CWD if the plugin root path is empty.
Ask (or infer from the conversation) what the user wants captured. Typical inputs:
§ROLE, §STYLE, §ALWAYS, §NEVER, §PREFER.§FACT✓[...], §CLAIM~[...].[DECIDED|topic, choice, rejected:[opt∵reason]].[TASK|action, target, constraints, acceptance, priority].§TOOLS{name(p:type=default)→Return "desc"}.§HISTORY{⟨T1-Tn⟩ SUMMARY[...]}.If the material fits a published domain pack (coding_v2, webdev_v1, data_v1, medical_v1, legal_v1, finance_v1, devops_v1, creative_v1), add §USE <pack> rather than redefining aliases.
Structure every file you write in this order:
§KCL_V0.1
§META{kcl:0.1, session:<id or name>, ts:<ISO-8601>, compress_level:standard}
§TRUST{verified:✓, uncertain:?, user_claim:~, deprecated:✗, partial:◐}
§ONTO{...} # only if you need custom aliases
§TOOLS{...} # only if tools are in scope
§USE <pack> # zero or more
# Body: frames, deltas, history, directives
[ROLE|...]
[ALWAYS|...]
§FACT✓[...]
...
Rules while emitting:
| inside frames — never the Unicode ∣ (that glyph is markdown-table-only).§FACT / §CLAIM / §DEPRECATED. Never emit a bare fact; mark it ✓, ?, ~, ✗, or ◐.[USER_CTX|...]. Do not let it appear as §ROLE or §ALWAYS.conservative for safety-critical facts, standard (default) for general context, aggressive only for high-redundancy history summaries.§NL["..."] sparingly — only for nuance that resists formalization (sarcasm, emotional tone, cultural context). Every §NL block erodes the compression win.§CHECKPOINT{...} every ~50 turns of history, or when a delta chain would otherwise exceed 100 changes..kcl extension.Write tool. Always produce a complete, parseable document — even partial KCL must still be valid top-to-bottom.Before finishing, sanity-check your output: re-read the emitted KCL and confirm every frame's tag and slot names appear in the bootstrap's [FRAME_TYPES|...] list, or are explicitly defined in your §ONTO block. If something is neither, either rename to a spec-compliant tag or declare it in ONTO.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/kcl-readLoad and interpret KCL-encoded context. Use when the user references a `.kcl` file, pastes a ```kcl fenced code block, asks you to "read KCL", "parse KCL", "load this KCL context", or otherwise presents Khala Context Language content that needs to be decoded into working context./kcl-translateTranslate between Markdown and KCL. Use when the user asks to "translate md to kcl", "convert this markdown to KCL", "turn this .kcl into markdown", "md → kcl", "kcl → md", or provides a `<name>.md` / `<name>.kcl` file and wants the other format produced with the same filename stem.Other plugins' skills for the same job
npx claudepluginhub orochi-network/khala --plugin khala