AgentSkillsCN

Paper Revision Workflow

论文修订工作流

SKILL.md

Paper Revision Workflow

Overview

FieldValue
Date2026-02-01
ObjectiveSystematically revise research paper for data accuracy, structural quality, and tone consistency
Outcome✅ Success - 9 data corrections, 2 structural trims, complete tone unification across §9-§12
Task TypeMulti-phase document revision with ground-truth validation
VerificationAll numerical claims verified against source data files

When to Use This Skill

Use this skill when you need to:

  • Revise research papers or technical documents with multiple authors/sections that have inconsistent voice
  • Validate numerical claims against ground-truth data sources (CSV, JSON, databases)
  • Trim bloated sections while preserving key information and maintaining readability
  • Unify tone across document sections written by different people or AI systems
  • Fix factual errors systematically using a verification checklist

Trigger patterns:

  • "Review this paper for accuracy and consistency"
  • "The tone in sections X-Y doesn't match the rest"
  • "Verify all the numbers in this document"
  • "This section is too long and formal, make it conversational"

Verified Workflow

Phase 1: Planning and Data Validation

  1. Create comprehensive plan with specific line numbers and fix categories:

    • Data corrections (DC-1, DC-2, etc.) with exact line numbers
    • Structural fixes (trim targets, duplicate removal)
    • Tone unification targets (sections to rewrite)
    • Reference fixes
  2. Read ground-truth data sources first:

    bash
    # Verify numerical claims against source data
    Read summary.json
    Read runs.csv
    Read judges.csv
    
  3. Create verification table mapping claims to data sources:

    code
    | Claim | Source File | Actual Value | Status |
    |-------|-------------|--------------|--------|
    | T5 CoP = $0.065 | summary.json:49 | 0.06531415 | ✓ |
    

Phase 2: Data Corrections

Strategy: Fix factual errors first, before structural/tone changes

  1. Make atomic edits for each data correction:

    • One Edit call per fix
    • Verify exact string match before editing
    • If text has changed, re-read the section first
  2. Common data correction patterns:

    • Model names: "Sonnet 4" → "Sonnet 4.5" (check all references)
    • Voice consistency: "we/our" → "I/my" (for single-author papers)
    • Numerical precision: Round to match source data precision
    • Typos: "mentiooned" → "mentioned"

Phase 3: Structural Fixes

Strategy: Remove bloat and duplicates, trim verbose sections

  1. Delete duplicates:

    • Use Read with offset and limit to locate exact duplicate sections
    • Delete entire subsections if they repeat content elsewhere
  2. Trim verbose sections (e.g., §11 from 100 lines → 13 lines):

    • Identify core message (3-5 key findings)
    • Rewrite in conversational prose without bullet lists
    • Remove Q&A formats, labeled hypotheses, redundant examples

Trimming pattern:

code
Before (verbose):
**Q1: Is it possible to quantify...?**
**A1**: Yes. Cost-of-Pass quantifies...

After (concise):
Did I answer my original questions? Partially. CoP lets me quantify efficiency...

Phase 4: Tone Unification

Strategy: Match author's established voice from earlier sections

  1. Analyze author voice from sections NOT being edited:

    • First person singular ("I", contractions)
    • Direct/blunt assessments ("Here's the thing:", "nail this test")
    • Short punchy paragraphs (2-4 sentences)
    • Rhetorical questions, em-dashes for asides
    • No bold-label-every-paragraph
  2. Rewrite patterns to avoid:

    • **Bold Label**: analysis... → conversational flow
    • "This suggests", "may stem from" → direct statements or delete
    • Speculation about model internals → observable behavior only
    • Academic hedging → confident assertions (when data supports)
  3. Rewrite patterns to use:

    • "Here's the kicker:" / "Here's the thing:"
    • "X hands out Y like candy"
    • Contractions: "I'll", "it's", "don't", "can't"
    • Direct comparisons: "T6 costs the most despite scoring the lowest"

Phase 5: Verification

  1. Run automated checks:

    bash
    # No placeholders
    grep -c "FIXME\|<placeholder>\|<insert" docs/paper.md  # Should be 0
    
    # No duplicate sections
    grep -n "### 12.1" docs/paper.md  # Should appear once
    
    # Data claims match source
    jq '.by_tier.T5.cop' summary.json  # Compare to paper
    
  2. Manual spot-checks:

    • Read 3-5 paragraphs from rewritten sections
    • Verify tone matches author voice
    • Check numerical precision (3 decimal places? 2?)

