Spark-To-Paper-Skills/spark-to-paper-skills
À propos
Une phrase en entrée, un article de recherche à l’état de brouillon en sortie : spark-to-paper-skills analyse automatiquement les articles, planifie et exécute des expériences, puis rédige un brouillon de recherche, pour un coût d’API généralement d’environ 10 dollars par article.
Apprentissage et éducationProgression mesurée des étoiles
- in 24h
- +1
- in 7 days
- 0
- in 15 days
- +7
- in 1 month
- +33
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original
spark-to-paper-skills
Drop a spark. Get a paper.
Citation checks. Editable vector figures. Source-traced numbers.
One orchestrator and 13 composable Claude Code skills turn a one-line idea into a compiled PDF —
real references, editable vector figures, and machine-checked integrity included.
No separate app or orchestration server.
📣 The preprint is on arXiv:2608.11924 — #1 on 🤗 Hugging Face Daily Papers (Aug 13, 2026) and included in the August 2026 Monthly Papers list.
📄 Paper · 🌐 Website · 🏆 Showcase · ✨ Features · 🧭 Compare · 🖼️ Figure Engine · 🔬 Pipeline · 🚀 Quick Start
🏆 Generated Paper Showcase
🔥 What's New
2026-08-13— 🤗 Hugging Face Daily Papers #1. The preprint reached #1 on Daily Papers and included in the August 2026 Monthly Papers list.2026-08-12— 📄 Preprint submitted. Spark-to-Paper: End-to-End Research Paper Generation as a Composable Skill is available as arXiv:2608.11924. See Citation.v1.2.0— PaperBanana+ figure engine. The official PaperBanana renders candidates; the newts-figure-svgskill learns the render's design language and redraws the figure natively from the paper's facts, iterating against a stdlib-only geometry audit (audit_svg.py) until it passes.v1.1.0— Claude Code plugin support. Restructured as a proper plugin with.claude-plugin/plugin.json. One-command install, auto-loads on session start.v1.0.1— Soft update notification.check_update.pyqueries GitHub Releases API on each run (24h cache, silent when up-to-date, never blocks).v1.0— Initial release. 13 skills, end-to-end pipeline, hybrid vector figure engine, MIT License.
⚡ One Command. One Paper.
# Install — auto-loads on next Claude Code session
git clone https://github.com/Spark-To-Paper-Skills/spark-to-paper-skills.git ~/.claude/skills/spark-to-paper-skills
Run ts-paper on this proposal. ← paste your idea, proposal, or data
The orchestrator auto-routes your input, picks the right mode, and runs the full chain.
📦 What You Get
| 📄 | main.tex · main.pdf | Compiled paper in the selected venue template |
| 📝 | sections/*.tex | One LaTeX source file per section + abstract |
| 🗺️ | blueprint.json | Structured title, keywords, contributions, notation, word targets |
| 📚 | refs.bib | Real BibTeX entries — citation records checked via WebSearch and Crossref when available |
| 🖼️ | figures/*.pdf | Editable vector figures (SVG + PDF + PPTX), originals always kept |
| 🧪 | experiments/ | Auto-run experiment code + filled result tables (Stage 8) |
| 📋 | logs/*.io.md | Full INPUT / DECISIONS / OUTPUT trace for every stage |
| 🚦 | run_gates.py | All deterministic gates pass — citations, draft, vectors, LaTeX |
✨ What Makes It Different
| Capability | Description | |
|---|---|---|
| 🖼️ | Editable Vector Figures | A core project focus. The official PaperBanana renders candidates; the figure is then redrawn natively — the render's design language learned, its content re-derived from the paper — and iterated against a measuring audit until it passes. Live <text>, not a traced bitmap. |
| 🔗 | End-to-End | Idea → literature → writing → experiments → figures → compiled PDF, run inside Claude Code as a plugin. |
| 🔒 | Machine-Checked Integrity | Deterministic gates check citation records, claim-citation links, source-traced prose numbers, vector structure, and LaTeX; detected violations fail the build. |
| 🔀 | Two Integrity Modes | Proposal mode: forward-looking, result cells stay blank. Data-aware mode: every number traced to your real data, in past tense. Machine-audited. |
| ⚔️ | Adversarial Review | N isolated reviewers read the whole paper with verbatim-quote anti-skim, then perspective-diverse skeptics try to refute each issue. Loop until dry. |
| 🧪 | Auto-Experiments | Stage 8 diagnoses logic, runs feasible experiments on supplied data/code, fills result tables from run outputs, and recompiles. |
| 📐 | Template-Agnostic | NeurIPS and IIETA bundled. Add any venue — drop a templates/<name>/ dir with template.json + LaTeX assets. No code changes. |
🧭 How It Compares
✓ full · ● partial · – none | sources: ARS · Idea2Paper · AutoResearchClaw · AI-Scientist · Kosmos · karpathy/autoresearch · auto_research
Based on the linked project documentation reviewed in August 2026, the heavier autonomous scientists (AutoResearchClaw, AI-Scientist) match the breadth but ship as standalone Python products. The lighter skills in this comparison (ARS, Idea2Paper) do not cover the same experiment-and-figure path. This comparison is scoped to the listed projects, not the entire ecosystem.
🖼️ The Figure Engine
A core differentiator of this project. AI image models produce rasters — but a paper needs editable vector figures whose labels are text and whose logic is the paper's.
ts-figure-svg is PaperBanana+: the official PaperBanana renders candidates, then the figure is redrawn natively — its design language learned from the render, its content re-derived from the paper, repaired against a measuring audit.
figure brief (from the paper's own method text)
├─ PaperBanana → Retriever→Planner→Stylist→Visualizer→Critic (official, pulled)
├─ pick a candidate → scientific correctness first, beauty last
├─ learn the STYLE → palette · type scale · spacing · idiom → <label>.style.json
├─ redraw NATIVE → real <rect>/<path>/<text>, content from the PAPER, never a pixel trace
└─ audit & repair → iterate until the audit passes and the result is approved
│
└─▶ editable SVG · vector PDF (live text, verified at real column width)
audit_svg.py measures what eyes miss — and it is stdlib-only (Adobe core-14 Times metrics, no renderer, no key, no models):
| Catches | Because |
|---|---|
| Canvas/card overflow, text-on-text, "just barely inside" | Not overflowing is not a pass |
| A shape painted over a label | z-order cuts labels in half |
markerUnits="strokeWidth" |
a 6-unit arrowhead renders at ~18px |
| Connectors docking on nothing, floating labels | endpoints typed by hand, no alignment grid |
Sub-legible type, ✓-class glyphs |
shrinking text is the forbidden fix; odd glyphs silently swap font family in the PDF |
| Embedded rasters, data URIs, traced pixel paths | a bitmap in an XML costume is still blurry at 2× |
Fallbacks, in order: native redraw → local raster-preserving optimization → keep the approved PNG. Never a lossy redraw, never a flat boxes-and-arrows regression.
Provision
python skills/ts-figure-svg/scripts/setup_paperbanana.py # pull official PaperBanana + deps
export OPENROUTER_API_KEY="sk-or-v1-..." # VLM agents + image generation
python skills/ts-figure-svg/scripts/audit_svg.py --selftest # the audit needs nothing else
One spark in. One paper out.
🔬 The Pipeline
One orchestrator (ts-paper) routes the input, then drives a 7-stage chain plus auto-run experiments:
┌──────────────── optional upstream ────────────────┐
[corpus.jsonl] ─▶ ts-kg-build ─▶ kg/ (research-pattern KG)
[raw idea] ─▶ ts-idea2story ─▶ story + citation seed
└──────────────────────────────────────────────────┘
│
[proposal OR proposal + real results] ─────▶ ts-paper (Stage 0: ROUTE)
│
1. ts-paper-plan ──▶ blueprint.json title · keywords · contributions
2. ts-paper-cite ──▶ refs.bib ≥40 REAL refs via WebSearch + Crossref
3. ts-paper-write ─▶ sections/*.tex all sections in one holistic pass
4. ts-paper-refine ▶ right-size + de-AI scrub + logic self-check
5. ts-paper-review ▶ adversarial review multi-reviewer hardening
6. ts-paper-figure ▶ figures + native SVG PaperBanana → learn style → redraw + audit
7. ts-paper-latex ─▶ main.pdf assemble + compile
│
8. ts-paper-experiment (AUTO) ─▶ run feasible experiments, fill tables, recompile
Stage 0 — Input routing
| Class | What was dropped | Route | results_mode |
|---|---|---|---|
| (a) bare idea | one line, no method/eval structure | ts-idea2story → plan |
proposal |
| (b) proposal | problem + method + eval, no measured results | plan (proposal) | proposal |
| (c) proposal + REAL results | measured numbers or attached data file | plan → ts-paper-data |
data_aware |
(d) existing story.json |
8-field story from a prior run | plan (skip idea2story) | proposal |
Two modes, opposite integrity rules
| Proposal mode | Data-aware mode | |
|---|---|---|
| Numbers | Never invent — cells stay blank (--) |
Report real numbers, past tense |
| Guarantee | No metric ever fabricated | Every number traces to your data (machine-audited) |
🎯 Design Philosophy
| Principle | Rule | |
|---|---|---|
| 🧠 | Model reasons | Claude owns judgment-heavy work: writing, research, critique, review |
| 🛠 | Code backstops | Python handles deterministic tasks: linting, assembly, plotting, vectorization |
| 🪶 | Zero infra | No app, server, database, or Docker — copy skills into .claude/skills/ and go |
| 🏆 | Quality first | Verify citations, self-review, run linters, polish before delivery |
| 🔒 | Integrity always | Never invent numbers; trace every value to source data; red gates fail the build |
🛡️ Quality Stack
Four complementary layers — Claude handles judgment, code provides the deterministic backstop.
| # | Layer | What it checks |
|---|---|---|
| 1 | Deterministic gates | Section shape · word bands · no-fabrication · citation completeness · vector-PDF presence |
| 2 | Self-review | Right-sizing · term consistency · coherence · de-AI scrub |
| 3 | Adversarial review | N isolated reviewers · verbatim-quote anti-skim · loop until dry |
| 4 | Vision critique | Reads each rendered figure · checks faithfulness · readability · aesthetics |
python skills/ts-paper/scripts/run_gates.py <workdir> all # nonzero exit = NOT done
📐 Template-Agnostic
Write to whatever venue you pick — content quality is invariant.
| Template | Venue | Style |
|---|---|---|
ts_iieta (default) |
Traitement du Signal | Two-column, numeric citations |
neurips |
NeurIPS (community) | Single-column, author-year |
neurips_official |
NeurIPS 2025 (official .sty) | Single-column, official formatting |
Add a venue by dropping a templates/<name>/ dir with template.json + LaTeX assets — no code changes.
🧩 The Skills
1 orchestrator plus 13 composable skills; all active.
| Skill | Stage | Role |
|---|---|---|
ts-paper |
orchestrator | Routes input (idea / proposal / data) and drives the chain |
ts-idea2story |
upstream | Raw idea → structured research story + citation seed |
ts-kg-build |
upstream (opt.) | Corpus → research-pattern knowledge graph for recall |
ts-paper-plan |
1 | Proposal → blueprint.json (one reasoning pass) |
ts-paper-cite |
2 | Real, complete bibliography (WebSearch + Crossref, floor 40) |
ts-paper-write |
3 | Draft all sections as LaTeX in one holistic pass |
ts-paper-refine |
4 | Right-size + de-AI scrub + logic self-check |
ts-paper-review |
5 | Adversarial peer-review hardening |
ts-paper-figure |
6 | Figure routing: matplotlib (data) / PaperBanana (schematics) |
ts-paper-data |
6 (data) | Data-aware mode: real results → filled tables + plots |
ts-figure-svg |
6 (vector) | PaperBanana+ : learn the render's style → native audited SVG |
ts-figure-optimize |
6 (fallback) | Raster → editable SVG/PDF/PPTX via local hybrid optimization |
ts-paper-latex |
7 | Assemble + compile the final PDF |
ts-paper-experiment |
8 | Run feasible experiments, fill tables, recompile |
🚀 Quick Start
1 · Install
Option A — Claude Code plugin (recommended)
git clone https://github.com/Spark-To-Paper-Skills/spark-to-paper-skills.git ~/.claude/skills/spark-to-paper-skills
Auto-loads on next session. Skills available as /spark-to-paper:ts-paper, etc.
Option B — Try before you install
git clone https://github.com/Spark-To-Paper-Skills/spark-to-paper-skills.git
claude --plugin-dir ./spark-to-paper-skills
Option C — Standalone skills (no namespacing)
cp -r spark-to-paper-skills/skills/ts-* ~/.claude/skills/
Option D — Git submodule (auto-updatable)
git submodule add https://github.com/Spark-To-Paper-Skills/spark-to-paper-skills.git .claude/skills/spark-to-paper-skills
💡 The suite checks GitHub for newer versions on each run. Update:
git -C ~/.claude/skills/spark-to-paper-skills pull
2 · (Optional) Configure secrets
| Secret | Variables | When needed |
|---|---|---|
| 🎨 Figure model | TS_FIG_API_KEY, TS_FIG_BASE_URL, TS_FIG_MODEL |
Render schematics with an image model |
| 👁️ Vision QA | OPENAI_API_KEY, VISION_MODEL |
Correct figure text, per-region defect comparison |
| 🧠 Embeddings | TS_EMBED_* |
KG-grounded recall (optional, graceful degradation) |
| 📦 Raster fallback | HF_TOKEN |
Download optional local vision weights once |
| ☁️ Overleaf | OVERLEAF_GIT_URL, OVERLEAF_TOKEN |
Sync with Overleaf when enabled |
Copy .env.example → .env and fill in only what you use.
3 · Just ask Claude
Run ts-paper on this proposal.
Paste your idea, proposal, or proposal + data. The orchestrator auto-routes, runs the chain, and delivers a compiled paper with page count, sections, references, review outcome, and editable vector figures.
⚙️ Requirements
- Claude Code (the suite is a plugin)
- Python 3.10+ with
pip install -r skills/ts-figure-optimize/requirements.txt - LaTeX (
latexmk+ a TeX distribution) for compilation - Optional: local raster fallback runtime (~4 GB) · image-model endpoint · LibreOffice
🙋 FAQ
Will it invent results to make the paper look complete?
The workflow is designed not to fill results without evidence. In proposal mode,
draft_lint fails the build on prose numbers that are not backed by data. In data-aware mode, prose-number checks use results.facts.json; result tables remain subject to the current gate coverage documented in the code.
How is this different from AutoResearchClaw / AI-Scientist / Kosmos?
The heavier autonomous scientists in the comparison match the breadth but ship as standalone Python products. Spark-to-Paper runs the full arc as a Claude Code plugin and includes an editable-vector figure engine. The comparison is limited to the linked projects reviewed in August 2026.
Do I need GPUs or the optional raster runtime?
Only for the local free-form raster fallback. It can run on CPU; matplotlib figures are born-vector and skip it, and a paper with no figures skips Stage 6 entirely.
Can I use a venue that isn't bundled?
Yes — drop a
templates/<name>/ directory with template.json + LaTeX assets. No code changes.
✅ Definition of Done
main.pdf exists and is non-trivial · zero LaTeX errors · main.bbl resolved all citations · every \cite{} maps to a complete refs.bib entry · no fabricated numbers anywhere · every figure embedded as an editable vector PDF · the adversarial review stage ran · and run_gates.py <workdir> all exits zero.
📖 Citation
A paper produced end-to-end by Spark-to-Paper has been accepted by an SCI-indexed Q2 journal. Until the version of record is public, please cite the arXiv version below. The preprint reached #1 on 🤗 Hugging Face Daily Papers (Aug 13, 2026) and is included in the August 2026 Monthly Papers list.
If Spark-to-Paper helps your research, please cite:
@article{qian2026sparktopaper,
author = {Qian, Zhuoyang and Wu, Biao and Wang, Yiran and Yan, Chris D and
Dai, Desan and Zheng, Liangwei and Jiang, Jin and
Zhang, Junsheng and Wang, Wenhao},
title = {Spark-to-Paper: End-to-End Research Paper Generation
as a Composable Skill},
journal = {arXiv preprint arXiv:2608.11924},
year = {2026},
url = {https://arxiv.org/abs/2608.11924}
}
🙏 Acknowledgments
Inspired by:
- 🔬 AI-Scientist (Sakana AI) — Automated research pioneer
- 🦞 AutoResearchClaw (AIMING Lab) — 23-stage autonomous research pipeline
- 📚 academic-research-skills (Imbad0202) — Claude Code research skill suite
- 🧠 autoresearch (Andrej Karpathy) — End-to-end research automation
⭐ Star History
Live star chart paused — GitHub restricted third-party access to stargazer data. It returns once the star-history GitHub App is installed on this repo.
The model does the reasoning. The code keeps it honest. You get a paper.
Built on Claude Code · native editable SVG figure engine · MIT License
Explorer des projets similaires
Chargement…
