Proofread, correct, and assess EFL (English as a Foreign Language) student writing, producing two professional Word documents: a Teacher Assessment and a Student Feedback document. Use this skill whenever the user uploads a photo/screenshot of student handwriting, pastes student text, or asks to correct/assess/grade student writing. Also triggers when the user mentions SRDP, Schularbeit, Matura writing, B1/B2 assessment, writing rubric, student errors, or EFL correction. Handles formal emails, blog posts, articles, letters, reports, narratives, and argumentative essays. Works with handwritten scans (OCR transcription first) or typed text. If the user uploads what looks like student writing — especially handwritten — use this skill.
Generate two professional .docx documents from student writing samples: a Teacher Assessment (with SRDP rubric evaluation) and a Student Feedback document (with detailed error explanations). Both documents use the same visual system: annotated original text with inline error marking, two-column correction tables, and natural prose analysis.
Before writing any code, read these files in order:
/mnt/skills/public/docx/SKILL.md — docx-js patterns for document creation, tables, validationreferences/gold-standard-reference.md — Complete formatting specs, iteration decisions, exact data structures, colour codes, DXA dimensions, and a worked example with all corrections. This is the definitive reference for what the output should look like.references/generate_v4_teacher.js and references/generate_v4_student.js — Working code that produced the gold standard v4 documents. Use these as the implementation template. Adapt the data (error spans, corrections, explanations) to each new student text, but preserve the document structure, table layouts, colour system, and formatting exactly./mnt/project/Beurteilungsraster_B1_und_Begleittext.pdfreferences/rubric-guide.mdBefore generating documents, perform complete analysis:
Generate two .docx files using the structure defined below, then validate and present both.
A two-column table with no visible borders (transparent/none):
Left column (≈70% width): Student's original text preserving their actual line breaks from handwriting. Within the text:
FFF0F0).▶ BP1: at the start of where a bullet point is addressed, ◀ BP1 at the end. Use the BP's assigned colour. These show the student/teacher exactly where task requirements are covered.Right column (≈30% width): Error type codes in their assigned colours (e.g. [GR-AGR] [PUNCT]), right-aligned. Teacher version also includes task markers like [TT], [COH].
Above the table: Legend explaining BP markers and (for student version) a simplified label key.
A two-column table with light borders:
| Left column: Corrected Text | Right column: Explanation |
|---|---|
Full sentence with only changes in bold green (065F46) | Why the change was made, with error type codes |
—FFFBEB)Same two-column format. Shows changes from the minimal version in bold green. Right column explains what was improved and why.
Error Pattern Summary: Natural prose paragraphs (not bullet lists) identifying dominant error patterns, L1 interference, and remediation priorities.
SRDP Rubric Assessment:
A natural, connected message to the student (not bullet points). Written as prose paragraphs that:
Use these codes consistently. Each has an assigned colour for inline marking:
| Code | Colour | Category |
|---|---|---|
GR-AGR | CC0000 (red) | Grammar: Subject-Verb Agreement |
GR-SYN | CC0000 | Grammar: Syntax / Sentence Structure |
GR-MOD | CC0000 | Grammar: Modal Verb Error |
GR-WO | CC0000 | Grammar: Word Order |
GR-REL | CC0000 | Grammar: Relative Pronoun |
SP | E74C3C (red) | Spelling |
SP-PL | E74C3C | Spelling / Plural Form |
PUNCT | E08600 (orange) | Punctuation |
CONV | D45500 (dark orange) | Convention (email/letter format) |
PREP | 2B5797 (blue) | Preposition Error |
ART | 2B5797 | Article / Preposition |
COLL | 7B2D8E (purple) | Collocation / Idiomatic Fit |
WC | B91C1C (dark red) | Word Choice (Wrong Word) |
WC-SEM | 7B2D8E | Word Choice: Semantic Mismatch |
REG | 666666 (grey) | Register (Formal/Informal) |
REP | 7B2D8E | Repetition |
STYLE | 666666 | Style (Improved Version Only) |
Task achievement markers (teacher version):
| Code | Colour | Meaning |
|---|---|---|
TT | CC6600 | Text Type Features |
COH | 6B008B | Cohesion & Coherence |
Bullet point markers (both versions):
| Code | Colour | Meaning |
|---|---|---|
BP1 | B8860B | First required content point |
BP2 | 1E5AA8 | Second required content point |
BP3 | 1B7A3D | Third required content point |
Add BP4, BP5 etc. if the task has more content points, using distinct colours.
Reference: /mnt/project/Beurteilungsraster_B1_und_Begleittext.pdf
width: 11906, height: 16838 DXAtop: 1080, right: 1440, bottom: 1080, left: 1440size: 20 in half-points)9026 DXA6426–6626, right 2400–26005226, right 38005000 (two columns: 3800 + 1200)065F46FFFBEBFFF8F0 (changed) or FAFAFA (unchanged)1F2937 (dark) with white text3741516B7280 or 9CA3AFD1D5DBBorderStyle.NONE)E0E0E0) on corrections tablescolumnWidths on table AND width on each cellShadingType.CLEAR never SOLIDWidthType.DXA never percentagespython scripts/office/validate.py{initials} | {grade} | {task type} (centred, grey, 8pt){initials} | {task type} | {level} (centred, grey, 8pt)Professional, technical, precise. Use linguistic terminology (L1 interference, collocation, SV agreement). Reference SRDP descriptors by number. Natural prose for analysis sections — no corporate bullet points.
Clear, direct, educational. Explain rules with examples. Reference German (L1) where it helps understanding. No patronising encouragement or motivational fluff unless the teacher requests it. The goal is a self-contained learning resource the student can study independently.
/justfix → Only: annotated text + minimal corrections table. No improved version, no rubric./minimal → Annotated text + minimal corrections + explanations. No improved version./rubric → Only SRDP rubric assessment (skip corrections)./student-only → Generate only the student feedback document./teacher-only → Generate only the teacher assessment document.