From 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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/khala:kcl-writeThe summary Claude sees in its skill listing — used to decide when to auto-load this 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.
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.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub orochi-network/khala --plugin khala