composition-correction

墨灵高考作文批改。调用 InkCraft API 提交批改并返回结构化结果。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "composition-correction" with this command: npx skills add diyanqi/composition-correction

墨灵高考作文批改

  • Slug: composition-correction
  • Display name: 墨灵高考作文批改
  • Version: 1.0.0
  • Tags: latest

当用户请求“批改作文/高考作文打分/作文优化建议”时,使用本 Skill。

Required Inputs

在调用 API 前,确保以下字段存在:

  • originalText:作文题目或材料
  • essayText:学生作文正文

可选字段:

  • title
  • model(默认 doubao
  • essayType(默认 gaokao-chinese
  • tone(默认 strict
  • referenceText
  • firstSentence
  • secondSentence

如果缺少 originalTextessayText,先向用户追问,不要发起请求。

API Endpoints

默认使用:

  • Base URL: https://www.inkcraft.cn
  • Submit: POST /api/skills/essay-correction
  • Result: GET /api/skills/correction-result?uuid=<uuid>

优先读取环境变量(若存在):

  • INKCRAFT_BASE_URL(可选)
  • INKCRAFT_API_KEY(必需)

Tool Execution Policy

优先使用可执行命令工具(如 system.run)通过 curl 调用 API。

Step 1: Submit Correction Job

执行等价请求:

BASE_URL="${INKCRAFT_BASE_URL:-https://www.inkcraft.cn}"
curl -sS -X POST "$BASE_URL/api/skills/essay-correction" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $INKCRAFT_API_KEY" \
  -H "x-api-key: $INKCRAFT_API_KEY" \
  -d '<JSON_PAYLOAD>'

判定:

  • 若返回 success=true 且含 uuid,进入查询阶段。
  • 若返回 Invalid API key,停止并提示用户更新 API Key。

Step 2: Poll Result

最多轮询 3 次,每次间隔 2-5 秒:

BASE_URL="${INKCRAFT_BASE_URL:-https://www.inkcraft.cn}"
curl -sS "$BASE_URL/api/skills/correction-result?uuid=<uuid>" \
  -H "Authorization: Bearer $INKCRAFT_API_KEY" \
  -H "x-api-key: $INKCRAFT_API_KEY"

判定:

  • done=false:继续轮询。
  • done=truestatus=success:输出结构化结果。
  • status=error:输出失败原因和重试建议。

Response Format

最终回复使用以下结构:

  1. 批改状态(成功/处理中/失败)
  2. 总评(1-2 句)
  3. 评分与关键维度(若有)
  4. 亮点(2-4 条)
  5. 待改进(2-4 条)
  6. 可直接改写建议(1-3 条)
  7. 并提供前往查看批改详情的链接(https://www.inkcraft.cn/dashboard/correction/[uuid])

Safety and Boundaries

  • 不要伪造 API 返回内容。
  • 不要泄漏 API Key。
  • 若请求失败,给出可执行排查步骤:
    • 检查 key 是否来自 InkCraft 开发者页
    • 检查 baseUrl 是否为 https://www.inkcraft.cn
    • 重试或重新生成 key

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated