fivetran/great_expectations/gx-configure-checkpoint

Claude Code and agent skill by fivetran/great_expectations

Trust tier 3
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Turn a working batch definition and expectation suite into a persisted, re-runnable checkpoint with post-run actions — bind them into a validation definition, group into a named checkpoint, verify it by running it once, and hand off a scheduler-agnostic run snippet. Use when a user wants their checks to survive the session ("make this re-runnable", "schedule this", "notify us when this fails", "update our Data Docs after a run"), or when validation results were printed once and never saved.

Install

npx vskill@latest install fivetran/great_expectations/gx-configure-checkpoint

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as fivetran/great_expectations/gx-configure-checkpoint.

Configure a Great Expectations checkpoint

This skill takes a user from "here is a suite that already validated my data" to a persisted, re-runnable checkpoint — a named, saved grouping of one or more validation definitions plus the actions that should fire after a run — verified by actually running it once.

Two objects, each built on work an earlier skill already did:

  • A validation definition binds one batch definition to one expectation

suite: the specific slice of data, and the specific checks to run against it.

  • A checkpoint is the named, persisted grouping of validation definitions

plus the post-run actions to fire — notifications, a Data Docs update — run as one operation.

Everything here goes through Great Expectations' public configuration API and produces ordinary project artifacts. Nothing depends on this skill being present afterwards — the checkpoint this flow builds runs from a plain Python script outside any agent session, which is the point of it.

The flow

  1. Preflight — find out which project (or in-memory session) you are

operating on, and tell the user. See references/preflight.md.

  1. Check the precondition — at least one expectation suite and one

working batch definition must already exist. If either is missing, hand off and stop.

  1. Bind — pair batch definitions and suites into validation definitions.
  2. Group and add — collect validation definitions into a named checkpoint

with post-run actions, chosen from references/action-catalog.md, persisting it explicitly as part of the same step.

  1. Never rely on the run call to persist it for you — step 4's explicit

add is what makes that safe; see why below.

  1. Verify by running once, and report per-validation-definition and

per-expectation outcomes.

  1. Confirm persistence, and offer write-out when the session is in

memory.

  1. Hand off a run snippet that re-runs the checkpoint from outside this

session — see references/run-and-schedule.md.

Steps 2 and 5, and the fetch-first rule below, are where this flow fails destructively rather than loudly if skipped or reordered. Do not skip step 6 either — a checkpoint that was never run is not a verified result.

What this skill will not do without being asked

<!-- consent-gate: install -->

  • **Install, upgrade, or remove a package, or otherwise modify the

interpreter, virtual environment, environment variables, or shell state.** Not in response to an error, not preemptively while checking whether something is present, and not by announcing an intention to install with a chance to decline attached — none of those is the user asking. When something is missing, name it and hand over the command; running it is a separate act that starts only from the user's own instruction, later. <!-- consent-gate: project -->

  • Create a project directory on the user's disk. Only after the user has

agreed to write the session out and named where. <!-- consent-gate: config-file -->

  • Edit an existing project's `great_expectations.yml`. Only after telling

the user what the edit does and getting a yes. <!-- consent-gate: saved-file -->

  • **Write a file to the user's disk that the user did not ask for and

locate.** Offer it in the conversation first.

Step 1 — Preflight

Follow references/preflight.md in full before touching anything. It establishes whether you are working against a project on disk or an in-memory session, tells you what to announce to the user, and covers the environment problems that silently masquerade as "no project found".

The outcome you carry forward is a context object and one fact: whether the session is file-backed or in memory. Both are fully supported paths, and the difference matters again at step 7.

Step 2 — The precondition: a suite and a working batch definition

A checkpoint has nothing to run without both a batch definition to read data through and an expectation suite to check it with. There is no acceptable way to improvise either one here — do not build a suite from a guess at what the data looks like, and do not construct a batch definition by hand.

Enumerate what the session already has:

python
def existing_suites_and_batch_definitions(context):
suite_names = [suite.name for suite in context.suites.all()]
batch_definitions = []
for datasource in context.data_sources.all().values():
for asset in datasource.assets:
for batch_definition in asset.batch_definitions:
batch_definitions.append((datasource.name, asset.name, batch_definition.name))
return suite_names, batch_definitions

If either list comes back empty, stop and route:

  • No batch definition → hand off to gx-configure-data-source.
  • No expectation suite → hand off to gx-configure-expectations.
  • Neither exists → lead with the data source, since a suite is built against

a batch and there is nothing to build one against yet.

This is a hard stop, not a suggestion — say plainly what's missing, name the skill that builds it, and end this flow. Do not carry on and do not improvise a workaround.

If enumerating what exists, or running the checkpoint in step 6, turns up a missing driver or client library, report it and hand over the install command per the standing rule above. Do not install it yourself — not now, before anything has failed, and not later without the user's own go-ahead.

If more than one suite or batch definition is available, name them and let the user choose which pairs to bind — guessing which check should run against which slice of their data is not a decision to make for them.

Step 3 — Bind: one validation definition per pair

A validation definition needs its suite already persisted in the working context. Building one against a suite the context has never seen raises, not silently loses work the way an unregistered suite does elsewhere in this skill family:

