Agent skill

Paper Graph

by EvoScientist in EvoScientist/EvoSkills

Map the genealogical lineage and historical progression of a research field.

Apache-2.0Auto-check passedDevelopment

Install Paper Graph

skills CLI
$ npx skills add EvoScientist/EvoSkills --skill paper-graph -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install EvoScientist/EvoSkills paper-graph --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/EvoScientist/EvoSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/paper-graph .claude/skills/paper-graph && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
paper-graph
GitHub stars
475
Token cost
~7.1k tokens
SKILL.md length
3,181 words
Files
18 (incl. scripts, references)
Skills in repo
16
Repo updated
First seen
Licence
Apache-2.0

At a glance

Map the genealogical lineage and historical progression of a research field.

  • Works in 12 steps: Save the user query → resolve_seed_papers (CLI, deterministic) → format_seed_block (CLI, deterministic) → …
  • The user asks for a topics developmental trajectory
  • SKILL.md covers When to Use This Skill, Inputs and Output, Setup and Runbook, plus 2 more sections
  • Runs Python scripts from its folder; calls python and pip; needs S2_API_KEY and DEEPXIV_API_TOKEN

What it does

Paper Graph is an agent skill from EvoScientist/EvoSkills. Map the genealogical lineage and historical progression of a research field. Visualize how earlier technical challenges led to later approaches and improvements, producing a Markdown report with embedded Mermaid diagrams. Trigger when the user asks for a topic's developmental trajectory, a model's family tree, significant predecessors or follow-ups to a seed paper, or how a research line matured over time. Do not trigger for inventories of datasets, benchmarks, libraries, or other artifacts; finding one latest…

Its SKILL.md is about 7.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 19 other files, including scripts and reference files (for example `references/audit_edge.md`, `references/classify.md` and `references/detail.md`).

It sits in Development, covering Citation management. The repository describes itself as: 🧬 Extend EvoScientist with Installable Skill & Knowledge Packs. The licence is Apache-2.0.

When your agent uses it

  • The user asks for a topics developmental trajectory
  • A models family tree
  • Significant predecessors
  • Follow-ups to a seed paper

Example prompts

  • “s developmental trajectory, a model”
  • “/paper-graph”

Requirements

  • Python 3
  • A credential in S2_API_KEY
  • A credential in DEEPXIV_API_TOKEN
  • Pre-approved tools (allowed-tools): write_file, edit_file, read_file, execute

Workflow steps

12 steps, taken from the step headings in SKILL.md.

  1. Save the user query
  2. resolve_seed_papers (CLI, deterministic)
  3. format_seed_block (CLI, deterministic)
  4. parse_query (LLM)
  5. fetch_papers (CLI, deterministic)
  6. classify (LLM)
  7. prefetch_sections (CLI, deterministic, best-effort)
  8. outline (LLM)
  9. parse_outline (CLI, deterministic)
  10. detail (LLM, per solution)
  11. audit_edge (LLM, per edge)
  12. render_outline_mermaid + render_detail_mermaid (CLI, deterministic)

What it can do on your machine

Read from SKILL.md and the folder at commit 9a9f8cf. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • write_file
    • edit_file
    • read_file
    • execute

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 10 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • S2_API_KEY
    • DEEPXIV_API_TOKEN
    • DEEPXIV_TOKEN
    • OPENROUTER_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Paper Graph loads about 7.1k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 182 tokens; SKILL.md has 3,181 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~182
When it runs · the whole SKILL.md, loaded when a task matches
~7.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~11k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from EvoScientist/EvoSkills at commit 9a9f8cf, republished under its Apache-2.0 licence (© EvoScientist). 3,181 words, ~7,144 tokens.

