墨灵高考作文批改

v1.0.0

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

0· 144·0 current·0 all-time
byDignite@diyanqi

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for diyanqi/composition-correction.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "墨灵高考作文批改" (diyanqi/composition-correction) from ClawHub.
Skill page: https://clawhub.ai/diyanqi/composition-correction
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required env vars: INKCRAFT_API_KEY
Required binaries: curl
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install composition-correction

ClawHub CLI

Package manager switcher

npx clawhub@latest install composition-correction
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

📝 Clawdis
Binscurl
EnvINKCRAFT_API_KEY
Primary envINKCRAFT_API_KEY
latestvk97eejsswsdnra8t16r3n6van183ap2f
144downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

墨灵高考作文批改

  • 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

Comments

Loading comments...