bibtex-janitor

Parse BibTeX files and standardize metadata for economics bibliographies.

1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/halidaee/econtools_marketplace --skill bibtex-janitor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bibtex-janitor
Source: https://github.com/halidaee/econtools_marketplace/tree/main/manuscript-tools/skills/bibtex-janitor
Command: npx skills add https://github.com/halidaee/econtools_marketplace --skill bibtex-janitor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates cleaning and standardization of BibTeX entries for economics journals, removing unwanted metadata, normalizing journal names, applying title case formatting, and ensuring NBER-style techreports.

Core Features & Use Cases

  • Journal name standardization to full formal names
  • Title casing with braces around acronyms and proper names
  • Field pruning to remove abstract, keywords, issn, file, and similar metadata
  • URL/DOI handling: keep for techreports/unpublished, remove for articles
  • NBER format enforcement for working papers
  • Entry validation to ensure required fields are present

Quick Start

Run the CLI to clean a BibTeX file, for example: python clean_bib.py references.bib

Frequently Asked Questions about bibtex-janitor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean a BibTeX file for economics journal submission?

To clean a BibTeX file for economics journal submission, run the CLI on your references file to parse entries and apply a comprehensive pipeline that standardizes metadata, normalizes journal names, prunes unwanted fields, and validates entry types for a ready-to-submit output.

What does BibTeX field pruning remove when formatting references?

BibTeX field pruning removes unwanted metadata fields such as abstract, keywords, issn, and file from your bibliography entries. This ensures your economics journal submission contains only the necessary citation data without extraneous information cluttering the file.

How are NBER working papers formatted in BibTeX entries?

NBER working papers are formatted by enforcing specific techreport standards within your BibTeX file. The cleaning pipeline identifies these entries and applies NBER-style formatting rules to ensure working papers meet economics journal submission requirements.

Does BibTeX cleaning remove URLs and DOIs from article entries?

BibTeX cleaning removes URLs and DOIs from article entries but retains them for techreports and unpublished works. This selective URL and DOI handling ensures your economics bibliography adheres to standard journal formatting conventions for different entry types.

Can I normalize journal names and apply title casing to BibTeX files automatically?

Yes, you can normalize journal names to their full formal names and apply title casing automatically. The cleaning pipeline also adds braces around acronyms and proper names in titles to preserve capitalization during LaTeX compilation.

Do I need bibtexparser to validate and clean my bibliography?

Yes, bibtexparser is required as the parsing dependency to clean and validate your bibliography. It enables the pipeline to read BibTeX files, validate that required fields are present across articles, techreports, books, and inproceedings, and output a standardized file.