data-validation
Skill4 starsChanged 7 months agoMITArchived repositoryView on GitHub
Load when working with: Pandera DataFrame schemas, Great Expectations suites, data quality checks, input validation for ML pipelines, data contracts between pipeline stages. Define schemas declaratively and validate at pipeline boundaries: Validate without decorator: Use Pydantic for row-level validation in ingestion endpoints: Validate at each stage boundary: For lightweight checks without a full framework:
3 other projects use a version of this.
Adopted by
Most recently taken up by
- northraystudio/marudatheir own version, first seen Sep 19, 2026
- ChloeQcc/skillstheir own version, first seen Aug 20, 2026
- Eleven-M/flowmindtheir own version, first seen Jun 30, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- northraystudio/maruda★ 5same name
- ChloeQcc/skills★ 2same name
- Eleven-M/flowmind★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- claude-api-patternsSkill
- critical-analysisSkill
- database-migration-safetySkill
- design-doc-creatorSkill
- experiment-trackingSkill
- fastapi-patternsSkill
- github-actionsSkill
- htmx-frontendSkill
- infra-yandex-cloudSkill
- langgraph-patternsSkill
- ml-data-handlingSkill
- multimodal-routerSkill
- nlp-slm-patternsSkill
- predictive-analyticsSkill
- prompt-engineeringSkill
- python-project-standardsSkill
- rag-vector-dbSkill
- skill-developerSkill
- supply-chain-auditorSkill
- test-first-patternsSkill
- windows-developerSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Use Pydantic for row-level validation in ingestion endpoints:
- Distinctive: line 137
Never skip validation in "dev mode" — data quality issues in dev become silent corruptions in production
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Data Validation
When to Load This Skill
Load when working with: Pandera DataFrame schemas, Great Expectations suites, data quality checks, input validation for ML pipelines, data contracts between pipeline stages.
Pandera — DataFrame Schema Validation
Define schemas declaratively and validate at pipeline boundaries:
import pandera as pa
from pandera.typing import DataFrame, Series
class InputSchema(pa.DataFrameModel):
user_id: Series[int] = pa.Field(ge=0, nullable=False)
age: Series[float] = pa.Field(ge=0, le=120, nullable=True)
category: Series[str] = pa.Field(isin=["A", "B", "C"])
score: Series[float] = pa.Field(ge=0.0, le=1.0)
class Config:
strict = True
coerce = True
@pa.check_types
def preprocess(df: DataFrame[InputSchema]) -> DataFrame[InputSchema]:
return df.dropna(subset=["user_id"])Validate without decorator:
try:
InputSchema.validate(df, lazy=True)
except pa.errors.SchemaErrors as e:
print(e.failure_cases)Pydantic Data Contracts
Use Pydantic for row-level validation in ingestion endpoints:
from pydantic import BaseModel, Field, field_validator
from typing import Literal
class RecordInput(BaseModel):
user_id: int = Field(ge=0)
age: float | None = Field(default=None, ge=0, le=120)
category: Literal["A", "B", "C"]
score: float = Field(ge=0.0, le=1.0)
@field_validator("score")
@classmethod
def score_precision(cls, v: float) -> float:
return round(v, 6)FastAPI Ingestion Endpoint with Validation
from fastapi import APIRouter, HTTPException
import pandera as pa
router = APIRouter()
@router.post("/ingest")
async def ingest_batch(records: list[RecordInput]) -> dict:
df = pd.DataFrame([r.model_dump() for r in records])
try:
InputSchema.validate(df, lazy=True)
except pa.errors.SchemaErrors as e:
raise HTTPException(status_code=422, detail=e.failure_cases.to_dict())
return {"accepted": len(df)}ML Pipeline Input/Output Validation
Validate at each stage boundary:
class FeatureSchema(pa.DataFrameModel):
feature_1: Series[float] = pa.Field(nullable=False)
feature_2: Series[float] = pa.Field(nullable=False)
target: Series[int] = pa.Field(isin=[0, 1])
class Config:
strict = False
class PredictionSchema(pa.DataFrameModel):
user_id: Series[int]
probability: Series[float] = pa.Field(ge=0.0, le=1.0)
label: Series[int] = pa.Field(isin=[0, 1])Data Quality Checks (Custom)
For lightweight checks without a full framework:
from dataclasses import dataclass
from typing import Callable
import pandas as pd
@dataclass
class Check:
name: str
fn: Callable[[pd.DataFrame], bool]
error_msg: str
def run_checks(df: pd.DataFrame, checks: list[Check]) -> list[str]:
failures = []
for check in checks:
if not check.fn(df):
failures.append(f"{check.name}: {check.error_msg}")
return failures
QUALITY_CHECKS = [
Check("no_nulls_user_id", lambda df: df["user_id"].notna().all(), "user_id has nulls"),
Check("score_range", lambda df: df["score"].between(0, 1).all(), "score out of [0,1]"),
Check("min_rows", lambda df: len(df) >= 10, "batch too small (< 10 rows)"),
]Known Pitfalls
- Pandera
strict=Truerejects any columns not in the schema — usestrict=Falsefor pass-through pipelines where extra columns are expected lazy=Trueinvalidate()collects ALL failures before raising — use it for batch reporting; without it, validation stops at the first error- Pydantic
field_validatorruns AFTER type coercion — validate the coerced value, not the raw input string - Never skip validation in "dev mode" — data quality issues in dev become silent corruptions in production
Resources
- Pandera docs: https://pandera.readthedocs.io/
- Pydantic validation: https://docs.pydantic.dev/latest/concepts/validators/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

