/htd-ai-augmented-education:render-handwritten-essay-cardfrom AI 辅助教育
Converts English essays into prompts for Image 2/2.5 to generate realistic handwritten exam-card photos. Uses a state machine for preview-confirm-generate workflow.
Ships in AI 辅助教育. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
本 Skill 使用脚本状态机保存可恢复运行。输入可以是内联英语作文或 UTF-8 文本文件;默认模型为 image-2,可切换为 image-2.5。答题卡固定为通用英语考试答题卡,字体固定为清晰的手写印刷体。
runtime/.venv/Scripts/python.exe skills/render-handwritten-essay-card/scripts/cli.py start --root . --input request.json
runtime/.venv/Scripts/python.exe skills/render-handwritten-essay-card/scripts/cli.py deliver --root . --run-id <run-id> --mode preview
runtime/.venv/Scripts/python.exe skills/render-handwritten-essay-card/scripts/cli.py status --root . --run-id <run-id>
runtime/.venv/Scripts/python.exe skills/render-handwritten-essay-card/scripts/cli.py resume --root . --run-id <run-id> --decision accept
runtime/.venv/Scripts/python.exe skills/render-handwritten-essay-card/scripts/cli.py resume --root . --run-id <run-id> --decision decline
runtime/.venv/Scripts/python.exe skills/render-handwritten-essay-card/scripts/cli.py resume --root . --run-id <run-id> --decision accept --image-path <path>
runtime/.venv/Scripts/python.exe skills/render-handwritten-essay-card/scripts/cli.py verify --root . --run-id <run-id>
start 会生成并校验预览交付载荷,然后进入 paused_imagen_confirmation,返回退出码 3。对话层必须立即调用 deliver --mode preview,原样发送其 stdout;stdout 固定为“一个完整提示词代码块 + 后置确认问题”,不得自行改写、概括或只发送确认句。用户同意后,直接发起 /imagen,并将返回图片路径或地址通过 resume --image-path 或 resume --image-url 传回脚本;若暂时无法提供结果,保持暂停,不得伪造成功。
prepared → validating_request → normalizing_essay → extracting_layout_requirements → composing_prompt → validating_prompt → publishing_prompt_preview → preview_ready → delivering_prompt_preview → paused_imagen_confirmation。
接受后进入 invoking_imagen → verifying_image_result → publishing → completed;拒绝则直接进入 publishing → completed。输入、输出冲突、验证失败和无法调用 /imagen 时使用对应 paused_* 状态。
正式产物位于 outputs/render-handwritten-essay-card/runs/<run-id>/,包括 result.json、result.md,以及生图成功时的图片文件或返回地址记录。状态和事件位于 logs/render-handwritten-essay-card/runs/<run-id>/。
必须通过 deliver --mode preview 读取并原样发送 delivery.message_markdown:一个完整提示词代码块,随后是确认问题。不得只发送确认问题。提示词必须保留作文原文、段落顺序和标点意图,并明确要求通用英语考试答题卡、手写印刷体、真实拍摄效果;负面提示词必须禁止电脑字体、连笔书法、装饰字体、增删改写正文和不可读文字。
scenario_examples:
- id: render-essay-card
user_request: "把这篇英语作文生成通用考试答题卡上的手写照片"
when_to_call: "用户要求生成作文答题卡照片或手写作文图片时"
invocation: "start → deliver --mode preview → 用户确认 → resume"
expected_output: "先展示完整生图提示词,确认后生成并验证图片"
功能调用、配置和运行协议的补充说明见 使用与协议补充。
references/output.schema.json (opens in a new tab)references/request.schema.json (opens in a new tab)references/usage-details.md (opens in a new tab)scripts/__init__.py (opens in a new tab)scripts/cli.py (opens in a new tab)templates/preview-delivery.template.md (opens in a new tab)templates/prompt.template.md (opens in a new tab)templates/result.template.md (opens in a new tab)tests/test_render_handwritten_essay_card.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (hytidellegend/ai-aug-edu) — no native marketplace selected
npx claudepluginhub p/hytidellegend-htd-ai-augmented-education19 skills in this plugin
/build-curriculum-navigation从项目内一个或多个 Markdown 资料生成知识点依赖图、背景诊断和评分后的候选学习顺序。开始或继续 interactive-tutor 前必须调用;已有有效导航用 verify 校验,资料或目标变化时增量维护。/build-mnemonic-keywords为初高中及其他需要背诵的一句知识生成关键词、联想记忆场景和 Image 2、Image 2.5 或豆包可用的生图提示词,并在用户确认后调用 /imagegen。用户要求背诵、记忆口诀、联想记忆、场景化记忆或把记忆法画成图时使用。/build-word-entry从单词或 UTF-8 词表采集 Cambridge、Oxford、Longman 和 Thesaurus.com 证据,生成可恢复、可校验的英语词条 JSON,并发现批次内候选关系。用户要求建立词汇星图词条、批量处理词表、维护项目拼写关系或恢复词条生成时使用。Other plugins' skills for the same job