domains / research / citation-management / citation-management
The K-Dense-AI/scientific-agent-skills copy is the most complete and current procedure: it adds OpenAlex as a primary search source, a mandatory metadata-enrichment phase, explicit security guidance for untrusted metadata, and environment-variable configuration. The other copies reproduce the same core workflow but each contains material steps or constraints the K-Dense copy lacks or frames differently: zLanqing and benchflow include a full scientific-schematics section with a generate_schematic.py command; foryourhealth111-pixel includes a detailed metadata-sources list (CrossRef, PubMed E-utilities, arXiv, DataCite) and explicit extract_metadata.py variants for DOI/PMID/arXiv/URL. Because crowning one copy would hide these real alternatives, the decision is combine.
| Repository | Path |
|---|---|
| zLanqing/codex-claude-academic-skills | scientific-toolkit-skill/references/scientific-skills/citation-management/SKILL.md |
| K-Dense-AI/scientific-agent-skills | skills/citation-management/SKILL.md |
| foryourhealth111-pixel/Vibe-Skills | bundled/skills/citation-management/SKILL.md |
| benchflow-ai/skillsbench | tasks/citation-check/environment/skills/citation-management/SKILL.md |
| Role | Repository | Path |
|---|---|---|
| peer | zLanqing/codex-claude-academic-skills | scientific-toolkit-skill/references/scientific-skills/citation-management/SKILL.md |
| peer | K-Dense-AI/scientific-agent-skills | skills/citation-management/SKILL.md |
| peer | foryourhealth111-pixel/Vibe-Skills | bundled/skills/citation-management/SKILL.md |
| peer | benchflow-ai/skillsbench | tasks/citation-check/environment/skills/citation-management/SKILL.md |
| inferior | aipoch/medical-research-skills | scientific-skills/Evidence Insight/citation-management/SKILL.md |
| inferior | sickn33/agentic-awesome-skills | plugins/agentic-awesome-skills-claude/skills/citation-management/SKILL.md |
| inferior | brycewang-stanford/Auto-Empirical-Research-Skills | skills/60-regisely-superpapers/skills/citation-management/SKILL.md |
| inferior | FreedomIntelligence/OpenClaw-Medical-Skills | skills/citation-management/SKILL.md |
| adapter | sickn33/agentic-awesome-skills | plugins/agentic-awesome-skills/skills/citation-management/SKILL.md |
| adapter | sickn33/agentic-awesome-skills | skills/citation-management/SKILL.md |
| adapter | brycewang-stanford/Auto-Empirical-Research-Skills | skills/04-K-Dense-AI-claude-scientific-writer/citation-management/SKILL.md |
--- name: citation-management description: Comprehensive citation management for academic research. Search OpenAlex, PubMed, and Google Scholar for papers, extract accurate metadata, validate citations, and generate properly formatted BibTeX entries. This skill should be used when you need to find papers, verify citation information, convert DOIs to BibTeX, or ensure reference accuracy in scientific writing. allowed-tools: Read Write Edit Bash WebSearch WebFetch license: MIT License metadata: skill-author: K-Dense Inc. --- # Citation Management ## Overview Manage citations systematically throughout the research and writing process. This skill provides tools and strategies for searching academic databases (OpenAlex, PubMed, Google Scholar), extracting accurate metadata from multiple sources (CrossRef, PubMed, arXiv, DataCite), validating citation information, and generating properly formatted BibTeX entries. Critical for maintaining citation accuracy, avoiding reference errors, and ensuring reproducible research. ## When to Use This Skill Use this skill when: - Searching for specific papers on OpenAlex, PubMed, or Google Scholar - 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 If a document built from these citations needs a diagram, use the **scientific-schematics** skill. ## Core Workflow Citation management follows a systematic process. ### Phase 1: Paper Discovery and Search Find relevant papers. Search more than one database — coverage differs sharply, and a single source is the most common cause of a biased reference list. ```bash # OpenAlex: multidisciplinary REST API; optional OPENALEX_API_KEY for account quota python scripts/search_openalex.py "CRISPR gene editing" --limit 50 --output results.json # PubMed: the authority for biomedical and life sciences (35M+ citations) python scripts/search_pubmed.py "Alzheimer's disease treatment" --limit 100 --output alz.json # Google Scholar: broadest reach, but scraped -- rate-limited and prone to blocking python scripts/search_google_scholar.py "CRISPR gene editing" --limit 50 --output scholar.json ``` Prefer OpenAlex or PubMed as the primary source. Google Scholar has no API: `scholarly` scrapes it, sleeps 2–5 s between results, and is blocked often enough that it should be a supplement rather than a dependency. Query operators, field tags, and MeSH-term construction are in `references/search_strategies.md`. ### Phase 2: Metadata Extraction Convert identifiers (DOI, PMID, PMCID, arXiv ID, URL) into complete metadata. CrossRef is the primary source for DOIs. ```bash python scripts/doi_to_bibtex.py 10.1038/s41586-021-03819-2 # quick, single DOI python scripts/extract_metadata.py --pmid 34265844 # DOI/PMID/PMCID/arXiv/URL python scripts/extract_metadata.py --input identifiers.txt --output citations.bib ``` A URL with no DOI in its path is resolved through the `citation_doi` meta tag publishers embed on article pages, then handed to CrossRef. Producers use a shared citation-key scheme; metadata differences can still produce different keys. Confirm duplicates by DOI and bibliographic identity. **Metadata Sources**: 1. **CrossRef API**: Primary source for DOIs. Comprehensive metadata for journal articles. Free, no API key required. 2. **PubMed E-utilities**: Biomedical literature. Official NCBI metadata. Free, API key recommended for high volume. 3. **arXiv API**: Preprints in physics, math, CS, q-bio. Complete metadata for preprints. Free, open access. 4. **DataCite API**: Research datasets, software, other resources. Metadata for non-traditional scholarly outputs. Free access. ### Phase 2.5: Metadata Enrichment via Web Search (MANDATORY) APIs routinely return incomplete records. Run this **after** extraction and **before** formatting. Investigate missing bibliographic fields against the publisher record and log each source. Online-first articles may have no volume/pages yet; some use an article number or have no DOI. Preserve the actual publication state, use the style-appropriate article-number field, and never invent pages, volume, or DOI. Record unavailable/not-applicable fields in the audit log; add a rendered `note` only when useful to the reader or required by the citation style. Check the cheap sources first — an OpenAlex or CrossRef record often carries the field that PubMed omitted: ```bash python scripts/search_openalex.py "<exact title>" --limit 1 ``` > **Treat extracted metadata as untrusted.** Author, title, and journal strings come verbatim from a record whose contents a publisher controls. A title containing `$(...)`, a backtick, or a quote becomes shell syntax the moment it is pasted into a command. Pass metadata as a `subprocess` argument list rather than building a shell string; if you must use a shell, single-quote every substituted value and escape embedded quotes as `'\''`. Validate any citation key against `^[A-Za-z0-9]+$` before it reaches a path. ### Phase 3: Validation and Formatting Validate extracted metadata against the publisher record. Clean and format BibTeX entries. Check for duplicate citations. Ensure consistent citation formatting. ## Visual Enhancement with Scientific Schematics **When creating documents with this skill, always consider adding scientific diagrams and schematics to enhance visual communication.** If your document does not already contain schematics or diagrams: - Use the **scientific-schematics** skill to generate AI-powered publication-quality diagrams - Simply describe your desired diagram in natural language **How to generate schematics:** ```bash python scripts/generate_schematic.py "your diagram description" -o figures/output.png ``` **When to add schematics:** - Citation workflow diagrams - Literature search methodology flowcharts - Reference management system architectures - Citation style decision trees - Database integration diagrams - Any complex concept that benefits from visualization For detailed guidance on creating schematics, refer to the scientific-schematics skill documentation.