Paper plan

From Chanw-research/claude-code-paper-writing · View interactive version

Paper plan is an AI agent skill from the GitHub repository Chanw-research/claude-code-paper-writing. Compile a paper outline from the claim graph — evidence map → narrative structure → section plan + figure plan + citation plan, Review LLM review mandatory

How to use this skill

Skill file

/paper-plan

Compile a paper outline from the wiki's claim graph.

Input target claims (status: supported or weakly_supported), specify the target venue,

compile an evidence map from the wiki → determine narrative structure → generate a section outline + figure plan + citation plan.

Review LLM review is a mandatory step (acting as area chair to assess outline persuasiveness).

Output PAPER_PLAN.md to wiki/outputs/.

Key distinction: the outline is claim-graph-driven — each section exists because it supports a claim,

not because paper convention requires that section.

Inputs

Outputs

Wiki Interaction

Reads

Writes

Graph edges created

Workflow

Precondition: confirm the working directory is the wiki project root (the directory containing wiki/, raw/, tools/).

Step 1: Load Claim Graph

  1. Read wiki/claims/{slug}.md for all target claims
  2. For each claim, collect its evidence list:
  1. For each evidence source, read the corresponding wiki page:
  1. Load relevant edges from wiki/graph/edges.jsonl to build relationships between claims
  2. Read wiki/graph/context_brief.md for global context
  3. Read wiki/graph/open_questions.md to annotate known limitations

Validation:

Step 2: Compile Evidence Map from Wiki

Generate a structured matrix mapping claims → evidence → sections:

| Claim | Status | Confidence | Evidence Sources | Strength | Paper Section |
|-------|--------|-----------|-----------------|----------|---------------|
| [[primary-claim]] | supported | 0.85 | exp-main, paper-A | strong | Method + Exp 5.2 |
| [[supporting-claim-1]] | supported | 0.75 | exp-ablation-1 | moderate | Exp 5.3 (Ablation) |
| [[supporting-claim-2]] | weakly_supported | 0.55 | exp-scaling | weak | Exp 5.4 (Scaling) |

Map claims to paper structure along each dimension:

Step 3: Determine Narrative Structure

Follow the hourglass principle in shared-references/academic-writing.md:

  1. Identify the paper's core storyline:
  1. Determine the narrative angle:
  1. Establish section → claim mapping:

Every section must support at least one claim. A section with no claim support is filler and should be removed.

Step 4: Generate Section Outline

Generate the outline according to venue format requirements; each section includes:

## 1. Introduction (1.5 pages)

### Claims addressed
- Gap claim: {existing approaches lack X because Y}
- Contribution claim: [[primary-claim]]

