content-refinement-agent

content-refinement-agent is a skill for Claude Code, Codex from woodfishhhh/EZ_math_model. It costs 104 tokens per session (3,060 once invoked), scanned A, a copy of content-refinement-agent, MIT.

A paper-editing step from PaperOrchestra that simulates peer review, revises the draft, and keeps snapshots of each attempt. LaTeX is a document format commonly used for research papers.

In plain words
What is it for?
Use it to review and revise a research paper, check claims against an experiment log and approved bibliography, and produce a final LaTeX file and PDF.
Why use it?
It helps find weaknesses, unsupported claims, formatting problems, and inconsistencies before submission. Saved snapshots make it possible to identify and retain the best accepted version.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/woodfishhhh/ez_math_model/content-refinement-agent
Any agent
npx skills add woodfishhhh/EZ_math_model --skill content-refinement-agent
Clone the repo
git clone --depth 1 https://github.com/woodfishhhh/EZ_math_model

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for content-refinement-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/woodfishhhh/ez_math_model/content-refinement-agent.svg)](https://agentmods.dev/skills/woodfishhhh/ez_math_model/content-refinement-agent)
Your own site
<a href="https://agentmods.dev/skills/woodfishhhh/ez_math_model/content-refinement-agent"><img src="https://agentmods.dev/badge/skills/woodfishhhh/ez_math_model/content-refinement-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,060 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.03060
Opus 5 $0.00052 $0.01530
Sonnet 5 $0.00021 $0.00612
Haiku 4.5 $0.00010 $0.00306

Measured 5d ago against content hash 805b4779987a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

content-refinement-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/apply_worklog.py, scripts/score_delta.py, scripts/score_trajectory.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to content-refinement-agent — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/ez-math-model/external/paper-orchestra/skills/content-refinement-agent/SKILL.md · 296 lines

How it starts

The opening of the file, as written. The whole thing — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Content Refinement Agent (Step 5)

Faithful implementation of the Content Refinement Agent from PaperOrchestra (Song et al., 2026, arXiv:2604.05018, §4 Step 5, App. F.1 pp. 49–51).

Cost: ~5–7 LLM calls (App. B), typically ~3 refinement iterations, each consisting of one reviewer call and one revision call.

The paper highlights this step as one of the largest contributors to overall quality: refinement alone accounts for +19% (CVPR) and +22% (ICLR) absolute acceptance-rate improvement (Fig. 4). Get this step right.

Inputs

  • workspace/drafts/paper.tex — output of Step 4
  • workspace/inputs/conference_guidelines.md
  • workspace/inputs/experimental_log.md — used as ground truth for the hallucination check
  • workspace/citation_pool.json / workspace/refs.bib — the allowed bibliography

Outputs

  • workspace/refinement/iter1/, iter2/, iter3/ — per-iteration snapshots containing paper.tex, paper.pdf, review.json, score.json
  • workspace/refinement/worklog.json — append-only history of decisions
  • workspace/final/paper.tex and workspace/final/paper.pdf — copy of the best accepted snapshot

The refinement loop

prev_score = score(paper.tex)                  # baseline from initial draft
snapshot iter0/

for iter in 1..ITER_CAP (default 3):
    1. simulate_review(paper.tex) → review.json
       (uses `references/reviewer-rubric.md` rubric)

    2. apply_revision(paper.tex, review.json) → new_paper.tex
       (uses verbatim Refinement Agent prompt at `references/prompt.md`)

    3. snapshot iter<N>/ with new_paper.tex, review.json
       latexmk -pdf new_paper.tex → iter<N>/paper.pdf

    4. score(new_paper.tex) → curr_score

    5. decide via score_delta.py:
       - if curr.overall > prev.overall:                       ACCEPT
       - elif curr.overall == prev.overall and net_subaxis ≥0: ACCEPT
       - else:                                                 REVERT

    6. apply_worklog.py to append the decision

    7. if REVERT or no actionable weaknesses or iter == ITER_CAP: HALT

    paper.tex ← new_paper.tex   (only on ACCEPT)
    prev_score ← curr_score

cp <best iter>/paper.tex → workspace/final/paper.tex

Read the full file on GitHub · 296 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 296 lines · 104 tokens per session scan A 805b4779987a

Subscribe to this mod's changes

content-refinement-agent is a skill published in the GitHub repository woodfishhhh/EZ_math_model (40 stars, last pushed 1mo ago), licensed MIT. It adds 104 tokens to every session and 3,060 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to content-refinement-agent, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

math-modeling-solver

数学建模竞赛解题全流程指导。覆盖国赛(CUMCM)和美赛(MCM/ICM)全部题型(A-F),提供12种问题本质分析、95+场景模型决策矩阵、5本算法Cookbook、11本完整例题Playbook、22个Python+7个MATLAB可运行代码模板。与math-modeling-paper形成"解题→写作"配对。当用户提及建模思路、选什么模型、怎么建模、赛题求解、粘贴赛题文本、美赛/国赛题目分析、CVaR/NSGA-II/Monte Carlo/时间序列/ANOVA/灰色关联、网络流/图论/生态建模、模型命名/Memo/Letter/Our Work流程图时,使用此skill。.

Lupynow/math-modeling-skills · 186 tokens

mathmodel-skill

CUMCM 国赛、MCM/ICM 美赛与电工杯数学建模竞赛的端到端协作工作流。Use when a user explicitly works on one of these modeling contests or asks to run/review a modeling-competition paper from problem selection through modeling, solving, robustness, writing, compliance, and final submission review. Provides 10 stages, persistent decision state…

handsomeZR-netizen/mathmodel-skill · 127 tokens

math-modeling-paper

数学建模竞赛论文写作全流程指导。覆盖国赛(CUMCM)和美赛(MCM/ICM),从论文结构规划、各章节撰写、模型检验、参考文献规范到最终格式检查。与math-modeling-solver形成"解题→写作"配对——可接收solver输出的论文草稿片段直接展开写作。当用户提及数学建模论文写作、建模比赛、国赛/美赛/电工杯/亚太杯/深圳杯/华为杯论文、CUMCM、MCM/ICM、数模论文结构、摘要写作、模型检验、灵敏度分析、latex建模模板、word建模排版、Memo/Letter写作、模型命名、Our Work流程图,或需要写/修改/优化/检查建模论文的任何部分时,都必须使用此 skill。.

Lupynow/math-modeling-skills · 202 tokens

interpret-modeling-problems

根据原始赛题和附件,生成可回查证据的国赛及类似数学建模赛题解读,建立小问输入输出、约束与歧义、附件审计、模型蓝图、验证方案和论文交付接口。适用于选题比较、正式建模前的完整解读和已有解读复核;不用于在缺少原题时臆测题意,也不把候选模型伪装成已经验证的数值求解。.

zhoufz021/interpret-modeling-problems · 114 tokens

1start-mathmodel

数学建模国赛(CUMCM)工作流入口。用于启动完整建模流程:询问用户偏好,生成 plan.md 和 todo.md,并按阶段调用赛题分析、建模、代码与图表、流程图、论文撰写、验证验收等 skills。.

LiXiang106991/MathModelAgent · 69 tokens

math-modeling-finalizer

数学建模项目收口与终审 Skill。用于正式结果已基本冻结后的参赛者尺度代码简化与行为回归、最终完整复审、AI 工具使用详情 DOCX、Word/PDF 排版检查、支撑材料 ZIP 与提交前卫生检查。典型请求包括“结果已经定了,把代码改得更像学生项目”“最后完整审一遍”“检查最终 Word/PDF”“生成 AI 使用详情和支撑材料”。若需要重新建模、修改 evaluator 或正式结果,路由回 math-modeling-solver;正文、摘要、引用语义或公式写作问题路由回 math-modeling-paper;提交后的项目复盘/教学交给 math-modeling-growth。.

mantou6666/Math-Modeling-Agent-Flow · 160 tokens