技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
great-expectations【数据与研究】Use Great Expectations GX Core for data context setup, datasource and asset configuration, expectation suites, validation runs, checkpoints, actions, and Data Docs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task is about Great Expectations (GX Core): validating data quality, configuring GX contexts, connecting data assets, authoring expectation suites, running validations, interpreting validation results, or orchestrating checkpoints and Data Docs.
pip install great_expectations, then confirm the package imports with import great_expectations as gx; for environment checks, run python scripts/inspect_gx_environment.py.sub-skills/contexts-and-configuration/SKILL.md for gx.get_context, ephemeral vs file contexts, metadata stores, config variables, credentials, analytics toggles, Data Docs settings, and import/context sanity checks.sub-skills/datasources-and-assets/SKILL.md for context.data_sources, pandas dataframe assets, filesystem assets, SQLite/SQL assets, batch definitions, batch parameters, and optional Spark/cloud/warehouse backends.sub-skills/expectations-and-suites/SKILL.md for built-in expectations, ExpectationSuite, suite persistence, runtime parameters, row conditions, custom expectation subclasses, and suite troubleshooting.sub-skills/validations-and-results/SKILL.md for ValidationDefinition, batch.validate, batch/suite parameters, result formats, validation result interpretation, and unexpected-row retrieval.sub-skills/checkpoints-actions-and-data-docs/SKILL.md for Checkpoint, checkpoint actions, Slack/email notification safety, custom actions, Data Docs updates, and production validation orchestration.references/troubleshooting.md for cross-cutting install/import, optional dependency, version, pandas/pydantic, credential, and workflow routing failures.references/repo-provenance.md to decide whether this skill is stale relative to the source repository revision.references/repo-routing-metadata.json only when importing or updating the managed repo-skills-router.scripts/inspect_gx_environment.py --help for a safe public API inspection helper that prints GX version, top-level exports, context managers, and datasource factory availability.import great_expectations as gx
context = gx.get_context(mode="ephemeral")
suite = gx.ExpectationSuite(name="quality_suite")
suite.add_expectation(gx.expectations.ExpectColumnValuesToNotBeNull(column="id"))
The installed package exposes GX primarily through Python APIs. This checkout did not expose package console scripts, so treat command-line guidance as project-specific unless a future version adds documented entry points.
Minimal verification command after installation:
python -c "import great_expectations as gx; print(gx.__version__); print(gx.get_context(mode='ephemeral'))"
gx.get_context(...) and decide whether metadata should persist.ExpectationSuite and add built-in or custom expectation objects.ValidationDefinition from a batch definition and suite, then run it with the required batch_parameters and optional expectation_parameters.Checkpoint only when the workflow needs repeatable production orchestration, actions, notifications, or Data Docs.ResultFormat.COMPLETE or row-level unexpected output on large batches unless the user explicitly needs diagnostics and accepts memory/storage cost.