PluginBench
Skill
Pass
Audit score 90

journal-abbrev

agents365-ai/365-skills

Look up journal and magazine name abbreviations across ISO 4, MEDLINE, and JabRef databases.

What is journal-abbrev?

Converts between full journal names and standardized abbreviations (ISO 4 and MEDLINE) using a multi-source cascade. Use when formatting citations, preparing reference lists, processing BibTeX files, or submitting manuscripts to specific journals.

  • Abbreviate journal names to ISO 4 or MEDLINE standard
  • Expand abbreviations back to full journal names
  • Auto-detect direction (abbreviation or full name) with lookup command
  • Fuzzy search across ~25K journals from JabRef database
  • Process and standardize journal names in .bib files with dry-run preview
  • Batch process lists of journal names from text or NDJSON files

How to install journal-abbrev

npx skills add https://github.com/agents365-ai/365-skills --skill journal-abbrev
Prerequisites
  • Python 3 installed and available as python3
  • Internet connection for first run (downloads ~2-5 MB JabRef cache)
Claude Code
Cursor
Windsurf
Cline

How to use journal-abbrev

  1. 1.Run `python3 jabbrv.py lookup "Journal Name"` to auto-detect and look up an abbreviation or full name
  2. 2.Use `python3 jabbrv.py abbrev "Full Journal Name"` to abbreviate a specific journal
  3. 3.Use `python3 jabbrv.py expand "Abbrev. Name"` to expand an abbreviation to full name
  4. 4.Run `python3 jabbrv.py search "keyword"` for fuzzy matching if you're unsure of the exact name
  5. 5.Process a BibTeX file with `python3 jabbrv.py bib refs.bib` to standardize all journal names
  6. 6.Preview changes without writing with `python3 jabbrv.py bib refs.bib --dry-run` before committing
  7. 7.Check cache status with `python3 jabbrv.py cache status` and update with `python3 jabbrv.py cache update`

Use cases

Good for
  • Format citations for manuscript submission by abbreviating journal names to publisher standards
  • Expand abbreviated references in a BibTeX file to full names for readability
  • Search for the correct abbreviation when you're unsure of the exact journal name
  • Standardize all journal names in a bibliography file before submission
  • Look up MEDLINE abbreviations for PubMed database entries
Who it's for
  • Academic researchers and authors preparing manuscripts
  • Librarians and citation managers standardizing reference lists
  • Students formatting bibliographies for thesis or papers
  • Publishers and editors enforcing citation standards
  • Anyone working with BibTeX or reference management systems

journal-abbrev FAQ

What's the difference between ISO 4 and MEDLINE abbreviations?

ISO 4 includes periods (e.g., Nat. Med.) and is used by most publishers and BibTeX. MEDLINE omits periods (e.g., Nat Med) and is used by PubMed and NLM databases. The tool provides both standards.

How does the lookup work if a journal isn't found?

The tool cascades through three sources: local JabRef cache (~25K journals), AbbrevISO API (algorithmic ISO 4), and NLM Catalog (biomedical journals). If none match, it returns a not_found error with exit code 3.

Can I process multiple journals at once?

Yes. Use `python3 jabbrv.py batch journals.txt` to process a list, or `python3 jabbrv.py bib refs.bib` to standardize all journal names in a BibTeX file at once.

What if the upstream APIs are unavailable?

If offline mode is enabled or APIs fail, the tool falls back to the local JabRef cache. For transient failures, the error is marked retryable; you can retry later. Use `JABBRV_OFFLINE=1` to force offline-only mode.

How do I ensure BibTeX processing is idempotent and safe?

Use `python3 jabbrv.py bib refs.bib --idempotency-key run-001` to cache the result. Retrying with the same key returns the cached envelope instead of rerunning, and use `--dry-run` to preview changes before writing.

Full instructions (SKILL.md)

Source of truth, from agents365-ai/365-skills.


name: journal-abbrev description: Use when looking up journal or magazine name abbreviations, converting between full names and ISO 4/MEDLINE abbreviations, processing BibTeX files for journal name standardization, or answering questions about 期刊缩写/杂志缩写. Triggers on "journal abbreviation", "abbreviate journal", "journal name", "期刊缩写", "杂志缩写", "ISO 4", "LTWA", "BibTeX journal". PROACTIVELY USE when user mentions citation formatting, reference list preparation, or manuscript submission to specific journals. allowed-tools: Bash, Read, Write, Edit, Glob, Grep

