contexts-and-configuration
Choose and configure Great Expectations Data Contexts, metadata stores, credentials, Data Docs, analytics, and import sanity checks.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- contexts-and-configuration
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Choose and configure Great Expectations Data Contexts, metadata stores, credentials, Data Docs, analytics, and import sanity checks.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/configuration-and-credentials.md6.2 KB
- 参考文档references/context-types-and-stores.md5.5 KB
- 参考文档references/troubleshooting.md6.2 KB
- 脚本scripts/inspect_context.py5.6 KB
03 SKILL.md 正文
Contexts and Configuration
Use this sub-skill when a task needs a Great Expectations (GX Core) Data Context, project configuration, safe credential substitution, metadata-store/Data Docs settings, analytics toggles, or a quick import/context sanity check.
Start Here
- Choose the context deliberately:
gx.get_context(mode="ephemeral")for temporary in-memory work,gx.get_context(mode="file", project_root_dir=...)orcontext_root_dir=...for persisted projects, and avoid Cloud mode in this GX Core line because Cloud construction raises a shutdown error. - Keep context setup separate from downstream work: route data connections to
../datasources-and-assets/SKILL.md, expectation suites to../expectations-and-suites/SKILL.md, validation runs to../validations-and-results/SKILL.md, and checkpoint/Data Docs action orchestration to../checkpoints-actions-and-data-docs/SKILL.md. - For file-backed projects, edit
context.variables.config, callcontext.variables.save(), and re-initialize the context so stores, Data Docs sites, analytics, and substitutions take effect. - Never hardcode credentials in skill outputs or committed project config; use environment variables,
config_variables.yml,runtime_environment, or supported secret-manager references.
Reference Map
- Context types and stores: read when choosing
gx.get_contextarguments, diagnosing file-vs-ephemeral persistence, or understanding context managers and stores. - Configuration and credentials: read when configuring
DataContextConfig, config variables, environment substitutions, store paths, Data Docs sites, or analytics toggles. - Troubleshooting: read when imports fail, the wrong context type appears, config variables do not substitute, Cloud mode is triggered, or store/Data Docs paths behave unexpectedly.
- Inspect context script: run for a safe local smoke check of GX import/version,
gx.get_context, context mode/type, managers, store names, and optional file-context scaffolding.
Safe Inspection
From this sub-skill directory, run the bundled helper with no arguments for an ephemeral context sanity check:
python scripts/inspect_context.py
From the root great-expectations/ skill directory, use the full sub-skill path:
python sub-skills/contexts-and-configuration/scripts/inspect_context.py
Run it against a disposable or intended file project root when you need to prove file-mode scaffolding/loading works:
python sub-skills/contexts-and-configuration/scripts/inspect_context.py --mode file --project-root-dir ./gx-project
The helper prints a compact JSON summary and does not print absolute project paths or credentials.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).