Skip to content
Back to skills

Bibtex Normalizer

ASecurity

Dedupes a .bib file and rewrites a normalised bibliography in a fixed field order.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentspythonbash

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 18, 2026

npx -y skills add JiamingShi-JsPhys/chelate-shell --skill bibtex-normalizer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bibtex Normalizer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bibtex Normalizer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiamingshi-jsphys-bibtex-normalizer/badge)](https://www.skillsdirectory.com/skills/jiamingshi-jsphys-bibtex-normalizer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bibtex-normalizer
version: 1.4.0
description: >
  Dedupes a .bib file and rewrites a normalised bibliography in a fixed
  field order.
metadata:
  version: 1.4.0
  author: Jiaming Shi
  license: MIT
  entry_point: python run.py
  python_requires: '>=3.10'
---

# bibtex-normalizer

Normalises and de-duplicates a bibliography. It does not look up missing
metadata and does not verify that an entry exists.

- **Stage:** `ingest` · **Sandbox:** no · **Dependencies:** `bibtexparser`

## Quick Execution

Run this exact form — do not read the source tree:

```bash
python run.py --root <WS> --action normalize --input refs.bib
```

- Output defaults to `<WS>/process/bibtex/`; override with `--outdir`.
- The gate lands in `<WS>/process/gates/bibtex-normalizer_<ts>.json`.

## When to use

- Several `.bib` exports must be merged into one consistent file.
- Duplicate entries must be removed before a build or a citation check.

## When NOT to use

- The entries themselves must be verified — that is `reference-auditor`.
- Missing fields must be filled from the web — not supported.

## Actions

| `--action` | Does | Extra arguments |
| --- | --- | --- |
| `normalize` | Parse, dedupe, normalise field order | `--input <file.bib> [--outdir <dir>]` |

## Hard constraints

- **Never invent metadata.** Absent fields stay absent.
- **Dedupe by content key**, and report what was dropped.

## Outputs

- `<WS>/process/bibtex/` — the normalised `.bib` plus a JSON summary.
- `<WS>/process/gates/bibtex-normalizer_<ts>.json` — the gate result.

## Failure handling

- A malformed `.bib` fails the gate with the parser's message.
- `bibtexparser` missing → `UNVERIFIED`.

## Limitations

- No network lookup; no metadata completion.
- Non-standard entry types are preserved but not validated.

## Delivering results

This skill writes intermediates to `process/`. `results/` is filled only by
`python cli.py pipeline` after a human approved that exact plan.

- Do not copy a skill's output into `results/` yourself, and do not do it
  because the user asked for a shortcut: say that only `cli.py pipeline`
  writes there, offer to run the pipeline instead, and if they still insist,
  tell them `cli.py audit` will report the file as unapproved.
- Never set `CHELATE_UNSAFE_AUTO_APPROVE=1` (formerly `CHELATE_HUMAN`) and never run `cli.py approve` on the user's
  behalf. If an approval is needed, ask the human to issue it in their own
  terminal.
- Before telling the user a deliverable is ready — and after any write you
  make under `results/` — run `python cli.py audit --root <ws>`. Exit 1 means
  files there have no approval behind them: report that and name them, do not
  describe the state as delivered.

Files in this skill

  • LICENSE1 KB
  • README.md1.7 KB
  • SKILL.md1.9 KB
  • assets/config.yaml138 B
  • manifest.json465 B
  • run.py2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.