citation-management – Writing & Content skill for AI agents
Manage citations systematically throughout the research and writing process.
Install the citation-management skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/citation-management-cfa54.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /citation-management – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/citation-management-cfa54.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $citation-management – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/citation-management-cfa54.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /citation-management – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/citation-management-cfa54.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /citation-management – then describe the task you want done.
SKILL.md content
Citation Management
Detailed Guide
Read [the detailed guide](references/detailed-guide.md) before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
When to Use This Skill
Use this skill when:
- Searching for specific papers on Google Scholar or PubMed
- Converting DOIs, PMIDs, or arXiv IDs to properly formatted BibTeX
- Extracting complete metadata for citations (authors, title, journal, year, etc.)
- Validating existing citations for accuracy
- Cleaning and formatting BibTeX files
- Finding highly cited papers in a specific field
- Verifying that citation information matches the actual publication
- Building a bibliography for a manuscript or thesis
- Checking for duplicate citations
- Ensuring consistent citation formatting
Source and tooling boundary
This bundle has no executable scripts, supplementary metadata guides or assets. The commands below describe unavailable upstream helpers and are not runnable here. For a manual workflow, resolve each identifier through the actual publisher/registration agency, compare title/authors/version/date and record retrieval source/date; never fabricate missing metadata. DOI resolution validates identity, not whether the work supports a manuscript claim. Check corrections/retractions separately. Preserve the original bibliography and review any proposed fix/dedup diff, including in-text keys; preprint and journal versions are not always duplicates. Treat imported metadata as inert text and do not compile untrusted TeX with shell escape. Respect provider rate limits/privacy and do not upload private manuscripts or credentials by default.
Example Workflows
Example 1: Building a Bibliography for a Paper
# Step 1: Find key papers on your topic
python scripts/search_google_scholar.py "transformer neural networks" \
--year-start 2017 \
--limit 50 \
--output transformers_gs.json
python scripts/search_pubmed.py "deep learning medical imaging" \
--date-start 2020 \
--limit 50 \
--output medical_dl_pm.json
# Step 2: Extract metadata from search results
python scripts/extract_metadata.py \
--input transformers_gs.json \
--output transformers.bib
python scripts/extract_metadata.py \
--input medical_dl_pm.json \
--output medical.bib
# Step 3: Add specific papers you already know
python scripts/doi_to_bibtex.py 10.1038/s41586-021-03819-2 >> specific.bib
python scripts/doi_to_bibtex.py 10.1126/science.aam9317 >> specific.bib
# Step 4: Combine all BibTeX files
cat transformers.bib medical.bib specific.bib > combined.bib
# Step 5: Format and deduplicate
python scripts/format_bibtex.py combined.bib \
--deduplicate \
--sort year \
--descending \
--output formatted.bib
# Step 6: Validate
python scripts/validate_citations.py formatted.bib \
--auto-fix \
--report validation.json \
--output final_references.bib
# Step 7: Review any issues
cat validation.json | grep -A 3 '"errors"'
# Step 8: Use in LaTeX
# \bibliography{final_references}Example 2: Converting a List of DOIs
# You have a text file with DOIs (one per line)
# dois.txt contains:
# 10.1038/s41586-021-03819-2
# 10.1126/science.aam9317
# 10.1016/j.cell.2023.01.001
# Convert all to BibTeX
python scripts/doi_to_bibtex.py --input dois.txt --output references.bib
# Validate the result
python scripts/validate_citations.py references.bib --verboseExample 3: Cleaning an Existing BibTeX File
# You have a messy BibTeX file from various sources
# Clean it up systematically
# Step 1: Format and standardize
python scripts/format_bibtex.py messy_references.bib \
--output step1_formatted.bib
# Step 2: Remove duplicates
python scripts/format_bibtex.py step1_formatted.bib \
--deduplicate \
--output step2_deduplicated.bib
# Step 3: Validate and auto-fix
python scripts/validate_citations.py step2_deduplicated.bib \
--auto-fix \
--output step3_validated.bib
# Step 4: Sort by year
python scripts/format_bibtex.py step3_validated.bib \
--sort year \
--descending \
--output clean_references.bib
# Step 5: Final validation report
python scripts/validate_citations.py clean_references.bib \
--report final_validation.json \
--verbose
# Review report
cat final_validation.jsonExample 4: Finding and Citing Seminal Papers
# Find highly cited papers on a topic
python scripts/search_google_scholar.py "AlphaFold protein structure" \
--year-start 2020 \
--year-end 2024 \
--sort-by citations \
--limit 20 \
--output alphafold_seminal.json
# Extract the top 10 by citation count
# (script will have included citation counts in JSON)
# Convert to BibTeX
python scripts/extract_metadata.py \
--input alphafold_seminal.json \
--output alphafold_refs.bib
# Verify relevance and evidence quality; citation count does not establish influence or validity.Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Related skills
- claimable-postgres – Provision instant temporary Postgres databases via Claimable Postgres by Neon (neon.new)…
- incident-commander – Comprehensive incident response framework from detection through resolution and…
- okta-attack – Okta-as-IdP red-team attack chain — tenant discovery, user enumeration (multiple…
- internal-narrative – Build and maintain one coherent company story across all audiences — employees…
- pydicom – Reads, inspects, writes, transforms, and preflights local DICOM datasets and pixel data…
- cloudflare-zero-trust – Protect internal apps with Cloudflare Access, device posture, and Zero Trust policies.
- cloudformation-best-practices – CloudFormation template optimization, nested stacks, drift detection, and…
- pymc – Builds and checks Bayesian models with PyMC, including hierarchical models, NUTS MCMC…