本文へ移動
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.

インストール方法を見る

含まれるファイル(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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

このスキルの問題を報告する