# data-tools-skill AI agent skill for structured data manipulation. Teaches agents when and how to use dedicated tools instead of fragile text processing (grep/sed/awk) on structured formats. ## Tools Covered | Tool | Format | Use Case | |------|--------|----------| | [jq](https://jqlang.github.io/jq/) | JSON | Query, filter, transform JSON data | | [yq](https://github.com/mikefarah/yq) | YAML | Edit CI configs, docker-compose, K8s manifests | | [dasel](https://github.com/TomWright/dasel) | JSON/YAML/TOML/XML | Universal selector, format conversion | | [qsv](https://github.com/jqnatividad/qsv) | CSV/TSV | Fast data exploration, filtering, analysis | | [mlr](https://github.com/johnkerl/miller) | CSV/TSV/JSON/JSONL/PPRINT/XTAB/NIDX | Name-indexed records, DSL stats/joins, in-place edits | ## Core Principle **Never use `grep`, `sed`, or `awk` on JSON, YAML, TOML, XML, or CSV data.** These tools treat structured data as flat text and break on multi-line values, nested structures, quoted strings, and encoding differences. ## Installation ### Marketplace (Recommended) Add the [Netresearch marketplace](https://github.com/netresearch/claude-code-marketplace) once, then browse and install skills: ```bash # Claude Code /plugin marketplace add netresearch/claude-code-marketplace ``` ### npx ([skills.sh](https://skills.sh)) Install with any [Agent Skills](https://agentskills.io)-compatible agent: ```bash npx skills add https://github.com/netresearch/data-tools-skill --skill data-tools ``` ### Download Release Download the [latest release](https://github.com/netresearch/data-tools-skill/releases/latest) and extract to your agent's skills directory. ### Git Clone ```bash git clone https://github.com/netresearch/data-tools-skill.git ``` ### Composer (PHP Projects) ```bash composer require netresearch/data-tools-skill ``` Requires [netresearch/composer-agent-skill-plugin](https://github.com/netresearch/composer-agent-skill-plugin). ### npm (Node Projects) ```bash npm install --save-dev \ @netresearch/agent-skill-coordinator \ github:netresearch/data-tools-skill ``` Requires [@netresearch/agent-skill-coordinator](https://github.com/netresearch/node-agent-skill-coordinator), which discovers the skill in `node_modules` and registers it in `AGENTS.md` via a `postinstall` hook. For pnpm, also allowlist the coordinator's postinstall: ```json { "pnpm": { "onlyBuiltDependencies": ["@netresearch/agent-skill-coordinator"] } } ``` ## Structure ``` skills/data-tools/ SKILL.md # Main skill file (tool selection, patterns, anti-patterns) references/ jq-cookbook.md # Comprehensive jq patterns yq-cookbook.md # YAML manipulation patterns dasel-cookbook.md # TOML/XML/universal selector patterns csv-processing.md # qsv workflows and recipes mlr-cookbook.md # Miller for JSONL, DSL, stats, joins ``` ## License This project uses split licensing: - **Code** (scripts, workflows, configs): [MIT](LICENSE-MIT) - **Content** (skill definitions, documentation, references): [CC-BY-SA-4.0](LICENSE-CC-BY-SA-4.0) See the individual license files for full terms.