Ar9av/PaperOrchestra / skills/content-refinement-agent
content-refinement-agent
VerifiedStep 5 of the PaperOrchestra pipeline (arXiv:2604.05018). Iteratively refine drafts/paper.tex by simulating peer review and applying targeted revisions, with strict accept/revert halt rules, deterministic 0-100 decision bands (Accept/Minor/Major/Reject) that drive a target-met early stop, and a Devil's Advocate concession-threshold guard that blocks acceptance on unresolved critical findings. Maintains a worklog and snapshots each iteration so revert is real, not symbolic. TRIGGER when the orchestrator delegates Step 5 or when the user asks to "refine the draft", "iterate on the paper", or "run peer review on this paper".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 19.3 KB |
| references/ai-failure-modes.md | markdown | 813 B |
| references/claim-evidence-map.md | markdown | 3.1 KB |
| references/da-reviewer.md | markdown | 3.9 KB |
| references/halt-rules.md | markdown | 6.1 KB |
| references/prompt.md | markdown | 5.7 KB |
| references/reverse-outline.md | markdown | 3.0 KB |
| references/reviewer-rubric.md | markdown | 6.8 KB |
| references/safe-revision-rules.md | markdown | 4.8 KB |
| references/writing-quality-check.md | markdown | 720 B |
| scripts/apply_worklog.py | script | 3.1 KB |
| scripts/concession_guard.py | script | 7.5 KB |
| scripts/decision_band.py | script | 3.6 KB |
| scripts/reverse_outline.py | script | 10.3 KB |
| scripts/score_delta.py | script | 7.2 KB |
| scripts/score_trajectory.py | script | 8.6 KB |
| scripts/snapshot.py | script | 1.6 KB |
| scripts/test_reverse_outline.py | script | 5.7 KB |
| scripts/update_critique_memory.py | script | 11.1 KB |
scripts/snapshot.py
View on GitHub#!/usr/bin/env python3
"""
snapshot.py — Copy a paper.tex (and optionally paper.pdf) into a refinement
iteration directory, so reverts are real, not symbolic.
The PaperOrchestra refinement halt rules require the loop to roll back to
the previous iteration on overall-score decrease or tied negative sub-axis
delta. To do that physically, every iteration's draft must be preserved.
Usage:
python snapshot.py --src paper.tex --dst iter2/
python snapshot.py --src paper.tex --src-pdf paper.pdf --dst iter2/
"""
import argparse
import os
import shutil
import sys
def main() -> int:
p = argparse.ArgumentParser(description=__doc__)
p.add_argument("--src", required=True, help="source paper.tex path")
p.add_argument("--src-pdf", help="optional source paper.pdf path")
p.add_argument("--dst", required=True, help="destination iteration directory")
args = p.parse_args()
if not os.path.isfile(args.src):
print(f"ERROR: {args.src} not found", file=sys.stderr)
return 1
os.makedirs(args.dst, exist_ok=True)
dst_tex = os.path.join(args.dst, "paper.tex")
shutil.copy2(args.src, dst_tex)
print(f"OK: snapshot {args.src} → {dst_tex}")
if args.src_pdf:
if not os.path.isfile(args.src_pdf):
print(f"WARN: {args.src_pdf} not found, skipping PDF snapshot",
file=sys.stderr)
else:
dst_pdf = os.path.join(args.dst, "paper.pdf")
shutil.copy2(args.src_pdf, dst_pdf)
print(f"OK: snapshot {args.src_pdf} → {dst_pdf}")
return 0
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |