bib-formatter
Convert reference lists and in-text citations between RIS, BibTeX, plain text, and CSL-JSON, triggered when you need to unify bibliography/citation styles before journal submission or compare before/after formatting differences.
Install / Use
npx skills add aipoch/medical-research-skills --skill bib-formatterInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Education & ResearchSupported Platforms
Our assessment of bib-formatter
bib-formatter scores 92/100 on our quality scale, 104th of 409 Education & Research skills we index (top 26%).
Its SKILL.md is 6.9 KB long, well organised into 16 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.
With 1,916 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 15 days ago, so bib-formatter is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
bib-formatter compared with similar skills
All 4 of these similar skills score higher than bib-formatter; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| bib-formatter (this skill)by aipoch | 92 | 1.9k | 15d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 88.1k | 17d ago | CLAUDE.md |
| last30days-skillby mvanhorn | 100 | 63.4k | 1d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 10d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 10d ago | SKILL.md |
Frequently asked questions
- How do I install bib-formatter?
- Run
npx skills add aipoch/medical-research-skills --skill bib-formatter. The install tabs above show the steps for each supported agent. - Which AI agents does bib-formatter work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is bib-formatter safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is bib-formatter still maintained?
- The repository was last updated 15 days ago, so bib-formatter is actively maintained.
Skill content
View source on GitHubname: bib-formatter description: Convert reference lists and in-text citations between RIS, BibTeX, plain text, and CSL-JSON, triggered when you need to unify bibliography/citation styles before journal submission or compare before/after formatting differences. license: MIT author: AIPOCH
When to Use
- You have a bibliography in RIS/BibTeX/plain text/CSL-JSON and must reformat it to a journal style (e.g., NEJM, The Lancet, Nature) before submission.
- You need to switch in-text citation formatting (e.g., generating formatted citations for specific cite keys/IDs).
- You are consolidating references from multiple sources and want a single consistent output style.
- You want a before/after comparison to verify formatting changes and spot missing metadata.
- You need to validate and repair incomplete entries (missing authors, year, journal, pages, DOI/URL) prior to final export.
Key Features
- Supports input formats: RIS, BibTeX, plain text, CSL-JSON.
- Outputs bibliography entries compatible with CSL styles (including NEJM/Lancet/Nature or any custom
.csl). - Journal-name driven style selection with automatic CSL retrieval (exact match preferred; download first, then search fallback).
- Batch conversion via
scripts/format_bibliography.py. - In-text citation generation mode for specified cite keys/IDs.
- Produces a Markdown Before/After table (minimum 2 examples) for quick review.
- Detects entries that cannot be reliably parsed and requests missing fields.
Dependencies
- Python 3.10+
- Citation Style Language (CSL) style files (
.csl) for target formatting (e.g.,styles/nature.csl,styles/the-lancet.csl,styles/new-england-journal-of-medicine.csl)
Example Usage
1) Auto-retrieve a journal style (recommended)
python scripts/format_bibliography.py \
--input refs.bib \
--input-format bibtex \
--journal "Nature"
2) Use a local CSL style file for bibliography formatting
python scripts/format_bibliography.py \
--input refs.bib \
--input-format bibtex \
--style "styles/nature.csl" \
--output formatted.txt
3) RIS input example
python scripts/format_bibliography.py \
--input refs.ris \
--input-format ris \
--style "styles/the-lancet.csl"
4) In-text citations mode (format citations for specific IDs)
python scripts/format_bibliography.py \
--input refs.json \
--input-format csljson \
--style "styles/new-england-journal-of-medicine.csl" \
--mode citations \
--cite-keys "ITEM-1,ITEM-2"
Implementation Details
-
Workflow
- Collect input text/files and identify the input format:
ris | bibtex | plain | csljson. - Choose the target style by either:
- providing
--journal "<Journal Name>"(auto-retrieval; exact match prioritized; download first, then search), or - providing
--style "<path/to/style.csl>"(local CSL file).
- providing
- Run batch conversion using
scripts/format_bibliography.py. - Validate completeness of critical fields and rerun after fixing missing metadata:
- author(s), year, title, journal/container title, volume/issue, pages, DOI/URL.
- After formatting, append a Markdown comparison table with at least two Before/After examples.
- Collect input text/files and identify the input format:
-
Input parsing and field mapping
- Refer to
references/input-formats.mdfor parsing rules, field mapping, and format-specific details.
- Refer to
-
Output requirements
- All instructions/prompts shown to the user must be in Chinese.
- Clearly state the target CSL style and the source input format.
- For entries that cannot be reliably parsed, prompt in Chinese and list the missing fields that must be completed.
- Always include a Markdown Before/After comparison table (≥ 2 examples) at the end.
-
Quality checklist
- Output matches the target journal style (NEJM/Lancet/Nature/custom CSL).
- Required metadata is complete: author, year, journal, volume/issue/pages, DOI/URL.
- Sorting, punctuation, and capitalization follow the CSL style rules.
When Not to Use
- Do not proceed when required input files, identifiers, parameters, or context are missing — ask the user to provide them first.
- Do not assume capabilities beyond this skill's declared scope when the user requests external operations or inferences.
- Do not proceed without user confirmation when overwriting existing results, executing high-cost batch operations, or expanding task scope.
Required Inputs
| Field | Required | Format/Source | Example | If Missing | |---|---|---|---|---| | User task description | Yes | Text | Research question, writing goal, analysis objective | Stop and ask user to provide | | Primary input material | Depends on task | Text, file path, ID, table, or literature | PMID, PDF, CSV, DOCX, keywords, etc. | Specify which material type is missing | | Output preference | No | Text | Language, format, target journal, template | Use skill default format |
Output Contract
- Primary output: Structured result or target file aligned with this skill's objective.
- Optional output: Intermediate check notes, issue list, supplementary suggestions, or generated file paths.
- Format requirement: Unless the user specifies otherwise, prefer stable, reviewable Markdown or JSON; if the skill's bundled script requires a fixed format, use that format.
- If partially complete: Must explicitly mark as PARTIAL and state which steps are completed and which remain.
Failure Handling
- Missing critical input: Explicitly state which fields, files, or identifiers are missing and pause.
- Script, template, or resource execution failure: Report the failing step, likely cause, and recovery suggestions — do not silently degrade.
- Partial completion only: Return the verified portion first, then list remaining blockers and suggested next steps.
User Checkpoints
- Before executing batch processing, overwriting files, long-running searches, or multi-stage generation, confirm scope and output format with the user.
- Before proceeding when a key judgment is ambiguous, evidence is insufficient, or the workflow is entering the next stage, confirm with the user.
Input Validation
This skill accepts requests that match the documented purpose of bib-formatter and include enough context to complete the workflow safely.
Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
bib-formatteronly handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
Quick Validation
- Check that key scripts, templates, or reference file paths this skill depends on exist.
- Check that the final output contains the core fields, sections, or files specified for this task.
- Check that results clearly mark assumptions, limitations, and incomplete items.
Related Skills
Agent-Reach
88.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
last30days-skill
63.4kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
