← 返回 Skills 市场
agents365-ai

Journal Abbrev

作者 Agents365.ai · GitHub ↗ · v1.0.2 · MIT-0
macoslinuxwindows ✓ 安全检测通过
113
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install journal-abbrev
功能描述
Use when looking up journal or magazine name abbreviations, converting between full names and ISO 4/MEDLINE abbreviations, processing BibTeX files for journa...
使用说明 (SKILL.md)

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... Command
Abbreviate a journal name python3 jabbrv.py abbrev "Nature Medicine"
Expand an abbreviation python3 jabbrv.py expand "Nat. Med."
Auto-detect direction python3 jabbrv.py lookup "J. Am. Chem. Soc."
Fuzzy search (paginated) python3 jabbrv.py search "biolog chem" --limit 10 --offset 0
Process a .bib file python3 jabbrv.py bib refs.bib
Preview .bib changes (no write) python3 jabbrv.py bib refs.bib --dry-run
Explicit .bib output path python3 jabbrv.py bib refs.bib --output out.bib
Expand .bib abbreviations python3 jabbrv.py bib refs.bib --expand
Batch text list python3 jabbrv.py batch journals.txt
Batch as NDJSON stream python3 jabbrv.py batch journals.txt --stream
Inspect cache state python3 jabbrv.py cache status
Download missing cache files python3 jabbrv.py cache update
Rebuild cache from scratch python3 jabbrv.py cache rebuild
Machine-readable CLI contract python3 jabbrv.py schema
Schema for one subcommand 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)

not_found, file_not_found, validation_error, runtime_error. Each carries a retryable: bool so agents can branch retry logic.

Workflow

Step 1: Detect Intent

Intent Action
Single journal name/abbreviation Use 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 name Use search for fuzzy matching
Fix journal names in .bib file Use bib
List of journals to process Use 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:

Standard Periods Example Used by
ISO 4 Yes Nat. Med. Most publishers, BibTeX
MEDLINE No Nat Med PubMed, 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

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.

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

Issue Solution
"No result found" Try search with partial name for fuzzy matching
Cache download fails Check network connection, retry with update-cache
Wrong abbreviation style JabRef = ISO 4 (with dots), NLM = MEDLINE (no dots)
BibTeX field not detected Ensure format is journal = {Name} (curly braces)
安全使用建议
This skill appears internally consistent and implements the advertised features. Before installing, note: (1) it will download JabRef CSV files from GitHub and call two external APIs (AbbrevISO and NLM/Entrez) — expect outgoing network traffic; (2) it writes a local cache under the skill directory and can modify .bib files when run with write/output flags (use --dry-run first); (3) no credentials are required. If you need extra caution, inspect the included jabbrv.py locally, run commands with --dry-run, and run the tool in a non-sensitive environment or sandbox.
功能分析
Type: OpenClaw Skill Name: journal-abbrev Version: 1.0.2 This skill is a legitimate academic utility for journal name abbreviation and BibTeX processing. The core script `jabbrv.py` implements a lookup cascade using local JabRef data and external APIs (NCBI NLM Catalog and AbbrevISO), all of which are consistent with the stated purpose. No evidence of malicious behavior, data exfiltration, or prompt injection was found; the code uses standard libraries and follows safe practices for network and file operations.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
Name/description (journal abbreviation lookup, BibTeX processing) match the included Python CLI and SKILL.md. The script needs only python3, downloads JabRef CSVs, queries AbbrevISO and NLM — all are reasonable data sources for this purpose.
Instruction Scope
SKILL.md directs the agent to run jabbrv.py for lookups and to use local cache + upstream fallbacks. The script performs network I/O (GitHub raw content, AbbrevISO toolforge, NCBI Entrez) and reads/writes files in a local 'cache' directory and can modify .bib files. That behavior is coherent with the described functionality, but users should be aware that running bib processing with write/output flags can modify their files (there is a --dry-run preview option).
Install Mechanism
No install spec is provided (instruction-only skill). The included Python file is pure standard-library code and does not pull arbitrary binary builds or third-party packages. First-run cache download comes from raw.githubusercontent.com (a standard release host).
Credentials
The skill requests no environment variables, no credentials, and no config paths. Network access is used but only to public endpoints that are directly related to its stated data sources; the level of access requested is proportionate to the task.
Persistence & Privilege
always is false and the skill does not request permanent platform privileges. It writes cache files into its own directory (CACHE_DIR = Path(__file__).parent / 'cache'), which is normal for a CLI that caches datasets. It does not modify other skills or global agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install journal-abbrev
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /journal-abbrev 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
Docs-only patch — supersedes 1.0.1. Reverts the AGENTS.md file and the four-tier multi-platform install story from 1.0.1. A skill is distributed via SKILL.md; AGENTS.md is a project-root convention that does not belong inside a skill directory. Install section collapsed back to SKILL.md-aware platforms only (Claude Code / OpenClaw / ClawHub / SkillsMP) plus a 'clone and run' escape hatch. No CLI behavior changes — all flags, envelopes, exit codes, and error codes are identical to 1.0.1. CLI_VERSION bumped for version hygiene only. See GitHub release v1.0.2 for the full rationale.
v1.0.1
Docs-only patch. Multi-platform install tiers (Tier 1-4), new AGENTS.md at repo root following the agents.md convention, correction to Claude Code's AGENTS.md behavior (Claude Code does NOT read AGENTS.md — use SKILL.md / Tier 1 path), and CLI_VERSION bump for version hygiene. No CLI behavior changes. See GitHub release notes for details.
v1.0.0
Agent-native CLI refactor: stable JSON envelope, schema introspection, dry-run for bib, distinct exit codes, paginated search, NDJSON batch streaming, cache status/update/rebuild subcommands. Scores 28/28 on the agent-native-cli rubric. See release notes for breaking changes.
元数据
Slug journal-abbrev
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Journal Abbrev 是什么?

Use when looking up journal or magazine name abbreviations, converting between full names and ISO 4/MEDLINE abbreviations, processing BibTeX files for journa... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 113 次。

如何安装 Journal Abbrev?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install journal-abbrev」即可一键安装,无需额外配置。

Journal Abbrev 是免费的吗?

是的,Journal Abbrev 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Journal Abbrev 支持哪些平台?

Journal Abbrev 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux, windows)。

谁开发了 Journal Abbrev?

由 Agents365.ai(@agents365-ai)开发并维护,当前版本 v1.0.2。

💬 留言讨论