Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

journal-abbrev

БесплатноЗапускает вложенные скриптыНе проверен

Use when looking up journal or magazine name abbreviations, converting between full names and ISO 4/MEDLINE abbreviations, processing BibTeX files for journal…

Agents365-aiот Agents365-ai★ 108 звёзд на GitHub3 установки в других каталогах

Об этом скилле

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... Tier Command
Abbreviate a journal name read python3 jabbrv.py abbrev "Nature Medicine"
Expand an abbreviation read python3 jabbrv.py expand "Nat. Med."
Auto-detect direction read python3 jabbrv.py lookup "J. Am. Chem. Soc."
Fuzzy search (paginated) read python3 jabbrv.py search "biolog chem" --limit 10 --offset 0
Process a .bib file write python3 jabbrv.py bib refs.bib
Preview .bib changes (no write) read python3 jabbrv.py bib refs.bib --dry-run
Explicit .bib output path write python3 jabbrv.py bib refs.bib --output out.bib
Expand .bib abbreviations write python3 jabbrv.py bib refs.bib --expand
Replay-safe .bib (retry returns cached envelope) write python3 jabbrv.py bib refs.bib --idempotency-key run-001
Batch text list read python3 jabbrv.py batch journals.txt
Batch as NDJSON stream read python3 jabbrv.py batch journals.txt --stream
Inspect cache state read python3 jabbrv.py cache status
Download missing cache files write python3 jabbrv.py cache update
Preview what update would fetch read python3 jabbrv.py cache update --dry-run
Atomic rebuild ⚠️ destructive python3 jabbrv.py cache rebuild --yes
Preview rebuild (no delete) read python3 jabbrv.py cache rebuild --dry-run
Suppress stderr progress read python3 jabbrv.py --quiet cache update
Machine-readable CLI contract read python3 jabbrv.py schema
Schema for one subcommand read python3 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

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

Error codes (inside error.code)

Code Retryable Exit Meaning
not_found no 3 Lookup completed but no source matched
upstream_unavailable yes 1 One or more upstream APIs failed transiently; the lookup could not be concluded. Carries error.sources[] listing each failure. Retry later.
file_not_found no 2 Input file path does not exist
validation_error no 2 Bad argument or flag combination
runtime_error yes 1 Unexpected 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)

Variable Effect
JABBRV_CACHE_DIR Override the cache directory (default: <install>/cache). Useful in sandboxes where the install tree is read-only.
JABBRV_OFFLINE Truthy (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_COLOR https://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
Полный SKILL.md на GitHub

Установить journal-abbrev в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read
Write
Edit
Glob
Grep

Вложенные файлы

.gitignorejabbrv.py

FAQ

Что делает скилл journal-abbrev?

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.

Как установить скилл journal-abbrev?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл journal-abbrev запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить journal-abbrev с