Community编程与开发github.com

Teaching-Works-Lab/exam-word-skill

高校试卷 Word 对比与规范化 Skill|Codex skill for exam Word comparison and template normalization.

exam-word-skill 是什么?

exam-word-skill is a Codex agent skill that 高校试卷 Word 对比与规范化 Skill|Codex skill for exam Word comparison and template normalization.

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add Teaching-Works-Lab/exam-word-skill

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

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:

  1. Document Comparison: Detect structural and textual differences between two exam Word files.
  2. 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

相关技能