Hybrid-Engine Data Analysis
code-yeongyu/oh-my-openagent
Analyzes CSV, Parquet and JSON data with DuckDB, Polars, numpy and matplotlib, preferring a persistent kernel over repeated one-shot processes.
Best practices for polars data processing with dataframely. An agent skill from Quantco/dataframely.
$ npx skills add Quantco/dataframely --skill dataframely -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Quantco/dataframely dataframely --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Quantco/dataframely.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills .claude/skills/dataframely && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "dataframely" agent skill from https://github.com/Quantco/dataframely/tree/main/skills into .claude/skills/dataframely/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dataframely", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Quantco/dataframely/tree/main/skillsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Quantco/dataframely --skill dataframely -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Quantco/dataframely dataframely --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Quantco/dataframely.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills .agents/skills/dataframely && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "dataframely" agent skill from https://github.com/Quantco/dataframely/tree/main/skills into .agents/skills/dataframely/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dataframely", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Quantco/dataframely --skill dataframely -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Quantco/dataframely dataframely --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Quantco/dataframely.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills .cursor/skills/dataframely && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "dataframely" agent skill from https://github.com/Quantco/dataframely/tree/main/skills into .cursor/skills/dataframely/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dataframely", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Quantco/dataframely.git --path skills--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Quantco/dataframely --skill dataframely -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Quantco/dataframely dataframely --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Quantco/dataframely.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills .gemini/skills/dataframely && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "dataframely" agent skill from https://github.com/Quantco/dataframely/tree/main/skills into .gemini/skills/dataframely/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dataframely", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Quantco/dataframely dataframelyInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Quantco/dataframely --skill dataframely -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Quantco/dataframely.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills .github/skills/dataframely && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "dataframely" agent skill from https://github.com/Quantco/dataframely/tree/main/skills into .github/skills/dataframely/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dataframely", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Quantco/dataframely --skill dataframely -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Quantco/dataframely dataframely --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Quantco/dataframely.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills .opencode/skills/dataframely && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "dataframely" agent skill from https://github.com/Quantco/dataframely/tree/main/skills into .opencode/skills/dataframely/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dataframely", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
dataframelyBest practices for polars data processing with dataframely. An agent skill from Quantco/dataframely.
Dataframely is an agent skill from Quantco/dataframely. Best practices for polars data processing with dataframely. Covers definitions of Schema and Collection, usage of .validate() and .filter(), type hints, and testing. Use when writing or modifying code involving dataframely or polars data frames.
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Data & Analytics, covering DataFrames and Type safety. It works with Polars. The repository describes itself as: A declarative, 🐻❄️-native data frame validation library. The licence is BSD-3-Clause.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 2bd5100. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Dataframely loads about 2.4k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 943 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Quantco/dataframely at commit 2bd5100, republished under its BSD-3-Clause licence (© Quantco). 943 words, ~2,359 tokens.
.claude/skills/dataframely/SKILL.md (or your agent's skills folder).dataframely provides two types:
dy.Schema documents and enforces the structure of a single data framedy.Collection documents and enforces the relationships between multiple related data frames that each have their
own dy.Schemady.SchemaA subclass of dy.Schema describes the structure of a single dataframe.
class MyHouseSchema(dy.Schema):
"""A schema for a dataframe describing houses."""
street = dy.String(primary_key=True)
number = dy.UInt16(primary_key=True)
#: Description on the number of rooms.
rooms = dy.UInt8()
#: Description on the area of the house.
area = dy.UInt16()The schema can be used in type hints via dy.DataFrame[MyHouseSchema] and dy.LazyFrame[MyHouseSchema] to express
schema adherence statically. It can also be used to validate the structure and contents of a data frame at runtime
using validation and filtering.
dy.DataFrame[...] and dy.LazyFrame[...] are typically referred to as "typed data frames". They are typing-only
wrappers around pl.DataFrame and pl.LazyFrame, respectively, and only express intent. They are never initialized at
runtime.
Persist all implicit assumptions on the data as constraints in the schema. Use docstrings purely to answer the "what" about the column contents.
Use the most specific type possible for each column (e.g. dy.Enum instead of dy.String when applicable).
Use pre-defined arguments (e.g. nullable, min, regex) for column-level constraints if possible.
Use the check argument for non-standard column-level constraints that cannot be expressed using pre-defined
arguments. Prefer the defining the check as a dictionary with keys describing the type of check:
class MySchema(dy.Schema):
col = dy.UInt8(check={"divisible_by_two": lambda col: (col % 2) == 0})Use rules (i.e. methods decorated with @dy.rule) for cross-column constraints. Use expressive names for the rules
and use cls to refer to the schema:
class MySchema(dy.Schema):
col1 = dy.UInt8()
col2 = dy.UInt8()
@dy.rule()
def col1_greater_col2(cls) -> pl.Expr:
return cls.col1.col > cls.col2.colUse rules with an over expression for cross-row constraints beyond primary key checks.
When referencing columns of the schema anywhere in the code, always reference column as attribute of the schema class:
Schema.column.col instead of pl.col("column") to obtain a pl.Expr referencing the column.Schema.column.name to reference the column name as a string.This allows for easier refactorings and enables lookups on column definitions and constraints via LSP.
dy.CollectionA subclass of dy.Collection describes a set of related data frames, each described by a dy.Schema. Data frames in a
collection should share at least a subset of their primary key.
class MyStreetSchema(dy.Schema):
"""A schema for a dataframe describing streets."""
# Shared primary key component with MyHouseSchema
street = dy.String(primary_key=True)
city = dy.String()
class MyCollection(dy.Collection):
"""A collection of related dataframes."""
houses: dy.LazyFrame[MyHouseSchema]
streets: dy.LazyFrame[MyStreetSchema]The collection can be used in a standalone manner (much like a dataclass). It can also be used to validate the structure and contents of its members and their relationships at runtime using validation and filtering.
Persist all implicit assumptions about the relationships between the collections' data frames as constraints in the collection.
Use filters (i.e. methods decorated with @dy.filter) to enforce assumptions about the relationships (e.g. 1:1, 1:N)
between the collections' data frames. Leverage dy.functional for writing filter logic.
class MyCollection(dy.Collection):
houses: dy.LazyFrame[MyHouseSchema]
streets: dy.LazyFrame[MyStreetSchema]
@dy.filter()
def all_houses_on_known_streets(cls) -> pl.LazyFrame:
return dy.functional.require_relationship_one_to_at_least_one(
cls.streets, cls.houses, on="street"
)Structure data processing code with clear interfaces documented using dataframely type hints:
def preprocess(raw: dy.LazyFrame[MyRawSchema]) -> dy.DataFrame[MyPreprocessedSchema]:
# Internal data frames do not require schemas
df: pl.LazyFrame = ...
return MyPreprocessedSchema.validate(df, cast=True)_) unless the schema critically improves readability or testability.Both .validate and .filter enforce the schema at runtime. Pass cast=True for safe type-casting.
Schema.validate — raises on failure. Use when failures are unexpected (e.g. transforming already-validated
data).Schema.filter — returns valid rows plus a FailureInfo describing filtered-out rows. Use when failures are
possible and should be handled gracefully. Failures should either be kept around or logged for introspection. The
FailureInfo object provides several utility methods to obtain information about the failures:len(failure) provides the total number of failuresfailure.counts() provides the number of violations by rulefailure.invalid() provides the data frame of invalid rowsfailure.details() provides the data frame of invalid rows with additional columns providing information on which
rules were violatedWhen performing validation or filtering, prefer using pipe to clarify the flow of data:
result = df.pipe(MySchema.validate)
out, failures = df.pipe(MySchema.filter)Use Schema.cast as an escape-hatch when it is already known that the data frame conforms to the schema and the
runtime cost of the validation should not be incurred. Generally, prefer using Schema.validate or Schema.filter.
Unless otherwise specified by the user or the project context, add unit tests for all (non-private) methods performing data transformations.
Write tests with the following structure:
assert_frame_equal from polars.testingfrom polars.testing import assert_frame_equal
def test_grouped_sum():
df = pl.DataFrame(
{
"col1": [1, 2, 3],
"col2": ["a", "a", "b"],
}
).pipe(MyInputSchema.validate, cast=True)
expected = pl.DataFrame(
{
"col1": ["a", "b"],
"col2": [3, 3],
}
)
result = my_code(df)
assert_frame_equal(expected, result)Use dataframely's synthetic data generation for creating inputs to functions requiring typed data frames in their
input. Generate synthetic data for schemas as follows:
MySchema.sample(num_rows=...) to generate fully random data when exact contents don't matter.MySchema.sample(overrides=...) to generate random data with specific columns pinned to certain values for
testing specific functionality. Prefer using dicts of lists for overrides unless specifically prompted otherwise.MySchema.create_empty() instead of sampling with empty overrides when an empty data frame is needed.Synthetic data for collections should be generated as follows:
MyCollection.sample(num_rows=...) to generate fully random data when exact contents don't matter.MyCollection.sample(overrides=...) to generate random data where certain values of the collection members
matter. Use lists of dicts for providing overrides as "objects" spanning the collection members.MyCollection.create_empty() instead of sampling with empty overrides when an empty collection is needed.dataframely provides clear function signatures, type hints and docstrings for the full public API. For more
information, inspect the source code in the site packages. If available, always use the LSP tool to find documentation.
© Quantco, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills of Quantco/dataframely.
Open the folder on GitHubat commit 2bd5100
Dataframely next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Dataframely this skillQuantco/dataframely | 618 | — | ~2.4k | Automated safety check: Pass | BSD-3-Clause | |
| Hybrid-Engine Data Analysiscode-yeongyu/oh-my-openagent | 70k | — | ~1.4k | Automated safety check: Pass | Custom licence | |
| Polarsdavila7/claude-code-templates | 32k | 14 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Optimuskgmims-harvard/OptimusKG | 146 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Hypothesisanam-org/metaxy | 124 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Narwhalsanam-org/metaxy | 124 | — | ~3.3k | Automated safety check: Pass | Apache-2.0 |
code-yeongyu/oh-my-openagent
Analyzes CSV, Parquet and JSON data with DuckDB, Polars, numpy and matplotlib, preferring a persistent kernel over repeated one-shot processes.
davila7/claude-code-templates
Fast DataFrame library (Apache Arrow). An agent skill from davila7/claude-code-templates.
mims-harvard/OptimusKG
Guide for using OptimusKG, the biomedical knowledge graph, through the optimuskg Python client.
anam-org/metaxy
Use Hypothesis for property-based testing to automatically generate comprehensive test cases, find edge cases, and write more robust tests with minimal example shrinking.
anam-org/metaxy
Effectively use Narwhals to write dataframe-agnostic code that works seamlessly across multiple Python dataframe libraries.
ClawBio/ClawBio
Fast genomic interval operations (overlap, nearest, merge, coverage, cluster, complement, subtract, count-overlaps), multi-format bioinformatics I/O, DataFusion SQL, and pileup on Polars DataFrames…
Works with
Categories
Best practices for polars data processing with dataframely. An agent skill from Quantco/dataframely. Dataframely is an agent skill from Quantco/dataframely. Best practices for polars data processing with dataframely.
Dataframely fits situations like: modifying code involving dataframely; polars data frames.
Run `npx skills add Quantco/dataframely --skill dataframely -a claude-code`. Or copy the skill folder (skills in Quantco/dataframely) into .claude/skills/dataframely in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Quantco/dataframely --skill dataframely -a codex`. Or copy the skill folder (skills in Quantco/dataframely) into .agents/skills/dataframely in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Quantco/dataframely --skill dataframely -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dataframely, .gemini/skills/dataframely, .github/skills/dataframely and .opencode/skills/dataframely in your project.
SKILL.md names no scripts, command-line tools or credentials: Dataframely is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Dataframely is published under the BSD-3-Clause licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Dataframely: Hybrid-Engine Data Analysis (code-yeongyu/oh-my-openagent, 70k stars), Polars (davila7/claude-code-templates, 32k stars), Optimuskg (mims-harvard/OptimusKG, 146 stars) and Hypothesis (anam-org/metaxy, 124 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Quantco (a GitHub organization) maintains it in Quantco/dataframely, which has 618 GitHub stars. The repository was last updated on October 6, 2026.
Source: Quantco/dataframely on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.