exam-word-skill 是做什么的?
A Codex skill for comparing and normalizing exam Word documents (.docx) used in Chinese university exam papers.
Overview
This skill enables AI agents to perform two main tasks:
- Document Comparison: Detect structural and textual differences between two exam Word files.
- Template Normalization: Reformat a given exam document to adhere to a defined standard template.
Features
- Compares headings, paragraphs, tables, and other elements.
- Highlights additions, deletions, and modifications in a structured report.
- Applies standard formatting rules (e.g., font family, size, margins).
- Supports batch processing for multiple files.
Usage
Prerequisites
- Python 3.9+
- Install dependencies:
pip install python-docx
Comparison
python compare.py --original old_exam.docx --revised new_exam.docx --output report.md
Normalization
python normalize.py --input draft_exam.docx --template template.docx --output final_exam.docx
Platform Support
- Codex: Fully supported via Python execution.
- Claude Code: Compatible with minor adjustments.
- Cursor: Use with custom command bindings.
How It Works
The skill parses .docx files using python-docx, extracts structural elements (sections, paragraphs, tables), and compares them based on XML structure or text content. For normalization, it overwrites style definitions with those from a template document, preserving only the original text.
License
MIT