verify-result
Skill19 starsChanged 3 months agoApache-2.0View on GitHub
Review analytics SQL and results against an approved plan for metric, filter, grain, join, and time fidelity, then assess plausibility and escalation needs. Use after analytics execution or when asked to audit a query/result. Do not use to define metrics or modify data.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- template/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- template/CLAUDE.mdCLAUDE.md
- analyst-handoffSkill
- analytics-planSkill
- challenge-resultSkill
- context-interviewSkill
- dashboard-verifySkill
- setup-nodalSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Use the approved analytical plan, executed SQL, result or result metadata, and the context evidence used by the plan.
- Distinctive: line 40
Never modify SQL, context, warehouse data, dashboards, or configuration.
- Distinctive: line 47
Do not treat query history or typical ranges as ground truth.
- Distinctive: line 50
Do not infer data completeness from how long ago a period ended, or declare null handling safe without evidence about the metric.
- Distinctive: line 60
Use the same expanded ACF definitions and canonical metric/method IR as the plan.
- Distinctive: line 65
Query risks: Check fanout, deduplication, slowly changing dimensions, many-to-many joins, null behavior, divide-by-zero handling, signed …
- Distinctive: line 74
Plausibility: When evidence exists, compare with a confirmed seed, trusted dashboard capture, bounded prior result, or historical range.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Approval contract: new and changed context stays on a named working branch and has no authored approval status. Human-reviewed protected merge grants definition approval; consult the live authority through the runtime for the exact revision and freshness. Missing/expired authority evidence prevents governance certification; it does not by itself prohibit an explicitly approved, unverified read-only analysis. Known revoked definitions or materially stale dependencies still require resolution. Explicit branch-test mode is proposed context only. Query/notebook result verification is separate from definition approval; retain source and review evidence. See the context-interview SPEC approval-through-merge contract.
Verify Result
Review an analytical result the way a careful analytics reviewer examines a code change: first determine whether the query implemented the approved intent, then determine whether the observed result is plausible. A successful query is not by itself a verified answer.
Inputs
Use the approved analytical plan, executed SQL, result or result metadata, and the
context evidence used by the plan. Ask for a missing artifact only when it cannot
be recovered from the current conversation or workspace. If no approved plan
exists, reconstruct the apparent plan from the SQL, label plan fidelity
unavailable, and return at most WARN.
For an explicitly authorized unverified analysis, assess plan fidelity and result
checks normally. Preserve the accepted governance limitation and return at most
WARN while authority evidence is unavailable; do not refuse review solely for
that reason or turn query success into definition approval. Known revocations,
material defects and an explicit strict organizational policy remain blockers.
Hard boundaries
- Never modify SQL, context, warehouse data, dashboards, or configuration.
- A review describes the required correction; it does not deliver a complete
replacement SQL/Python implementation, even in a next-step section. Cite the
relevant predicate or operation inline and hand implementation back to the
analyst or
analytics-planfor the approved rerun. - Any diagnostic warehouse query must be read-only, bounded, and necessary to evaluate a named risk. Use only an already-authorized connection.
- Do not treat query history or typical ranges as ground truth. They support a plausibility finding, not a semantic definition.
- Missing evidence stays
unknown; it is never converted into a pass. Do not infer data completeness from how long ago a period ended, or declare null handling safe without evidence about the metric. Unobserved schema risks are questions to resolve, not findings that those columns or defects exist.
Review
- Plan fidelity. Compare the approved interpretation and IR against the SQL: metric expression, source tables, joins and cardinality, mandatory filters, exclusions, grain, dimensions, time boundaries/timezone, comparison, ordering, limits, and expected output shape. Use the same expanded ACF definitions and canonical metric/method IR as the plan. Check inherited/grouped filters, entity-filter stages, allowed dimensions, zero-denominator policy, and effective status/open decisions. For a method, check selected metric branches, parameter defaults, decision IDs, declared overrides and stock/flow alignment against the actual SQL/Python implementation.
- Query risks. Check fanout, deduplication, slowly changing dimensions, many-to-many joins, null behavior, divide-by-zero handling, signed values, mixed grains, non-additive metrics, and filters applied after aggregation.
- Execution evidence. Record success/failure, row count, returned columns,
null/duplicate symptoms, and whether the result shape matches the plan.
For methods, verify required disclosures, output grain/keys/columns and each
qualitative check against actual results. A generated implementation or a
model's assertion cannot establish execution or a result relationship. Missing
execution/check evidence requires
WARN, even if proposed SQL looks correct. - Plausibility. When evidence exists, compare with a confirmed seed, trusted dashboard capture, bounded prior result, or historical range. Preserve the source and snapshot/filter state. Do not invent a range. A reviewed independent notebook comparison is also eligible evidence. Compare the same inputs, as-of date and bindings; compare keyed row sets, reject duplicate keys, preserve nulls and use only pre-agreed numeric tolerances. Equal totals cannot excuse wrong cohort membership, output grain or missing disclosures. Stale method/source/dependency revisions invalidate the prior comparison.
- Confidence and escalation. Apply
references/review-rubric.md. Post-query confidence may downgrade plan confidence; overall confidence is the lower of the two. A trusted snapshot match supports verification but does not erase an unresolved semantic conflict.
Output
Lead with one outcome:
PASS: implementation is faithful, required checks have supporting evidence, and no material anomaly was found.WARN: no proven defect, but evidence is incomplete or a plausible risk remains.FAIL: SQL departs materially from the plan, execution failed, or trusted verification evidence contradicts the result.
Then list findings by severity with the exact plan clause, SQL construct, and impact. Include post-query confidence, overall confidence, evidence checked and unavailable, and a concrete escalation recommendation. Avoid generic advice such as “double-check the query.”
State plan fidelity explicitly as faithful, unfaithful, or unavailable.
With no approved plan, use Plan fidelity: unavailable; an apparent plan inferred
from SQL does not fill that gap or authorize upgrading the result to a pass.
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.

