xfyun-text-proofread

Send base64-encoded Chinese text to iFlytek's proofreading API and return structured corrections.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/Jaykaijack/openclaw-backup --skill xfyun-text-proofread
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xfyun-text-proofread
Source: https://github.com/Jaykaijack/openclaw-backup/tree/main/skills/xfyun-text-proofread
Command: npx skills add https://github.com/Jaykaijack/openclaw-backup --skill xfyun-text-proofread

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

iFlytek Official Document Proofreading (公文校对) enables automatic detection and correction of Chinese text errors across 27 categories, including typos, punctuation, word order, factual mistakes, and sensitive content, for inputs up to 220,000 characters.

Core Features & Use Cases

  • Detects and corrects a wide range of Chinese text errors for official documents.
  • Handles very long text up to 220,000 characters per request without external dependencies.
  • Pure Python stdlib client with environment-based authentication for seamless integration.

Quick Start

Feed your Chinese text to the script to obtain proofreading results.

Frequently Asked Questions about xfyun-text-proofread

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

FAQPage Schema
How do I automate Chinese proofreading for official documents?

Automate Chinese proofreading by sending base64-encoded text to iFlytek's Official Document Proofreading API, which returns structured corrections for typos, punctuation, and semantic errors. This requires setting the XFYUN_APP_ID, XFYUN_API_KEY, and XFYUN_API_SECRET environment variables for authentication.

What types of Chinese text errors can automated proofreading detect?

Automated proofreading detects 27 categories of Chinese text errors, including typos, punctuation issues, word order, factual mistakes, and sensitive content. This makes it suitable for reviewing official documents and long passages.

Can I proofread very long Chinese text passages with this API?

Yes, you can proofread very long Chinese text passages up to 220,000 characters in a single request. The API processes long text fragments and official documents without requiring external libraries.

Do I need external dependencies to use this Python proofreading script?

No, you do not need external dependencies because the script uses only the Python standard library for HTTP requests and cryptographic signing. You only need to configure the iFlytek API environment variables.

How does the script send text to the iFlytek proofreading API?

The script sends text to the iFlytek proofreading API by encoding the payload as base64 and transmitting it via HTTP. It authenticates the request using environment variables and cryptographic signing.

What are the limitations of using Python standard library for API text correction?

The limitation is that you must manually handle HTTP connections and cryptographic signing using only Python standard library modules. Additionally, text correction is capped at 220,000 characters per request.