Best for
- Choose or improve an analytics engineering stack (dbt, SQLMesh, Coalesce)
- Define marts, grains, dimensions, facts, wide tables, or activity schemas
- Design or migrate a semantic layer (dbt Semantic Layer, Lightdash, Cube, warehouse-native)
vasilyu1983/AI-Agents-public/frameworks/shared-skills/skills/data-analytics-engineering/SKILL.md
Builds analytics engineering layers for metrics, contracts, and BI-ready models. Use when shaping dbt or SQLMesh marts, metric governance, lineage, or data quality.
Decision brief
Code-defined marts, metrics as APIs, contracts on critical interfaces, semantic layers only where they improve reuse or AI/BI consumption, and metadata systems that expose owners, lineage, quality, and governance to both humans and agents.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Declared | Source record | Install path and trigger |
| Claude Code | Declared | Source record | Install path and trigger |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/vasilyu1983/AI-Agents-public --skill "frameworks/shared-skills/skills/data-analytics-engineering"Inspect the Agent Skill "data-analytics-engineering" from https://github.com/vasilyu1983/AI-Agents-public/blob/53f6cb73ea53a2646e3e7d4665062ad66f3683ac/frameworks/shared-skills/skills/data-analytics-engineering/SKILL.md at commit 53f6cb73ea53a2646e3e7d4665062ad66f3683ac. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Lock the metric contract first — define KPI names, business logic, grain, owner, and dimensions in assets/metric-dictionary.md 2. Choose one transformation baseline — standardize on dbt or SQLMesh before debating semantic-layer tooling (references/tool-comparison.md) 3. Model…
Choose or improve an analytics engineering stack (dbt, SQLMesh, Coalesce)
Lakehouse or ingestion architecture - data-lake-platform
Run through these before any recommendation:
Verify GA/preview status per adapter before recommending a Fusion cutover — it changes monthly; treat the table above as directional, not a substitute for the Fusion availability page.
Permission review
The documentation asks the agent to run terminal commands or scripts.
python scripts/analytics_linter.py validate --input data/valid-metric-dictionary.jsonThe documentation asks the agent to run terminal commands or scripts.
python scripts/analytics_linter.py lint --input data/valid-metric-dictionary.jsonThe documentation includes network, browsing, or remote request actions.
Use web search/web fetch to verify current external facts, versions, pricing, deadlines, or platform behavior before final answers.Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 91/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 80 | Source | Repository attention, not individual Skill quality |
| Compatibility | 2 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Code-defined marts, metrics as APIs, contracts on critical interfaces, semantic layers only where they improve reuse or AI/BI consumption, and metadata systems that expose owners, lineage, quality, and governance to both humans and agents.
Primary sources: data/sources.json. Refresh time-sensitive claims against official docs before giving definitive recommendations.
dbt, SQLMesh, Coalesce)dbt Semantic Layer, Lightdash, Cube, warehouse-native)marketing-product-analyticsRun through these before any recommendation:
dbt, SQLMesh, visual tooling, or warehouse SQL only?| Tool | Status | Key 2026 Fact |
|---|---|---|
| dbt Core | v2.0 in alpha; open source, Apache 2.0, built on Fusion foundations | Upgrade guide |
| dbt Fusion | GA on Snowflake (dbt platform); preview on BigQuery/Redshift; private preview on Databricks; no GA date confirmed yet | New dbt-platform projects default to Fusion; local/CLI Fusion still preview across adapters |
| dbt + SDF | SDF Labs acquired Jan 2025; Rust SQL compiler is now the Fusion engine | Enables column-level lineage and typed SQL |
| MetricFlow | Open sourced Apache 2.0 (Oct 2025, v0.209+); latest v0.211 (May 12, 2026) | Anchors the Open Semantic Interchange (OSI) v1.0 spec (Jan 2026) with Snowflake, Databricks, Salesforce, ThoughtSpot, Atlan, Alation, Denodo |
| SQLMesh | Contributed to Linux Foundation by Fivetran (announced March 25, 2026, KubeCon EU); Apache 2.0 | Fivetran acquired SQLMesh's creator, Tobiko Data, in Sept 2025; founding LF members include Benzinga, CloudKitchens, Harness, Infinite Lambda, Jump AI, Minerva |
Verify GA/preview status per adapter before recommending a Fusion cutover — it changes monthly; treat the table above as directional, not a substitute for the Fusion availability page.
assets/metric-dictionary.mddbt or SQLMesh before debating semantic-layer tooling (references/tool-comparison.md)staging -> intermediate -> marts layers, pick final shape (star, wide, or activity schema) with references/modeling-patterns.mdreferences/contracts-catalogs-lineage.md)references/semantic-layer-patterns.md to decide between dbt-native, Lightdash, Cube, or warehouse-nativereferences/data-quality-testing.md and references/release-and-ci-patterns.md)references/metric-governance.md and assets/ownership-catalog-worksheet.md)What does your team care about most?
Plan-based deployment, environment isolation, backfill control
-> SQLMesh (now Linux Foundation / Apache 2.0)
Broadest ecosystem, contracts, semantic layer, dbt-native CI
-> dbt (Core v2 alpha or dbt platform with Fusion)
Visual metadata-driven development, enterprise onboarding speed
-> Coalesce
Already on dbt and want faster compile + typed SQL
-> Upgrade to dbt Fusion (GA on Snowflake; preview elsewhere)
Are the same business metrics reimplemented in 3+ places?
NO -> Governed marts only; revisit when the answer flips to YES
YES ->
Most consumers are dbt-native?
YES -> dbt Semantic Layer (MetricFlow) or Lightdash
Need embedded analytics or product-facing APIs?
YES -> Cube
Single warehouse platform?
Snowflake -> Snowflake Semantic Views
Databricks -> Unity Catalog Metric Views
Consumers need a business-friendly metric catalog as much as a query layer?
YES -> Lightdash (or semantic layer + OpenMetadata/DataHub catalog)
| Task | Resource | When to Load |
|---|---|---|
| Choose dbt vs SQLMesh vs Coalesce | references/tool-comparison.md | New stack selection or migration |
| Pick star vs wide vs activity schema | references/modeling-patterns.md | Designing marts and semantic boundaries |
| Decide whether to add a semantic layer | references/semantic-layer-patterns.md | Metrics reuse, NLQ, API, or BI serving |
| Add contracts, ownership, lineage, catalog | references/contracts-catalogs-lineage.md | Shared marts and governed datasets |
| Add tests, audits, anomaly checks, CI gates | references/data-quality-testing.md | Prevent regressions and stale data |
| Define metric lifecycle and deprecation | references/metric-governance.md | Executive metrics and shared KPI programs |
| Plan rollout, dual-run, backfills | references/release-and-ci-patterns.md | Safe deployment and migration |
| PII separation, vault pattern, pseudonymisation | references/pii-vault-and-pseudonymisation.md | LLM/AI-facing query surfaces or GDPR scope |
| Draft metric definitions | assets/metric-dictionary.md | New KPIs or metric refactors |
| Draft semantic layer design | assets/semantic-layer-spec.md | Serving layer design review |
| Draft quality coverage | assets/data-quality-test-plan.md | Model-by-model test planning |
| Communicate metric changes | assets/metric-change-notice.md | Breaking or non-breaking metric updates |
| Document owners and catalog fields | assets/ownership-catalog-worksheet.md | Governance and discoverability setup |
| Migrate to a semantic layer | assets/semantic-layer-migration-checklist.md | Ad-hoc SQL to governed metrics |
| Handle data quality incidents | assets/data-quality-incident-runbook.md | Failures, stale data, or contract breaks |
dbt projects (PR checks):
dbt deps
dbt parse
dbt build --select state:modified+
SQLMesh projects (PR/preview checks):
sqlmesh plan --no-prompts dev
sqlmesh test
sqlmesh audit --models state:modified+
apply| Anti-Pattern | Root Cause | Fix |
|---|---|---|
| KPI logic in dashboards or notebooks | No governed mart | Define in mart or semantic model first |
| Multiple grains in one mart | Dashboard convenience | Create separate models per grain |
| Contracts on every staging model | Misapplied governance | Contract only shared, high-stakes interfaces |
| Semantic layer before marts are stable | Premature abstraction | Stabilize marts before defining entities/measures |
| Same 360 table for every request | No modeling discipline | One model, one grain, one purpose |
| Allowing AI/NLQ access to undocumented marts | Missing metadata | Require grain, owner, freshness contract before AI access |
| Script | Purpose |
|---|---|
scripts/analytics_linter.py | Validate, lint, and health-score a metric dictionary JSON file |
# Validate required fields, duplicate names, and undefined data sources
python scripts/analytics_linter.py validate --input data/valid-metric-dictionary.json
# Lint metric quality: missing owners, undocumented dimensions, naming, SLAs
python scripts/analytics_linter.py lint --input data/valid-metric-dictionary.json
# Generate a Markdown metric dictionary health report
python scripts/analytics_linter.py report \
--input data/sample-metric-dictionary.json \
--output metric-health-report.md
| File | Description |
|---|---|
data/sources.json | Curated reference sources for this skill |
data/valid-metric-dictionary.json | Production-valid 15-metric dictionary for smoke tests and quickstart examples |
data/sample-metric-dictionary.json | Realistic 15-metric dictionary with intentional gaps for linting demos |
| File | Load When |
|---|---|
| references/tool-comparison.md | Choosing or comparing dbt, SQLMesh, Coalesce, or semantic-layer tools |
| references/modeling-patterns.md | Designing mart layers, grain, star/wide/activity schemas |
| references/semantic-layer-patterns.md | Deciding on and implementing a semantic serving layer |
| references/contracts-catalogs-lineage.md | Adding data contracts, catalog metadata, and lineage on shared assets |
| references/data-quality-testing.md | Building test suites, freshness checks, and anomaly monitoring |
| references/metric-governance.md | Governing, versioning, and deprecating shared KPIs |
| references/release-and-ci-patterns.md | CI/CD pipelines, dual-run validation, backfills, safe cutovers |
| references/pii-vault-and-pseudonymisation.md | Separating PII from analytical facts for LLM/AI or GDPR-scoped surfaces |
| references/causal-inference-applied.md | DAG-driven feature selection, DML, observational ATE estimation |
| references/information-theory-applied.md | MI feature selection, KL drift detection, MDL clustering |
| references/theory-of-constraints-applied.md | Pipeline lag isolation, capacity reallocation, approval-queue debug |
| references/network-science-applied.md | Centrality, PageRank, community detection applied to lineage graphs |
assets/metric-dictionary.mdassets/semantic-layer-spec.mdassets/data-quality-test-plan.mdassets/metric-change-notice.mdassets/ownership-catalog-worksheet.mdassets/semantic-layer-migration-checklist.mdassets/data-quality-incident-runbook.mdmarketing-product-analytics — event instrumentation and acquisition measurementtrust_tier: primary entries in data/sources.json for vendor capabilities, syntax, pricing, limits, and release-sensitive recommendations.Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).
After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.
Frequently asked questions
Code-defined marts, metrics as APIs, contracts on critical interfaces, semantic layers only where they improve reuse or AI/BI consumption, and metadata systems that expose owners, lineage, quality, and governance to both humans and agents.
The source record exposes this install command: npx skills add https://github.com/vasilyu1983/AI-Agents-public --skill "frameworks/shared-skills/skills/data-analytics-engineering". Inspect the command and pinned source before running it.
The pinned source record declares support for: codex, claude code.
Static rules flagged exec-script, network in the source; the page lists the matching lines and excerpts.
Alternatives
vasilyu1983/AI-Agents-public
Designs application search systems. Use when choosing engines, indexing, relevance tuning, facets, autocomplete, or search analytics.
upex-galaxy/agentic-qa-boilerplate
Atlassian CLI (official `acli` binary, v1.3+ as of 2026) for Jira Cloud, Confluence Cloud, and org admin tasks from the terminal. Use whenever the user wants to create, view, edit, transition, assign, clone, archive, comment on, link, or bulk-operate on Jira work items; list or manage projects, boards, sprints, filters, dashboards, or custom-field definitions; create or update Confluence spaces, pages, or blog posts; activate/deactivate users at the org level; or authenticate to Atlassian from a
PramodDutta/qaskills
Test automation with Gauge framework using Markdown specifications, step implementations in Java/Python/JavaScript/Ruby/C#, concepts, data-driven testing, and living documentation.
jojoprison/mnemo
Vault health audit — orphans, broken links, type-aware stale-review candidates, growth stats. Use whenever the user mentions vault maintenance, orphans, broken links, 'is my vault clean', 'проверь vault', 'сироты', 'битые ссылки', 'здоровье базы знаний', 'здоровье памяти', 'здоровье обсидиана', or asks for vault statistics — or proactively after creating 3+ notes in a session, after mass note creation, or when health checks haven't run in a while; the longer between checks, the more invisible or