paper-trail-new-paper

paper-trail-new-paper is a command for Claude Code from roomi-fields/paper-trail. It costs 35 tokens per session (717 once invoked), scanned A, original, MIT.

A command for starting an academic paper in the usual IMRaD structure: Introduction, Methods, Results, and Discussion. It uses audited SOTAs and their verified references while drafting the paper.

In plain words
What is it for?
Use it to create a paper outline and draft sections on a topic, optionally for a specific publication venue and based on selected SOTAs.
Why use it?
It reduces the risk of invented or unchecked citations when turning existing research notes into a paper.

Command for Claude Code

Written for Claude Code: PreToolUse hook event.

Part of the paper-trail plugin — 6 skills, 22 commands, 6 agents, 3 hooks shipped together

Good fit Use it to create a paper outline and draft sections on a topic, optionally for a specific publication venue and based on selected SOTAs.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/roomi-fields/paper-trail/paper-trail-new-paper
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/roomi-fields/paper-trail

Made for: Claude Code.

Or install paper-trail, the plugin that ships this one along with the rest of its 6 skills, 22 commands, 6 agents, 3 hooks.

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-trail-new-paper

README.md
[![agentmods](https://agentmods.dev/badge/commands/roomi-fields/paper-trail/paper-trail-new-paper/github.svg)](https://agentmods.dev/commands/roomi-fields/paper-trail/paper-trail-new-paper)
Your own site
<a href="https://agentmods.dev/commands/roomi-fields/paper-trail/paper-trail-new-paper"><img src="https://agentmods.dev/badge/commands/roomi-fields/paper-trail/paper-trail-new-paper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for paper-trail-new-paper

Your own site · 80×15
<a href="https://agentmods.dev/commands/roomi-fields/paper-trail/paper-trail-new-paper"><img src="https://agentmods.dev/badge/commands/roomi-fields/paper-trail/paper-trail-new-paper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 717 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.00035 $0.00717
Opus 5 $0.00017 $0.00358
Sonnet 5 $0.00007 $0.00143
Haiku 4.5 $0.00003 $0.00072

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

Security

Grade A, and why

paper-trail-new-paper 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 10d 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.

commands/paper-trail-new-paper.md · 90 lines

How it starts

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

/paper-trail:new-paper — Start writing an academic paper

Invoke the paper-writer skill to start drafting an academic paper.

Usage

/paper-trail:new-paper <topic>
/paper-trail:new-paper <topic> --venue ISMIR|SMC|NeurIPS|ACL|...
/paper-trail:new-paper <topic> --based-on <SOTA1>,<SOTA2>,...

What it does

  1. Identifies SOTAs in the vault relevant to the topic (via the adapter)
  2. Verifies the SOTAs are audited (/paper-trail:audit-sota underneath)
  3. Sets up the paper structure (IMRaD by default, venue-specific conventions if --venue is set)
  4. Drafts each section :
    • Methods & Results : skeleton with TODOs for user content
    • Related Work : draws from audited SOTAs, citing sota_cited_confirmed refs only
  5. Updates cited_in[] of each cited ref's frontmatter
  6. Pre-submission : prompts user to run /paper-trail:audit-article

Safeguards

  • PreToolUse hook (tools/precheck_sota_wikilinks.py) blocks the write if any cited wikilink points to a non-validated ref
  • Citation-receipts mandatory before considering the paper ready for submission
  • No inventing references : only consumes from the audited registry

Examples

Standard usage

/paper-trail:new-paper "Petri nets for music notation"

Skill identifies relevant SOTAs (e.g., SOTA_Music_Notation_Formal, SOTA_Petri_Nets_in_Arts), proposes draft outline.

Venue-specific

/paper-trail:new-paper "Polyrhythm quantification" --venue ISMIR

6-page IMRaD structure matching ISMIR LaTeX template.

Based on specific SOTAs

/paper-trail:new-paper "Generation-recognition asymmetry" \
  --based-on SOTA_Asymmetry_Languages,SOTA_Formal_Grammars

Restricts the Related Work section to these specific SOTAs.

Output

  • Draft paper file at the location appropriate for the venue (e.g., 40_OUTPUT/Papers/<topic>/<paper>.tex for LaTeX, or Markdown if Markdown-based workflow)
  • .bib file generated from the cited refs
  • A TODO list of sections needing user content (Methods, Results)

Read the full file on GitHub · 90 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. 10d ago First seen · 90 lines · 35 tokens per session scan A 575819a11859

Subscribe to this mod's changes

paper-trail-new-paper is a command published in the GitHub repository roomi-fields/paper-trail (5 stars, last pushed 7d ago), licensed MIT. It adds 35 tokens to every session and 717 once invoked, about $0.0002 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-31.