name: paper-format-agent
description: Use this skill when a user needs to inspect, score, repair, or regression-test academic paper formatting in DOCX files, especially thesis, journal, or conference documents with a separate format specification. The skill guides Codex through local-first document handling, rule extraction, formatting repair, report review, and contribution-safe validation.
Paper Format Agent
Use this skill for local-first academic document formatting work. It is designed for .docx papers and a separate format specification in .docx, .doc, or .txt.
Safety Defaults
- Never upload private papers or format guides to external services unless the user explicitly asks for it.
- Treat student papers, manuscripts, reviewer comments, and school templates as sensitive data.
- Do not change academic content unless the user explicitly opts in. Default to formatting-only changes.
- Keep reports and generated documents in a user-provided output directory.
Standard Workflow
- Confirm the input files:
--format-file: format guide or template text.
--paper-file: source paper, currently .docx.
--out-dir: output directory for reports and generated documents.
- Run the CLI in formatting-only mode:
python -m paper_format_agent.cli \
--format-file "format_guide.docx" \
--paper-file "paper.docx" \
--out-dir "./output" \
--engine auto \
--strict-required-sections
- Inspect generated artifacts:
formatted_paper_v3.docx: repaired document.
format_rules.json: extracted rules.
format_report.json: machine-readable score and checks.
format_report.html: human-readable report.
modify_log.json: formatting operations.
engine_report.json: post-processing engine result.
- Check the content guard fields in
format_report.json:
content_changed should normally be false.
content_guard_enforced should normally be true.
- If a rule is wrong, update rule extraction or scoring logic and add a minimal test case.
Validation
Run these before handing work back:
python tools/validate_skill.py
python -m unittest discover -s tests -p "test_*.py"
python tools/compile_check.py
python tools/release_audit.py
When Adding Template Support
- Add the smallest representative rule text needed to reproduce the behavior.
- Prefer deterministic rule extraction over LLM-only interpretation.
- Add tests for extracted margins, font size, line spacing, required sections, headings, captions, or references.
- Do not commit real student documents. Use synthetic text or anonymized fixtures.
When Reviewing Output
Read format_report.json first, then inspect format_report.html if the user needs a human-readable summary. Prioritize issues in this order:
- Content changed unexpectedly.
- Required sections or headings were misclassified.
- Page setup, margins, fonts, or line spacing are wrong.
- Captions, references, tables, or numbering look wrong.
- Report wording or score explanation is unclear.
Contribution-Friendly Tasks
Good first PRs usually fit one of these buckets:
- Add a synthetic test for a school, journal, or conference formatting rule.
- Improve a rule extractor with a narrowly scoped regex or parser.
- Improve report clarity without changing scoring semantics.
- Add a regression case to
docs/regression_manifest.sample.json.
- Improve this skill workflow or
agents/openai.yaml metadata.
Source: zxyasfas/paper_format_agent — distributed by TomeVault.
1---2name: zxyasfas-paper-format-agent-paper-format-agent3description: ---4---5---6name: paper-format-agent7description: Use this skill when a user needs to inspect, score, repair, or regression-test academic paper formatting in DOCX files, especially thesis, journal, or conference documents with a separate format specification. The skill guides Codex through local-first document handling, rule extraction, formatting repair, report review, and contribution-safe validation.8---910# Paper Format Agent1112Use this skill for local-first academic document formatting work. It is designed for `.docx` papers and a separate format specification in `.docx`, `.doc`, or `.txt`.1314## Safety Defaults1516- Never upload private papers or format guides to external services unless the user explicitly asks for it.17- Treat student papers, manuscripts, reviewer comments, and school templates as sensitive data.18- Do not change academic content unless the user explicitly opts in. Default to formatting-only changes.19- Keep reports and generated documents in a user-provided output directory.2021## Standard Workflow22231. Confirm the input files:24 - `--format-file`: format guide or template text.25 - `--paper-file`: source paper, currently `.docx`.26 - `--out-dir`: output directory for reports and generated documents.272. Run the CLI in formatting-only mode:2829```bash30python -m paper_format_agent.cli \31 --format-file "format_guide.docx" \32 --paper-file "paper.docx" \33 --out-dir "./output" \34 --engine auto \35 --strict-required-sections36```37383. Inspect generated artifacts:39 - `formatted_paper_v3.docx`: repaired document.40 - `format_rules.json`: extracted rules.41 - `format_report.json`: machine-readable score and checks.42 - `format_report.html`: human-readable report.43 - `modify_log.json`: formatting operations.44 - `engine_report.json`: post-processing engine result.454. Check the content guard fields in `format_report.json`:46 - `content_changed` should normally be `false`.47 - `content_guard_enforced` should normally be `true`.485. If a rule is wrong, update rule extraction or scoring logic and add a minimal test case.4950## Validation5152Run these before handing work back:5354```bash55python tools/validate_skill.py56python -m unittest discover -s tests -p "test_*.py"57python tools/compile_check.py58python tools/release_audit.py59```6061## When Adding Template Support6263- Add the smallest representative rule text needed to reproduce the behavior.64- Prefer deterministic rule extraction over LLM-only interpretation.65- Add tests for extracted margins, font size, line spacing, required sections, headings, captions, or references.66- Do not commit real student documents. Use synthetic text or anonymized fixtures.6768## When Reviewing Output6970Read `format_report.json` first, then inspect `format_report.html` if the user needs a human-readable summary. Prioritize issues in this order:71721. Content changed unexpectedly.732. Required sections or headings were misclassified.743. Page setup, margins, fonts, or line spacing are wrong.754. Captions, references, tables, or numbering look wrong.765. Report wording or score explanation is unclear.7778## Contribution-Friendly Tasks7980Good first PRs usually fit one of these buckets:8182- Add a synthetic test for a school, journal, or conference formatting rule.83- Improve a rule extractor with a narrowly scoped regex or parser.84- Improve report clarity without changing scoring semantics.85- Add a regression case to `docs/regression_manifest.sample.json`.86- Improve this skill workflow or `agents/openai.yaml` metadata.8788---89> Source: [zxyasfas/paper_format_agent](https://github.com/zxyasfas/paper_format_agent) — distributed by [TomeVault](https://tomevault.io).90<!-- tomevault:4.0:skill_md:2026-06-29 -->