Citation decay
Read-only citation-freshness analytics — recent-citers, citation velocity, stale-paper detection. Pure SQL on graph + per-paper metadata.json years.From its SKILL.md
npx -y skills add epireve/coscientist --skill citation-decayAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.4 KB, as published. Nobody here has run it
citation-decay
Read-only over the project graph. No writes. Surfaces citation freshness
signals by joining cites edges (citer → target) with each paper's
metadata.json["year"].
Scripts
| Script | Subcommands | Purpose |
|---|---|---|
citation_decay.py | for-paper, velocity, stale | Citation-freshness aggregation |
Subcommands
citation_decay.py for-paper --project-id P --canonical-id CID
[--decay-years 5] [--current-year 2026]
[--format json|text]
citation_decay.py velocity --project-id P [--top-n 20]
[--current-year 2026] [--format json|text]
citation_decay.py stale --project-id P [--min-citations 5]
[--decay-years 5] [--current-year 2026]
[--format json|text]
Algorithm
for-paper:
- Find target paper node + year from
metadata.json["year"]. - Pull
citesedges whereto_node = paper:<cid>(the citers). - Bucket each citer by its own year (skip citers without year).
- Return
{year_buckets, most_recent_citer_year, total_citations, recent_window_count}where recent-window covers the lastdecay-yearsrelative tocurrent-year.
velocity:
- For each paper node with a known year:
- Count incoming
citesedges. - velocity = citations / max(1, current_year - paper_year).
- Count incoming
- Sort desc; cap at
--top-n.
stale:
- For each paper with a known year and
total_citations >= min_citations:- Find max(citer_year). If
< current_year - decay_years→ stale.
- Find max(citer_year). If
- Return list sorted by total_citations DESC.
Caveats
- Year extracted from
metadata.json["year"]per paper (best-effort). Papers without year are silently skipped from velocity / stale and return an error dict fromfor-paper. current_yeardefaults to 2026; override via--current-yearfor testability.- Errors return
{error: ...}dicts — never raises. - Pure read-only by construction; no graph mutations.