kcl-write

Encode knowledge, notes, and system prompts into compact KCL v0.1 documents.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/orochi-network/khala --skill kcl-write
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kcl-write
Source: https://github.com/orochi-network/khala/tree/main/skills/kcl-write
Command: npx skills add https://github.com/orochi-network/khala --skill kcl-write

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill captures unstructured prompts, notes, and session context and converts them into a compact, parseable KCL (.kcl) document so large LLM contexts can be stored, transferred, and reloaded efficiently.

Core Features & Use Cases

  • Specification-led emission: Requires loading the KCL bootstrap and emits KCL v0.1 documents that follow approved frame types and trust markers.
  • Context compression & persistence: Encodes roles, facts, decisions, task state, tool signatures, and conversation history into compressed frames suitable for session restoration or sharing.
  • Validation and safety guidance: Advises wrapping untrusted input, picking compression levels, inserting checkpoints, and verifying frame types against the bootstrap before saving.
  • Use Case: Save a system prompt plus recent conversation into a session.kcl file to restore model state or transfer context between tools.

Quick Start

Encode the current system prompt and recent conversation into a parseable .kcl file for session restoration.

Frequently Asked Questions about kcl-write

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compress LLM system prompts and session context for storage?

Compress LLM system prompts and session context by encoding them into compact KCL documents. This process converts unstructured roles, facts, and conversation histories into parseable .kcl files for efficient storage and transfer.

How does encoding conversation history into KCL frames work?

Encoding conversation history into KCL frames works by applying compression levels and trust markers to unstructured text. It produces parseable KCL v0.1 output that follows the bootstrap spec, capturing roles, task states, and tool signatures for durable representation.

What is the best way to save a system prompt and conversation for session restoration?

The best way to save a system prompt and conversation for session restoration is encoding them into a session.kcl file. This creates a durable, compressed representation of session context that can be reloaded to restore model state or transfer context between tools.

Can I use KCL to transfer context between different LLM tooling environments?

Yes, you can use KCL to transfer context between different LLM tooling environments. Encoding session context, project facts, and tool signatures into KCL documents creates a portable, parseable format designed for sharing and reloading across downstream tooling.

Does KCL support wrapping untrusted input when compressing session context?

KCL supports wrapping untrusted input when compressing session context. The encoding process advises wrapping untrusted input, picking compression levels, inserting checkpoints, and verifying frame types against the bootstrap before saving to ensure validation and safety.

When do I need KCL format for prompt engineering and knowledge capture?

You need KCL format for prompt engineering and knowledge capture when large LLM contexts must be stored, transferred, and reloaded efficiently. It applies to encoding persona guardrails, project facts, and conversation histories into durable, compressed frames.