Classical Chinese Token Compression for Openclaw

A sophisticated token compression skill that uses Classical Chinese grammar to dramatically reduce AI output length while preserving technical accuracy.

u5bf
v1.0.1
Apr 9, 2026
0
759
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install classicalchinese

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install classicalchinese using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Classical Chinese Token Compression?

The Classical Chinese skill is a specialized utility designed for Openclaw Skills that leverages the high information density of literary Chinese to minimize token consumption. By converting verbose modern prose into concise classical structures, it allows users to maximize context windows and reduce API costs without losing the essence of the communication.

This skill is particularly effective for developers and power users who need to process large amounts of information or maintain long-running conversations where token limits are a primary concern. It intelligently balances brevity with clarity, ensuring that technical data remains untouched while the surrounding explanation is heavily compressed.

Classical Chinese Token Compression Use Cases

  • Reducing API costs by shortening AI responses during intensive development sessions.
  • Maximizing the effective context window in long-form AI interactions.
  • Summarizing complex technical discussions into high-density briefings.
  • Responding to users who prefer the aesthetic or brevity of literary Chinese.

How Classical Chinese Token Compression Works

  1. Level Identification: The skill first detects the requested compression level (/e for Extreme, /m for Medium, or /l for Light).
  2. Grammatical Rewriting: It converts modern text into Classical Chinese using specific compression rules while omitting redundant subjects and particles.
  3. Technical Preservation: Code blocks, variable names, paths, and proprietary terms are isolated and preserved in their original format.
  4. Quantitative Validation: The skill appends a summary note showing the original character count vs. the compressed count and the percentage of tokens saved.

Classical Chinese Token Compression Setup

To enable this skill within your environment, ensure the compression rules are accessible:

# Navigate to your skill directory
cd skills/classical-chinese

# Ensure the reference rules are linked
ls references/compression_rules.md

Trigger the skill by prefixing your prompt with the desired level, such as 【极致】 or /e.

Classical Chinese Token Compression Data Schema & Taxonomy

The skill utilizes a structured approach to manage compression levels and validation metrics:

Level Command Savings Target Primary Rule
Extreme /e 50%+ Single-character priority; omit all non-essential particles
Medium /m 30-40% Balanced conciseness; default mode for Openclaw Skills
Light /l ~20% Prioritize readability with mild classical phrasing

Output Metadata: Every response includes a validation tag: [Original ~N chars -> Classical ~M chars, Saved X%].

Classical Chinese Token Compression Advanced Features

  • Auto-Switching: Automatically matches the compression level if the user input is already in Classical Chinese.
  • Technical Shielding: Built-in protection for JSON, XML, URLs, and mathematical formulas to prevent corruption during translation.
  • Contextual Consistency: Maintains terminology alignment across continuous dialogue sessions.
  • Dynamic Downgrading: Automatically reverts to 'Light' or 'Medium' compression when explaining highly complex logic or error diagnostics to ensure user understanding.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*