paper-source-trace

paper-source-trace is a command for Claude Code from CanXiangCC/aminer-open-skill. It costs 13 tokens per session (2,392 once invoked), scanned A, original, MIT.

A command for tracing where a paper’s references come from and analysing what each citation is meant to do. It can produce written analysis and visual citation maps showing relationships between papers.

In plain words
What is it for?
Use it to analyse a paper’s citation structure, create citation graphs and maps, and export the resulting analysis and visual files.
Why use it?
A bibliography alone does not show how sources connect or why they are cited. Tracing citation intent helps you inspect source chains and the role each reference plays.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the paper-source-trace plugin — 1 skill, 1 command shipped together

Good fit Use it to analyse a paper’s citation structure, create citation graphs and maps, and export the resulting analysis and visual files.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add CanXiangCC/aminer-open-skill
Claude Code
/plugin install paper-source-trace

Made for: Claude Code.

Or install paper-source-trace, the plugin that ships this one along with the rest of its 1 skill, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for paper-source-trace

README.md
[![agentmods](https://agentmods.dev/badge/commands/canxiangcc/aminer-open-skill/paper-source-trace.svg)](https://agentmods.dev/commands/canxiangcc/aminer-open-skill/paper-source-trace)
Your own site
<a href="https://agentmods.dev/commands/canxiangcc/aminer-open-skill/paper-source-trace"><img src="https://agentmods.dev/badge/commands/canxiangcc/aminer-open-skill/paper-source-trace.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,392 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.02392
Opus 5 $0.00006 $0.01196
Sonnet 5 $0.00003 $0.00478
Haiku 4.5 $0.00001 $0.00239

Measured 8d ago against content hash a1ed2eada32b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

paper-source-trace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/paper-source-trace/commands/paper-source-trace.md · 187 lines

How it starts

The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/paper-source-trace - Paper Source Trace

User invoked the Paper Source Trace skill with:

$ARGUMENTS

Language Routing / 语言路由

  • If $ARGUMENTS or the conversation is mainly Chinese, follow 中文命令流程 and read ${CLAUDE_PLUGIN_ROOT}/SKILL.zh.md.
  • Otherwise follow English Command Flow and read ${CLAUDE_PLUGIN_ROOT}/SKILL.md.
  • Parameter names stay English: file, output, svg, template, aminer; legacy mode is accepted only as an alias.
  • JSON keys, intent labels, relation types, and source roles stay English.
  • 如果 $ARGUMENTS 或当前对话主要是中文,使用 中文命令流程
  • 否则使用 English Command Flow

English Command Flow

1. Task

Read and follow ${CLAUDE_PLUGIN_ROOT}/SKILL.md. This command is an orchestration entrypoint. For citation_map.html and static SVG maps, use the standard renderer at ${CLAUDE_PLUGIN_ROOT}/scripts/render_html.py; do not hand-write ad hoc SVG or HTML.

Produce the standard artifacts when evidence allows:

  • analysis.md
  • json/graph/citation_graph.json
  • citation_map.svg
  • citation_map.html
  • citation_map_chain.svg only when svg: both
  • citation_map_spec.md only when SVG generation has caveats or fails

2. Startup Confirmation

Before reading the paper, checking AMINER_API_KEY, calling AMiner, or generating SVG, ask the user to confirm both settings:

  • SVG output: radial, chain, or both
  • AMiner enrichment: on or off

If $ARGUMENTS already contains svg, legacy mode, or aminer, restate the provisional values and ask for final confirmation. Stop until the user answers. Map legacy mode: current to svg: radial, mode: example to svg: chain, and mode: all to svg: both. If svg and mode conflict, ask the user to choose one. Treat hybrid, interactive graph, or expandable knowledge graph as a request for the standard citation_map.html, not as an SVG mode.

If interactive confirmation is genuinely impossible, use the recommended defaults: svg: both and aminer: on. Keep the high-cost AMiner confirmation rule: ask before any estimated cost reaches ¥5 or more.

Read the full file on GitHub · 187 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 187 lines · 13 tokens per session scan A a1ed2eada32b

Subscribe to this mod's changes

paper-source-trace is a command published in the GitHub repository CanXiangCC/aminer-open-skill (59 stars, last pushed today), licensed MIT. It adds 13 tokens to every session and 2,392 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.