Skip to content
Back to skills

Expectations And Suites

ASecurity

"Create and maintain Great Expectations expectation classes and

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
testingrailstestingapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill expectations-and-suites --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Expectations And Suites?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Expectations And Suites
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-expectations-and-suites/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-expectations-and-suites)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: expectations-and-suites
description: "Create and maintain Great Expectations expectation classes and
  suites, including parameters, row conditions, and custom subclasses."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Expectations and Suites

Use this sub-skill when a GX Core task is about choosing built-in Expectations, configuring threshold parameters, grouping Expectations into an `ExpectationSuite`, testing expectations against a small batch, or turning repeated checks into a custom Expectation subclass.

## Route First

- For context creation, store configuration, config variables, and file/ephemeral/cloud mode choices, read `../contexts-and-configuration/SKILL.md` first.
- For datasource, asset, batch definition, and batch request setup, read `../datasources-and-assets/SKILL.md` first.
- For running full validations, interpreting `ExpectationSuiteValidationResult`, unexpected rows, and result format trade-offs, read `../validations-and-results/SKILL.md` next.
- For checkpoint orchestration, severity-triggered actions, notifications, and Data Docs, read `../checkpoints-actions-and-data-docs/SKILL.md` next.

## Local References

- Read `references/expectation-api-patterns.md` when selecting built-in `gx.expectations` classes, adding them to suites, or using severity, notes, meta, and result formats.
- Read `references/row-conditions-and-parameters.md` when an expectation needs `$PARAMETER` values, validation-time `expectation_parameters`, or row-level conditional logic.
- Read `references/custom-expectations.md` when repeated ad hoc checks should become a custom subclass with defaults and a clear description.
- Read `references/troubleshooting.md` when expectation instantiation, suite persistence, row conditions, parameters, or custom classes fail.
- Run `scripts/build_suite_from_dataframe.py --help` to see a tiny, safe dataframe workflow that builds a suite and can optionally validate it.

## Core Workflow

1. Import GX and expectations with `import great_expectations as gx` and use the class-first API under `gx.expectations`.
2. Create concrete expectation instances, for example `gx.expectations.ExpectColumnValuesToNotBeNull(column="id")`, rather than relying on legacy string-only configuration when writing new code.
3. Group expectations with `suite = gx.ExpectationSuite(name="...")`, then call `suite.add_expectation(expectation)` for each unique expectation.
4. Persist the suite only when the target `DataContext` should own it: `context.suites.add(suite)` for new suites, `context.suites.add_or_update(suite)` for replace/update workflows, and `context.suites.get(name="...")` to retrieve it.
5. Test an individual expectation or a whole suite against a sample `Batch` before production use with `batch.validate(expectation_or_suite, expectation_parameters=..., result_format=...)`.

## Guardrails

- Keep suite names stable and descriptive; `ExpectationSuite(name=...)` requires a non-empty string.
- Keep `meta` JSON-serializable and reserve credentials or machine-specific paths for context configuration, not expectation metadata.
- Use `severity="critical"`, `"warning"`, or `"info"` to communicate failure impact; downstream checkpoint actions can route on severity.
- Use `$PARAMETER` dictionaries only for expectation fields that accept runtime/suite parameters, and always document the required `expectation_parameters` keys near the suite.
- Do not put datasource setup, checkpoint actions, or large validation-result interpretation in this sub-skill; route to the sibling sub-skills listed above.

Files in this skill

  • SKILL.md3.5 KB
  • references/custom-expectations.md4.9 KB
  • references/expectation-api-patterns.md5.5 KB
  • references/row-conditions-and-parameters.md4.9 KB
  • references/troubleshooting.md5.7 KB
  • scripts/build_suite_from_dataframe.py5.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.