Download SKILL.mdSave it as .claude/skills/paper-graph/SKILL.md (or your agent's skills folder). This skill also uses 17 other files; get the full folder from GitHub.
name
paper-graph
description
Map the genealogical lineage and historical progression of a research field. Visualize how earlier technical challenges led to later approaches and improvements, producing a Markdown report with embedded Mermaid diagrams. Trigger when the user asks for a topic's developmental trajectory, a model's family tree, significant predecessors or follow-ups to a seed paper, or how a research line matured over time. Do not trigger for inventories of datasets, benchmarks, libraries, or other artifacts; finding one latest paper; simple keyword search; one-paper summaries; or head-to-head comparisons. Use this skill for chronological synthesis across multiple works, not for bibliography cataloging or one-off retrieval.
allowed-tools
write_file, edit_file, read_file, execute
metadata.author
EvoScientist
metadata.version
0.1.3
metadata.tags
research, literature-review, graph, mermaid

Paper Graph

Build a Markdown report with embedded Mermaid diagrams showing how research on a user-specified topic (or paper) evolved — clustered into challenges → solutions and traced as per-solution evolution paths.

The skill has no outbound LLM dependency. The host agent provides all LLM calls; the skill provides deterministic data fetchers (S2 / DeepXiv), prompt templates, markdown parsers, and Mermaid renderers. Run the runbook below step-by-step.

Execution requirement. When the caller already provides parsed_query.json, seed.json and papers.json (wherever they are, for example in an input/ directory), copy them into the workdir under those names, treat steps 1–5 as complete and start at step 6. Still run every deterministic CLI step from classify through assemble; do not replace parsing, edge audit, rendering, or assembly with hand-authored Mermaid. Before finishing, verify that every parsed solution has a detail render and an audit verdict file, even when that file is an empty JSON list. Treat assemble_report as the only final-report writer: do not edit or append hand-authored edges afterward, even when a caller asks to display uncertain relationships. Preserve uncertainty in verdict JSON.

When to Use This Skill

Trigger when the user asks something like:

  • "Show me the history of <topic>" / "How did <topic> evolve?"
  • "Where does <paper> stem from?" / "What did <paper> build on?"
  • "What are significant improvements / follow-ups to <paper>?"
  • "Trace the lineage of ideas in <field>" / "Give me a literature taxonomy of <field>"
  • "Citation tree of <paper>" / "Idea trace of <topic>"

Skip when:

  • The user just wants a one-paper summary or single search hit (no relational/evolutionary aspect).
  • The request is for non-academic citation work.
  • The user explicitly wants a plain bibliography rather than a graph.

Inputs and Output

Inputs:

  • A research query: a topic, a seed paper title/citation, or a hybrid. Free-form text.
  • Output path (required): path for the final Markdown report. If not given, ask before running.
  • (Optional) number of papers to fetch (--n flag on fetch_papers). Default 10.
  • (Optional) Mermaid theme light or dark (--theme on render steps, or MERMAID_THEME env). Default light.

Output: a single Markdown file at the user-specified path with these sections:

  1. Research goal (extracted from the query)
  2. High-level taxonomy — one Mermaid graph: root → challenges → solutions → paper references
  3. Per-solution evolution paths — one Mermaid graph per solution, showing paper-to-paper "evolution from" edges, evolution points, open challenges
  4. Paper appendix — the numbered list of papers with title / year / authors / abstract / conclusion excerpt

Mermaid is just text inside ```mermaid fences — the file renders directly in GitHub, Obsidian, VS Code with the Mermaid extension, etc.


Setup

Required env (the skill fails verbosely if missing):

  • S2_API_KEY — Semantic Scholar API key.

Optional env:

  • DEEPXIV_API_TOKEN (or DEEPXIV_TOKEN) — DeepXiv arXiv search fallback. Install with pip install deepxiv-sdk; auto-provision with deepxiv token. Without it, S2 must fill the cite-number budget on its own.
  • MERMAID_THEME — light (default) or dark. Overridden by --theme on each render call.

LLM: the host agent uses its own model and API key. The skill emits prompt templates and parses responses; it does not authenticate or call any LLM provider.

Working directory: create one dir per run, anchored relative to your current working directory (e.g. ./<basename>.work/). Avoid absolute system paths like /tmp/... — some harnesses sandbox the shell and the file-read tools to different filesystem roots, so an absolute path can appear writable to one and missing to the other. A cwd-relative path works the same everywhere. Run pwd once at the start if unsure.

Suggested layout (assuming final report goes to <output>):

<output>.work/
├── query.txt                user query (verbatim)
├── seed.json                resolve_seed_papers
├── seed_block.txt           format_seed_block
├── parsed_query.json        LLM: parse_query output
├── goal_block.txt           build_goal_block (reused in steps 8, 10, 11)
├── papers.json              fetch_papers → prefetch_sections → classify-merged
├── papers_input.txt         format_papers (full set)
├── classify_raw.json        LLM: classify output (consumed by merge_classifications)
├── core_filter.json         compute_core_filter (+ core_filter.json.allowed.txt)
├── papers_input_core.txt    format_papers (CORE-only; + papers_input_core.txt.allowed.txt)
├── outline_raw.md           LLM: outline output
├── outline.json             parse_outline summary
├── outline_mermaid.json     render_outline_mermaid
├── solutions/<key>.json     per-solution context (one file per solution)
├── parsed/<key>.json        parse_detail output (used by step 11 audit)
├── details/
│   ├── <key>_input.txt      format_papers (optional: same content as papers_input_core.txt; + .allowed.txt sibling)
│   ├── <key>_raw.md         LLM: detail output
│   └── <key>.json           render_detail_mermaid (consumed by assemble)
├── verdicts/<key>.json      [{source_n, target_n, verdict, source_quote, target_quote, reason}] from audit ([] when no edges)
└── <run>.log.jsonl files    one next to each subcommand output, default-on

Filenames are agent-chosen — these are recommendations to match what the runbook below references. <key> is the solution key string <s_major>.<s_minor> (e.g. 1.1). Every format_papers call writes a sibling <out>.allowed.txt containing the (N), (N), ... form ready to drop into a {allowed_numbers} placeholder.


Runbook

Each step is either a CLI call (python scripts/cli.py <subcmd> …) or an LLM call (the host agent reads a template from references/, substitutes the placeholders, and calls its model). All script and reference paths are relative to this skill's directory. CLI dependencies: pip install deepxiv-sdk httpx python-dotenv (also listed in requirements.txt at the skill root) — install into the environment the user is working in. Run sequentially; the detail step (step 10) and the audit step (step 11) can fan out per-solution / per-edge if the host supports concurrent tool calls.

Placeholder syntax in references/*.md. Single-brace {name} is a template slot the host must substitute. Double-brace {{...}} is an escaped literal brace — it appears in the prompt body when the example JSON the LLM is asked to emit contains braces. Substitute only single-brace slots; leave {{ and }} alone (they're for the LLM to read as { and } in its output).

Step 1 — Save the user query

Write the user's verbatim query to <workdir>/query.txt. Do not paraphrase. Multi-line queries are fine.

Step 2 — resolve_seed_papers (CLI, deterministic)
bash
python scripts/cli.py resolve_seed_papers \
    --query-file <workdir>/query.txt \
    --out <workdir>/seed.json

Outputs a JSON array of S2-shape paper records for any arxiv IDs detected in the query. Empty array when none are present or all lookups fail.

Step 3 — format_seed_block (CLI, deterministic)
bash
python scripts/cli.py format_seed_block \
    --seed <workdir>/seed.json \
    --out <workdir>/seed_block.txt

Renders the seed papers into the {seed_block} prompt fragment used in step 4. Empty input → empty output (the placeholder collapses cleanly).

Step 4 — parse_query (LLM)

Read references/parse_query.md. Substitute {seed_block} with the contents of <workdir>/seed_block.txt and {query} with the contents of <workdir>/query.txt. Call the LLM (low temperature, ~0.1).

Parse the response as JSON with this exact shape:

json
{"goal": "<one sentence>",
 "searches": ["<keyword phrase 1>", "<keyword phrase 2>", "..."],
 "definitions": {"<term>": "<one-sentence definition>", "...": "..."}}

Per the prompt's own instructions, searches should contain 2–4 phrases each of 2–5 keywords (these are two different counts — phrases vs. keywords-per-phrase).

Strip code fences if the model added them. Validate that goal is non-empty and searches is a non-empty list of strings. If the response is malformed, re-prompt the LLM once; on second failure, abort with a clear error message.

Save the validated JSON to <workdir>/parsed_query.json.

Step 5 — fetch_papers (CLI, deterministic)
bash
python scripts/cli.py fetch_papers \
    --parsed-query <workdir>/parsed_query.json \
    --seed <workdir>/seed.json \
    --n 10 \
    --out <workdir>/papers.json

Uses S2 multi-search (one S2 query per searches[] entry) with DeepXiv fallback to top up to --n papers. Output is a JSON array of S2-shape paper dicts. If S2 returns nothing and DeepXiv is unavailable, exits non-zero — re-prompt step 4 with sharper search phrases.

Step 6 — classify (LLM)

First build the full {papers_input} block:

bash
python scripts/cli.py format_papers \
    --papers <workdir>/papers.json \
    --out <workdir>/papers_input.txt

Read references/classify.md. Substitute {goal} with the goal_sentence (the single-sentence string at parsed_query.json["goal"] — bare, no definitions block here) and {papers_input} with the text file above. Call the LLM (low temperature, no reasoning needed — it's a discrete cataloging decision). Strip any leading/trailing code fences if the model added them.

Save the raw response verbatim to <workdir>/classify_raw.json. Expected shape:

json
{"classifications": [
  {"n": 1, "label": "CORE", "reason": "..."},
  {"n": 2, "label": "ADJACENT", "reason": "..."},
  {"n": 3, "label": "REJECT", "reason": "..."},
  ...
]}

Then merge into papers.json via the CLI (validates shape + applies failure-soft fallback to every-CORE if validation fails):

bash
python scripts/cli.py merge_classifications \
    --classifications <workdir>/classify_raw.json \
    --papers <workdir>/papers.json \
    --out <workdir>/papers.json

merge_classifications always exits 0; on validation failure it applies an all-CORE safety-net and prints a … (FALLBACK: <reason>) suffix on the stdout success line. When you see that suffix, re-prompt the LLM once; if the second attempt also falls back, accept the all-CORE result and proceed — every paper just feeds the outline as CORE. On a clean run the success line shows the per-label counts and no FALLBACK suffix. Downstream subcommands (parse_outline, the renderers, assemble_report) read these labels via _label_of.

Step 7 — prefetch_sections (CLI, deterministic, best-effort)
bash
python scripts/cli.py prefetch_sections \
    --in <workdir>/papers.json \
    --out <workdir>/papers.json

Mutates each paper dict in place by setting _conclusion_section. REJECT-labeled papers are skipped to save quota. Failures are silent; a paper without an arxiv ID or without a fetchable section just gets _conclusion_section: null.

After this step, any subsequent format_papers call automatically embeds each paper's _conclusion_section into the formatted block (under a Discussion/Conclusion excerpt: header) — that's how the outline and detail prompts get the OC-source signal the prompt templates reference. No extra step required.

Step 8 — outline (LLM)

Materialize the two prompt fragments that recur from here on — goal_block (the {goal} substitution) and core_filter (the CORE-only filter + its {allowed_numbers} sidecar) — as files on disk. Steps 10 and 11 read these files back, so the agent never has to carry them as conversation state.

bash
python scripts/cli.py build_goal_block \
    --parsed-query <workdir>/parsed_query.json \
    --out <workdir>/goal_block.txt

python scripts/cli.py compute_core_filter \
    --papers <workdir>/papers.json \
    --out <workdir>/core_filter.json

compute_core_filter writes the index JSON to --out and the matching (N), (N), ... {allowed_numbers} form to a sibling <out>.allowed.txt. A paper without a classification counts as CORE, as everywhere else in this skill. On a no-CORE classifier outcome it falls back to every paper and prints (FALLBACK: …) — the run continues.

Build the CORE-only {papers_input} (also emits a sibling .allowed.txt, redundant here but consistent with Step 10):

bash
python scripts/cli.py format_papers \
    --papers <workdir>/papers.json \
    --filter <workdir>/core_filter.json \
    --out <workdir>/papers_input_core.txt

Read references/outline.md. Substitute:

  • {goal} — contents of <workdir>/goal_block.txt.
  • {papers_input} — contents of <workdir>/papers_input_core.txt.
  • {allowed_numbers} — contents of <workdir>/core_filter.json.allowed.txt.

Call the LLM (low temperature, ~0.2; allow ~8000 max tokens). Strip any leading/trailing code fences from the response — the prompt instructs the model to emit raw Markdown but a fence sometimes slips through. Save the cleaned Markdown to <workdir>/outline_raw.md.

Step 9 — parse_outline (CLI, deterministic)
bash
python scripts/cli.py parse_outline \
    --raw <workdir>/outline_raw.md \
    --papers <workdir>/papers.json \
    --out <workdir>/outline.json \
    --solutions-dir <workdir>/solutions

Writes the outline summary plus one solutions/<key>.json context file per solution. Schema of each context file (consumed in steps 10 and 12):

json
{
  "challenge_idx": 1,
  "challenge_name": "Quality of random-projection targets",
  "solution_key": [1, 1],
  "solution_key_str": "1.1",
  "solution_name": "Optimization of the BEST-RQ pre-training objective",
  "paper_nums": [1, 3],
  "allowed": [1, 2, 3, 4]
}

paper_nums is the valid, de-duplicated primary taxonomy membership; when the outline repeats a paper, its first placement wins. allowed contains all CORE papers so detail generation can recover a canonical predecessor or successor without duplicating its primary taxonomy placement. format_papers --filter <solutions/key.json> and parse_detail --context <solutions/key.json> both read allowed automatically. Use paper_nums only for the {primary_numbers} prompt field.

A solution header that the outline restates reopens the same solution. A solution left without any valid paper (all its numbers were hallucinated or already placed elsewhere) is pruned: it gets no context file and no node in the taxonomy, and the success line on stdout names it. So every context file has a non-empty paper_nums.

Exits with code 4 and a stderr diagnostic if the outline contained no parseable ## Challenge N: headers, or if no solution is left with a valid paper. Re-prompt step 8 once; on second failure, lower --n in step 5 or sharpen the query.

Step 10 — detail (LLM, per solution)

CRITICAL — read "Fan-out task brief" below BEFORE delegating this step to subagents. A subagent prompt that points at SKILL.md or asks to "run paper-graph for solution X" will restart the whole workflow from Step 1 in a separate workdir, and its output will be unusable by the parent run.

Read references/detail.md once at the start of this step; substitute per-solution in the orchestrator. The subagents you fan out to never read templates themselves.

For each <workdir>/solutions/<key>.json produced in step 9:

(a) The per-solution {papers_input} is the CORE pool: every solution context's allowed is the full CORE set, so the block is the same for every solution and identical to <workdir>/papers_input_core.txt from Step 8 (with its .allowed.txt sibling). Reuse those two files. Running format_papers --filter <workdir>/solutions/<key>.json --out <workdir>/details/<key>_input.txt per solution still works and writes the same content; it is only needed if Step 8's files are gone.

(b) Substitute into references/detail.md:

  • {goal} — contents of <workdir>/goal_block.txt (the file built in Step 8).
  • {challenge_name} — from the solution context (challenge_name).
  • {solution_name} — from the solution context (solution_name).
  • {primary_numbers} — comma-separated (N) values from the solution context's paper_nums.
  • {papers_input} — contents of <workdir>/papers_input_core.txt (or the per-solution copy).
  • {allowed_numbers} — contents of <workdir>/papers_input_core.txt.allowed.txt.

Call the LLM (temperature ~0.2; allow ~12000 max tokens to fit scratchpad + tree). Save the raw response to <workdir>/details/<key>_raw.md.

(c) Parse it (output goes to a sibling parsed/ dir, not details/, so step 13's assemble_report doesn't pick up parse outputs as render outputs):

bash
python scripts/cli.py parse_detail \
    --raw <workdir>/details/<key>_raw.md \
    --context <workdir>/solutions/<key>.json \
    --out <workdir>/parsed/<key>.json

The parsed JSON's edges list is the input to Step 11.

If the host supports concurrent tool calls, fan all per-solution LLM calls + their parse_detail follow-ups out in parallel.

Fan-out task brief (when delegating step 10b to a subagent per solution). The subagent's prompt must be self-contained: do not point the subagent at SKILL.md, do not instruct it to "run paper-graph for solution X," and do not give it any CLI invocation to run. The orchestrator does the substitution itself and hands the subagent only:

  • The fully-substituted prompt string (already with {goal}, {challenge_name}, {solution_name}, {primary_numbers}, {papers_input}, {allowed_numbers} filled in).
  • The expected response shape: raw Markdown evolution tree per references/detail.md's output spec.
  • An explicit instruction: "Call your LLM with the prompt below and return only the raw Markdown response. Do not read any other file, do not run any shell command, do not invoke any other skill."

Do not point the subagent at SKILL.md, do not instruct it to "run paper-graph for solution X", and do not give it any CLI invocation to run. The subagent returns the Markdown text; the orchestrator writes it to <workdir>/details/<key>_raw.md and runs parse_detail itself. A subagent that re-reads SKILL.md will restart the whole workflow from step 1 — the fix is to keep the subagent prompt bounded as above.

Show full SKILL.md (1,145 more words)Show less
Step 11 — audit_edge (LLM, per edge)

CRITICAL — read "Fan-out task brief" below BEFORE delegating this step to subagents. Same orchestration failure mode as Step 10: a subagent pointed at SKILL.md restarts the whole workflow.

Read references/audit_edge.md once at the start of this step; substitute per-edge in the orchestrator. The subagents you fan out to never read templates themselves.

For each <workdir>/parsed/<key>.json's edges list, audit each edge against the source / target abstracts and conclusion excerpts.

For every {source_n, target_n, gap} edge in the solution:

  • Look up source paper = papers[source_n - 1] and target = papers[target_n - 1] from <workdir>/papers.json.
  • Substitute the placeholders in references/audit_edge.md: {m_n}, {m_title}, {m_year}, {m_abstract} (truncated to 1500 chars), {m_excerpt} (the _conclusion_section or (no excerpt), truncated to 1500 chars), {n_n}, {n_title}, {n_year}, {n_abstract}, {n_excerpt}, {gap_text}.
  • Call the LLM (low temperature ~0.1, reasoning off, ~1000 max tokens — enough for two quotes of up to 300 characters and the reason). Parse the response:
json
{"verdict": "SUPPORTED_BY_ABSTRACT" | "SUPPORTED_BY_SECTION" | "INFERRED" | "REJECT",
 "source_quote": "<verbatim source evidence or NONE>",
 "target_quote": "<verbatim target evidence or NONE>",
 "reason": "<one sentence>"}

On parse failure, default the verdict to REJECT. Only SUPPORTED_BY_ABSTRACT and SUPPORTED_BY_SECTION become directed evolution edges. INFERRED records a possible relationship for the audit trail but is not rendered as a directed lineage claim.

Fan-out task brief (when delegating per edge or per solution to subagents). Same discipline as step 10: do not point the subagent at SKILL.md, do not instruct it to "run paper-graph audit," and do not give it any CLI invocation. The orchestrator does the substitution itself and hands the subagent only:

  • The fully-substituted prompt string (already with {m_n}, {m_title}, {m_year}, {m_abstract}, {m_excerpt}, {n_n}, {n_title}, {n_year}, {n_abstract}, {n_excerpt}, {gap_text} filled in).
  • The expected response shape: a JSON object with verdict, source_quote, target_quote, and reason.
  • An explicit instruction: "Call your LLM with the prompt below and return only the JSON verdict object. Do not read any other file, do not run any shell command, do not invoke any other skill."

The subagent returns the verdict JSON; the orchestrator aggregates per-solution lists into <workdir>/verdicts/<key>.json. A subagent given a prompt that references SKILL.md will restart the workflow from step 1 — keep the brief bounded.

Collect all per-solution verdicts into <workdir>/verdicts/<key>.json as a flat list:

json
[{"source_n": 1, "target_n": 3, "verdict": "SUPPORTED_BY_ABSTRACT",
  "source_quote": "<verbatim source evidence>",
  "target_quote": "<verbatim target evidence>", "reason": "..."}, ...]

Write one record per audited edge, and write the file even when the solution has no edges ([]): step 12 requires it. Copy each quote exactly as the audit returned it; do not repair or shorten quotes by hand.

The renderer in step 12 re-checks every record against papers.json and draws an edge only when all of the following hold; anything else is not rendered as directed lineage:

  • the verdict is SUPPORTED_BY_ABSTRACT or SUPPORTED_BY_SECTION;
  • each quote is at least 20 characters, is not NONE, and occurs inside that paper's title, abstract or excerpt — inside one of them, not across two (line breaks, repeated spaces and typographic quotes or dashes are normalized before matching; wording and case are not);
  • the source is not newer than the target (when a year is missing the check is skipped and noted);
  • source and target are different papers inside papers.json;
  • if several records name the same edge, every one of them passes;
  • the edge is not part of a cycle of supported edges (possible when years are equal or missing).

A malformed record (not an object, or without integer source_n / target_n) is ignored and reported; it does not stop the render.

Step 12 — render_outline_mermaid + render_detail_mermaid (CLI, deterministic)
bash
python scripts/cli.py render_outline_mermaid \
    --raw <workdir>/outline_raw.md \
    --papers <workdir>/papers.json \
    --out <workdir>/outline_mermaid.json \
    [--theme dark]

For each solution:

bash
python scripts/cli.py render_detail_mermaid \
    --raw <workdir>/details/<key>_raw.md \
    --context <workdir>/solutions/<key>.json \
    --papers <workdir>/papers.json \
    --verdicts <workdir>/verdicts/<key>.json \
    --out <workdir>/details/<key>.json \
    [--theme dark]

--verdicts is required: a render without the audit would draw every claimed edge. The success line reports how many claimed edges were rendered, followed by one line per edge that was not (not rendered (1)->(3): source_quote not found …), per ignored verdict record, and per verdict that matches no edge of this detail output (a sign that the verdict file is stale or belongs to another solution). The same information is stored in the output JSON (edges_rendered, edges_not_rendered, verdicts_unmatched, audit_downgrades, audit_notes) next to "audited": true. An edge that is not rendered stays out of the graph; do not edit the verdict file to force it in.

Step 13 — assemble_report (CLI, deterministic)
bash
python scripts/cli.py assemble_report \
    --parsed-query <workdir>/parsed_query.json \
    --outline <workdir>/outline_mermaid.json \
    --details-dir <workdir>/details \
    --papers <workdir>/papers.json \
    --out <user-supplied output path>

Walks details/ for every render JSON, sorts by (challenge_idx, s_major, s_minor), writes the final Markdown report at the user-supplied output path. A render JSON without "audited": true (left over from a run without --verdicts or from an older version) stops the command with exit code 2 before anything is written; re-run step 12 for the files it names. Only *.json files containing a mermaid field are consumed — *_raw.md, *_input.txt, and any non-render JSON sitting alongside are skipped (and counted on stdout if any). This is why parse_detail outputs go to a sibling parsed/ dir per the workdir layout, not into details/.


Verification

After step 13 completes, read the first ~40 lines of the report to confirm:

  • The taxonomy has at least 2 challenges and each has at least 1 solution.
  • Each Mermaid block opens with ```mermaid and closes with ```.
  • The paper appendix exists at the bottom of the file.

If any of those fail, the most likely cause is the outline LLM (step 8) returning malformed Markdown. Re-run step 8; if it fails twice, lower --n on step 5 or sharpen the query.


Design notes (for editors of this skill, not the runtime agent)

  • No outbound LLM dependency: the skill exposes data fetchers, prompt templates (references/*.md), parsers, and renderers. The host agent is the LLM provider. This is why there's no OPENROUTER_API_KEY requirement and no llm.py.
  • The audit gate is code, not prose: scripts/audit.py re-checks every verdict record (label, quotes found in the paper's own text, chronology, self-edges, duplicates, cycles). render_detail_mermaid cannot run without --verdicts, stamps its output "audited": true, and assemble_report refuses a render without the stamp. mermaid.py takes its set of edge-drawing labels from audit.SUPPORTED_VERDICTS.
  • Single source of truth for the detail parser: mermaid._parse_detail_markdown is called by both detail_to_mermaid (rendering) and the parse_detail CLI subcommand. Any change to scratchpad stripping, paper/EP/OC extraction, or hallucination dropping propagates to both.
  • references/seed_paper_block.md is an internal template fragment consumed by format_seed_block; the runtime agent never substitutes its placeholders directly. The other five references/*.md files are the agent-facing templates the runbook references.
  • Themed Mermaid: mermaid.py defines LIGHT_THEME and DARK_THEME. The renderer subcommands resolve the theme by name (CLI arg) → MERMAID_THEME env → "light". Each render emits a self-contained Mermaid graph (init directive + classDefs + linkStyle).
  • JSONL logging is default-on: every subcommand writes <out>.log.jsonl next to its output unless --log none is passed. These logs are for the human developer iterating on the skill — the runtime agent should not read them back.
  • papers.json is checked once per subcommand: every step that reads it exits with code 2 and the offending entry numbers when the file is not an array of paper objects, instead of failing later on a missing field.
  • Failure mode preference: loud over silent. Missing keys, malformed LLM output, zero papers from search — all abort with a printed reason rather than producing a degraded artifact.
  • English-only: the upstream paper-graph prompts emitted bilingual labels; this skill strips Chinese and keeps English only.

© EvoScientist, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 17 other files (scripts, references) in skills/paper-graph of EvoScientist/EvoSkills.

  • SKILL.md
  • references/audit_edge.md
  • references/classify.md
  • references/detail.md
  • references/outline.md
  • references/parse_query.md
  • references/seed_paper_block.md
  • requirements.txt
  • scripts/audit.py
  • scripts/cli.py
  • scripts/config.py
  • scripts/deepxiv_client.py
  • scripts/logger.py
  • scripts/mermaid.py
  • scripts/paper_md.py
  • scripts/pipeline.py
  • scripts/prompts.py
  • scripts/web_api.py

Open the folder on GitHubat commit 9a9f8cf

Compare with similar skills

Paper Graph next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Paper Graph compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Paper Graph this skillEvoScientist/EvoSkills475—~7.1kAutomated safety check: PassApache-2.0
Tiger Releasesafreita1/TIGER164—~1.8kAutomated safety check: PassMIT
Pci Secure Softwaretransilienceai/communitytools562—~1.8kAutomated safety check: PassMIT
Web Debug Searchwanshuiyin/Auto-claude-code-research-in-sleep17k1 repos~3.7kAutomated safety check: PassMIT
Exa Core Workflow Bjeremylongshore/tons-of-skills-marketplace2.8k—~1.2kAutomated safety check: PassMIT
Toolsbrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~1kAutomated safety check: NotesCustom licence

Similar skills

  • Tiger Release

    safreita1/TIGER

    Prepare and publish a TIGER release by keeping implementation, tests, source and hosted documentation, citations, version metadata, GitHub, and PyPI artifacts synchronized.

    164 GitHub stars~1.8k tokensUpdated 24 days ago
    DevelopmentAuto-check passed
  • Pci Secure Software

    transilienceai/communitytools

    Automated PCI Secure Software Standard (SSS) v2.0 readiness gap-assessment of an application from its source code and documentation.

    562 GitHub stars~1.8k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Web Debug Search

    wanshuiyin/Auto-claude-code-research-in-sleep

    Search GitHub, Stack Exchange, Chinese technical communities, official documentation, and general developer web sources for software errors, compatibility problems, API usage questions, and…

    17k GitHub starsUsed in 1 repo~3.7k tokens
    DevelopmentAuto-check passed
  • Exa Core Workflow B

    jeremylongshore/tons-of-skills-marketplace

    Run asynchronous Exa Agent research with a bounded schema, effort, terminal-state policy, citations, and cleanup decision.

    2.8k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Tools

    brycewang-stanford/Auto-Empirical-Research-Skills

    Utility commands — commit, compile, validate-bib, journal, context-status, deploy, learn.

    4.5k GitHub stars~1k tokensUpdated 3 days ago
    DevelopmentAuto-check: notes
  • Collaborating With Gemini

    appautomaton/latex-arxiv-SKILL

    Use the Gemini CLI to consult Gemini and delegate coding tasks for prototyping, debugging, and code review.

    457 GitHub starsUsed in 1 repo~1.1k tokens
    Research & ScienceAuto-check passed

More from EvoScientist/EvoSkills

All 16 skills in this repo
  • Evomath Tao

    EvoScientist/EvoSkills

    A skill your agent uses whenever the user submits a non-trivial mathematical claim that needs a rigorous proof or audit.

    475 GitHub starsUsed in 2 repos~3.8k tokens
    Auto-check passed
  • Paper Figures

    EvoScientist/EvoSkills

    A skill your agent uses to produce standalone, publication-ready PNG graphics and reproducible matplotlib scripts from tabular data (CSVs or DataFrames).

    475 GitHub starsUsed in 1 repo~4.4k tokens
    Auto-check passed
  • Experiment Iterative Coder

    EvoScientist/EvoSkills

    Iterative code refinement through plan → code → evaluate → refine cycles.

    475 GitHub starsUsed in 3 repos~2.5k tokens
    Auto-check passed
  • Paper Planning

    EvoScientist/EvoSkills

    Guides pre-writing planning for academic papers with 4 structured steps: story design (task-challenge-insight-contribution-advantage), experiment planning (comparisons + ablations), figure design…

    475 GitHub starsUsed in 3 repos~2.4k tokens
    Auto-check passed
  • Research Survey

    EvoScientist/EvoSkills

    Generates structured literature survey reports from collected papers using a multi-stage pipeline: outline generation (query-type adaptive) → draft survey → section-by-section expansion → summary…

    475 GitHub starsUsed in 3 repos~2.5k tokens
    Auto-check passed
  • Paper Navigator

    EvoScientist/EvoSkills

    Find and read academic papers (S2 + arXiv). An agent skill from EvoScientist/EvoSkills.

    475 GitHub stars~6.3k tokensUpdated 8 days ago
    Auto-check: notes

Questions about Paper Graph

What does Paper Graph do?

Map the genealogical lineage and historical progression of a research field. Paper Graph is an agent skill from EvoScientist/EvoSkills. Map the genealogical lineage and historical progression of a research field.

When should I use Paper Graph?

Paper Graph fits situations like: the user asks for a topics developmental trajectory; A models family tree; significant predecessors; follow-ups to a seed paper.

How do I install Paper Graph in Claude Code?

Run `npx skills add EvoScientist/EvoSkills --skill paper-graph -a claude-code`. Or copy the skill folder (skills/paper-graph in EvoScientist/EvoSkills) into .claude/skills/paper-graph in your project. Claude Code loads it when a task matches its description.

How do I install Paper Graph in Codex?

Run `npx skills add EvoScientist/EvoSkills --skill paper-graph -a codex`. Or copy the skill folder (skills/paper-graph in EvoScientist/EvoSkills) into .agents/skills/paper-graph in your project. Codex loads it when a task matches its description.

Can I use Paper Graph in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add EvoScientist/EvoSkills --skill paper-graph -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/paper-graph, .gemini/skills/paper-graph, .github/skills/paper-graph and .opencode/skills/paper-graph in your project.

What does Paper Graph need to run?

Going by SKILL.md and its folder, Paper Graph needs Python for the scripts in its folder, the command-line tools its instructions call (python and pip) and credentials named S2_API_KEY, DEEPXIV_API_TOKEN, DEEPXIV_TOKEN and OPENROUTER_API_KEY. Our summary lists: Python 3; A credential in S2_API_KEY; A credential in DEEPXIV_API_TOKEN. Its frontmatter pre-approves these tools: write_file, edit_file, read_file, execute.

Does Paper Graph access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Paper Graph safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Paper Graph use?

Paper Graph is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Paper Graph use?

About 7.1k tokens (SKILL.md is roughly 29k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.7k tokens, read only when the agent opens those files.

What are the alternatives to Paper Graph?

Skills that share tags, products or a category with Paper Graph: Tiger Release (safreita1/TIGER, 164 stars), Pci Secure Software (transilienceai/communitytools, 562 stars), Web Debug Search (wanshuiyin/Auto-claude-code-research-in-sleep, 17k stars) and Exa Core Workflow B (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Paper Graph?

EvoScientist (a GitHub organization) maintains it in EvoScientist/EvoSkills, which has 475 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on September 30, 2026.

Source: EvoScientist/EvoSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.