skills/43-wentorai-research-plugins/skills/tools/document/anystyle-api/SKILL.md
Citation reference parser using machine learning
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research anystyle-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
AnyStyle is a fast and smart citation reference parser that uses machine learning (specifically conditional random fields, CRFs) to extract structured bibliographic data from unformatted citation strings. It can parse raw reference text into structured fields such as author, title, journal, volume, pages, year, and DOI, handling the enormous variety of citation formats found in academic literature.
The AnyStyle service provides both a web interface and an API endpoint for programmatic citation parsing. Unlike rule-based parsers that rely on specific citation style templates, AnyStyle uses a trained machine learning model that generalizes across citation formats, making it effective for parsing references from diverse disciplines and publication traditions where citation styles vary widely.
Researchers, librarians, digital humanists, and research software developers use AnyStyle to extract structured references from PDF documents, legacy bibliographies, dissertation reference lists, and scanned documents. It is particularly valuable for building citation networks, enriching bibliographic databases, migrating references between management tools, and processing large volumes of unstructured citation data that would be impractical to parse manually.
No authentication required. The AnyStyle web service is freely accessible without any API key, token, or registration. The service can be used via the web interface at https://anystyle.io/ or through its API endpoint. For heavy usage or private deployments, AnyStyle is also available as an open-source Ruby gem that can be installed locally.
Submit raw citation text and receive structured bibliographic data extracted by the machine learning parser. The endpoint accepts one or more citation strings and returns parsed fields for each reference.
POST https://anystyle.io/parse| Parameter | Type | Required | Description |
|-----------|--------|----------|--------------------------------------------------------------|
| body | string | Yes | Raw citation text (one reference per line in the POST body) |
| format | string | No | Output format: json (default), xml, bib (BibTeX) |
# Parse a single citation
curl -X POST "https://anystyle.io/parse" \
-H "Content-Type: text/plain" \
-d "Vaswani, A., Shazeer, N., Parmar, N., et al. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 30, 5998-6008."
# Parse multiple citations (one per line)
curl -X POST "https://anystyle.io/parse" \
-H "Content-Type: text/plain" \
-d "Vaswani, A. et al. (2017). Attention is all you need. NeurIPS 30, 5998-6008.
LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521(7553), 436-444.
Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2012). ImageNet classification with deep convolutional neural networks. NeurIPS 25."
[
{
"author": [{"family": "Vaswani", "given": "A."}, {"family": "Shazeer", "given": "N."}],
"title": ["Attention is all you need"],
"date": ["2017"],
"container-title": ["Advances in Neural Information Processing Systems"],
"volume": ["30"],
"pages": ["5998-6008"],
"type": "article-journal"
}
]
Key response fields include author (array of name objects), title, date, container-title (journal/conference name), volume, issue, pages, doi, url, publisher, location, and type (inferred reference type).
No formal rate limits are documented for the AnyStyle web service. However, the service is provided as a free community resource, so users should exercise responsible usage patterns. For high-volume parsing tasks (thousands of citations or more), it is strongly recommended to install the AnyStyle Ruby gem locally:
gem install anystyle
The local installation provides the same parsing capabilities without any network dependencies or rate concerns, and supports batch processing of large reference lists and PDF files directly.
Extract structured data from a raw reference list copied from a PDF:
import requests
references = """Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., ... & Polosukhin, I. (2017). Attention is all you need. Advances in neural information processing systems, 30.
Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. NAACL-HLT, 4171-4186.
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., et al. (2020). Language models are few-shot learners. NeurIPS 33, 1877-1901."""
resp = requests.post(
"https://anystyle.io/parse",
headers={"Content-Type": "text/plain"},
data=references
)
for ref in resp.json():
authors = ", ".join(
f"{a.get('family', '')} {a.get('given', '')}" for a in ref.get("author", [])
)
title = ref.get("title", [""])[0]
year = ref.get("date", [""])[0]
journal = ref.get("container-title", [""])[0]
print(f"{authors} ({year}). {title}. {journal}")
Process reference lists from multiple papers for citation network analysis:
import requests
def parse_references(raw_text):
"""Parse raw citation text into structured records."""
resp = requests.post(
"https://anystyle.io/parse",
headers={"Content-Type": "text/plain"},
data=raw_text
)
if resp.status_code == 200:
return resp.json()
return []
# Process references from multiple source documents
documents = {
"paper_A": "Smith, J. (2020). Title A. Journal X, 1, 1-10.\nDoe, J. (2019). Title B. Journal Y, 2, 20-30.",
"paper_B": "Jones, K. (2021). Title C. Conference Z, 100-110.\nSmith, J. (2020). Title A. Journal X, 1, 1-10."
}
citation_graph = {}
for doc_id, refs in documents.items():
parsed = parse_references(refs)
citation_graph[doc_id] = parsed
print(f"{doc_id}: parsed {len(parsed)} references")
Transform unstructured references into BibTeX entries for use with LaTeX:
import requests
citation = "Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep Learning. MIT Press."
resp = requests.post(
"https://anystyle.io/parse",
headers={"Content-Type": "text/plain"},
data=citation
)
parsed = resp.json()[0]
# Build a BibTeX entry from parsed fields
authors = " and ".join(
f"{a.get('family', '')}, {a.get('given', '')}" for a in parsed.get("author", [])
)
bib_key = parsed.get("author", [{}])[0].get("family", "unknown").lower() + parsed.get("date", ["0000"])[0]
print(f"@book{{{bib_key},")
print(f" author = {{{authors}}},")
print(f" title = {{{parsed.get('title', [''])[0]}}},")
print(f" year = {{{parsed.get('date', [''])[0]}}},")
print(f" publisher = {{{parsed.get('publisher', [''])[0] if parsed.get('publisher') else 'Unknown'}}}")
print("}")
For large-scale processing, install AnyStyle locally as a Ruby gem:
# Install the gem
gem install anystyle
# Parse references from command line
anystyle parse "Smith, J. (2020). My Paper. Journal, 1, 1-10."
# Parse references from a text file
anystyle parse references.txt --format json > parsed.json
# Parse references directly from a PDF
anystyle find document.pdf --format json > extracted_refs.json
tools
Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening, citation-checking, and paper writing. Use when the user asks "what tool should I use to..." OR "install/run/use <tool> to ..." for research/lit-review work: automating a survey or related-work section, PDF→Markdown extraction for LLMs (MinerU/marker/docling), PRISMA / systematic review (ASReview), citation-backed Q&A over PDFs (PaperQA2), wiring papers into Claude/Cursor via MCP (arxiv/paper-search/zotero servers), or chatting with a Zotero library. Ships a launcher (scripts/litrun.py) that installs each tool in an isolated venv and runs it. Curated catalog of 70+ vetted projects. 支持中英文(用于「文献综述工具选型」与「一键安装/运行」)。
development
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
documentation
Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.
tools
Guide economists to authoritative data sources with explicit, confirmed data specifications before retrieval; interfaces with Playwright MCP to navigate portals and extract real data, not articles about data.