[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JP627GPZQDP8962ME12997":3,"skill-same:01M6JP627GPZQDP8962ME12997":75},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6JP627GPZQDP8962ME12997","data-quality",null,"Keep warehouse and pipeline data trustworthy — dbt tests, expectations (Great Expectations\u002FSoda), data contracts with upstream producers, source freshness, schema-drift and volume anomaly detection, lineage and blast radius, severity and alerting. Triggers: data quality, bad data in dashboards, data validation, dbt tests, data contract, schema drift, stale data, freshness check, duplicate rows, nulls in the warehouse, data lineage, data SLA, upstream schema change broke us. Generating test\u002Fsynthetic data → test-data-strategy; schema design → data-modeling.","SWEStash\u002Fswe-workflow-skills","SWEStash","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272895713?v=4","01M6JNRQ84JN5WFK9S1V5H4G46","SWE Stash","01M6JNRQCM45X8WPNHY30TSAB0",1,"MIT","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata\u002Fskills\u002Fdata-quality\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"data","data quality","quality","schema design","source","warehouse","soda","synthetic","modeling","volume","drift","data validation","contracts","design","dashboards","radius","pipeline","alerting","lineage","change","2026-11-10 10:12:30",false,"---\nname: data-quality\ndescription: \"Keep warehouse and pipeline data trustworthy — dbt tests, expectations (Great Expectations\u002FSoda), data contracts with upstream producers, source freshness, schema-drift and volume anomaly detection, lineage and blast radius, severity and alerting. Triggers: data quality, bad data in dashboards, data validation, dbt tests, data contract, schema drift, stale data, freshness check, duplicate rows, nulls in the warehouse, data lineage, data SLA, upstream schema change broke us. Generating test\u002Fsynthetic data → test-data-strategy; schema design → data-modeling.\"\n---\n\n# Data Quality\n\nMake bad data **loud**: caught at the boundary where it enters, blocking what\nmust not ship, alerting someone who owns the fix — instead of being discovered\nby a stakeholder in a dashboard. Boundaries: *generating* fake\u002Ftest data is\n`test-data-strategy`; *designing* the schema is `data-modeling`; this skill\nkeeps the real data flowing through pipelines trustworthy.\n\n## Workflow\n\n### Step 1: Start From Incidents, Not Inventory\n\nDon't blanket every column with tests. List the recent data incidents (wrong\ndashboard numbers, silent breakage) and the tables where an error costs real\nmoney or trust — revenue marts, ML features, anything an exec reads. Each\nknown symptom maps to a check: nulls → `not_null`, duplicates → `unique`,\nstaleness → freshness, broken joins → `relationships`. Wins from day one, and\nthe suite grows the same way tests do after bugs — every new incident adds a\ncheck that would have caught it.\n\n**An incident that nobody noticed failed twice, and you only own the first failure.**\nNot knowing the data was wrong is a detection gap — the checks below close it. Knowing and\nnot telling anyone is a routing gap: who gets paged, on what threshold, and through which\nchannel is `observability-design`'s work. Build the check that would have caught this\nincident, then say explicitly that a check nobody is paged for will produce the same\noutcome next time.\n\n### Step 2: Check at the Right Layer — Boundary First\n\nWhere a check runs matters as much as what it checks:\n\n- **Ingestion boundary (sources)**: schema, freshness, volume, primary-key\n  integrity — catch bad inputs *before* transforms consume them. One failed\n  source check beats fifty downstream test failures at 6 a.m.\n- **Transform layers (staging → marts)**: uniqueness\u002Fnot-null on the grain of\n  each model, relationship tests on joins, accepted values on enums.\n- **Consumer edge (marts\u002Fmetrics)**: business-rule assertions — \"revenue is\n  never negative\", \"row count within N% of the 7-day average\".\n\nIn dbt this is: source `freshness` + source tests, generic tests on models\n(`unique`, `not_null`, `relationships`, `accepted_values`), singular SQL tests\nfor business rules. Dedicated tools (Great Expectations, Soda) earn their keep\noutside dbt-land or when non-engineers must own the rules:\n[references\u002Ftooling.md](references\u002Ftooling.md).\n\n### Step 3: Assign Severity — What Blocks vs What Warns\n\nA suite where everything fails the build gets muted within a month; a suite\nwhere nothing blocks is decoration. Decide per check:\n\n- **error** — data is unusable or contaminating (duplicate keys in a revenue\n  mart, failed contract at ingestion): the pipeline stops, downstream models\n  don't build on poisoned input.\n- **warn** — degraded but usable (slightly stale, volume dip within reason):\n  alert, keep flowing.\n\ndbt: `severity:` config with `error_if`\u002F`warn_if` thresholds. Revisit\nseverities after each incident and each false alarm.\n\n### Step 4: Route Failures to an Owner\n\nA failing check nobody sees is identical to no check. Every table (or domain)\nhas a named owner; alerts go where that owner works (Slack channel per domain,\npager only for `error`-severity on critical marts), and each alert says what\nfailed, on which table, and the blast radius (Step 5). Track\ntime-to-detection and time-to-fix for data incidents — that's the metric this\nwhole skill improves (`observability-design` for the SLO framing).\n\n### Step 5: Use Lineage to Scope Blast Radius\n\nWhen a check fails, the first question is \"what downstream is now wrong?\" —\nlineage (dbt's DAG, `dbt ls --select my_model+`, or a catalog tool) answers\nwhich models, dashboards, and consumers sit downstream of the failure. Use it\nto: prioritize fixes by consumer impact, notify affected dashboard owners\nproactively, and decide what to rebuild after the fix. If you can't answer\n\"what breaks if this table is wrong?\", invest in lineage before more checks.\n\n### Step 6: Contract the Upstream Boundary\n\nDownstream tests detect what upstream producers break; **contracts prevent\nit.** When an external team owns the source: agree schema + semantics + SLA\nexplicitly (a versioned artifact — dbt model contracts, JSON Schema\u002Fprotobuf in\na registry), enforce at ingestion so violations fail loudly at entry, and shift\nleft — contract validation in the *producer's* CI, so a breaking rename fails\ntheir build, not your 6 a.m. run. Breaking changes get a version bump and a\ndeprecation window, coordinated like an API change\n(`dependency-impact-analysis` thinking, applied to data). Back it with\nschema-drift detection and volume\u002Fdistribution anomaly checks for what\nenforcement can't see.\n\n## Principles Applied\n\n- **YAGNI**: checks earn their place by a failure mode you've seen or can't\n  afford — blanket-testing every column produces alert fatigue, the failure\n  mode that kills quality programs.\n- **Fail loudly at the boundary**: the cost of bad data grows with every layer\n  it flows through undetected.\n- **DRY**: one contract at the source replaces N teams' defensive checks\n  against the same breakage.\n\n## Cross-Skill References\n\n- `data-pipeline-design` — the pipeline these checks are embedded in\n- `data-modeling` — constraints and grain the checks assert (unique keys exist by design)\n- `test-data-strategy` — generating synthetic\u002Ffixture data for testing pipelines\n- `observability-design` — alerting design, SLOs, avoiding alert fatigue\n- `incident-response` — when bad data has already reached production consumers\n","# Data Quality\n\nMake bad data **loud**: caught at the boundary where it enters, blocking what\nmust not ship, alerting someone who owns the fix — instead of being discovered\nby a stakeholder in a dashboard. Boundaries: *generating* fake\u002Ftest data is\n`test-data-strategy`; *designing* the schema is `data-modeling`; this skill\nkeeps the real data flowing through pipelines trustworthy.\n\n## Workflow\n\n### Step 1: Start From Incidents, Not Inventory\n\nDon't blanket every column with tests. List the recent data incidents (wrong\ndashboard numbers, silent breakage) and the tables where an error costs real\nmoney or trust — revenue marts, ML features, anything an exec reads. Each\nknown symptom maps to a check: nulls → `not_null`, duplicates → `unique`,\nstaleness → freshness, broken joins → `relationships`. Wins from day one, and\nthe suite grows the same way tests do after bugs — every new incident adds a\ncheck that would have caught it.\n\n**An incident that nobody noticed failed twice, and you only own the first failure.**\nNot knowing the data was wrong is a detection gap — the checks below close it. Knowing and\nnot telling anyone is a routing gap: who gets paged, on what threshold, and through which\nchannel is `observability-design`'s work. Build the check that would have caught this\nincident, then say explicitly that a check nobody is paged for will produce the same\noutcome next time.\n\n### Step 2: Check at the Right Layer — Boundary First\n\nWhere a check runs matters as much as what it checks:\n\n- **Ingestion boundary (sources)**: schema, freshness, volume, primary-key\n  integrity — catch bad inputs *before* transforms consume them. One failed\n  source check beats fifty downstream test failures at 6 a.m.\n- **Transform layers (staging → marts)**: uniqueness\u002Fnot-null on the grain of\n  each model, relationship tests on joins, accepted values on enums.\n- **Consumer edge (marts\u002Fmetrics)**: business-rule assertions — \"revenue is\n  never negative\", \"row count within N% of the 7-day average\".\n\nIn dbt this is: source `freshness` + source tests, generic tests on models\n(`unique`, `not_null`, `relationships`, `accepted_values`), singular SQL tests\nfor business rules. Dedicated tools (Great Expectations, Soda) earn their keep\noutside dbt-land or when non-engineers must own the rules:\n[references\u002Ftooling.md](references\u002Ftooling.md).\n\n### Step 3: Assign Severity — What Blocks vs What Warns\n\nA suite where everything fails the build gets muted within a month; a suite\nwhere nothing blocks is decoration. Decide per check:\n\n- **error** — data is unusable or contaminating (duplicate keys in a revenue\n  mart, failed contract at ingestion): the pipeline stops, downstream models\n  don't build on poisoned input.\n- **warn** — degraded but usable (slightly stale, volume dip within reason):\n  alert, keep flowing.\n\ndbt: `severity:` config with `error_if`\u002F`warn_if` thresholds. Revisit\nseverities after each incident and each false alarm.\n\n### Step 4: Route Failures to an Owner\n\nA failing check nobody sees is identical to no check. Every table (or domain)\nhas a named owner; alerts go where that owner works (Slack channel per domain,\npager only for `error`-severity on critical marts), and each alert says what\nfailed, on which table, and the blast radius (Step 5). Track\ntime-to-detection and time-to-fix for data incidents — that's the metric this\nwhole skill improves (`observability-design` for the SLO framing).\n\n### Step 5: Use Lineage to Scope Blast Radius\n\nWhen a check fails, the first question is \"what downstream is now wrong?\" —\nlineage (dbt's DAG, `dbt ls --select my_model+`, or a catalog tool) answers\nwhich models, dashboards, and consumers sit downstream of the failure. Use it\nto: prioritize fixes by consumer impact, notify affected dashboard owners\nproactively, and decide what to rebuild after the fix. If you can't answer\n\"what breaks if this table is wrong?\", invest in lineage before more checks.\n\n### Step 6: Contract the Upstream Boundary\n\nDownstream tests detect what upstream producers break; **contracts prevent\nit.** When an external team owns the source: agree schema + semantics + SLA\nexplicitly (a versioned artifact — dbt model contracts, JSON Schema\u002Fprotobuf in\na registry), enforce at ingestion so violations fail loudly at entry, and shift\nleft — contract validation in the *producer's* CI, so a breaking rename fails\ntheir build, not your 6 a.m. run. Breaking changes get a version bump and a\ndeprecation window, coordinated like an API change\n(`dependency-impact-analysis` thinking, applied to data). Back it with\nschema-drift detection and volume\u002Fdistribution anomaly checks for what\nenforcement can't see.\n\n## Principles Applied\n\n- **YAGNI**: checks earn their place by a failure mode you've seen or can't\n  afford — blanket-testing every column produces alert fatigue, the failure\n  mode that kills quality programs.\n- **Fail loudly at the boundary**: the cost of bad data grows with every layer\n  it flows through undetected.\n- **DRY**: one contract at the source replaces N teams' defensive checks\n  against the same breakage.\n\n## Cross-Skill References\n\n- `data-pipeline-design` — the pipeline these checks are embedded in\n- `data-modeling` — constraints and grain the checks assert (unique keys exist by design)\n- `test-data-strategy` — generating synthetic\u002Ffixture data for testing pipelines\n- `observability-design` — alerting design, SLOs, avoiding alert fatigue\n- `incident-response` — when bad data has already reached production consumers\n",{"name":5,"description":7},"main","800dc9ad0ca2914d6ad15b8c5159d9b57bb104c2","plugins\u002Fdata\u002Fskills\u002Fdata-quality","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills","https:\u002F\u002Fgithub.com\u002FSWEStash","A stash of things we felt like building","2026-11-12 00:14:33",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add SWEStash\u002Fswe-workflow-skills --skill data-quality",{"tool":57,"command":58},"bunx","bunx skills add SWEStash\u002Fswe-workflow-skills --skill data-quality",{"tool":60,"command":61},"pnpm","pnpm dlx skills add SWEStash\u002Fswe-workflow-skills --skill data-quality","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata\u002Fskills\u002Fdata-quality\u002FSKILL.md",true,[65,71],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"evals\u002Fevals.json","REFERENCE","参考文档",4348,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata\u002Fskills\u002Fdata-quality\u002Fevals\u002Fevals.json",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Ftooling.md",2944,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata\u002Fskills\u002Fdata-quality\u002Freferences\u002Ftooling.md",[76,103,129,152,177,202],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":39},"01M6JQFADV3T1MS9V1BNZS1232","writing-skills","Use when authoring, editing, or reviewing a skill in this library — a new SKILL.md, one that under-triggers, or hardening an existing one. Covers description and listing-budget rules, frontmatter, progressive disclosure, the 3-eval rule, and pressure-testing against rationalizations.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102],"writing","writing skills","testing","eval","write","edit","Budget","authoring","new skill","library","frontmatter","editing","triggers","use","Existing","Rules","write a skill","when","listing","progressive disclosure",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M6JQF5DGMXPMQQVZBP8DH9SY","working-agreement","Define and validate how a multi-session project is run — where plans, status and decisions live, session routines, new work, milestone close. README\u002FCONTRIBUTING → project-documentation.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fworking-agreement\u002FSKILL.md",[],[110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,95,128],"working agreement","project","definition of done","done","milestone","documentation","work","progress","how","contributing","close","run","sync","status","live","do","README","session","routines",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":39},"01M6JQF0SMRHN82RBSWMABC4J0","verification-before-completion","Evidence gate before any claim that work is done, fixed, passing, or deployed. Route here when a message declares the work finished or asks to commit, push, merge, ship, or close it out, including a brief sign-off, and before git-workflow or release-management act on it. Writing the commit message or PR text itself → git-workflow.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[136,137,138,139,140,141,83,142,113,143,144,145,116,146,120,147,148,149,150,151],"verification","verification before completion","brief","ready","fix","claim","workflow","commit","text","route","message","merge","release","git","act","ship",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":39},"01M6JQEVGE9NJZ11DV60AE6VWC","ui-ux-design","Design user experiences from an engineer's perspective — user flows, wireframes, interaction patterns, responsive strategy, navigation, loading\u002Ferror\u002Fempty states. Triggers: design the UI, user flow, wireframe, how should this screen look, loading state, error state, empty state, responsive design, navigation, page layout, form design, mockup.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-ux-design\u002FSKILL.md",[],[32,159,160,161,162,163,164,165,166,167,168,169,118,170,171,172,173,174,175,176],"ux","ui","ui ux design","error","states","loading","flows","engineer","interaction","layout","responsive design","screen","flow","patterns","mockup","responsive","form","page",{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":39},"01M6JQEN4HVFTZWQYWGTDS76K9","threat-modeling","Design-time security analysis of a system or feature before it's built — trust boundaries, attack surface, STRIDE per element, abuse cases, prioritized mitigations that become security requirements. Triggers: threat model, STRIDE, trust boundary, attack surface, what could go wrong security-wise, security design review, abuse case, secure this design, security requirements. Reviewing EXISTING code\u002Fconfig for vulnerabilities → security-audit; use this skill while the design is still on the whiteboard.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthreat-modeling\u002FSKILL.md",[],[27,184,185,186,187,188,32,189,190,191,192,193,194,195,196,197,198,199,200,201],"threat modeling","threat","model","time","element","whiteboard","security analysis","analysis","code","review","threat model","audit","security-audit","secure","config","go","security","trust",{"skillNo":203,"name":204,"nameZh":6,"description":205,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":206,"categories":207,"keywords":208,"publishedAt":39},"01M6JQEFT7VT3FQM16170EG9FW","test-suite-design","Design comprehensive test suites for existing code — strategy across unit\u002Fintegration\u002Fe2e, fixtures, factories, helpers. Triggers: add tests, write tests for, increase coverage, test this module, testing strategy, test plan, what tests do I need, test infrastructure, test helpers, this has no tests. Not for TDD — use tdd-workflow.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftest-suite-design\u002FSKILL.md",[],[32,209,210,211,212,213,85,214,215,142,192,216,217,87,218,219,125,220,221,95],"test suite","test","test suite design","coverage","unit","write tests","testing strategy","across","plan","add","infrastructure","test plan","for"]