跳到正文
cccskills
免费在 GitHub 公开

paper-format-agent

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.

中文简介正在准备中。当前显示原文说明。

集成工具Word
查看安装方法

包含的文件(74)

  • SKILL.md3.5 KB
  • .github/ISSUE_TEMPLATE/bug_report.md321 B
  • .github/ISSUE_TEMPLATE/config.yml394 B
  • .github/ISSUE_TEMPLATE/feature_request.md266 B
  • .github/ISSUE_TEMPLATE/format_rule_request.md883 B
  • .github/ISSUE_TEMPLATE/good_first_issue.md867 B
  • .github/ISSUE_TEMPLATE/reporting_improvement.md876 B
  • .github/ISSUE_TEMPLATE/skill_workflow_request.md581 B
  • .github/PULL_REQUEST_TEMPLATE.md869 B
  • .github/workflows/ci.yml821 B
  • .gitignore415 B
  • AGENTS.md1023 B
  • agents/openai.yaml276 B
  • CODE_OF_CONDUCT.md929 B
  • CONTRIBUTING.md3.9 KB
  • docs/ARCHITECTURE.md830 B
  • docs/BENCHMARK.md2.6 KB
  • docs/CONTRIBUTOR_TASKS.md3.2 KB
  • docs/MCP.md1.9 KB
  • docs/regression_manifest.sample.json412 B
  • docs/TEMPLATE_PACKS.md2.2 KB
  • docs/USAGE.md2.4 KB
  • examples/README.md1.1 KB
  • examples/sample_format_report.json1.2 KB
  • examples/sample_format_report.md817 B
  • examples/synthetic_format_guide.md1.0 KB
  • LICENSE1.1 KB
  • paper_format_agent/__init__.py83 B
  • paper_format_agent/__main__.py96 B
  • paper_format_agent/batch.py3.3 KB
  • paper_format_agent/calibration.py2.0 KB
  • paper_format_agent/cli.py6.1 KB
  • paper_format_agent/engines.py4.4 KB
  • paper_format_agent/gui.py24.8 KB
  • paper_format_agent/llm.py1.2 KB
  • paper_format_agent/mcp_server.py4.5 KB
  • paper_format_agent/ooxml.py786 B
  • paper_format_agent/pipeline.py37.1 KB
  • paper_format_agent/quality.py919 B
  • paper_format_agent/release_audit.py2.2 KB
  • paper_format_agent/rules.py7.4 KB
  • paper_format_agent/scorer.py24.2 KB
  • paper_format_agent/service.py7.9 KB
  • pyproject.toml1.7 KB
  • README.md3.8 KB
  • README.zh-CN.md3.8 KB
  • requirements.txt48 B
  • ROADMAP.md2.9 KB
  • run_gui.py175 B
  • SDD.md2.7 KB
  • SECURITY.md468 B
  • server.json616 B
  • templates/chinese-thesis-basic.json1.7 KB
  • templates/ieee-conference-basic.json1.8 KB
  • templates/journal-article-basic.json1.7 KB
  • templates/README.md1.7 KB
  • tests/test_abstract_variants.py4.8 KB
  • tests/test_batch.py2.4 KB
  • tests/test_benchmark_text_survival.py1.5 KB
  • tests/test_ieee_synthetic.py4.6 KB
  • tests/test_pipeline_guard.py5.4 KB
  • tests/test_quality.py1.1 KB
  • tests/test_release_audit.py2.0 KB
  • tests/test_rules.py1.8 KB
  • tests/test_scorer_diagnostics.py2.9 KB
  • tests/test_service.py2.8 KB
  • tests/test_skill_metadata.py280 B
  • tests/test_templates.py1.8 KB
  • tools/benchmark_text_survival.py8.9 KB
  • tools/compile_check.py1002 B
  • tools/demo_content_guard.py3.2 KB
  • tools/regression_runner.py3.6 KB
  • tools/release_audit.py2.3 KB
  • tools/validate_skill.py2.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

  1. 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.
  2. 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
  1. 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.
  2. Check the content guard fields in format_report.json:
    • content_changed should normally be false.
    • content_guard_enforced should normally be true.
  3. 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:

  1. Content changed unexpectedly.
  2. Required sections or headings were misclassified.
  3. Page setup, margins, fonts, or line spacing are wrong.
  4. Captions, references, tables, or numbering look wrong.
  5. 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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

报告此技能的问题