[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F0EDCG382FYDG48T893F4Y":3,"skill-same:01M7F0EDCG382FYDG48T893F4Y":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7F0EDCG382FYDG48T893F4Y","data-quality-frameworks",null,"Implement data quality validation with Great Expectations 1.x, dbt data tests and model contracts, and ODCS data contracts. Use when building data quality pipelines, implementing validation rules, or establishing data contracts.","shotcowboystyle\u002Fag-skills","shotcowboystyle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62471?v=4","01M7EZTCFCZJ6K3MYW8BPM4X6R","Curtis Blanton","01M7EZTCG1S5M04J90A931X9BX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-engineering\u002Fskills\u002Fdata-quality-frameworks\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: data-quality-frameworks\ndescription: Implement data quality validation with Great Expectations 1.x, dbt data tests and model contracts, and ODCS data contracts. Use when building data quality pipelines, implementing validation rules, or establishing data contracts.\nlast_verified: 2026-10-20\n---\n\n# Data Quality Frameworks\n\nAdd data quality checks with Great Expectations (GX), dbt data tests and model contracts, and\ndata contracts between teams.\n\n## When to Use This Skill\n\n- Adding quality checks to a pipeline or a dbt project\n- Setting up or upgrading Great Expectations\n- Enforcing a model's schema at build time\n- Agreeing a data contract with a producing or consuming team\n- Blocking a load in CI\u002FCD when data is bad\n\n## Procedure\n\n1. **Find what matters.** List the tables that consumers, dashboards or SLAs depend on, and\n   the columns in them that carry keys, money, status or time. Check those first, not every\n   column.\n2. **Pick the tool by where the data lives.**\n   - Models built by dbt: dbt data tests, plus `contract: enforced` on models other teams\n     read.\n   - Python pipelines, dataframes, files, or sources outside dbt: GX 1.x.\n   - An interface between teams: an Open Data Contract Standard (ODCS) contract, checked with\n     `datacontract test`.\n3. **Check the GX version before you write any code.** Run\n   `python -c \"import great_expectations as gx; print(gx.__version__)\"`. This skill targets\n   1.x. In 0.x, `great_expectations init`, `context.run_checkpoint`, YAML checkpoints and\n   `ExpectationConfiguration` all work differently, so don't mix the two. If the project is\n   on 0.x, upgrade it using GX's migration guide first.\n4. **Cover each dimension** that applies (table below). Every key column needs not-null and\n   unique checks. Every table needs a freshness check and a volume check.\n5. **Set thresholds from history.** Profile recent loads and set bounds just outside the\n   range you observe. Don't invent row counts or means. For checks that may fail on some rows,\n   use `mostly` in GX or `severity: warn` in dbt.\n6. **Gate the pipeline.** A failed blocking check exits non-zero and stops the load. Warnings\n   go to alerting. Never let a failed check pass silently.\n7. **Stop when** every critical table has key, validity, freshness and volume checks that\n   run on each load, and you have seen one failure end to end: break a row on purpose and\n   confirm that the gate fails and the alert fires.\n\nReport back with the checks added for each table, where each one runs, which ones block and\nwhich ones warn, and the commands that run them.\n\n## Data Quality Dimensions\n\n| Dimension        | Description              | GX 1.x expectation                       | dbt                         |\n| ---------------- | ------------------------ | ---------------------------------------- | --------------------------- |\n| **Completeness** | No missing values        | `ExpectColumnValuesToNotBeNull`          | `not_null`                  |\n| **Uniqueness**   | No duplicates            | `ExpectColumnValuesToBeUnique`           | `unique`                    |\n| **Validity**     | Values in expected range | `ExpectColumnValuesToBeInSet`, `...ToBeBetween` | `accepted_values`    |\n| **Integrity**    | Foreign keys resolve     | cross-table query                        | `relationships`             |\n| **Consistency**  | No contradictions        | `ExpectColumnPairValuesAToBeGreaterThanB` | `dbt_utils.expression_is_true` |\n| **Timeliness**   | Data is recent           | `ExpectColumnMaxToBeBetween`             | `dbt_utils.recency`         |\n| **Volume**       | Expected row count       | `ExpectTableRowCountToBeBetween`         | custom generic test         |\n\n## Quick start: Great Expectations 1.x\n\n```bash\npip install \"great_expectations>=1,\u003C2\"\n```\n\n```python\nimport great_expectations as gx\nimport pandas as pd\n\ndf = pd.DataFrame({\"order_id\": [1, 2, 3], \"amount\": [10.0, 25.5, 99.0]})\n\ncontext = gx.get_context()  # file-backed if a gx\u002F directory exists, otherwise in memory\nbatch_definition = (\n    context.data_sources.add_pandas(\"local\")\n    .add_dataframe_asset(name=\"orders\")\n    .add_batch_definition_whole_dataframe(\"all_rows\")\n)\n\nsuite = context.suites.add(gx.ExpectationSuite(name=\"orders_suite\"))\nsuite.add_expectation(gx.expectations.ExpectColumnValuesToNotBeNull(column=\"order_id\"))\nsuite.add_expectation(gx.expectations.ExpectColumnValuesToBeUnique(column=\"order_id\"))\nsuite.add_expectation(\n    gx.expectations.ExpectColumnValuesToBeBetween(column=\"amount\", min_value=0, strict_min=True)\n)\n\nresult = batch_definition.get_batch(batch_parameters={\"dataframe\": df}).validate(suite)\nprint(result.success)\n```\n\nFor a warehouse table, use a SQL data source with a `ValidationDefinition` and a `Checkpoint`\nthat runs on every load with actions such as Slack alerts and Data Docs. See\n`references\u002Fdetails.md`.\n\n## Quick start: dbt model contract\n\nAn enforced contract makes `dbt run` fail when the model's columns or types differ from the\nYAML, before any data is written. List every column the model returns, each with a\n`data_type`. Constraints need a table or incremental materialization, because views can't\ncarry them.\n\n```yaml\n# models\u002Fmarts\u002F_marts__models.yml\nmodels:\n  - name: fct_orders\n    config:\n      materialized: table\n      contract:\n        enforced: true\n    columns:\n      - name: order_id\n        data_type: bigint\n        constraints:\n          - type: not_null\n          - type: primary_key\n        data_tests:\n          - unique\n      - name: total_amount\n        data_type: numeric(12,2)\n      - name: created_at\n        data_type: timestamp\n```\n\nA contract checks the schema's shape. Data tests check the values. Most warehouses don't\nenforce `primary_key`, so keep the `unique` test.\n\n## Best Practices\n\n- **Validate sources before transforming them.** A bad row caught at ingestion costs less to\n  fix than one found in a mart.\n- **Add a test for every incident.** Each data bug you fix should leave a check behind.\n- **Describe each check.** Say what the failure means and who owns the fix.\n- **Version your contracts.** Bump the major version when a change can break consumers.\n- **Test relationships, not just columns.** Orphaned foreign keys and broken totals between\n  tables are common failures.\n- **Don't ignore warnings.** A warning that keeps firing often comes before a hard failure.\n\n## References\n\n- `references\u002Fdetails.md`: full GX 1.x warehouse setup with a checkpoint and a CI gate, a\n  complete dbt test suite, custom generic and singular tests, and an ODCS data contract with\n  `datacontract-cli`.\n","# Data Quality Frameworks\n\nAdd data quality checks with Great Expectations (GX), dbt data tests and model contracts, and\ndata contracts between teams.\n\n## When to Use This Skill\n\n- Adding quality checks to a pipeline or a dbt project\n- Setting up or upgrading Great Expectations\n- Enforcing a model's schema at build time\n- Agreeing a data contract with a producing or consuming team\n- Blocking a load in CI\u002FCD when data is bad\n\n## Procedure\n\n1. **Find what matters.** List the tables that consumers, dashboards or SLAs depend on, and\n   the columns in them that carry keys, money, status or time. Check those first, not every\n   column.\n2. **Pick the tool by where the data lives.**\n   - Models built by dbt: dbt data tests, plus `contract: enforced` on models other teams\n     read.\n   - Python pipelines, dataframes, files, or sources outside dbt: GX 1.x.\n   - An interface between teams: an Open Data Contract Standard (ODCS) contract, checked with\n     `datacontract test`.\n3. **Check the GX version before you write any code.** Run\n   `python -c \"import great_expectations as gx; print(gx.__version__)\"`. This skill targets\n   1.x. In 0.x, `great_expectations init`, `context.run_checkpoint`, YAML checkpoints and\n   `ExpectationConfiguration` all work differently, so don't mix the two. If the project is\n   on 0.x, upgrade it using GX's migration guide first.\n4. **Cover each dimension** that applies (table below). Every key column needs not-null and\n   unique checks. Every table needs a freshness check and a volume check.\n5. **Set thresholds from history.** Profile recent loads and set bounds just outside the\n   range you observe. Don't invent row counts or means. For checks that may fail on some rows,\n   use `mostly` in GX or `severity: warn` in dbt.\n6. **Gate the pipeline.** A failed blocking check exits non-zero and stops the load. Warnings\n   go to alerting. Never let a failed check pass silently.\n7. **Stop when** every critical table has key, validity, freshness and volume checks that\n   run on each load, and you have seen one failure end to end: break a row on purpose and\n   confirm that the gate fails and the alert fires.\n\nReport back with the checks added for each table, where each one runs, which ones block and\nwhich ones warn, and the commands that run them.\n\n## Data Quality Dimensions\n\n| Dimension        | Description              | GX 1.x expectation                       | dbt                         |\n| ---------------- | ------------------------ | ---------------------------------------- | --------------------------- |\n| **Completeness** | No missing values        | `ExpectColumnValuesToNotBeNull`          | `not_null`                  |\n| **Uniqueness**   | No duplicates            | `ExpectColumnValuesToBeUnique`           | `unique`                    |\n| **Validity**     | Values in expected range | `ExpectColumnValuesToBeInSet`, `...ToBeBetween` | `accepted_values`    |\n| **Integrity**    | Foreign keys resolve     | cross-table query                        | `relationships`             |\n| **Consistency**  | No contradictions        | `ExpectColumnPairValuesAToBeGreaterThanB` | `dbt_utils.expression_is_true` |\n| **Timeliness**   | Data is recent           | `ExpectColumnMaxToBeBetween`             | `dbt_utils.recency`         |\n| **Volume**       | Expected row count       | `ExpectTableRowCountToBeBetween`         | custom generic test         |\n\n## Quick start: Great Expectations 1.x\n\n```bash\npip install \"great_expectations>=1,\u003C2\"\n```\n\n```python\nimport great_expectations as gx\nimport pandas as pd\n\ndf = pd.DataFrame({\"order_id\": [1, 2, 3], \"amount\": [10.0, 25.5, 99.0]})\n\ncontext = gx.get_context()  # file-backed if a gx\u002F directory exists, otherwise in memory\nbatch_definition = (\n    context.data_sources.add_pandas(\"local\")\n    .add_dataframe_asset(name=\"orders\")\n    .add_batch_definition_whole_dataframe(\"all_rows\")\n)\n\nsuite = context.suites.add(gx.ExpectationSuite(name=\"orders_suite\"))\nsuite.add_expectation(gx.expectations.ExpectColumnValuesToNotBeNull(column=\"order_id\"))\nsuite.add_expectation(gx.expectations.ExpectColumnValuesToBeUnique(column=\"order_id\"))\nsuite.add_expectation(\n    gx.expectations.ExpectColumnValuesToBeBetween(column=\"amount\", min_value=0, strict_min=True)\n)\n\nresult = batch_definition.get_batch(batch_parameters={\"dataframe\": df}).validate(suite)\nprint(result.success)\n```\n\nFor a warehouse table, use a SQL data source with a `ValidationDefinition` and a `Checkpoint`\nthat runs on every load with actions such as Slack alerts and Data Docs. See\n`references\u002Fdetails.md`.\n\n## Quick start: dbt model contract\n\nAn enforced contract makes `dbt run` fail when the model's columns or types differ from the\nYAML, before any data is written. List every column the model returns, each with a\n`data_type`. Constraints need a table or incremental materialization, because views can't\ncarry them.\n\n```yaml\n# models\u002Fmarts\u002F_marts__models.yml\nmodels:\n  - name: fct_orders\n    config:\n      materialized: table\n      contract:\n        enforced: true\n    columns:\n      - name: order_id\n        data_type: bigint\n        constraints:\n          - type: not_null\n          - type: primary_key\n        data_tests:\n          - unique\n      - name: total_amount\n        data_type: numeric(12,2)\n      - name: created_at\n        data_type: timestamp\n```\n\nA contract checks the schema's shape. Data tests check the values. Most warehouses don't\nenforce `primary_key`, so keep the `unique` test.\n\n## Best Practices\n\n- **Validate sources before transforming them.** A bad row caught at ingestion costs less to\n  fix than one found in a mart.\n- **Add a test for every incident.** Each data bug you fix should leave a check behind.\n- **Describe each check.** Say what the failure means and who owns the fix.\n- **Version your contracts.** Bump the major version when a change can break consumers.\n- **Test relationships, not just columns.** Orphaned foreign keys and broken totals between\n  tables are common failures.\n- **Don't ignore warnings.** A warning that keeps firing often comes before a hard failure.\n\n## References\n\n- `references\u002Fdetails.md`: full GX 1.x warehouse setup with a checkpoint and a CI gate, a\n  complete dbt test suite, custom generic and singular tests, and an ODCS data contract with\n  `datacontract-cli`.\n",{"name":5,"description":7,"last_verified":24},1792454400000,"main","f846d9a97082ff30d613b55a085cef425d822473","plugins\u002Fdata-engineering\u002Fskills\u002Fdata-quality-frameworks","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle","https:\u002F\u002Fshotcowboystyle.github.io","Building smarter with AI, automation & modern tools. Exploring how far one person can go without a big team using today’s AI.","2026-11-10 04:58:27",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add shotcowboystyle\u002Fag-skills --skill data-quality-frameworks",{"tool":39,"command":40},"bunx","bunx skills add shotcowboystyle\u002Fag-skills --skill data-quality-frameworks",{"tool":42,"command":43},"pnpm","pnpm dlx skills add shotcowboystyle\u002Fag-skills --skill data-quality-frameworks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-engineering\u002Fskills\u002Fdata-quality-frameworks\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fdetails.md","REFERENCE","参考文档",10791,"https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-engineering\u002Fskills\u002Fdata-quality-frameworks\u002Freferences\u002Fdetails.md",[54,60,67,74,81,88],{"skillNo":55,"name":56,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7F1YRY5S5QRJ1V0BJS130QX","no-description","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fno-description\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7F1Y9BV2FJNQJ3NB32JS5CM","good-skill","Fixture skill that satisfies every rule.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7F1XXBQ3NQRXZSS0KAGAR9V","broken-link","Links to a reference file that does not exist.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbroken-link\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7F1XBX4R46NR9W0HXQ7XCDX","Bad_Name","Name violates the kebab-case rule and does not match the directory.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-name\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7F1WNAF8WNEQ7S5HKT5VK0D","skill-authoring","Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskill-authoring\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7F1W30TC0XFNSF7YBRGETK2","weigh-bags","Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts\u002Freconcile.py.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-packing-assistant\u002Fskills\u002Fweigh-bags\u002FSKILL.md",[],[]]