All skills
iflytek avatar

/iflytek-text-proofread

@388181a
by iflytekiflytek/ifly-skills218 stars
27

iFlytek Official Document Proofreading (公文校对) — detect and correct errors in Chinese text including typos, punctuation, word order, factual mistakes, sensitive content, and more (27 error types). Supports up to 220,000 characters. Use when the user wants to proofread, check, or correct Chinese text, especially official documents. Pure Python stdlib, no pip dependencies.

Use this Skill: https://skilld.dev/gh/iflytek/ifly-skills/iflytek-text-proofread

This session only. Nothing lands on disk.

README.md

≈481 tokens on demand. Your agent reads this file only when SKILL.md points to it.

iFly Text Proofread

基于讯飞公文校对 API,对中文文本进行校对、纠错和风险提示。对应脚本为 scripts/text_proofread.py,纯 Python 标准库实现,无需第三方依赖。

前置条件

export IFLY_APP_ID="your_app_id"
export IFLY_API_KEY="your_api_key"
export IFLY_API_SECRET="your_api_secret"

快速开始

以下命令默认在 ifly-text-proofread/ 目录下执行:

# 直接校对一段文本
python3 scripts/text_proofread.py "第二个百年目标"

# 从文件读取
python3 scripts/text_proofread.py --file ./document.txt

# 从标准输入读取
echo "测试文本" | python3 scripts/text_proofread.py -

# 输出原始 JSON
python3 scripts/text_proofread.py --raw "测试文本"

参数说明

参数 说明
text 要校对的文本;传 - 表示从标准输入读取
--file, -f 从文件读取文本
--raw 输出解码后的原始 JSON 响应

限制说明

  • 请求和响应中的文本字段使用 Base64 编码。
  • 鉴权方式为 HMAC-SHA256。
  • 完整文档与错误码说明见 SKILL.md。

参考链接

扩展说明

覆盖问题类型

  • 文字与标点差错:错别字、多字、少字、语义重复、语序错误、量词单位、数字差错、标点符号等
  • 知识性差错:机构名称、专有名词、常识差错、媒体报道禁用词和慎用词等
  • 内容风险:低俗辱骂、其他敏感内容

输出说明

  • 默认输出为可读性较强的校对结果。
  • 如果未发现问题,会直接提示文本通过校对。
  • 如果发现问题,会列出错误类型、原文片段和修改建议。

Source: SKILL.md on GitHub

1 warning3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill provides a tool to proofread Chinese text using the official iFlytek API. It uses environment variables for secure credential management and relies only on the Python standard library. No security issues were detected.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 388181a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 19 hours ago.

Activeupdated 4 months ago
Other metadata
metadata
{
  "homepage": "https://www.xfyun.cn/services/text_proofread",
  "openclaw": "{\"emoji\":\"✏️\",\"dimensions\":[\"公文校对\",\"文本纠错\"],\"user_instructions\":[\"帮我校对这段文字\",\"检查这篇文章有没有错别字\",\"公文纠错\"],\"requires\":{\"bins\":[\"python3\"],\"env\":[\"IFLY_APP_ID\",\"IFLY_API_KEY\",\"IFLY_API_SECRET\"]},\"primaryEnv\":\"IFLY_API_KEY\"}"
}

README badge

README badge for iflytek/ifly-skills/iflytek-text-proofread