← Back to Skills Marketplace
diyanqi

墨灵高考作文批改

by Dignite · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
147
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install composition-correction
Description
墨灵高考作文批改。调用 InkCraft API 提交批改并返回结构化结果。
README (SKILL.md)

墨灵高考作文批改

  • 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=\x3Cuuid>

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

  • 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 '\x3CJSON_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=\x3Cuuid>" \
  -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
Usage Guidance
This skill appears coherent and only needs curl plus an InkCraft API key to call InkCraft's endpoints. Before installing: 1) Only provide an INKCRAFT_API_KEY you trust and avoid storing it in shared workspace config if others can access it; prefer environment variables or secure secrets storage. 2) Be aware that student essays and exam prompts will be sent to InkCraft (https://www.inkcraft.cn) — ensure you have permission and that this complies with privacy or exam-security requirements. 3) Verify the API key is from the official InkCraft developer portal and that the base URL is correct if you override it. 4) Test with non-sensitive/example essays first, rotate the key if you suspect leakage, and limit scope if InkCraft supports scoped/limited keys.
Capability Analysis
Type: OpenClaw Skill Name: composition-correction Version: 1.0.0 The 'composition-correction' skill is a legitimate tool designed for Chinese essay correction via the InkCraft API (inkcraft.cn). It uses standard system commands (curl) to interact with its backend and follows a clear, documented workflow for submitting and polling results. There is no evidence of data exfiltration, malicious execution, or prompt injection attacks in SKILL.md or the configuration files.
Capability Assessment
Purpose & Capability
Name/description indicate an InkCraft-backed essay correction service. Declared requirements (curl binary and INKCRAFT_API_KEY) and optional INKCRAFT_BASE_URL align with calling the InkCraft API and are proportionate.
Instruction Scope
SKILL.md gives concrete curl commands to POST submission and poll results; it requires only originalText and essayText and explicitly instructs to ask the user if those are missing. The instructions only send data to the InkCraft endpoints and do not request unrelated files or secrets. Note: sending student essays to an external service is a privacy consideration (see guidance).
Install Mechanism
Instruction-only skill with no install spec or code files — lowest-risk install surface. It relies on an existing curl binary, which is reasonable for the described behavior.
Credentials
Only INKCRAFT_API_KEY (and optional INKCRAFT_BASE_URL) are required — appropriate for the API. The README suggests storing the key in openclaw.json or workspace config; persisting keys in shared workspace configuration can expose them to others and should be done cautiously. Also consider privacy/legal implications of sending students' essays to an external service.
Persistence & Privilege
always:false and user-invocable:true. The skill does not request persistent/machine-level privileges or modify other skills. Autonomous invocation is allowed (platform default) but not elevated here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install composition-correction
  3. After installation, invoke the skill by name or use /composition-correction
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
墨灵高考作文批改 Skill 初始发布。 - 支持提交高考作文进行自动批改,并返回结构化点评结果 - 需用户输入作文题目(originalText)和正文(essayText),如缺失则追问 - 通过 InkCraft API 进行任务提交与状态轮询,自动处理 API key 和错误提示 - 输出包含总评、评分、亮点、待改进、改写建议及详情链接 - 内置故障排查流程,保障使用安全
Metadata
Slug composition-correction
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 墨灵高考作文批改?

墨灵高考作文批改。调用 InkCraft API 提交批改并返回结构化结果。 It is an AI Agent Skill for Claude Code / OpenClaw, with 147 downloads so far.

How do I install 墨灵高考作文批改?

Run "/install composition-correction" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 墨灵高考作文批改 free?

Yes, 墨灵高考作文批改 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 墨灵高考作文批改 support?

墨灵高考作文批改 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 墨灵高考作文批改?

It is built and maintained by Dignite (@diyanqi); the current version is v1.0.0.

💬 Comments