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.
npx skills add luccapinto/agentic-data-kit --skill dbt-modeling-conventionsgit clone --depth 1 https://github.com/luccapinto/agentic-data-kitWrote 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.
[](https://agentmods.dev/skills/luccapinto/agentic-data-kit/dbt-modeling-conventions)<a href="https://agentmods.dev/skills/luccapinto/agentic-data-kit/dbt-modeling-conventions"><img src="https://agentmods.dev/badge/skills/luccapinto/agentic-data-kit/dbt-modeling-conventions/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.
<a href="https://agentmods.dev/skills/luccapinto/agentic-data-kit/dbt-modeling-conventions"><img src="https://agentmods.dev/badge/skills/luccapinto/agentic-data-kit/dbt-modeling-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00071 | $0.00500 |
| Opus 5.5 | $0.00028 | $0.00200 |
| Sonnet 5.5 | $0.00014 | $0.00100 |
| Haiku 4.5 | $0.00007 | $0.00050 |
Grade A, and why
dbt-modeling-conventions 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 1mo ago.
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.
What it actually says
Skill: dbt-modeling-conventions
Org conventions only — the model already knows generic SQL and dbt. Apply these to every model you write or review.
CTE structure
importCTEs on top (one perref()/source(),selectonly the needed columns).logicalCTEs in the middle (joins, filters, calculations — one step each).- One
finalCTE at the bottom; the model ends withselect * from final.
Naming
| Prefix | Layer |
|---|---|
stg_ |
Staging: 1:1 with a source table, rename/cast only |
dim_ |
Dimension |
fct_ |
Fact |
mart_ |
Business-facing mart built on dims/facts |
Keys and grain
- Every dimension has a surrogate key
sk_<entity>: a hash of the natural key. - One grain per fact table; state it in the model description ("one row per order line").
- Build dimensions before facts.
Tests and docs
Every model has a schema.yml entry with a description and unique + not_null on its
primary key.
Example
-- models/marts/dim_customer.sql
with stg_customers as (
select * from {{ ref('stg_crm__customers') }}
),
customers_keyed as (
select
{{ dbt_utils.generate_surrogate_key(['customer_id']) }} as sk_customer,
customer_id,
customer_name,
country
from stg_customers
),
final as (
select * from customers_keyed
)
select * from final
# models/marts/schema.yml
models:
- name: dim_customer
description: One row per customer.
columns:
- name: sk_customer
description: Surrogate key, hash of customer_id.
tests: [unique, not_null]
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.
- 1mo ago First seen · 64 lines · 71 tokens per session scan A 79a3fa8b6418
dbt-modeling-conventions is a skill published in the GitHub repository luccapinto/agentic-data-kit (7 stars, last pushed 26d ago), licensed MIT. It adds 71 tokens to every session and 500 once invoked, about $0.0003 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-29.
dbt-modeling-conventions compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dbt-modeling-conventionsluccapinto/agentic-data-kit | Skill | 7 | 26d ago | MIT | A | 71 | Claude Code, Codex |
| slKaelio/ktx | Skill | 1.6k | 12d ago | Apache-2.0 | A | 87 | Claude Code, Codex |
| dataverse-schema-architectpnp/copilot-prompts | Skill | 912 | today | MIT | A | 93 | Claude Code, Codex |
| historic_sql_patternsKaelio/ktx | Skill | 1.6k | 12d ago | Apache-2.0 | A | 28 | Claude Code, Codex |
| historic_sql_table_digestKaelio/ktx | Skill | 1.6k | 12d ago | Apache-2.0 | A | 25 | Claude Code, Codex |
| live_database_ingestKaelio/ktx | Skill | 1.6k | 12d ago | Apache-2.0 | A | 18 | Claude Code, Codex |
| Power BI ModelingMinaSaad1/pbi-cli | Skill | 497 | today | MIT | A | 115 | Claude Code, Codex |