# semantic layer contract checker

> Audit dbt and PromptQL semantic layers against a 10-point contract for AI-readiness and machine consumption.

semantic layer contract checker is a free AI agent skill on Agensi by Vinuraj Devaraj, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Vinuraj Devaraj](https://www.agensi.io/creators/vinuraj-devaraj)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/semantic-layer-contract-checker
- Tags: llm-ops, dbt, data-engineering, promptql, hasura, semantic-layer, data-contracts, machine-consumption

## 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
1. **Locate project files** such as a dbt `manifest.json` or a PromptQL/Hasura DDN metadata directory.
2. **Execute the audit** using the bundled Python entry point to parse declarations.
3. **Analyze the scorecard** to identify specific gaps in the R7 coverage statement and other machine-readable requirements.
4. **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.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the semantic layer contract checker skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Why do I need a contract checker instead of just using standard dbt documentation?

This skill audits your semantic layer against a specialized 10-point contract to ensure that AI agents can reliably interpret your data's grain, units, and dimensions without manual intervention.

### Which specific data frameworks and environments is this skill compatible with?

The checker is specifically built for dbt (v1.0+) manifest files and PromptQL/Hasura DDN metadata directories, requiring a Python 3.10+ environment to run.

### Can I automate this audit as part of my deployment pipeline?

Yes, the checker can be integrated into CI/CD pipelines to gate deployments, ensuring that no undocumented or 'AI-unready' metrics are pushed to production.

### What exactly is included in the purchase of this skill?

You will receive the bundled Python-based auditing tool, the formal 10-point machine-consumption rubric, and documentation on how to interpret the generated scorecards.

### Does the checker need access to my live database to perform the audit?

The skill audits your metadata declarations and project files only; it does not require or perform active connections to your data warehouse or live production data.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
