Loading...
Loading...
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.
npx skill4agent add agents365-ai/365-skills journal-abbrevjabbrv.py| User wants... | Command |
|---|---|
| Abbreviate a journal name | |
| Expand an abbreviation | |
| Auto-detect direction | |
| Fuzzy search (paginated) | |
| Process a .bib file | |
| Preview .bib changes (no write) | |
| Explicit .bib output path | |
| Expand .bib abbreviations | |
| Replay-safe .bib (retry returns cached envelope) | |
| Batch text list | |
| Batch as NDJSON stream | |
| Inspect cache state | |
| Download missing cache files | |
| Preview what update would fetch | |
| Atomic rebuild (destructive, with audit marker) | |
| Preview rebuild (no delete) | |
| Suppress stderr progress | |
| Machine-readable CLI contract | |
| Schema for one subcommand | |
--format json|table|human|auto--json--format json{ "ok": true, "data": ..., "meta": { "schema_version", "cli_version", "cache", "latency_ms" } }{ "ok": "partial", "data": { "succeeded": [...], "failed": [...] }, "meta": {...} }{ "ok": false, "error": { "code", "message", "retryable", ... }, "meta": {...} }| Code | Meaning |
|---|---|
| success (including partial success) |
| runtime / upstream error |
| validation / bad input (missing file, bad flag) |
| not found (the looked-up journal does not exist) |
error.code| Code | Retryable | Exit | Meaning |
|---|---|---|---|
| no | 3 | Lookup completed but no source matched |
| yes | 1 | One or more upstream APIs failed transiently; the lookup could not be concluded. Carries |
| no | 2 | Input file path does not exist |
| no | 2 | Bad argument or flag combination |
| yes | 1 | Unexpected internal error |
error.codeerror.retryable1upstream_unavailableruntime_errorpython3 jabbrv.py schemadata.error_codes| Variable | Effect |
|---|---|
| Override the cache directory (default: |
| Truthy ( |
| https://no-color.org convention. Any non-empty value disables color. No ANSI is emitted today; |
python3 jabbrv.py schemadata.global_enverror.codeerror.retryable1upstream_unavailableruntime_errorbib --idempotency-key <token><output>.<token>.envelope.jsonmeta.idempotent_replay: true[A-Za-z0-9._-]{1,64}cache rebuildupstream_unavailable--yesmeta.confirmed: true--yes| Intent | Action |
|---|---|
| Single journal name/abbreviation | Use |
| "What's the abbreviation for X?" | Use |
| "What journal is X?" | Use |
| Partial or uncertain name | Use |
| Fix journal names in .bib file | Use |
| List of journals to process | Use |
jabbrv.py| Standard | Periods | Example | Used by |
|---|---|---|---|
| ISO 4 | Yes | Nat. Med. | Most publishers, BibTeX |
| MEDLINE | No | Nat Med | PubMed, NLM databases |
| Word | Abbreviation | Word | Abbreviation |
|---|---|---|---|
| Journal | J. | International | Int. |
| American | Am. | European | Eur. |
| Science/Sciences | Sci. | Medicine/Medical | Med. |
| Biology/Biological | Biol. | Chemistry/Chemical | Chem. |
| Physics/Physical | Phys. | Engineering | Eng. |
| Research | Res. | Review/Reviews | Rev. |
| Society | Soc. | National | Natl. |
| Proceedings | Proc. | Transactions | Trans. |
| Letters | Lett. | Communications | Commun. |
| Applied | Appl. | Computational | Comput. |
# Export BibTeX from Zotero, then standardize journal names
zot export COLLECTION_KEY --format bibtex > refs.bib
python3 jabbrv.py bib refs.bib# Before compiling, ensure all journal names are abbreviated
python3 jabbrv.py bib references.bib
# Use the output file (references_abbrev.bib) in your LaTeX documentNature Medicine
Journal of Biological Chemistry
Proceedings of the National Academy of Sciencespython3 jabbrv.py batch journals.txt| Issue | Solution |
|---|---|
| "No result found" | Try |
| Cache download fails | Check network connection, retry with |
| Wrong abbreviation style | JabRef = ISO 4 (with dots), NLM = MEDLINE (no dots) |
| BibTeX field not detected | Ensure format is |