### Paragraph plan
1. Broad context: {field importance, recent progress}
2. Specific problem: {what's missing, why it matters}
3. Our approach: "In this work, we propose..." + contributions list
4. Results preview: {headline numbers}
5. Paper structure: "The rest of this paper..."

### Key citations
- [[paper-A]] — establishes the problem
- [[paper-B]] — closest prior work (we improve upon)
- [[paper-C]] — our baseline

---

## 2. Related Work (1 page)

### Groupings
- Direction A: {papers, our position}
- Direction B: {papers, our position}
- Direction C: {papers, our position}

### Claims addressed
- Contextual claims distinguishing from prior work

---

## 3. Method (2-3 pages)

### Claims addressed
- [[primary-claim]]: section 3.1-3.2
- [[supporting-claim-1]]: section 3.3

### Subsection plan
- 3.1 Problem formulation: notation, objective
- 3.2 Core approach: intuition → formalism
- 3.3 Component X: design decision + justification
- 3.4 Training/inference details

### Figures
- Figure 1: Overall architecture (mandatory)
- Figure 2: Component X detail (if complex)

---

## 4. Experiments (2-3 pages)

### Claims addressed
- [[primary-claim]]: section 4.2 (main results)
- [[supporting-claim-1]]: section 4.3 (ablation)
- [[supporting-claim-2]]: section 4.4 (scaling)

### Subsection plan
- 4.1 Setup: datasets, baselines, metrics, implementation details
- 4.2 Main results: Table 1 (main comparison), [[exp-main]]
- 4.3 Ablation study: Table 2 (component analysis), [[exp-ablation-*]]
- 4.4 Analysis: scaling, robustness, qualitative examples

### Figures/Tables
- Table 1: Main comparison vs baselines
- Table 2: Ablation results
- Figure 3: Scaling curves / qualitative examples

---

## 5. Conclusion (0.5 page)

### Key takeaway
- {one sentence the reader should remember}

### Limitations
- {from gap_map or claim conditions}

### Future work
- {from gap_map open questions}

Page budget: allocated by --venue (refer to the venue table in academic-writing.md); total section pages <= venue main-body limit.

Step 5: Figure Plan

Design each planned figure/table:

## Figure Plan

### Figure 1: System Architecture
- Type: diagram
- Source: Method section description
- Style: block diagram with labeled components
- Size: full width (1 column = text width)

### Table 1: Main Results
- Type: comparison table
- Source: [[exp-main]] key_result + baselines
- Columns: Method | Metric-1 | Metric-2 | ...
- Rows: baselines + ours (ours in bold)
- Notes: best bold, second underline, ↑/↓ arrows for direction

### Figure 3: Scaling Analysis
- Type: line plot
- Source: [[exp-scaling]] results
- X-axis: scale dimension (model size / data size)
- Y-axis: performance metric
- Lines: ours vs baseline, with error bands

Step 6: Citation Plan

Following shared-references/citation-verification.md:

  1. List all wiki papers referenced via [[slug]] in the outline
  2. For each paper, pre-fetch BibTeX:
  1. Generate citation coverage report:

```

Citations: 15 total, 12 verified (DBLP: 8, CrossRef: 3, S2: 1), 3 [UNCONFIRMED]

```

  1. For [UNCONFIRMED] entries, provide suggested URLs for manual verification

Step 7: Review LLM Review (mandatory)

mcp__llm-review__chat:
  system: "You are an area chair at {venue} reviewing a paper outline.
           Assess: Is the narrative convincing? Does every section serve a clear purpose?
           Are the experiments sufficient to support the claims?
           Is the related work coverage adequate?
           Are there obvious gaps that reviewers will attack?
           Provide specific suggestions for strengthening the outline."
  message: |
    ## Paper Outline
    {complete outline from Step 4}

    ## Evidence Map
    {evidence map from Step 2}

    ## Figure/Table Plan
    {plan from Step 5}

    ## Citation Coverage
    {report from Step 6}

    ## Questions for Review
    1. Is the narrative arc (gap → solution → evidence → impact) convincing?
    2. Are any claims under-supported? Which experiments are missing?
    3. Is the related work grouping appropriate? Missing directions?
    4. Will the page budget work? Any section too long/short?
    5. Are the figures/tables sufficient to tell the story?

Revise the outline based on Review LLM feedback (add sections, adjust page budget, add figures/tables, correct narrative structure).

Step 8: Write to Wiki

  1. Generate slug:

```bash

python3 tools/research_wiki.py slug "<working-title>"

```

  1. Write PAPER_PLAN.md:

Create wiki/outputs/paper-plan-{slug}-{date}.md containing:

  1. Add graph edges:

```bash

# plan → target claim

python3 tools/research_wiki.py add-edge wiki/ \

--from "outputs/paper-plan-{slug}-{date}" --to "claims/{primary-claim}" \

--type derived_from --evidence "Paper plan built from this claim"

# plan → key papers

python3 tools/research_wiki.py add-edge wiki/ \

--from "outputs/paper-plan-{slug}-{date}" --to "papers/{paper-slug}" \

--type derived_from --evidence "Paper plan cites this paper"

```

  1. Rebuild derived data:

```bash

python3 tools/research_wiki.py rebuild-context-brief wiki/

```

  1. Append log:

```bash

python3 tools/research_wiki.py log wiki/ \

"paper-plan | {venue} paper outline for [[{slug}]] | claims: {claim-list} | citations: {verified}/{total}"

```

  1. Print PAPER_PLAN_REPORT to terminal:

```markdown

# Paper Plan Report

## Meta

## Claims → Sections

| Claim | Confidence | Section |

|-------|-----------|---------|

| [[primary]] | 0.85 | Method + Exp 5.2 |

| [[supporting-1]] | 0.75 | Exp 5.3 |

## Page Budget

| Section | Pages | Claims |

|---------|-------|--------|

| Introduction | 1.5 | gap, contribution |

| Related Work | 1.0 | context |

| Method | 2.5 | primary, supporting |

| Experiments | 2.5 | all |

| Conclusion | 0.5 | — |

## Figures/Tables: {N} planned

## Citations: {verified}/{total} verified, {verify_count} [UNCONFIRMED]

## Review LLM Review: score {X}/10, verdict: {verdict}

## Next Steps

```

Constraints

Error Handling

Dependencies

Tools(via Bash)

MCP Servers

Claude Code Native

Shared References

Called by

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.