- Home
- Skills
- Data & Databases
- semantic layer contract checker
semantic layer contract checker
Audit dbt and PromptQL semantic layers against a 10-point contract for AI-readiness and machine consumption.
Free
semantic layer contract checker
Example session with this skill installed
Audit my dbt manifest at target/manifest.json against the machine-consumption contract and give me a scorecard.
- Read your context and instructions
- Compiled the semantic layer contract
I have audited the dbt manifest against the ten-requirement machine-consumption contract. The project shows strong baseline definitions but lacks the trust signals required for autonomous AI consumers.
Semantic Layer Scorecard: dbt Project
| Req | Requirement | Status | Evidence/Gap |
|---|---|---|---|
| R1 | Enumerability | supported | All 42 metrics exposed via manifest nodes. |
| R2 | Declared semantics | documented with reduction | Aggregation and grain present; slicing dimensions missing on 12 nodes. |
| R3 | Provenance | documented with reduction | Lineage present; source freshness not linked to manifest surface. |
| R4 | Freshness signals | not documented | No freshness blocks found in metric definitions. |
| R5 | Access control | not assessable | Runtime enforcement cannot be verified from manifest. |
| R6 | Certification | documented with reduction | Owner tags present; no formal certified metadata field. |
| R7 | Result contract | not documented | Missing units and R7 Coverage Statement. |
| R8 | Structured rejection | not assessable | Requires runtime error-state testing. |
| R9 | Deprecation | documented with reduction | deprecated field exists but versioning signals are absent. |
| R10 | Stable identity | supported | Unique IDs persist across renames via unique_id field. |
Summary counts:
- supported: 2
- documented with reduction: 5
- not documented: 2
- not assessable: 2
The
R7 coverage statement is currently
not documented. AI consumers will not be able to determine if result sets represent a specific population or the entire dataset.
Next steps
- Add
metablocks to your dbt metrics to defineunitsandcoverage_statement. - Configure
freshnessblocks in your source YML files to move R4 to supported. - Define slicing dimensions for all governed metrics to resolve the R2 reduction.
Connects securely to your tools. The creator never sees your data.
About this skill
Modern AI agents and BI tools fail when they cannot trust the semantic layer. This skill audits your dbt manifest or PromptQL metadata against the ten-requirement machine-consumption contract, identifying exactly where your declarations fall short for automated consumers.
What it does
- Audit definitions by checking for programmatic surfaces and stable identities that survive renames.
- Score semantics to ensure aggregation, grain, and slicing dimensions are declared for mechanical checking.
- Evaluate trust signals including data freshness, ownership certification, and deprecation versions.
- Verify result contracts to ensure units, grain, and coverage statements are present for safe AI consumption.
- Generate scorecards using a four-value vocabulary (supported, documented with reduction, not documented, not assessable) with cited evidence.
How it works
- Locate project files such as a dbt
manifest.jsonor a PromptQL/Hasura DDN metadata directory. - Execute the audit using the bundled Python entry point to parse declarations.
- Analyze the scorecard to identify specific gaps in the R7 coverage statement and other machine-readable requirements.
- Remediate gaps by updating project metadata based on the checker's specific evidence requirements and re-running the tool.
Frameworks & tools
Built for data teams using dbt (v1.0+) or PromptQL / Hasura DDN. The checker requires a Python 3.10 environment with PyYAML for processing metadata.
Why this beats prompting it yourself
Manual prompts lack the formal rubric of the ten-requirement machine-consumption contract. This tool provides a deterministic audit with specific evidence for every cell, ensuring you don't miss critical conjunctive requirements like grain and population coverage that generic LLMs often overlook.
Use cases
- Audit a dbt project before deploying an AI-powered BI copilot.
- Prepare Hasura DDN metadata for integration with autonomous agents.
- Identify missing lineage and freshness declarations in a semantic layer.
- Gate CI/CD pipelines using strict-mode auditing to prevent undocumented metrics.
Known limitations
Audits project file declarations only and does not verify runtime behavior, warehouse connectivity, or live access control enforcement. Limited to dbt and PromptQL adapters.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 15 days ago
- Free with an Agensi account
- Software
Python
Permissions
What's inside
Creator
Vinuraj Devaraj
Frequently Asked Questions
New in Data & Databases
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.