Failed Attempts & Lessons Learned

❌ Failed: Editing without reading first

What happened: Attempted to edit line 65 text about "we are not evaluating" but got "String to replace not found" error.

Why it failed: The exact text had minor differences ("we are" vs actual "I'm") that I didn't catch without reading first.

Lesson: Always Read the specific section with offset and limit before editing, even if you think you know the content. Copy exact text from Read output.

❌ Failed: Guessing file paths for verification data

What happened: Tried to verify duration with cd docs/paper-dryrun/data && awk ... but got "No such file or directory".

Why it failed: Assumed data files were in docs/paper-dryrun/data/ based on paper references, but actual files were in project root.

Lesson: Use find . -name "filename.csv" to locate data files before running verification commands. Don't trust document references for actual file paths.

⚠️ Partial Success: Trimming sections too aggressively

What happened: Trimmed §11 from ~100 lines to ~13 lines (target was ~30 lines). Trimmed §12 from ~185 lines to ~13 lines (target was ~40 lines).

Why it worked anyway: Quality over quantity—the concise versions preserved all key findings while improving readability. Author voice favors brevity.

Lesson: When trimming verbose academic prose, err on the side of brevity if the author voice is conversational. Don't be afraid to cut more than the target if the result is stronger.

✅ Success: Parallel data validation before editing

What worked: Reading summary.json, runs.csv, and judges.csv in parallel at the start to verify all numerical claims before making any edits.

Why it worked: Caught all 9 data errors upfront instead of discovering them incrementally. Prevented need to re-read paper multiple times.

Lesson: Front-load verification. Read all data sources first, create a verification table, then execute fixes systematically.

Results & Parameters

Document Statistics

Before:

  • §11 Conclusions: ~100 lines (verbose Q&A format)
  • §12 Further Work: ~185 lines (bash commands, protocol specs)
  • Tone inconsistency: §9-§12 formal academic, §1-§8 conversational
  • 9 factual errors (model names, durations, grade counts)

After:

  • §11 Conclusions: ~13 lines (conversational narrative)
  • §12 Further Work: ~13 lines (focused directional paragraphs)
  • Tone unified: consistent first-person conversational throughout
  • 0 factual errors (verified against ground truth)

Verification Results

bash
# All checks passed:
grep -c "FIXME\|<placeholder>" docs/paper.md  # → 0
grep -n "Sonnet 4[^.]" docs/paper.md          # → 0 (all fixed to 4.5)
grep -n "### 12.1" docs/paper.md              # → 1 (duplicate removed)

# Data verification:
jq '.by_tier.T5.cop' summary.json              # → 0.06531415 ✓
jq '.by_tier.T6.mean_score' summary.json       # → 0.9433333 ✓
awk 'NR>1 {sum+=$11}' runs.csv                 # → 1288.82s ✓
grep "claude-sonnet" judges.csv | grade count  # → 4/7 S grades ✓

Key Patterns for Tone Conversion

Academic → Conversational:

code
Before: **Observation**: T6 (everything enabled) is the most expensive...
After:  Here's the kicker: T6 costs the most despite scoring the lowest...

Before: **Haiku is the easy grader**: Awards S (superior) grades in 5/7 tiers...
After:  Haiku hands out S grades like candy—5 out of 7 tiers got perfect scores.

Before: **Token Efficiency Chasm confirmed**: T6 requires 218K cache read tokens...
After:  The Token Efficiency Chasm I talked about in Section 4? Confirmed.

Git Workflow

bash
# Branch naming
git checkout -b skill/evaluation/parallel-metrics-integration

# Commit message pattern (conventional commits)
git commit -m "docs(paper): Fix data errors, improve structure, and unify tone

Data corrections:
- Fix model names, durations, counts
- Fix voice consistency

Structural improvements:
- Delete duplicates, trim verbose sections

Tone unification:
- Remove bold-label pattern
- Change 'we' → 'I'
- Conversational rewrite

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>"

# PR creation
gh pr create --title "..." --body "..." --label "documentation"

Related Skills

  • documentation-patterns - Best practices for skill documentation
  • validation-workflow - CI/CD for validating changes
  • Research paper writing workflows (TBD)
  • Academic-to-conversational tone conversion (TBD)

References

  • Original implementation: PR #335
  • Session transcript: ~/.claude/projects/-home-mvillmow-ProjectScylla/cb7fbebb-a81a-4790-ad6d-046ae8403320.jsonl
  • Revised paper: docs/paper.md
  • Ground truth data: summary.json, runs.csv, judges.csv