update-references

update-references is a skill for Claude Code, Codex from petar-djukic/writing-skills. It costs 127 tokens per session (4,159 once invoked), scanned A, original, MIT.

A research-paper workflow that searches academic sources, downloads and summarizes relevant papers, and keeps their citations in a reusable file.

In plain words
What is it for?
Use it to research topics related to the current codebase, build a reading list, and maintain references for papers written with tools such as Pandoc.
Why use it?
It removes the need to repeat searches, reread papers, and manually track citation details for each project.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to research topics related to the current codebase, build a reading list, and maintain references for papers written with tools such as Pandoc.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/petar-djukic/writing-skills/update-references
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.

Any agent
npx skills add petar-djukic/writing-skills --skill update-references
Clone the repo
git clone --depth 1 https://github.com/petar-djukic/writing-skills

Made for: Claude Code, Codex.

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 update-references

README.md
[![agentmods](https://agentmods.dev/badge/skills/petar-djukic/writing-skills/update-references/github.svg)](https://agentmods.dev/skills/petar-djukic/writing-skills/update-references)
Your own site
<a href="https://agentmods.dev/skills/petar-djukic/writing-skills/update-references"><img src="https://agentmods.dev/badge/skills/petar-djukic/writing-skills/update-references/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 update-references

Your own site · 80×15
<a href="https://agentmods.dev/skills/petar-djukic/writing-skills/update-references"><img src="https://agentmods.dev/badge/skills/petar-djukic/writing-skills/update-references.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,159 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.00127 $0.04159
Opus 5 $0.00063 $0.02080
Sonnet 5 $0.00025 $0.00832
Haiku 4.5 $0.00013 $0.00416

Measured 6d ago against content hash 73e7b684db0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

update-references 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 6d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (scripts/_naming.py, scripts/_refdb.py, scripts/arxiv.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/update-references/SKILL.md · 346 lines

How it starts

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

This skill turns "find me what's been written about this" into a small, repeatable pipeline: read what the user is working on, search arXiv (and, for off-arXiv work, Semantic Scholar or Google Scholar) for related papers, download the relevant ones, read them, write a summary per paper, and keep a Citation Style Language (CSL) YAML database so work is never repeated and versions stay current.

The standing interests are LLMs, AI agents, finite state machines, and declarative agent patterns — the territory of spindle (github.com/petar-djukic/spindle), a Go state-machine engine for agentic loops. Lean toward those topics, but always sharpen the search using whatever the current working directory is actually about.

Where things live

This skill is context-aware. It runs from the directory the user is working in, and it stores its outputs there — not in a fixed global location. Resolve paths like this:

  • Database: references.yaml under the current working directory, unless an existing one is already nearby (look for a references.yaml at or above the working directory and reuse it). Pass the chosen path as --db to every script call so search, fetch, and record all agree. If only a legacy arxiv/papers.yaml exists, the scripts read it transparently and convert on next write.
  • PDFs: <db-dir>/pdfs/ (transient — they exist to be read; they don't need to be committed). The script resolves this relative to the database, not the current directory, so PDFs land next to the db even when run from elsewhere.
  • Papers (markdown): <db-dir>/papers/fetch converts each PDF to markdown automatically (best-effort via pymupdf4llm), preserving headings, tables, and math. Papers are readable in any editor or tool.
  • Summaries: <db-dir>/summaries/, one file per paper.

The PDF, markdown, and summary of a paper share one human-friendly stem: <Family>-<Year>-<title-slug>-<source>-<id> (for example Lee-2026-meta-harness-end-to-end-optimization-arxiv-2603.28052). The <source>-<id> tail is arxiv-<id>vN, doi-<doi>, or scholar-<key>, so any file traces back to its source at a glance. This differs from the pandoc citation key, which stays short — just <family>-<year> (see the database format). repair renames files created under the older naming scheme.

  • Manual-download list: <db-dir>/downloads-needed.md — regenerated by scholar.py pending, a checklist of papers that could not be downloaded (paywalled or behind a login) with a landing URL for each. Derived from the database, so it is disposable, not hand-maintained. An entry carrying download: deferred is kept off the checklist (it lists compactly at the bottom instead) — set it on metadata-only entries the current work does not cite, and remove it when a citation pass starts citing the entry.

Read the full file on GitHub · 346 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. 6d ago Changed · +12 lines 73e7b684db0a
  2. 11d ago First seen · 334 lines · 127 tokens per session scan A 4ad575dae53e

Subscribe to this mod's changes

update-references is a skill published in the GitHub repository petar-djukic/writing-skills (4 stars, last pushed 7d ago), licensed MIT. It adds 127 tokens to every session and 4,159 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

humanizer

Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague…

NulightJens/humanizer-stack · 111 tokens

structural-humanizer

Remove the discourse-level (structural) signs of AI writing that survive surface editing: stated lessons and moral-of-the-story closers, tidy single-track arcs, embodied-emotion performance ("chest tightened"), vague allusions instead of named references, unbroken linear structure, and shape convergence across pieces.…

NulightJens/humanizer-stack · 188 tokens

story-import

A tool for turning an existing novel into a structured writing project. It analyzes the book and organizes its characters, settings, plot plans, chapters, and tracking data for later writing.

zenstory-ai/oh-story-claudecode · 98 tokens

story-review

A review workflow for finding story problems from several viewpoints, including issues with structure, characters, wording, and fictional world rules. It can use multiple reviewer agents or work alone.

zenstory-ai/oh-story-claudecode · 74 tokens

story-long-analyze

A long-form fiction analysis workflow for breaking down a novel’s opening chapters, characters, pacing, turning points, relationships, and overall structure.

zenstory-ai/oh-story-claudecode · 173 tokens

story-deslop

A writing editor for Chinese web novels that detects writing patterns often associated with AI-generated text and makes the prose feel more natural.

zenstory-ai/oh-story-claudecode · 62 tokens