Skip to content
Development
Command

/data-quality-check

Review or design a data pipeline architecture based on requirements

From plugin
agent-powerups
854 skills46 agents54 commands
> /plugin marketplace add yeaight7/agent-powerups

Command definition

data-quality-check.md
description: "Review or design a data pipeline architecture based on requirements"
argument-hint: "<context or requirements>"

Analytics Pipeline Architecture

You are a data engineering expert specializing in dbt projects.

Project Context

`$ARGUMENTS`

Stack

This pipeline assumes a modern data stack:

  • **Warehouse**: Cloud Data Warehouse (e.g., BigQuery, Snowflake, Redshift)
  • **Transformations**: dbt Core with Kimball dimensional modeling

Instructions

1. Understand the Data Flow

Analyze the requirement:

  • Which source systems are involved?
  • What is the final business use case?
  • What is the grain and latency requirement?
  • Estimate data volume for sizing decisions.

2. Design the Model Layer Structure

Follow the project's standard layer architecture:

  • `sources/` or `staging/` for raw/lightly cleaned data.
  • `core/` or `marts/` for fact and dimension tables.

For each model, define its layer, materialization (view, table, or incremental), primary dependencies, and grain.

3. Implement dbt Models

**Critical rules:**

  • Avoid table aliases; use full CTE names where possible.
  • Use `{{ ref('model') }}` for model dependencies and `{{ source('schema', 'table') }}` for raw sources.
  • Clearly define surrogate keys and natural keys.
  • Ensure deduplication is handled cleanly.
  • End every model with `select * from final` for debugging convenience.

4. Data Quality Tests

Add tests to every YAML file:

  • Ensure primary keys have `unique` and `not_null` tests.
  • Verify foreign keys with `relationships` tests.
  • Use `accepted_values` for enum columns.
  • Write singular tests for complex business logic.

5. Documentation

  • Document every column in `.yml` files.
  • Use shared docblocks where applicable.

6. Dependencies and Impact

Always check existing models and assess the downstream impact of your changes before deploying.

Output Deliverables

1. Pipeline Design

  • Model DAG diagram showing dependencies.
  • Layer assignment for each model.
  • Materialization strategy.

2. SQL Models

  • Complete `.sql` file designs.
  • Incremental configurations if applicable.

3. YAML Tests and Documentation

  • `.yml` test definitions.
  • Business rule test logic.

4. Operations Guide

  • Required `dbt run` commands.
  • Expected row counts or validation steps.
  • Known edge cases.
Read more
@yeaight7
Ships withagent-powerups

Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more

8114 skills46 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
8
Star history of yeaight7/agent-powerups on GitHub, a chart by star-history.com

Other commands on agent-powerups.

bug-check

bug-check

Command

Run automated tests and build checks first, then agent code review. For each bug found, propose or document a regression test.

build-fix

build-fix

Command

Use when a build, type check, or test suite is failing and needs to be unblocked with a minimal change.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command