An AST-First transpiler enabling AI agents to write structured JSON AST directly, compiling it into type-safe Go, Rust, TypeScript, Kotlin, Swift, and Python.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install xiaoqinli
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install xiaoqinli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Xiaoqinli (XQL) is an AST-First compiler engineered specifically for AI agents, bypassing the conventional source-parsing paradigm. Rather than forcing LLMs to output complex syntax-heavy source files that are prone to compilation and parsing errors, agents write structured .xql.json files (JSON Abstract Syntax Trees) directly. The compiler validates types, effects, and capabilities at compile time, eliminating syntactic mistakes and ensuring high structural integrity prior to generating clean, idiomatic source code in six target languages.
Using this capability within your toolkit of Openclaw Skills ensures that code generated by AI agents is structurally correct, type-safe, and secure. Developers can program AI agents to output robust systems in Go, Rust, TypeScript, Kotlin, Swift, or Python, with the compiler handling the translation and safety checks transparently.
# Clone and build the transpiler binary
git clone https://github.com/Freecode100Year/xiaoqinli.git
cd xiaoqinli && go build -o xql .
# Move to system PATH (macOS/Linux example)
sudo mv xql /usr/local/bin/
Run the following command to check help and availability:
xql --help
All AST components in XQL resolve to underlying target types across languages:
| AST Kind | Go Type | Rust Type | TypeScript Type | Kotlin Type | Python Type |
|---|---|---|---|---|---|
Int |
int |
i64 |
number |
Long |
int |
Float |
float64 |
f64 |
number |
Double |
float |
String |
string |
String |
string |
String |
str |
Bool |
bool |
bool |
boolean |
Boolean |
bool |
Void |
(none) | (none) | void |
Unit |
None |
Array |
[]T |
Vec<T> |
T[] |
List<T> |
list[T] |
Option |
*T |
Option<T> |
T | null |
T? |
Optional[T] |
Every .xql.json object contains a "kind" field. Declarations specify Program and FunctionDecl. Statement nodes structure variables and control loops (VarDecl, AssignStmt, IfStmt, WhileStmt). Expressions formulate variables and operations (Literal, Ident, BinaryExpr, CallExpr).
grant) to restrict file system, external network, or standard IO access.effects: ["pure"]) for mathematical models and calculations.XQL_E1xx), type conflicts (XQL_E2xx), capability denials (XQL_E3xx), and output generation glitches (XQL_E4xx).Loading
An AI-powered copywriting evaluation engine that predicts content virality across TikTok, Twitter, YouTube Shorts, and Instagram.

An AI-powered global brand compliance engine that detects linguistic, visual, and cultural risks across 50+ international markets.

An AI-powered clinical nephrology assistant supporting literature searches, decision-making, and clinical reasoning in kidney diseases, acid-base imbalances, and renal replacement therapies.

An AI-driven market intelligence skill that provides real-time track trends, quantitative growth metrics, and regional comparisons for strategic decision-making.

Automate 3D asset generation, procedural modeling, rendering, and 3D print preparation using Blender's Python API.

A real-time investment and market intelligence scouting tool for tracking global AI startups, funding rounds, and founding team backgrounds.








































