Skip to content

vimalinx/bio-agent / .claude/skills/xml2json

xml2json

Unverified

Use when converting XML documents into pretty-printed JSON for downstream parsing, provided the legacy Perl XML::Simple dependency is available.

xml2json

Quick Start

  • Command: cat record.xml | xml2json > record.json
  • Local executable: /home/vimalinx/miniforge3/envs/bio/bin/xml2json
  • Full reference: references/help.md

When To Use This Tool

  • Convert XML payloads into pretty-printed JSON for downstream scripting.
  • Bridge XML-producing NCBI / EDirect commands into JSON-oriented tools.
  • Inspect XML structure in a friendlier key/value form when the legacy converter dependency is available.

Common Patterns

# 1) Convert an XML document from stdin into JSON
cat record.xml | xml2json > record.json
# 2) Stream XML into JSON and inspect the first lines
cat record.xml | xml2json | sed -n '1,40p'

Recommended Workflow

  1. Confirm the XML input is the actual payload you want to convert, not a filename string or shell fragment.
  2. Pipe the XML into xml2json; the script reads stdin wholesale.
  3. Validate that the Perl dependencies load before trying a batch conversion.
  4. Inspect the first JSON objects before handing them to downstream code.

Guardrails

  • This script is a Perl program that reads only from stdin and depends on XML::Simple plus JSON::PP.
  • In the current environment it cannot start because XML::Simple.pm is missing, and --help / --version fail with the same dependency error.
  • Because it uses XML::Simple, the output structure can collapse repeated XML elements into arrays/hashes in ways that differ from hand-written JSON schemas.
  • Treat this as a legacy converter and validate its JSON shape on representative XML before building automation around it.
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: 196kUpdated Claude CodeCodexVerifiedInstall
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: 192kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 192kUpdated Claude CodeCodexVerifiedInstall
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: 192kUpdated Claude CodeCodexVerifiedInstall