python
from great_expectations.core import ExpectationSuite, ValidationDefinition
unsaved_suite = ExpectationSuite(name="not_saved_yet")
# ValidationDefinition(name="x", data=batch_definition, suite=unsaved_suite)
# ctx.validation_definitions.add(...) on this raises ResourceFreshnessAggregateError:
# "ExpectationSuite 'not_saved_yet' must be added to the DataContext before it
# can be updated. Please call `context.suites.add(<SUITE_OBJECT>)`..."

So always fetch the suite (and the batch definition) from the context rather than closing over an object from earlier in the conversation that might not be the one actually persisted:

python
from great_expectations.core import ValidationDefinition
VALIDATION_DEFINITION_NAME = "orders_quality_check"
datasource = context.data_sources.get("warehouse")
asset = datasource.get_asset("orders")
batch_definition = asset.get_batch_definition("by_month")
suite = context.suites.get("orders_quality")
existing = {vd.name for vd in context.validation_definitions.all()}
if VALIDATION_DEFINITION_NAME in existing:
validation_definition = context.validation_definitions.get(VALIDATION_DEFINITION_NAME)
else:
validation_definition = context.validation_definitions.add(
ValidationDefinition(
name=VALIDATION_DEFINITION_NAME, data=batch_definition, suite=suite
)
)

Membership is checked through .all() rather than a fetch-and-except, the same reason references/write-out.md uses it for these two object types: validation_definitions.get() on a miss raises DataContextError, which is not a LookupError — the except LookupError idiom from the data-source skill does not transfer here. Name it in prose, and never import it.

Repeat this once per (batch definition, suite) pair the user wants bound. Reusing an already-bound pair under the same name is safe — the fetch above returns it unchanged.

Step 4 — Group: build the checkpoint, and add it

python
from great_expectations.checkpoint import Checkpoint
from great_expectations.checkpoint.actions import UpdateDataDocsAction
CHECKPOINT_NAME = "orders_checkpoint"
existing_checkpoints = {c.name for c in context.checkpoints.all()}
if CHECKPOINT_NAME in existing_checkpoints:
checkpoint = context.checkpoints.get(CHECKPOINT_NAME)
else:
checkpoint = context.checkpoints.add(
Checkpoint(
name=CHECKPOINT_NAME,
validation_definitions=[validation_definition],
actions=[UpdateDataDocsAction(name="update_data_docs")],
)
)

This is the explicit add step 5 below is about — the create branch calls `context.checkpoints.add(...)` directly, so `checkpoint` is a persisted object on both branches before anything runs. Get the two branches from step 3's pattern above if adapting this by hand: fetch on a name that already exists, build-and-add on one that doesn't. Never construct a bare Checkpoint(...) and hold onto it without one of these two calls — that is exactly the unpersisted object step 5 exists to warn about.

Ask what should happen after a run — a Slack or Teams message, an email, a Data Docs rebuild, one of the less common actions — before assuming none is wanted. references/action-catalog.md covers every attachable action: its fields, which four carry a public-API stability guarantee and which four don't, and how to word each one's credential requirements.

<!-- consent-gate: config-file --> Before attaching a Data Docs update action, check whether the project has a site to write to. File-backed projects and in-memory sessions both carry a working default site; references/action-catalog.md covers both, and one project state that doesn't: great_expectations.yml can hold data_docs_sites: null, under which every site-management call silently does nothing — no error, no site, no sign anything went wrong. The reference gives the fix, and it edits the user's great_expectations.yml, so ask before running it. Finding data_docs_sites: null is not, by itself, permission to change it — state what you found and what the fix involves, and wait for a yes. If the user declines, name the same fix as the path forward and build the checkpoint without the action.

The fetch-first rule: never add_or_update an existing checkpoint or validation definition to change it

context.checkpoints.add_or_update(...) and context.validation_definitions.add_or_update(...) both persist the incoming object with the stored object's id transplanted onto it — a whole-object replacement, not a merge. For a checkpoint, the replacement cascades: a fresh validation-definition object passed in as part of the incoming checkpoint is itself add_or_update-ed, and that in turn add_or_updates its own suite. Verified directly, isolating exactly what that cascade does and does not touch:

outcome
Always lostthe checkpoint's validation-definition membership and its actions — replaced wholesale by whatever the incoming object listed
Conditionally losta bound suite's contents — only when a fresh suite object is passed under an existing name; upserting with the suite you fetched from the context first leaves it untouched
Never lostvalidation definitions already in the store — nothing here deletes one; a validation definition dropped from a checkpoint's membership is still fetchable afterward

Be precise about this when you talk to a user: "you'll lose this checkpoint's action list and which validation definitions it groups" is accurate; "your other validation definitions will be deleted" is not, and overstating the damage is as much a defect as understating it.

`get` → mutate → `save` avoids the cascade entirely. To change an existing checkpoint's actions, or which validation definitions it groups, fetch it, mutate the field, and save the same object back — never rebuild it from scratch and hand it to add_or_update:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
11,851
Repository forks
1,865
7-day trend score
47

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • pluginCustom plugin integration

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/fivetran/great_expectations/gx-configure-checkpoint/badge)](https://verified-skill.com/skills/fivetran/great_expectations/gx-configure-checkpoint)

Something wrong with this skill or its page? Tell us.