--- Claude Code fields above, OpenClaw/SkillsMP fields below ---

author: Agents365-ai category: Academic Research version: 1.3.1 created: 2026-03-29 updated: 2026-07-14 github: https://github.com/Agents365-ai/365-skills homepage: https://github.com/Agents365-ai/365-skills metadata: version: 1.3.1 openclaw: requires: bins: - python3 emoji: "📖" homepage: https://github.com/Agents365-ai/365-skills os: ["macos", "linux", "windows"]

Journal Abbreviation Lookup

Look up journal/magazine name abbreviations using a multi-source cascade: JabRef database (~25K journals) → AbbrevISO API (ISO 4) → NLM Catalog (MEDLINE).

Critical rule: Always use jabbrv.py for lookups. Never guess abbreviations — even common journals have non-obvious abbreviations.

Quick Reference

User wants...TierCommand
Abbreviate a journal namereadpython3 jabbrv.py abbrev "Nature Medicine"
Expand an abbreviationreadpython3 jabbrv.py expand "Nat. Med."
Auto-detect directionreadpython3 jabbrv.py lookup "J. Am. Chem. Soc."
Fuzzy search (paginated)readpython3 jabbrv.py search "biolog chem" --limit 10 --offset 0
Process a .bib filewritepython3 jabbrv.py bib refs.bib
Preview .bib changes (no write)readpython3 jabbrv.py bib refs.bib --dry-run
Explicit .bib output pathwritepython3 jabbrv.py bib refs.bib --output out.bib
Expand .bib abbreviationswritepython3 jabbrv.py bib refs.bib --expand
Replay-safe .bib (retry returns cached envelope)writepython3 jabbrv.py bib refs.bib --idempotency-key run-001
Batch text listreadpython3 jabbrv.py batch journals.txt
Batch as NDJSON streamreadpython3 jabbrv.py batch journals.txt --stream
Inspect cache statereadpython3 jabbrv.py cache status
Download missing cache fileswritepython3 jabbrv.py cache update
Preview what update would fetchreadpython3 jabbrv.py cache update --dry-run
Atomic rebuild⚠️ destructivepython3 jabbrv.py cache rebuild --yes
Preview rebuild (no delete)readpython3 jabbrv.py cache rebuild --dry-run
Suppress stderr progressreadpython3 jabbrv.py --quiet cache update
Machine-readable CLI contractreadpython3 jabbrv.py schema
Schema for one subcommandreadpython3 jabbrv.py schema lookup

Output format

Stdout is a stable JSON envelope when the CLI is not attached to a terminal (piped or captured by an agent), and a human table/indented view when run on a TTY. To force a format: --format json|table|human|auto. --json remains as a back-compat alias for --format json. Flags may appear before or after the subcommand.

Envelope shape (always the same fields for every subcommand):

  • Success: { "ok": true, "data": ..., "meta": { "schema_version", "cli_version", "cache", "latency_ms" } }
  • Partial success (batch): { "ok": "partial", "data": { "succeeded": [...], "failed": [...] }, "meta": {...} }
  • Error: { "ok": false, "error": { "code", "message", "retryable", ... }, "meta": {...} }

Exit codes

CodeMeaning
0success (including partial success)
1runtime / upstream error
2validation / bad input (missing file, bad flag)
3not found (the looked-up journal does not exist)

Error codes (inside error.code)

CodeRetryableExitMeaning
not_foundno3Lookup completed but no source matched
upstream_unavailableyes1One or more upstream APIs failed transiently; the lookup could not be concluded. Carries error.sources[] listing each failure. Retry later.
file_not_foundno2Input file path does not exist
validation_errorno2Bad argument or flag combination
runtime_erroryes1Unexpected internal error

Branch on error.code + error.retryable rather than exit code alone — exit 1 covers both upstream_unavailable and runtime_error. Full machine-readable listing: python3 jabbrv.py schema → data.error_codes.

Environment variables (set by host, not by agent argv)

