Outline Agent (Step 1)
Faithful implementation of the Outline Agent from PaperOrchestra
(Song et al., 2026, arXiv:2604.05018, App. F.1, pp. 40–44).
Cost: 1 LLM call.
Your task
Read four input files from the workspace and produce a single JSON object at
workspace/outline.json with three top-level keys:
plotting_plan — array of figure objects
intro_related_work_plan — object with introduction_strategy and related_work_strategy
section_plan — array of section objects, each with section_title and subsections[]
How to do it
- Read the verbatim prompt at
references/prompt.md. This is the exact
Outline Agent system prompt from the paper. Use it as your system message.
- Prepend the Anti-Leakage Prompt from
../paper-orchestra/references/anti-leakage-prompt.md.
- Read the four input files:
workspace/inputs/idea.md
workspace/inputs/experimental_log.md
workspace/inputs/template.tex
workspace/inputs/conference_guidelines.md
- Synthesize across all four — the global instruction in the prompt is
"Do not analyze inputs in isolation. You must synthesize information across
all provided documents for every step."
- Emit a single JSON object following the schema in
references/outline-schema.md. Cross-check against
references/outline_schema.json (machine-readable).
- Save to
workspace/outline.json.
- Validate:
python skills/outline-agent/scripts/validate_outline.py workspace/outline.json
If validation fails, fix the JSON and re-validate. Do not proceed to Step 2
or Step 3 with an invalid outline — every downstream agent depends on this
schema.
Hard rules from the prompt (do not violate)
These are excerpted from references/prompt.md. The validator enforces them.
Plotting plan (Directive 1)
plot_type MUST be exactly one of "plot" or "diagram".
data_source MUST be exactly one of "idea.md", "experimental_log.md",
or "both".
aspect_ratio MUST be exactly one of:
"1:1", "1:4", "2:3", "3:2", "3:4", "4:1", "4:3", "4:5",
"5:4", "9:16", "16:9", "21:9".
figure_id MUST be a semantically meaningful snake_case identifier
(e.g., fig_framework_overview, fig_ablation_study_parameter_sensitivity).
figure_id MUST NOT contain the word "Figure".
Intro / Related Work strategy (Directive 2)
- Strictly separate Introduction (macro-level context, 10-20 papers,
foundational + survey + impact) from Related Work (micro-level technical
baselines, 30-50 papers, divided into 2-4 methodology clusters that
directly compete with or precede the proposed approach).
- For each Related Work cluster: provide
methodology_cluster,
sota_investigation_mission, limitation_hypothesis,
limitation_search_queries, bridge_to_our_method.
- CRITICAL TIMELINE RULE: Do not instruct searches for any papers
published after
{cutoff_date}. Derive cutoff_date from
conference_guidelines.md (e.g., "ICLR 2025 → cutoff October 2024",
"CVPR 2025 → cutoff November 2024"). If unspecified, default to one month
before today's date.
Section plan (Directive 3)
- Structural hierarchy: if Subsection X.1 is created, X.2 is mandatory.
No orphaned subsections. Omit subsections entirely if a section does not
require division.
- Content specificity: each
content_bullets entry must reference source
materials concretely. AVOID "Describe the model". REQUIRE "Formalize the
Temporal-Aware Attention mechanism using Eq. 3 from idea.md."
- Mandatory citations: every dataset, optimizer, metric, and
foundational architecture/model mentioned in
idea.md or
experimental_log.md MUST have a citation hint, no matter how ubiquitous
(e.g., AdamW, ResNet, ImageNet, CLIP, Transformer, LLaMA, GPT, LLaVA).
- Citation hint format:
- If you know the exact author and title:
"Author (Exact Paper Title)"
- Otherwise:
"research paper or technical report introducing '[Exact Model/Dataset/Metric Name]'"
- Do NOT guess or hallucinate authors.
Output
Exactly one file: workspace/outline.json. No prose, no code blocks, no
markdown. The Section Writing Agent and Literature Review Agent will parse
this JSON directly.
See references/example-output.json for a complete worked example from the
paper (App. F.1, pp. 43–44).
Resources
references/prompt.md — verbatim Outline Agent prompt from App. F.1
references/outline-schema.md — prose explanation of the schema
references/outline_schema.json — machine-readable JSON Schema
references/example-output.json — example output from the paper
references/allowed-values.md — enumerated allowed values for each enum field
scripts/validate_outline.py — JSON Schema validator
1---2name: outline-agent3description: Step 1 of the PaperOrchestra pipeline (arXiv:2604.05018). Convert (idea.md, experimental_log.md, template.tex, conference_guidelines.md) into a strict JSON outline containing a plotting plan, literature search plan (Intro + Related Work), and section-level writing plan with citation hints. TRIGGER when the orchestrator delegates Step 1 or when the user asks to "outline a paper from raw materials" or "generate the paper structure".4---5
6# Outline Agent (Step 1)
7
8Faithful implementation of the Outline Agent from PaperOrchestra
9(Song et al., 2026, arXiv:2604.05018, App. F.1, pp. 40–44).
10
11**Cost: 1 LLM call.**
12
13## Your task
14
15Read four input files from the workspace and produce a single JSON object at
16`workspace/outline.json` with three top-level keys:
17
18- `plotting_plan` — array of figure objects
19- `intro_related_work_plan` — object with `introduction_strategy` and `related_work_strategy`
20- `section_plan` — array of section objects, each with `section_title` and `subsections[]`
21
22## How to do it
23
241. **Read the verbatim prompt at `references/prompt.md`.** This is the exact
25 Outline Agent system prompt from the paper. Use it as your system message.
262. **Prepend the Anti-Leakage Prompt** from
27 `../paper-orchestra/references/anti-leakage-prompt.md`.
283. **Read the four input files**:
29 - `workspace/inputs/idea.md`
30 - `workspace/inputs/experimental_log.md`
31 - `workspace/inputs/template.tex`
32 - `workspace/inputs/conference_guidelines.md`
334. **Synthesize across all four** — the global instruction in the prompt is
34 "Do not analyze inputs in isolation. You must synthesize information across
35 all provided documents for every step."
365. **Emit a single JSON object** following the schema in
37 `references/outline-schema.md`. Cross-check against
38 `references/outline_schema.json` (machine-readable).
396. **Save to** `workspace/outline.json`.
407. **Validate**:
41 ```bash
42 python skills/outline-agent/scripts/validate_outline.py workspace/outline.json
43 ```
44 If validation fails, fix the JSON and re-validate. Do not proceed to Step 2
45 or Step 3 with an invalid outline — every downstream agent depends on this
46 schema.
47
48## Hard rules from the prompt (do not violate)
49
50These are excerpted from `references/prompt.md`. The validator enforces them.
51
52### Plotting plan (Directive 1)
53
54- `plot_type` MUST be exactly one of `"plot"` or `"diagram"`.
55- `data_source` MUST be exactly one of `"idea.md"`, `"experimental_log.md"`,
56 or `"both"`.
57- `aspect_ratio` MUST be exactly one of:
58 `"1:1"`, `"1:4"`, `"2:3"`, `"3:2"`, `"3:4"`, `"4:1"`, `"4:3"`, `"4:5"`,
59 `"5:4"`, `"9:16"`, `"16:9"`, `"21:9"`.
60- `figure_id` MUST be a semantically meaningful snake_case identifier
61 (e.g., `fig_framework_overview`, `fig_ablation_study_parameter_sensitivity`).
62- `figure_id` MUST NOT contain the word `"Figure"`.
63
64### Intro / Related Work strategy (Directive 2)
65
66- Strictly separate Introduction (macro-level context, 10-20 papers,
67 foundational + survey + impact) from Related Work (micro-level technical
68 baselines, 30-50 papers, divided into 2-4 methodology clusters that
69 directly compete with or precede the proposed approach).
70- For each Related Work cluster: provide `methodology_cluster`,
71 `sota_investigation_mission`, `limitation_hypothesis`,
72 `limitation_search_queries`, `bridge_to_our_method`.
73- **CRITICAL TIMELINE RULE**: Do not instruct searches for any papers
74 published after `{cutoff_date}`. Derive `cutoff_date` from
75 `conference_guidelines.md` (e.g., "ICLR 2025 → cutoff October 2024",
76 "CVPR 2025 → cutoff November 2024"). If unspecified, default to one month
77 before today's date.
78
79### Section plan (Directive 3)
80
81- **Structural hierarchy**: if Subsection X.1 is created, X.2 is mandatory.
82 No orphaned subsections. Omit subsections entirely if a section does not
83 require division.
84- **Content specificity**: each `content_bullets` entry must reference source
85 materials concretely. AVOID "Describe the model". REQUIRE "Formalize the
86 Temporal-Aware Attention mechanism using Eq. 3 from idea.md."
87- **Mandatory citations**: every dataset, optimizer, metric, and
88 foundational architecture/model mentioned in `idea.md` or
89 `experimental_log.md` MUST have a citation hint, no matter how ubiquitous
90 (e.g., AdamW, ResNet, ImageNet, CLIP, Transformer, LLaMA, GPT, LLaVA).
91- **Citation hint format**:
92 - If you know the exact author and title:
93 `"Author (Exact Paper Title)"`
94 - Otherwise: `"research paper or technical report introducing '[Exact Model/Dataset/Metric Name]'"`
95 - **Do NOT guess or hallucinate authors.**
96
97## Output
98
99Exactly one file: `workspace/outline.json`. No prose, no code blocks, no
100markdown. The Section Writing Agent and Literature Review Agent will parse
101this JSON directly.
102
103See `references/example-output.json` for a complete worked example from the
104paper (App. F.1, pp. 43–44).
105
106## Resources
107
108- `references/prompt.md` — verbatim Outline Agent prompt from App. F.1
109- `references/outline-schema.md` — prose explanation of the schema
110- `references/outline_schema.json` — machine-readable JSON Schema
111- `references/example-output.json` — example output from the paper
112- `references/allowed-values.md` — enumerated allowed values for each enum field
113- `scripts/validate_outline.py` — JSON Schema validator