Task 2 作文批改
按教师批改风格与评分标准生成并校验 Task 2 批改文档。
在本地 Agent 使用
所属 Skill:ielts-writing-review
Workflow Prompt
IELTS Task 2 Review
当当前学习任务需要本方法时按需读取。脚本命令中的
scripts/相对于本 Skill 根目录;执行时解析为安装目录中的绝对路径。
Core Rule
Imitate the teacher's marking style before giving generic IELTS advice. Use the teacher-style guide and the scoring guide as the two authorities:
- Read
references/teacher_style.mdbefore reviewing. - Read
references/scoring_guide.mdbefore scoring. - Use
references/review_format.mdfor the output structure.
Requested document output
When the learner requests a Word review, deliver a validated reviewed .docx; otherwise provide the review in conversation.
- Extract the prompt and scored essay.
- Build the teacher-style review plan from the bundled references, the prompt, and the student's essay.
- Generate the reviewed DOCX with
scripts/ielts-task2-review/create_review_docx.py. - Validate it with
scripts/ielts-task2-review/validate_review_docx.py. - Return the absolute path to the final reviewed DOCX. For a requested document, do not stop after presenting review text or JSON.
- If validation fails, fix the review plan or document and rerun validation before delivery.
IELTS Buddy Data Hand-off
IELTS Buddy currently exposes read-only writing records to external Agents. Keep local feedback and DOCX locally; formal submission and revisions remain in the browser.
Do not use a server operation that runs another teacher-style review. For rewrites, use ../writing-revision-loop/WORKFLOW.md locally; formal browser submissions remain user-owned.
When the learner asks to keep useful corrections or expressions, follow 批改表达进入词汇本. Select evidence-backed reusable chunks and call ielts_vocabulary_add with kind="word" and items: [{text, meaning}] when the learner requests saving them.
Workflow
- Identify the Task 2 prompt and the student's essay.
- Normal DOCX input should be an unreviewed student file containing the prompt, optional outline, and the student's essay.
- For a
.docx, first runscripts/ielts-task2-review/extract_task2_input.pyto separate the prompt, optional outline, and student essay. - Preserve
student_essay_paragraph_indicesfrom the extraction result and include it in the review plan. - Treat short outline bullets after the prompt as planning notes, not as the scored essay.
- Existing comments, italic rewrites, feedback, or model essays are not expected in normal use. If they are detected, treat them as accidental leftover material only; do not score, rewrite, or copy them as part of the student's essay.
- For pasted text, separate prompt and essay from headings, blank lines, or explicit labels.
- Check task fit before polishing language.
- If the essay content, position, or logic is significantly off-topic, mark this first in comments.
- Later italic rewrites and the final model essay must redirect the mistaken idea back to the task.
- Calibrate comment style before writing comments.
- Use
references/teacher_style.mdfor short anchored comments and realistic Band 7.5 rewrites. - Use the prompt wording to identify the task type before judging task response.
- Use
- Split the essay into review units.
- Use sentence-level units when problems are local.
- Use paragraph-level units when logic, task response, or coherence needs bigger repair.
- Add teacher-style comments.
- Comments must be short, Simplified Chinese, practical, and anchored to specific English words or phrases.
- A non-empty comment target must match text inside the selected student essay paragraph; do not fall back to prompt, outline, or the whole wrong paragraph.
- Prefer concrete notes:
偏口语,重复,不自然,可以更简洁,注意冠词,偏题,这里太笼统.
- Add italic rewrites after the relevant original unit.
- Rewrites should be concise, formal, natural, and at a stable Band 7.5 standard.
- Keep rewrites close to the student's intended meaning; avoid making local fixes sound like an over-polished Band 9 sample.
- Score the student's original essay strictly using
references/scoring_guide.md.- Score with bilingual learner-facing labels: 任务回应 Task Response, 连贯与衔接 Coherence & Cohesion, 词汇资源 Lexical Resource, 语法多样性与准确性 Grammatical Range & Accuracy, and 总分参考 Overall.
- For this teacher-style educational review, criterion scores and the estimated overall score may use whole or half bands, such as
6,6.5, or7. Use.5when the original essay sits between adjacent scoring anchors; do not force criterion scores to integers. - Do this before giving improvement advice.
- Give concise Band 7.5 / 8.0-oriented feedback.
- Separate issues blocking stable Band 7.5 from improvements needed to move toward 8.0.
- Keep this section short and focused.
- Write a 250-300 word model essay at a stable Band 8.0 standard.
- Use exactly four paragraphs:
- Introduction: paraphrase the prompt and state the essay's position.
- Body paragraph 1.
- Body paragraph 2.
- Conclusion: begin with
In conclusion.
- Leave one blank line between model essay paragraphs in the output DOCX.
- Align it with the scoring guide.
- Preserve the student's main position when it is on-topic and defensible.
- Correct any flawed or off-topic logic from the original draft.
- It must be strong enough for Band 8.0: a clear and well-developed position, relevant and well-extended support, well-managed cohesion, flexible topic vocabulary, and mostly error-free grammar.
- Keep it realistic and teacher-like, not an over-polished Band 9 essay.
- Use exactly four paragraphs:
- Generate and validate a reviewed
.docxby default.
- For input
MyEssay.docx, outputMyEssay(reviewed).docxin the same folder unless the user specifies another path. - For DOCX input, create the reviewed file by copying the original DOCX first.
- Write comments directly into the copied original essay paragraphs; do not create a second copy of the student's essay for comments.
- Anchor comments only inside extracted student essay paragraphs, never inside prompt or outline paragraphs.
- Insert italic rewrites immediately after the matched original essay paragraph.
- Keep the original prompt and student essay in place; do not repeat the task prompt.
- For pasted text, output to the current user's Desktop as
IELTS_Task2_Reviewed_YYYYMMDD_HHMM.docx. - Use Times New Roman for all added review text and comments.
- Use
Cyber Esmeas the Word comment author. - Do not add big visible section headings such as
Task,Reviewed Essay,Score, orModel Essay. - Preserve the original
word/document.xmlroot namespace declarations andmc:Ignorable; do not leave undeclared prefixes such asw14,w15,w16*, orwp14. - Insert a page break before the score and feedback page; keep the score lines and
冲刺 Band 7.5 / 8.0together; insert another page break before the model essay. - Never overwrite the original essay unless explicitly requested.
- Clean up temporary byproducts after a successful review.
- Delete temporary review plan files such as
review_plan_c17t3.json. - Prefer creating review plans in
系统临时目录or use--cleanup-planwhen runningscripts/ielts-task2-review/create_review_docx.py. - Do not delete source essays, final reviewed
.docxfiles, or bundled reference files.
Bundled Resources
references/teacher_style.md: teacher imitation rules for short anchored comments and rewrites.references/scoring_guide.md: concise, repository-owned Task 2 scoring guide.references/review_format.md: canonical reviewed document structure.scripts/ielts-task2-review/extract_task2_input.py: extract prompt, optional outline, and student essay from a Task 2 DOCX; it also protects against accidental leftover reviewed content.scripts/ielts-task2-review/create_review_docx.py: create a reviewed DOCX from a JSON review plan; DOCX input is copied first, comments are anchored into extracted student essay paragraphs, and score/model sections are appended.scripts/ielts-task2-review/validate_review_docx.py: verify comments, italic rewrites, student-essay paragraph comment anchoring when--input-docxis supplied, root namespace compatibility, score lines, retained冲刺 Band 7.5 / 8.0title, removed old headings, and model essay length/four-paragraph structure.
JSON Review Plan For DOCX Creation
When using scripts/ielts-task2-review/create_review_docx.py, first produce a JSON file with this shape:
{
"prompt": "Task prompt",
"student_essay_paragraph_indices": [12, 14, 16, 18],
"review_units": [
{
"original": "Student sentence or paragraph.",
"comments": [{"target": "specific phrase", "text": "中文短批注"}],
"rewrite": "Italic teacher-style improvement."
}
],
"scores": {
"任务回应 Task Response": "6.5",
"连贯与衔接 Coherence & Cohesion": "7",
"词汇资源 Lexical Resource": "6.5",
"语法多样性与准确性 Grammatical Range & Accuracy": "6.5",
"总分参考 Overall": "6.5"
},
"score_explanation": ["基于原文证据的简短中文评分说明。"],
"focus_feedback": ["优先修正语法准确性和自然搭配。"],
"model_essay": [
"Paragraph 1: introduction with paraphrase and position.",
"Paragraph 2: body paragraph 1.",
"Paragraph 3: body paragraph 2.",
"Paragraph 4: In conclusion, ..."
]
}
Scores are teacher-style estimates for the review output, so each criterion and Overall may be a whole band or a half band.
Then run:
python scripts/ielts-task2-review/create_review_docx.py review_plan.json --input-docx MyEssay.docx --cleanup-plan
python scripts/ielts-task2-review/validate_review_docx.py "MyEssay(reviewed).docx" --input-docx MyEssay.docx
For pasted text, omit --input-docx and the script will default to the Desktop output path.
If the review plan is a permanent example/reference file, omit --cleanup-plan.
Quality Bar
- The reviewed DOCX must contain real Word comments, not plain bracketed notes.
- At least the most important local issues must be anchored to specific text.
- Italic rewrites must appear after the original unit and be written at a stable Band 7.5 standard.
- The score must evaluate the original essay, not the revised essay.
- The model essay must be exactly 4 paragraphs with one blank line between paragraphs, 250-300 words, and should stand securely at Band 8.0 according to the scoring guide.
- The style should follow
references/teacher_style.md, not a generic IELTS tutor voice. - Record locally judged criterion evidence as
rubricwith canonical Writing codes from../skill-taxonomy.json; keep band estimates and cited text in event details. - Temporary files from the review process should be removed after successful validation.