tools: Skill for Claude Code

.claude/skills/data-sources/SKILL.md

data-sources is a skill for Claude Code from adamw7/tools. It costs 85 tokens per session (2,084 once invoked), scanned A, original, MIT.

A guide for choosing and using data readers for CSV, database tables, Parquet files, JSON, YAML, and TOON data. It also explains which readers provide column names and how to check whether columns form a unique key.

In plain words
What is it for?
Use it when loading tabular data, adding a data format, or checking whether selected columns uniquely identify rows.
Why use it?
It prevents code from passing a streaming reader to a task that needs the full schema. It also helps balance memory use against the cost of reading large data more than once.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

This is adamw7/tools's own configuration. It tells Claude Code how to work on tools itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tools configures →

View source ↗ adamw7/tools
Reuse

Borrowing it

Nothing to install: this file belongs to adamw7/tools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/adamw7/tools/main/.claude/skills/data-sources/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/adamw7/tools

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-sources

README.md
[![agentmods](https://agentmods.dev/badge/skills/adamw7/tools/data-sources/github.svg)](https://agentmods.dev/skills/adamw7/tools/data-sources)
Your own site
<a href="https://agentmods.dev/skills/adamw7/tools/data-sources"><img src="https://agentmods.dev/badge/skills/adamw7/tools/data-sources/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-sources

Your own site · 80×15
<a href="https://agentmods.dev/skills/adamw7/tools/data-sources"><img src="https://agentmods.dev/badge/skills/adamw7/tools/data-sources.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,084 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Output Handling · line 45
    Output size or generation rate is not bounded. Unbounded output enables denial-of-service through resource exhaustion, log flooding, or context-window stuffing.
    Fix: Set explicit limits on output length, generation count, and rate. Use max_tokens and truncation to prevent unbounded output.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.02084
Opus 5.5 $0.00034 $0.00834
Sonnet 5.5 $0.00017 $0.00417
Haiku 4.5 $0.00009 $0.00208

Measured 1mo ago against content hash 21a40db126ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

data-sources scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/data-sources/SKILL.md · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Data Sources Skill

Pick the right data source in the data module, respect the schema contract that keeps forward-only sources away from schema-dependent callers, and run the uniqueness checker to find whether a set of columns can serve as a key.

In-memory vs iterative — pick first

Every format ships in two variants:

  • InMemory… — loads all rows once (readAll()), then runs multiple recursive checks cheaply. Use when the data fits in heap.
  • Iterable… — holds one row at a time (tiny heap), but re-reads the source for each recursive pass. Use for large data or streaming.

The schema contract (don't fight it)

  • IterableDataSource — the base forward-only contract: open(), nextRow(), hasMoreData(), reset(), nextRows(int batchSize).
  • ColumnarDataSource extends IterableDataSource — adds getColumnNames() for sources whose columns are known up front.
  • Forward-only sources that discover keys as they stream — iterable JSON, YAML, TOON — deliberately do not implement ColumnarDataSource. Callers that need the schema (e.g. the uniqueness check) depend on the narrower ColumnarDataSource, so a schema-less source can never be handed in and answer with null. Don't widen IterableDataSource to "fix" a compile error — reach for a columnar source instead.
  • getColumnNames() never returns null: a columnar source that cannot name its columns throws IllegalStateException saying why. IterableSQLDataSource does it for a source read before open(); CSVDataSource does it for one built without a columnsRow (new CSVDataSource(fileName) defaults it to -1), which otherwise surfaced two frames away as execForAllColumns() failing with Wrong input: null. A CSV header survives close() and is only dropped — and reloaded — by reset().

Source picker

Format In-memory Iterable Notes
CSV InMemoryCSVDataSource CSVDataSource file path or InputStream
JDBC InMemorySQLDataSource IterableSQLDataSource batchSize sets JDBC fetch size
Parquet InMemoryParquetDataSource IterableParquetDataSource read via in-process DuckDB, JDBC-like
JSON InMemoryJSONDataSource IterableJSONDataSource nested flattened to dotted paths
YAML InMemoryYAMLDataSource IterableYAMLDataSource same flattening; iterable lifts the 3 MB limit
TOON InMemoryTOONDataSource IterableTOONDataSource compact, LLM-friendly

Read the full file on GitHub · 141 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +2 lines 21a40db126ad
  2. 1mo ago First seen · 139 lines · 85 tokens per session scan A 0017aec73447

Subscribe to this mod's changes

data-sources is a skill published in the GitHub repository adamw7/tools (11 stars, last pushed today), licensed MIT. It adds 85 tokens to every session and 2,084 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.