debugging-failed-data-quality-checks

debugging-failed-data-quality-checks is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 122 tokens per session (1,622 once invoked), scanned A, original, MIT.

A procedure for finding why a data-quality check failed, errored, or was skipped. It distinguishes bad data from query errors, missing tables or views, stale materialized views, and failed row-count or freshness limits.

In plain words
What is it for?
Use it to inspect matching rows, explain failed checks, diagnose errors, and investigate views that are stale or not published.
Why use it?
It prevents the wrong fix by first identifying whether the problem is in the data, the check, the database object, or the refresh process.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect matching rows, explain failed checks, diagnose errors, and investigate views that are stale or not published.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/debugging-failed-data-quality-checks
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/posthog-foss --skill debugging-failed-data-quality-checks
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debugging-failed-data-quality-checks

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/debugging-failed-data-quality-checks/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/debugging-failed-data-quality-checks)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/debugging-failed-data-quality-checks"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/debugging-failed-data-quality-checks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for debugging-failed-data-quality-checks

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/debugging-failed-data-quality-checks"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/debugging-failed-data-quality-checks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,622 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00122 $0.01622
Opus 5.5 $0.00049 $0.00649
Sonnet 5.5 $0.00024 $0.00324
Haiku 4.5 $0.00012 $0.00162

Measured today against content hash bddfe2384af7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debugging-failed-data-quality-checks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

products/data_quality/skills/debugging-failed-data-quality-checks/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debugging failed data quality checks

A check run ends in one of four states. Read the state first, because it decides where the problem is:

Status Meaning Where to look
failed The query ran and the assertion found bad data The data, or the assertion itself
errored The query could not run, so nothing was judged The error text (never a data problem)
skipped The subject is gone Whether the table or view still exists
passed The assertion held Nothing

row_count and freshness checks judge observed_value, not failed_row_count. A failed row_count means the count fell outside its bounds. A failed freshness means the newest row is older than the limit.

When to use this skill

  • A check or a subject shows failed or errored and the user wants to know why
  • The user wants to see the rows a check matched
  • A materialized view's latest run shows an error that starts with Not published:
  • A view kept serving old data after a refresh, and the data quality gate is on
  • Another skill (authoring-data-quality-checks or auditing-warehouse-view-health) found a failing check or a blocked view and handed it off

Available tools

Tool Purpose
posthog:data-quality-check-results A check's recent runs, with compiled_query, error and the config it ran
posthog:execute-sql Re-run a run's compiled_query to see the failing rows
posthog:data-quality-check-run Run a check now
posthog:data-quality-check-update Fix an assertion or change its severity
view-get A view's definition and status
view-run-history A view's materialization runs and their errors
view-run Materialize a view again

Read the full file on GitHub · 133 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +2 lines bddfe2384af7
  2. 1mo ago First seen · 131 lines · 122 tokens per session scan A acc3c2c43d9b

Subscribe to this mod's changes

debugging-failed-data-quality-checks is a skill published in the GitHub repository PostHog/posthog-foss (734 stars, last pushed today), licensed MIT. It adds 122 tokens to every session and 1,622 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-06.

Related

debugging-failed-data-quality-checks compared with skills from other repositories

debugging-failed-data-quality-checks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debugging-failed-data-quality-checksPostHog/posthog-fossSkill734todayMITA122Claude Code, Codex
triage-issuesgoogleapis/mcp-toolboxSkill17ktodayApache-2.0A164Claude Code, Codex
postgresql-indexingprowler-cloud/prowlerSkill15ktodayApache-2.0A108Claude Code
sql-optimization-patternssickn33/agentic-awesome-skillsSkill51ktodayMITA28Claude Code
graphjin-evaldosco/graphjinSkill3.2k2d agoApache-2.0A27Claude Code, Codex
django-perf-reviewgetsentry/skillsSkill1.2k16d agoApache-2.0A55Claude Code
read-only-investigationSyngnat/GoNaviSkill2.1ktodayApache-2.0A0Claude Code, Codex