AgentSkillsCN

citation-management

全面管理学术研究的引用。支持 Google Scholar、PubMed 搜索,提取元数据,生成 BibTeX,并验证引用。

SKILL.md
--- frontmatter
name: citation-management
description: Comprehensive citation management for academic research. Search Google Scholar, PubMed, extract metadata, form BibTeX, and validate citations.
allowed-tools: [Read, Write, Edit, Bash]

Citation Management

Overview

Manage citations systematically throughout the research and writing process. This skill provides tools for searching academic databases (Google Scholar, PubMed), extracting accurate metadata, validating citation information, and generating properly formatted BibTeX entries.

Core Capabilities:

  1. Search: Find papers on Google Scholar and PubMed.
  2. Extract: Convert DOIs/PMIDs/URLs to complete BibTeX.
  3. Format: Clean and standardize BibTeX files.
  4. Validate: Check for errors, broken DOIs, and duplicates.

Core Workflow

Phase 1: Search

Detailed Guides:

bash
# Google Scholar
python scripts/search_google_scholar.py "topic" --limit 50 --output results.json

# PubMed with MeSH
python scripts/search_pubmed.py --query '"Topic"[MeSH]' --output results.json

Phase 2: Metadata Extraction

Detailed Guide: Metadata Extraction

bash
# From DOI/PMID/ArXiv/URL
python scripts/extract_metadata.py --doi 10.1038/nature12345
python scripts/extract_metadata.py --pmid 12345678
python scripts/extract_metadata.py --arxiv 2301.00000

# Batch from file
python scripts/extract_metadata.py --input ids.txt --output refs.bib

Phase 3: BibTeX Formatting

Detailed Guide: BibTeX Formatting

bash
# Clean, Sort, Deduplicate
python scripts/format_bibtex.py raw.bib \
  --deduplicate \
  --sort year \
  --output clean.bib

Phase 4: Validation

Detailed Guide: Citation Validation

bash
# Check accuracy and fix common errors
python scripts/validate_citations.py clean.bib \
  --auto-fix \
  --report report.json \
  --output final.bib

Quick Reference: Scripts and Tools

ScriptPurpose
search_google_scholar.pySearch Google Scholar for papers.
search_pubmed.pySearch PubMed using E-utilities.
extract_metadata.pyGet metadata from identifiers (DOI, PMID, etc.).
doi_to_bibtex.pyFast DOI-to-BibTeX conversion.
format_bibtex.pyClean, sort, and deduplicate BibTeX files.
validate_citations.pyVerify accuracy and find errors.

Integration

This skill is designed to be orchestrated by the Academic Author skill.

  • Academic Author: Writing and structure.
  • Citation Management: Reference accuracy and formatting.
  • Scientific Schematics: Diagram generation.

See ../academic-author/SKILL.md for the overarching workflow.