scientific-writing: Agent for Claude Code

.claude/agents/citation-mapper.md

citation-mapper is an agent for Claude Code from koljaschoepe/scientific-writing. It costs 0 tokens per session (1,143 once invoked), scanned A, original, MIT.

An agent that maps sources and quotations to sections of a research outline. It first checks the project's configuration and required draft files, and it can skip source work when the project is configured without sources.

In plain words
What is it for?
Connecting literature entries and quotations to chapters, identifying source gaps, prioritizing additional research, and creating a citation-mapping draft.
Why use it?
It shows which references support each part of a planned document and highlights missing evidence. The configuration check prevents it from doing unnecessary citation work.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is koljaschoepe/scientific-writing's own configuration. It tells Claude Code how to work on scientific-writing itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything scientific-writing configures →

Reuse

Borrowing it

Nothing to install: this file belongs to koljaschoepe/scientific-writing. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/koljaschoepe/scientific-writing/main/.claude/agents/citation-mapper.md
Clone the repo
git clone --depth 1 https://github.com/koljaschoepe/scientific-writing

Made for: Claude Code.

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 citation-mapper

README.md
[![agentmods](https://agentmods.dev/badge/agents/koljaschoepe/scientific-writing/citation-mapper/github.svg)](https://agentmods.dev/agents/koljaschoepe/scientific-writing/citation-mapper)
Your own site
<a href="https://agentmods.dev/agents/koljaschoepe/scientific-writing/citation-mapper"><img src="https://agentmods.dev/badge/agents/koljaschoepe/scientific-writing/citation-mapper/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 citation-mapper

Your own site · 80×15
<a href="https://agentmods.dev/agents/koljaschoepe/scientific-writing/citation-mapper"><img src="https://agentmods.dev/badge/agents/koljaschoepe/scientific-writing/citation-mapper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,143 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.00000 $0.01143
Opus 5 $0.00000 $0.00571
Sonnet 5 $0.00000 $0.00229
Haiku 4.5 $0.00000 $0.00114

Measured 9d ago against content hash 04df5d713fdd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

citation-mapper 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 9d 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.

.claude/agents/citation-mapper.md · 148 lines

How it starts

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

Agent: Citation Mapper

Quellen-Modus prüfen

Lies ZUERST config.yaml und prüfe quellen.workflow:

Falls quellen.workflow: "keine":

  • Erstelle eine minimale Zuordnungsdatei mit dem Hinweis "Ohne Quellen konfiguriert"
  • Speichere in output/phase-03-citations/draft/citation-mapping.md:
    ---
    phase: 3
    status: draft
    datum: [DATUM]
    quellen_gesamt: 0
    zitate_gesamt: 0
    ---
    # Zitat-Zuordnung
    
    Projekt ist ohne Quellen konfiguriert (quellen.workflow: keine).
    Phase 3 wird übersprungen. Weiter mit Phase 4.
    
  • Beende den Agent sofort danach

Falls quellen.workflow einen anderen Wert hat: Normaler Modus, weiter mit Aufgabe.

Rolle

Ordnet die vorhandenen Quellen und Zitate aus der Literaturdatenbank den einzelnen Kapiteln der Gliederung zu. Identifiziert Luecken und priorisiert fehlende Quellen.

Kontext laden

Lies IMMER zuerst:

  • @config.yaml
  • @output/phase-02-outline/final/outline.md
  • @output/phase-02-outline/final/thesis-structure.yaml
  • @sources/literature.md

Vorbedingungen

STOPPE falls:

  • Keine Gliederung in output/phase-02-outline/final/ -> "Schließe Phase 2 ab."
  • sources/literature.md ist leer oder enthält keine Einträge -> "Füge zuerst Quellen mit /cite hinzu."

Babysitter-Modus

Erkläre dem User zu Beginn: "Jetzt ordne ich deine Quellen den einzelnen Kapiteln zu. So stellen wir sicher, dass jedes Kapitel genügend wissenschaftliche Belege hat. Ich zeige dir auch, wo noch Quellen fehlen."

Aufgabe

1. Quellen analysieren

Lies alle Einträge aus sources/literature.md:

  • Erfasse Anzahl Quellen und Zitate
  • Identifiziere thematische Schwerpunkte
  • Prüfe Quellenqualität (Peer-reviewed > Monographie > Fachbuch > Website)

2. Zitate zuordnen

Für jedes Zitat in PART 2 der Literaturdatenbank:

  • Bestimme das passende Kapitel anhand von Inhalt und Gliederung
  • Setze zugeordnet_zu auf die Kapitelnummer (z.B. "2.3")
  • Begründe die Zuordnung kurz

3. Zitationsdichte prüfen

Richtwerte:

  • Einleitung/Fazit: 3-5 Zitate pro Seite
  • Theoretische Grundlagen: 8-10 Zitate pro Seite
  • Hauptteil: 5-8 Zitate pro Seite
  • Empfehlungen/Diskussion: 4-6 Zitate pro Seite

Read the full file on GitHub · 148 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. 9d ago First seen · 148 lines · 0 tokens per session scan A 04df5d713fdd

Subscribe to this mod's changes

citation-mapper is an agent published in the GitHub repository koljaschoepe/scientific-writing (11 stars, last pushed 22d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,143 tokens. 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.

Related

Other agents, from other repositories

editor

Journal editor who desk-reviews manuscripts, selects two referees with deliberately different dispositions, calibrates to a target journal from .claude/references/journal-profiles.md, and synthesizes an editorial decision (FATAL / ADDRESSABLE / TASTE). Used by /review-paper --peer [journal].

pedrohcgs/claude-code-my-workflow · 64 tokens

beamer-translator

Specialist agent for translating Beamer LaTeX slides to Quarto RevealJS. Handles content translation, environment mapping, citation conversion, and formatting. Use as a subagent during the /translate-to-quarto workflow for the actual slide-by-slide translation work.

pedrohcgs/claude-code-my-workflow · 57 tokens

humanize-auditor

Read-only auditor for AI-voice tells in academic prose. Reviews .tex, .qmd, .md files for the 10 detection categories defined in /humanize (boilerplate transitions, AI-cliché lexicon, em-dash overuse, symmetric paragraph shapes, tricolon abuse, hedging stacking, "not only X but also Y" frames, formulaic openers…

pedrohcgs/claude-code-my-workflow · 117 tokens

synthesis_agent

Integrates findings across sources, resolves evidence conflicts, and maps knowledge gaps.

Imbad0202/academic-research-skills-codex · 18 tokens

argument_builder_agent

Constructs the papers core argument and logical reasoning structure.

Imbad0202/academic-research-skills-codex · 14 tokens

perspective_reviewer_agent

Peer Reviewer 3; evaluates cross-disciplinary relevance, broader impact, and alternative interpretations.

Imbad0202/academic-research-skills-codex · 22 tokens