VariableEffect
JABBRV_CACHE_DIROverride the cache directory (default: <install>/cache). Useful in sandboxes where the install tree is read-only.
JABBRV_OFFLINETruthy (1/true/yes/on) skips AbbrevISO and NLM; only the local JabRef cache is consulted. Misses become definitive not_found (not retryable) since the host has declared upstream off-limits. meta.offline: true appears in every envelope so callers can see the policy.
NO_COLORhttps://no-color.org convention. Any non-empty value disables color. No ANSI is emitted today; meta.no_color: true appears when set so callers can see the policy.

Trust boundary: these are read from the process environment, not from arguments. The host or sandbox sets them; the agent cannot override them via argv. Schema introspection: python3 jabbrv.py schema → data.global_env.

Retries, idempotency, and destructive intent

  • Branch on error.code + error.retryable, not exit code alone. Exit 1 covers both upstream_unavailable (retry) and runtime_error (retry once, then escalate).
  • bib --idempotency-key <token> persists the success envelope next to the output file as <output>.<token>.envelope.json. A retry with the same key returns that envelope with meta.idempotent_replay: true instead of rerunning the rewrite. Token must match [A-Za-z0-9._-]{1,64}.
  • cache rebuild is atomic — downloads stage into a sibling directory and the swap only happens if every file succeeded. If any fails, the existing cache is preserved and the response is upstream_unavailable (retryable). Add --yes to record meta.confirmed: true for audit policies; the CLI itself never prompts, so --yes is not a gate.

Workflow

Step 1: Detect Intent

IntentAction
Single journal name/abbreviationUse lookup (auto-detect) or abbrev/expand (explicit direction)
"What's the abbreviation for X?"Use abbrev
"What journal is X?"Use expand
Partial or uncertain nameUse search for fuzzy matching
Fix journal names in .bib fileUse bib
List of journals to processUse batch

Step 2: Execute

Run the appropriate jabbrv.py command. The script handles:

  1. Local cache lookup (instant, ~25K journals from JabRef)
  2. AbbrevISO API fallback (algorithmic ISO 4 abbreviation, forward only)
  3. NLM Catalog fallback (biomedical journals, bidirectional)

First run downloads JabRef CSV cache files automatically (~2-5 MB).

Step 3: Present Results

  • Show the full name, abbreviation, and source
  • Note the standard (ISO 4 vs MEDLINE) when relevant
  • For .bib processing: show the change summary before confirming

ISO 4 vs MEDLINE

Two common abbreviation standards exist:

StandardPeriodsExampleUsed by
ISO 4YesNat. Med.Most publishers, BibTeX
MEDLINENoNat MedPubMed, NLM databases

JabRef provides ISO 4 style. NLM Catalog provides MEDLINE style. AbbrevISO computes ISO 4 algorithmically from LTWA (List of Title Word Abbreviations).

Common Abbreviation Patterns

WordAbbreviationWordAbbreviation
JournalJ.InternationalInt.
AmericanAm.EuropeanEur.
Science/SciencesSci.Medicine/MedicalMed.
Biology/BiologicalBiol.Chemistry/ChemicalChem.
Physics/PhysicalPhys.EngineeringEng.
ResearchRes.Review/ReviewsRev.
SocietySoc.NationalNatl.
ProceedingsProc.TransactionsTrans.
LettersLett.CommunicationsCommun.
AppliedAppl.ComputationalComput.

Note: Single-word titles (e.g., "Nature", "Science", "Cell") are NOT abbreviated per ISO 4 rules.

Integration Examples

With Zotero

# Export BibTeX from Zotero, then standardize journal names
zot export COLLECTION_KEY --format bibtex > refs.bib
python3 jabbrv.py bib refs.bib

With LaTeX

# Before compiling, ensure all journal names are abbreviated
python3 jabbrv.py bib references.bib
# Use the output file (references_abbrev.bib) in your LaTeX document

Batch Processing

Create a text file with one journal name per line:

Nature Medicine
Journal of Biological Chemistry
Proceedings of the National Academy of Sciences

Then run:

python3 jabbrv.py batch journals.txt

Troubleshooting

IssueSolution
"No result found"Try search with partial name for fuzzy matching
Cache download failsCheck network connection, retry with cache update (or cache rebuild to force)
Wrong abbreviation styleJabRef = ISO 4 (with dots), NLM = MEDLINE (no dots)
BibTeX field not detectedEnsure format is journal = {Name} (curly braces)