veracity-audit
Skill0 starsChanged 2 months agoMITView on GitHub
Audit a data pipeline for Veracity and Value. Dispatches data-scientist, compliance-auditor, and data-engineer agents with project context injected at dispatch time. All source paths are supplied via flags — no defaults, no project assumptions. Subcommands: audit (full pipeline walk), score-check (scoring math only), gate-check (gate coverage only), source-trace <label> (single source end-to-end). Invoke when: "audit pipeline", "veracity check", "scoring math correct?", "check gates", "trace source", "verify quality gates", "formula correct?".
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- changelogSkill
- dependabot-sweepSkill
- markdownSkill
- merge-prSkill
- pre-prSkill
- pr-tldrSkill
- tldrSkill
- agents-searchSkill
- audit-and-fixSkill
- aws-specialistSkill
- azure-specialistSkill
- code-simplifierSkill
- create-assessmentSkill
- create-auditSkill
- create-experimentSkill
- create-inspectionSkill
- crossplane-specialistSkill
- deploy-statusSkill
- detect-flakySkill
- fix-with-evidenceSkill
- flyctlSkill
- gcp-specialistSkill
- gitSkill
- ground-firstSkill
- handoffSkill
- kubernetes-specialistSkill
- local-attestSkill
- plan-graderSkill
- post-pr-reviewSkill
- pr-conductorSkill
- project-syncSkill
- pulumi-specialistSkill
- quality-reviewSkill
- release-conductorSkill
- reproduce-bugSkill
- review-prSkill
- review-prsSkill
- rollback-prodSkill
- security-auditSkill
- security-reviewSkill
- smoke-testSkill
- specSkill
- terraform-specialistSkill
- terragrunt-specialistSkill
- validate-specSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 44
All paths must be provided explicitly.
- Distinctive: line 55
If a required flag is missing, print which flags are needed and halt.
- Distinctive: line 69
If any are missing, halt:
- Distinctive: line 87
Read both config files in full.
- Very specific: line 168
If --save: write to docs/audits/veracity-<YYYY-MM-DD>.md.
- Very specific: line 176
Read --config in full.
- Very specific: line 186
Read --quality-config and the pipeline gate step files in full.
- Very specific: line 187
If --since is present:
- Distinctive: line 221
Inject context: Always read and inject the config files into agent prompts.
- Very specific: line 223
Evidence before verdict: Every FAIL/CRITICAL must cite file:line.
- Distinctive: line 224
No project assumptions: All paths come from flags.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Veracity Audit
Orchestrating audit skill for data pipelines. Dispatches specialized sub-agents
(data-scientist, compliance-auditor, data-engineer) with project context
injected at dispatch time. Produces inline findings; --save writes to docs/audits/.
Covers:
- Veracity — source reliability, scoring math integrity, quality gate completeness
- Value — primary score vs. legacy output correctness, blend-config wiring
Required Arguments
All paths must be provided explicitly. The skill has no built-in defaults.
| Flag | Required | Description |
--config <path> | yes (score-check, audit) | Scoring/rating config file (YAML or JSON) |
--quality-config <path> | yes (gate-check, audit) | Data quality gate declarations file |
--pipeline-dir <path> | yes (audit, source-trace) | Directory containing pipeline step source files |
--scoring-dir <path> | yes (score-check, audit) | Directory containing scoring/math source files |
--save | no | Write findings to docs/audits/veracity-<YYYY-MM-DD>.md |
--since <spec> | no, gate-check only | Focus on checks added within this window (e.g. "30 days ago") |
If a required flag is missing, print which flags are needed and halt.
Pre-flight (always runs first)
Confirm the three required agents are installed:
~/.claude/agents/data-engineer.md
~/.claude/agents/data-scientist.md
~/.claude/agents/compliance-auditor.mdIf any are missing, halt:
Missing agent(s): <list>
Run: dotbabel bootstrap
Then re-invoke this skill.Subcommand: audit
Full pipeline walk. Dispatches three agents in parallel, then synthesizes.
Required flags: --config, --quality-config, --pipeline-dir, --scoring-dir
Step 1 — Read shared context
Read both config files in full. Retain their content to inject as a preamble into every agent prompt so all agents share the same source of truth.
Step 2 — Dispatch three agents in parallel
Agent: data-engineer
Task: Audit source reliability across all pipeline steps.
Scope: <--pipeline-dir> (all step/stage source files), provider or adapter directories nearby
Preamble: [inject --config and --quality-config content]
Checks:
- Ingestion steps: how are missing/null entity IDs handled? What happens on HTTP 429/503?
- Time-windowed queries: is the cutoff calendar or epoch-based? Any timezone assumptions?
- For each external source: schema version check? Fallback when unavailable? IDs validated before use?
- Last-resort fallback case: when does it trigger silently vs. with a logged warning?
Output: P0/P1/P2 findings table per source, file:line.
P0 = data loss/corruption, P1 = reliability gap, P2 = efficiency improvement.
Constraints: read-onlyAgent: data-scientist
Task: Validate scoring math integrity.
Scope: <--scoring-dir> (rating/math source files), <--pipeline-dir> (transform and aggregation steps)
Preamble: [inject --config content in full]
Checks:
- Tier/exponent selection: boundary conditions match config exactly (strict vs. loose comparisons).
- Core adjustment formula: matches declared mathematical intent.
- Credibility-weighting formula: trust horizon, curve shape, and [0,1] clamp.
- Multi-source cap: applied in the correct order relative to other adjustments; cite the line.
- Fallback case chain: for each case, state trigger condition, rating produced, and whether output
is bounded to a sane range. Flag any case that can produce an out-of-range value.
- Empty-collection edge case in aggregation: division-by-zero risk?
- Primary score vs. legacy output: does any export path still apply a scale conversion
(e.g. ×10 or /10) from the old output range? Grep service, export, and handler files.
Output: math integrity table (Formula | Expected | Code Behavior | Verdict | File:Line).
Verdict: PASS / FAIL / AMBIGUOUS. FAIL entries include a one-line fix.
Constraints: read-onlyAgent: compliance-auditor
Task: Gate completeness — coverage matrix of --quality-config declarations vs. enforcement code.
Scope: <--quality-config>, <--pipeline-dir> (gate/validation step), <--scoring-dir> (gate helpers)
Preamble: [inject both config file contents]
Checks:
- Build coverage matrix for all named checks in quality config.
- Flag DECLARED-NOT-ENFORCED (CRITICAL) and ENFORCED-NOT-DECLARED (WARNING).
- Per-entity gate function: verify it is called for every entity in every run
(trace call site in pipeline gate step, not just in unit tests).
- Gate outcome persistence: verify pass/fail and reason are written to a durable store.
- Threshold mismatch: compare threshold values in quality config vs. hardcoded literals in gate step.
- Test coverage: flag any check with no corresponding test in the gate test file.
Output: coverage matrix (Check | Declared | Enforced | Blocking | Threshold Match | Test | File:Line)
+ gap list (Severity | Gap Type | Check Name | Detail | File:Line).
Constraints: read-onlyStep 3 — Synthesize
- Deduplicate findings that share the same
file:line. - Assign the highest severity from any agent that flagged the same location.
- Output:
## Source Reliability
[data-engineer P0/P1/P2 table]
## Scoring Math
[data-scientist PASS/FAIL/AMBIGUOUS table]
## Gate Coverage
[compliance-auditor matrix + gap list]
## Summary
N CRITICAL · N WARNING · N INFO
Top action: <highest-severity finding's recommended fix>If --save: write to docs/audits/veracity-<YYYY-MM-DD>.md.
Subcommand: score-check
Required flags: --config, --scoring-dir
- Read
--configin full. - Dispatch
data-scientistwith Agent B spec above, config injected as preamble. - Output the math integrity table directly — no synthesis.
Subcommand: gate-check
Required flags: --quality-config, --pipeline-dir
- Read
--quality-configand the pipeline gate step files in full. - If
--sinceis present:- Run:
git log --since="<value>" --oneline -- <--quality-config> - Extract check names added in recent commits.
- Prepend to agent prompt: "Focus on these recently added checks:
[check-names]. Verify each has enforcement AND a test."
- Run:
- Dispatch
compliance-auditorwith Agent C spec above. - Output coverage matrix and gap list directly — no synthesis.
Subcommand: source-trace <label>
Required flags: --pipeline-dir, --config
- Require one positional argument: the source label to trace. If missing, grep
--pipeline-dirfor provider/adapter import names and print a list, then halt. - Build a targeted file list by grepping
--pipeline-dirand nearby adapter/service directories for the label. - Dispatch
data-engineer:Task: Trace <label> end-to-end through the pipeline. Scope: [targeted file list] + --config for scoring context For each file: (a) Where does this source's data enter? (b) What schema fields are consumed? (c) What happens when the source returns stale, null, or out-of-schema data? (d) Is the source ID space validated against a reference set before use? (e) What is the downstream scoring impact if this source fails silently? Output: Stage | File:Line | Fields consumed | Failure mode | Mitigation (Y/N). Constraints: read-only
Key Principles
- Audit, don't fix. Findings only — let the user decide what to act on.
- Inject context. Always read and inject the config files into agent prompts. Never let agents re-read them independently — shared preamble is the source of truth.
- Parallel where independent.
auditruns three agents concurrently; the other subcommands are single-agent. - Evidence before verdict. Every FAIL/CRITICAL must cite
file:line. AMBIGUOUS is a valid verdict — do not guess. - No project assumptions. All paths come from flags. The skill works for any pipeline that has a scoring config, a quality gate config, and a multi-step pipeline directory.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

