Ar9av/PaperOrchestra / skills/section-writing-agent
section-writing-agent
VerifiedStep 4 of the PaperOrchestra pipeline (arXiv:2604.05018). ONE single multimodal LLM call that drafts the remaining paper sections (Abstract, Methodology, Experiments, Conclusion), extracts numeric values from experimental_log.md into LaTeX booktabs tables, splices the generated figures from Step 2, and merges everything into the template that already contains Intro + Related Work from Step 3. TRIGGER when the orchestrator delegates Step 4 or when the user asks to "write the methodology and experiments sections" or "fill in the rest of the paper".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 12.9 KB |
| references/figure-integration.md | markdown | 3.5 KB |
| references/latex-table-patterns.md | markdown | 7.1 KB |
| references/prompt.md | markdown | 5.3 KB |
| scripts/extract_metrics.py | script | 3.8 KB |
| scripts/latex_sanity.py | script | 3.9 KB |
| scripts/orphan_cite_gate.py | script | 1.9 KB |
| scripts/table_lint.py | script | 7.2 KB |
| scripts/test_table_lint.py | script | 4.1 KB |
scripts/test_table_lint.py
View on GitHub#!/usr/bin/env python3
"""
test_table_lint.py — regression tests for the LaTeX table linter.
Stdlib only:
python3 skills/section-writing-agent/scripts/test_table_lint.py
"""
import unittest
from table_lint import decimals, find_tables, is_numeric, lint_table, split_rows
GOOD = r"""
\begin{table}[t]
\centering
\caption{Accuracy and latency on the held-out split of Dataset X, averaged over five seeds.}
\label{tab:main}
\begin{tabular}{lrr}
\toprule
Method & Accuracy $\uparrow$ & Latency (ms) $\downarrow$ \\
\midrule
Baseline & 78.2 & 12.3 \\
Ours & 85.4 & 8.1 \\
\bottomrule
\end{tabular}
\end{table}
"""
def codes(tex: str, after_conclusion: bool = False) -> set[str]:
tables = find_tables(tex)
out: set[str] = set()
for t in tables:
out |= {f["code"] for f in lint_table(t, after_conclusion)}
return out
class TestGoodTable(unittest.TestCase):
def test_clean_table_has_no_findings(self):
self.assertEqual(codes(GOOD), set())
def test_unicode_arrows_also_count(self):
self.assertNotIn("no-metric-direction",
codes(GOOD.replace(r"$\uparrow$", "↑").replace(r"$\downarrow$", "↓")))
class TestErrors(unittest.TestCase):
def test_vertical_rules(self):
self.assertIn("vertical-rule", codes(GOOD.replace("{lrr}", "{l|r|r}")))
def test_hline(self):
self.assertIn("hline", codes(GOOD.replace(r"\midrule", r"\hline")))
def test_missing_rules(self):
self.assertIn("missing-rules", codes(GOOD.replace(r"\bottomrule", " ")))
def test_caption_below_tabular(self):
broken = r"""
\begin{table}[t]
\begin{tabular}{lr}
\toprule
Method & Accuracy $\uparrow$ \\
\midrule
Ours & 85.4 \\
\bottomrule
\end{tabular}
\caption{Accuracy on the held-out split of Dataset X across five random seeds.}
\label{tab:x}
\end{table}
"""
self.assertIn("caption-below", codes(broken))
def test_missing_caption(self):
self.assertIn("no-caption", codes(
GOOD.replace(r"\caption{Accuracy and latency on the held-out split of "
r"Dataset X, averaged over five seeds.}", " ")))
def test_table_without_tabular(self):
self.assertIn("no-tabular", codes(r"\begin{table}\caption{Nothing here at all.}\end{table}"))
class TestWarnings(unittest.TestCase):
def test_missing_label(self):
self.assertIn("no-label", codes(GOOD.replace(r"\label{tab:main}", " ")))
def test_thin_caption(self):
self.assertIn("thin-caption", codes(GOOD.replace(
r"\caption{Accuracy and latency on the held-out split of Dataset X, "
r"averaged over five seeds.}", r"\caption{Results.}")))
def test_missing_metric_direction(self):
found = codes(GOOD.replace(r"Accuracy $\uparrow$", "Accuracy")
.replace(r"Latency (ms) $\downarrow$", "Latency (ms)"))
self.assertIn("no-metric-direction", found)
def test_mixed_decimal_precision(self):
self.assertIn("mixed-precision", codes(GOOD.replace("& 8.1 ", "& 8.14 ")))
def test_table_after_conclusion(self):
self.assertIn("late-table", codes(GOOD, after_conclusion=True))
def test_text_column_is_not_checked_for_direction(self):
# The Method column is text; it must not be asked for an arrow.
found = codes(GOOD)
self.assertNotIn("no-metric-direction", found)
class TestCellHelpers(unittest.TestCase):
def test_bold_numbers_are_numeric(self):
self.assertTrue(is_numeric(r"\textbf{85.4}"))
def test_math_and_percent_are_numeric(self):
self.assertTrue(is_numeric(r"$92.1$"))
self.assertTrue(is_numeric(r"3.2\%"))
def test_text_is_not_numeric(self):
self.assertFalse(is_numeric("Critical"))
self.assertFalse(is_numeric("Mar 2025"))
def test_decimal_counting(self):
self.assertEqual(decimals("85.4"), 1)
self.assertEqual(decimals(r"\textbf{85.40}"), 2)
self.assertEqual(decimals("12"), 0)
def test_escaped_ampersand_is_not_a_column_break(self):
rows = split_rows(r"R\&D & 12.0 \\")
self.assertEqual(len(rows[0]), 2)
if __name__ == "__main__":
unittest.main(verbosity=2)
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: 198k | 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 |