posit-dev/pointblank/validate-yaml
Claude Code and agent skill by posit-dev/pointblank
- community
Checking that the SKILL.md file is still in the repository.
Define Pointblank validation plans in YAML instead of Python code. Covers the YAML schema, validate_yaml() for checking a config, yaml_interrogate() for execution, yaml_to_python() for code generation, Validate.to_yaml() for export, Python code in YAML (allow_python), data source configuration, and the ablation block run by yaml_ablation(). Use when defining validation plans declaratively or sharing them across teams.
Install
npx vskill@latest install posit-dev/pointblank/validate-yamlSKILL.md
The same SKILL.md was published earlier as posit-dev/pointblank/validate-yaml.
Validate YAML
Skill for defining data-validation plans in YAML. YAML-based plans are declarative, version-controllable, and shareable across teams without requiring Python knowledge.
Quick start
From the command line: pb run validation.yaml.
Skill directory structure
When to use what
| I want to... | Use | |
|---|---|---|
| Check a config's top-level structure | validate_yaml() | |
| Execute a YAML validation plan | yaml_interrogate(), pb run | |
| Convert YAML to Python code | yaml_to_python() | |
| Export a Python validation to YAML | Validate.to_yaml() | |
| Override the data source at runtime | yaml_interrogate(set_tbl=df) | |
Run pre:, lambdas, python: blocks | yaml_interrogate(allow_python=True) | |
| Make modules available to that code | yaml_interrogate(namespaces=["math"]) | |
| Keep an ablation with the validation | ablation: block + yaml_ablation() |
Core concepts
YAML structure
A YAML validation plan has two required keys (tbl and steps) and several optional keys. Unknown top-level keys raise an error.
Data sources in YAML
The tbl key accepts:
| Value | Interpreted as | ||
|---|---|---|---|
small_table | A built-in dataset | ||
data.csv, data.parquet | A file path (read with df_library) | ||
"duckdb:///path/to/db.ddb::table" | A database connection string | ||
null | A template; pass the table with set_tbl= | ||
| `python: \ | ` block | Code that makes the table (allow_python) |
Steps in YAML
Each step is a mapping of one method name to its parameters, or just the method name for a step with no parameters:
Text and ML checks have YAML forms too. A col_vals_scored scorer is written as one of the pb.scorers adapters with its settings:
Python code in YAML
Code outside a small declarative subset isn't run unless you allow it, since it can do anything the Python session can. Without permission, yaml_interrogate() raises YAMLValidationError.
Always allowed (no allow_python needed): pb.load_dataset(), pb.col(), pb.ref(), pb.seg_group(), pb.has_columns(), pb.has_rows(), the column selectors, Decimal(...), datetime.date/time/datetime/timedelta(...), and ZoneInfo(...).
Needs allow_python=True: pre:, col_vals_expr's expr:, conjointly's expressions:, specially's expr:, callable actions, a scorer of your own, and any other python: block.
namespaces= takes module names (["math"]) or a mapping of aliases to module names ({"np": "numpy"}); pb, pl, pd, Path, datetime, Decimal, and ZoneInfo are already available. From the CLI: pb run trusted.yaml --allow-python. Only allow Python for configs you trust.
Checking a YAML config
It checks the YAML syntax, the top-level keys, that tbl and a non-empty steps list are present, the thresholds and actions, and any ablation: block, without loading data. It doesn't check the steps themselves. yaml_to_python() catches an unknown method name or a malformed step without loading data; a misspelled parameter is only caught when yaml_interrogate() calls the method.
Executing a YAML plan
Converting between YAML and Python
to_yaml() writes the table's name as tbl:, so rerun the file with set_tbl= when the table isn't a built-in dataset or a path.
Ablation in YAML
An ablation: block describes an Ablation of the plan's validation (see the check-training-data skill). yaml_interrogate() ignores it; yaml_ablation() interrogates the validation and adds the variants:
Workflows
Creating a YAML validation plan
- Profile the data to understand its shape and types.
- Write the YAML file with
tblandsteps(or build the plan in
Python and call to_yaml()).
- Run
pb.validate_yaml()to check its structure, then
pb.yaml_to_python() to catch unknown methods without loading data.
- Run
pb.yaml_interrogate()(orpb run) to execute. - Review the report and iterate.
Sharing plans across teams
- Define the plan in YAML, with
tbl: nullif it's a template. - Commit to version control.
- Team members execute with
pb.yaml_interrogate(..., set_tbl=df).
Migrating from YAML to Python
- Run
pb.yaml_to_python("plan.yaml")to generate code. - Review and customize the generated Python.
Gotchas
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/validate-yaml/SKILL.md
Popularity
- Repository stars
- 483
- Repository forks
- 30
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/posit-dev/pointblank/validate-yaml)