vimalinx/bio-agent / .claude/skills/expand-current
expand-current
UnverifiedUse when expanding and rebuilding the local EDirect PubMed `Current` archive plus its derived index layers.
expand-current
CLI tool for expanding and indexing current PubMed archive files for local EDirect operations.
Quick Start
- Command:
EDIRECT_LOCAL_ARCHIVE=/path/to/local/archive PATH=/home/vimalinx/miniforge3/envs/bio/bin:$PATH /home/vimalinx/miniforge3/envs/bio/bin/expand-current - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/expand-current - Full reference: See references/help.md for complete documentation
When To Use This Tool
- Refresh the local
CurrentPubMed archive inside an EDirect local archive installation. - Expand
*.xml.gzcurrent-archive files into indexed XML and rebuild derived merged / indexed / inverted layers. - Maintain a local offline-style PubMed archive workflow after new archive content arrives.
Common Patterns
# 1) Expand and rebuild the current local PubMed archive
EDIRECT_LOCAL_ARCHIVE=/data/edirect-archive \
PATH=/home/vimalinx/miniforge3/envs/bio/bin:$PATH \
/home/vimalinx/miniforge3/envs/bio/bin/expand-current
# 2) Run inside a maintenance script after archive synchronization
export EDIRECT_LOCAL_ARCHIVE=/data/edirect-archive
export PATH=/home/vimalinx/miniforge3/envs/bio/bin:$PATH
/home/vimalinx/miniforge3/envs/bio/bin/expand-current
Recommended Workflow
- Confirm
EDIRECT_LOCAL_ARCHIVEresolves to a real local archive tree before running anything. - Make sure companion commands such as
rchive,pm-collect, andxtractare available. - Run
expand-currentduring a maintenance window, because it deletes previous derived index files before rebuilding them. - Verify that fresh XML files and rebuilt index layers exist before pointing downstream local queries at the archive.
Guardrails
- This is an operational maintenance script, not a safe metadata probe.
- It deletes prior
*.e2x*,*.inv*, and*.mrg*files under the derived archive layers before rebuilding them. - In the current environment, a missing
EDIRECT_LOCAL_ARCHIVEor missing helpers such aspm-collectcan still lead to noisy partial execution and a finalEXIT 0, so pre-flight checks matter. - Sufficient disk space is required because compressed current-archive XML is expanded into plain XML during the rebuild.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |