
datapackage
Explore and query any dataset annotated with a Frictionless Data Package descriptor (datapackage.json). Use this skill whenever a user wants to discover what tables or resources a dataset contains, look up column names and descriptions, surface usage warnings embedded in metadata, or understand how to load data from Parquet files, DuckDB or SQLite databases, or CSV files described by a datapackage.json. Also use when the user has a datapackage.json and wants to know what's in it, how to query it efficiently, or how to connect its metadata to actual data files. Pairs well with dataset-specific skills (like pudl) that layer domain knowledge on top.
- Installs
- 2.1K
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/catalyst-cooperative/agent-skills --skill datapackage- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads datapackage automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Frictionless Data Package Guide
This skill covers any dataset described by a
Frictionless Data Package descriptor file
(datapackage.json). It is intentionally generic — it works for any conforming
datapackage, regardless of who published it or what the data contains.
For PUDL-specific knowledge (S3 bucket paths, table tier conventions, data source
context, usage warnings), also use the pudl skill on top of this one.
What is a datapackage.json?
A datapackage.json is a JSON file that describes a collection of tabular data
resources. Each resource represents one table (or file) and includes:
name: machine-readable identifierdescription: human-readable description, often including processing notes, primary keys, and usage warningspath: filename or URL of the actual data fileschema.fields: list of columns, each with anameanddescriptionschema.primaryKey: the field or fields that uniquely identify a row in this resourceschema.foreignKeys: declared links from this resource's fields to another resource's primary key — check these before joining or aggregating (see Metadata Querying)
The file can be large (hundreds of resources, megabytes of JSON). Always query it selectively — never load it whole into context.
Dependency check
Before querying metadata, verify jq is available:
command -v jq
If not found, tell the user how to install it:
- macOS:
brew install jq - Linux (apt):
sudo apt install jq - Linux (conda):
conda install jq - Windows:
winget install jqlang.jq
For data loading and SQL queries, the attach-db and query skills must be
installed (optionally install-duckdb too). Install them from duckdb/duckdb-skills.
Workflow overview
- Locate the descriptor — find or download
datapackage.json(see below). - Query metadata selectively — use jq to extract only what you need. See Metadata Querying.
- Surface warnings — always check for usage warnings before presenting a resource.
- Check keys before joining or aggregating — if the task combines two resources,
or rolls one up, look up
schema.primaryKeyandschema.foreignKeyson each first, rather than joining on a same-named or similar-looking column. See Metadata Querying: Joining resources. - Validate (optional) — if the user wants to know whether the data actually
matches the descriptor, or if you're diagnosing a suspicious package, use
frictionless validate. See Frictionless Validate. - Load the data (optional) — only if the user explicitly wants to query or explore the actual data. Data files can be large and remote access can be slow or costly. Don't initiate data loading as a follow-on to a metadata lookup without confirming the user wants it. See Storage Backends.
Reference index
- Metadata Querying — locate the descriptor, query it selectively with jq, surface usage warnings
- Storage Backends — load data from Parquet, DuckDB, SQLite, or CSV files referenced by the descriptor
- Frictionless Validate — use the
frictionlessCLI to validate packages, check data quality, infer schemas, and diagnose unfamiliar descriptors; read when the user wants to validate a descriptor, check if data matches its schema, or understand what thefrictionlesstool can tell them about a package
Community patterns and recipes
The datapackage standard is permissive: publishers frequently add non-standard fields. Two conventions are worth knowing immediately:
- Custom fields — non-standard keys added by publishers are common and valid.
The
_prefix convention marks system-generated or platform-specific keys (e.g._cache,_platformVersion). Some publishers add custom keys without the prefix (e.g. a package-level unit registry, or per-resource provenance metadata). Treat unknown fields as informational metadata, not errors. - Compressed resources — a resource with a
.gzor.zippath may have an explicit"compression": "gz"field. Thebytesandhashfields apply to the compressed file, not the uncompressed original.
For other patterns (catalogs, versioning, external foreign keys, translation support, field relationships, etc.), fetch the relevant page on demand:
- v1 patterns: https://specs.frictionlessdata.io/patterns/
- v2 recipes: https://datapackage.org/recipes/caching-of-resources/ (navigate via sidebar or next/previous links — no index page exists)
Both pages cover largely the same set of community conventions; consult whichever matches the descriptor version you're working with.
Companion skills
This skill delegates actual data querying to:
/attach-db— attach a.duckdbor.sqlitedatabase file and set up a persistent session for querying/query— run SQL or natural language queries against attached databases, ad-hoc files (Parquet, CSV, remote HTTPS/S3), and JSON files includingdatapackage.jsonitself (via DuckDB'sread_json)
These skills must be installed. See skills-lock.json in the project root.
Key constraints
- Golden rule: never load the full datapackage.json into context. It may be megabytes with hundreds of resources. Always query selectively.
- Read the full description before presenting a resource. Descriptions often contain important context: processing notes, primary key conventions, data provenance, or caveats about known limitations. Don't skip them.
- Use
uvto install Python packages — preferuv add <package>overpip install <package>.uvis faster and installs into a virtual environment rather than globally. Fall back topiponly ifuvis not available (command -v uvreturns nothing). - Do not use Python to query descriptor metadata. Python is not the right tool here — it loads the full JSON into memory (violating the golden rule above), adds unnecessary dependencies, and can't easily handle remote descriptors. Use jq for metadata-only tasks; use DuckDB when you need to combine metadata queries with data queries. Python is only appropriate for loading data (via pandas or polars) after you already know which table and columns you need.
Schema reference and version detection
Two versions of the Frictionless Data Package standard are in common use. Identify the version from the top-level descriptor before parsing:
| Field present | Version | Example value |
|---|---|---|
"$schema" | v2.0 | "https://datapackage.org/profiles/2.0/datapackage.json" |
"profile" | v1.0 | "tabular-data-package" or "data-package" |
| neither | ambiguous (treat as v1 baseline) | — |
Key differences between versions that affect parsing:
- Contributors — v1 has
"role": "author"(singular string); v2 has"roles": ["author"](array). Both may appear in the wild. - Name pattern — v1 enforces strictly lowercase
[-a-z0-9._/]; v2 is unrestricted. versionfield — present in v2, absent in v1.
Bundled schemas:
assets/datapackage-v1.schema.json— v1.0 (JSON Schema draft-04). Used by FERC XBRL packages and many older datasets.assets/datapackage-v2.schema.json— v2.0 (JSON Schema draft-07). The current standard. Canonical version always at: https://datapackage.org/profiles/2.0/datapackage.json
Read the appropriate schema when you need to understand which fields are valid in a descriptor or validate one programmatically.
FAQ
What does the datapackage skill do?
Explore and query any dataset annotated with a Frictionless Data Package descriptor (datapackage.json). Use this skill whenever a user wants to discover what tables or resources a dataset contains, look up column names and descriptions, surface usage warnings embedded in metadata, or understand how to load data from Parquet files, DuckDB or SQLite databases, or CSV files described by a datapackage.json. Also use when the user has a datapackage.json and wants to know what's in it, how to query it efficiently, or how to connect its metadata to actual data files. Pairs well with dataset-specific skills (like pudl) that layer domain knowledge on top.
How do I install datapackage?
Run npx skills add https://github.com/catalyst-cooperative/agent-skills --skill datapackage in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/datapackage/ (personal) or .claude/skills/datapackage/ (project).
Which AI agents can use datapackage?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is datapackage safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains datapackage?
It is published by catalyst-cooperative in catalyst-cooperative/agent-skills. It has 2,054 recorded installs.
More from catalyst-cooperative/agent-skills
pudl
catalyst-cooperative/agent-skills
Explore and understand PUDL energy data: discover which tables exist, look up column meanings and usage warnings, and load Parquet files from S3 or a local directory. No PUDL Python package required. Use this skill whenever a user asks what PUDL data contains, wants to understand a specific table or column, asks about data quality or limitations, needs help loading data into a notebook or script, or wants to know which table covers a topic like electricity generation, utility financials, fuel costs, power plant locations, emissions, capacity factors, FERC financial data, or EIA survey data. Also use when the user mentions PUDL, Catalyst Cooperative energy data, or any of the specific data sources PUDL ingests (EIA-860, EIA-861, EIA-923, FERC Form 1, FERC Form 714, FERC EQR, EPA CEMS, EPA CAMD, etc.).
Popular data & databases skills
supabase-postgres-best-practices
supabase/agent-skills
Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pgcron, pgmq), vector/semantic search (pgvector), and restoring dumps (pgrestore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.
prisma-client-api
prisma/skills
Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on "prisma query", "findMany", "create", "update", "delete", "$transaction".
prisma-database-setup
prisma/skills
Deprecated compatibility name for prisma-orm-setup. Use only when a user or existing integration explicitly invokes prisma-database-setup; otherwise select prisma-orm-setup.
prisma-cli
prisma/skills
Prisma ORM 7 CLI reference for existing Prisma 7 applications or explicitly selected Prisma 7 workflows. Covers prisma init, generate, migrate, db, dev, studio, and mcp. For setup, connection repair, or Prisma 8, use prisma-orm-setup; not the Prisma Platform CLI.
prisma-postgres
prisma/skills
Deprecated compatibility name for prisma-postgres-setup. Use only when a user or existing integration explicitly invokes prisma-postgres; otherwise select prisma-postgres-setup.
prisma-driver-adapter-implementation
prisma/skills
Required reference for Prisma ORM 7 SQL driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter, Transaction, savepoint, result mapping, or DriverAdapterError behavior. Covers current transaction lifecycle, optional savepoint hooks, original database-error preservation, and verification.