A zero-dependency Python tool integrating iFlytek's Official Document Proofreading API to detect and correct 27 types of errors in Chinese text.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install iflytek-text-proofread
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 iflytek-text-proofread using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The iFlytek Chinese Text Proofreader is a lightweight, zero-dependency Python tool that leverages the official iFlytek Document Proofreading API (公文校对) to clean, correct, and optimize Chinese text. Designed to handle up to 220,000 characters per request, this integration is ideal for verifying official government documents, corporate reports, and editorial drafts. It works entirely out of the box using Python's standard library, providing secure HMAC-SHA256 authenticated API transactions.
By leveraging this tool through Openclaw Skills, developers and content teams can automate spelling, syntax, geographical, and politically sensitive error checking. It processes text from raw CLI arguments, standard input, or physical text files, returning highly accurate error locations, descriptive categorization, and replacement recommendations.
First, set up your credentials on the iFlytek Console and enable the Document Proofreading (公文校对) service. Then, configure your environment variables:
export IFLY_APP_ID="your_app_id"
export IFLY_API_KEY="your_api_key"
export IFLY_API_SECRET="your_api_secret"
No external pip installations are required. Run the tool directly using Python 3:
# Basic CLI usage
python3 scripts/text_proofread.py "我要校对这段文字"
# Read from a file
python3 scripts/text_proofread.py --file document.txt
# Pipe from clipboard or another tool
echo "我们要加强对篮球运动的推广" | python3 scripts/text_proofread.py -
The tool processes text input and returns detailed, structured JSON representations of detected issues. Below is a taxonomy of the metadata schema returned in the error response:
| Field Name | Type | Description |
|---|---|---|
word |
String | The detected incorrect word or character sequence. |
type |
Integer | The category ID corresponding to the specific rule violated (belongId). |
position |
Integer | The starting index position (0-based) of the error in the original text. |
length |
Integer | The character length of the error word. |
suggestion |
String | The suggested correction or system action (e.g., replace, delete). |
ruleName |
String | A descriptive rule identifier for the error. |
-): Enables easy integration with clipboard utilities, IDE extensions, and automation workflows by handling piped input directly.--raw): Outputs the raw API JSON response, facilitating ingestion by down-stream NLP processing tools or diagnostic systems.Loading
A structured AI agent skill that transforms raw product ideas into development-ready Product Requirement Documents (PRDs) across 6 rigorous steps.

An AI-powered gardening assistant that identifies plants from images and generates professional, multi-dimensional care guides and interactive HTML reports.

A command-line configuration tool and helper script for managing and switching main, auxiliary, and delegation LLM settings across Hermes agent profiles.

A collection of ready-to-use, KPI-driven prompt templates designed to deliver structured, decision-ready outputs for market research, deal strategy, and business planning.

A zero-dependency Python skill using iFlytek's Machine Translation API to deliver highly accurate translations across more than 70 language pairs.

An ultra-fast speech transcription skill that converts up to 5 hours of audio into high-accuracy text in seconds, supporting multiple languages and dialects.








































