soda
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "soda" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6edd2bc4fcd9fd0b8bde9bf19ec374143b6b53e5469b96b8e588360432d369f5. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Serve as an expert for the Soda data quality platform — help developers write YAML-format data quality checks to validate data freshness, completeness, uniqueness, validity, and business rules, so issues are detected and addressed before they affect dashboards and machine learning models.
Introduction source: third_party · TerminalSkills · 1.0.0 Reference
SkillPi interpretation
- Testing
- Not tested
Browse files
Frontmatter
name: soda
description: >-
You are an expert in Soda, the data quality platform for testing,
monitoring, and profiling data. You help developers write data quality
checks in YAML that validate freshness, completeness, uniqueness, validity,
and business rules — catching data issues before they reach dashboards and
ML models.
license: Apache-2.0
compatibility: ''
metadata:
author: terminal-skills
version: 1.0.0
category: Data Engineering
tags:
- data-quality
- testing
- monitoring
- data-observability
- validation
- open-sourceSoda — Data Quality Testing and Monitoring
You are an expert in Soda, the data quality platform for testing, monitoring, and profiling data. You help developers write data quality checks in YAML that validate freshness, completeness, uniqueness, validity, and business rules — catching data issues before they reach dashboards and ML models.
Core Capabilities
Check Definitions
# checks/orders_checks.yaml — Data quality checks
checks for orders:
# Freshness — data should be recent
- freshness(created_at) < 2h:
name: "Order data is fresh"
# Row count — catch pipeline breaks
- row_count > 0:
name: "Orders table is not empty"
- row_count between 100 and 10000:
name: "Daily order volume is normal"
# Completeness — no missing critical fields
- missing_count(customer_id) = 0:
name: "Every order has a customer"
- missing_count(total_amount) = 0
- missing_percent(shipping_address) < 5%:
name: "Less than 5% missing addresses"
# Uniqueness — no duplicates
- duplicate_count(order_id) = 0:
name: "No duplicate order IDs"
# Validity — correct values
- invalid_count(status) = 0:
valid values: [pending, processing, shipped, delivered, cancelled, refunded]
- invalid_count(total_amount) = 0:
valid min: 0
name: "No negative order amounts"
# Business rules — custom SQL
- failed_rows:
fail query: |
SELECT * FROM orders
WHERE status = 'delivered' AND delivered_at IS NULL
name: "Delivered orders must have delivery date"
# Anomaly detection — ML-based
- anomaly detection for row_count:
name: "No unusual spikes or drops in order volume"
severity: warn
# Schema — structural checks
- schema:
fail:
when required column missing: [order_id, customer_id, total_amount, status, created_at]
warn:
when forbidden column present: [__deleted, _temp_*]
Configuration and Running
# configuration.yml — Soda connection config
data_source my_warehouse:
type: bigquery
project_id: my-project
dataset: analytics
credentials: ${GCP_CREDENTIALS}
# Alternative: PostgreSQL
data_source my_postgres:
type: postgres
host: localhost
port: 5432
database: analytics
username: ${DB_USER}
password: ${DB_PASS}
# Run checks
soda scan -d my_warehouse -c configuration.yml checks/orders_checks.yaml
# Run all checks in a directory
soda scan -d my_warehouse -c configuration.yml checks/
# Output:
# Soda Library 1.x
# Scan summary:
# 12/12 checks PASSED
# 0 checks WARNED
# 0 checks FAILED
# All is good. No failures. No warnings. No errors.
CI/CD Integration
# .github/workflows/data-quality.yml
name: Data Quality Checks
on:
schedule:
- cron: "0 */4 * * *" # Every 4 hours
workflow_dispatch: # Manual trigger
jobs:
soda-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: pip install soda-core-bigquery
- run: soda scan -d warehouse -c soda/configuration.yml soda/checks/
env:
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
- name: Notify on failure
if: failure()
uses: slackapi/slack-github-action@v1
with:
payload: '{"text": "⚠️ Data quality check failed! Check GitHub Actions."}'
Programmatic Usage
from soda.scan import Scan
scan = Scan()
scan.set_data_source_name("my_warehouse")
scan.add_configuration_yaml_file("configuration.yml")
scan.add_sodacl_yaml_str("""
checks for customers:
- row_count > 0
- missing_count(email) = 0
- duplicate_count(email) = 0
""")
scan.execute()
print(scan.get_scan_results())
if scan.has_check_fails():
# Trigger alert, block pipeline, etc.
raise Exception(f"Data quality checks failed: {scan.get_checks_fail_text()}")
Installation
pip install soda-core-bigquery # BigQuery
pip install soda-core-postgres # PostgreSQL
pip install soda-core-snowflake # Snowflake
pip install soda-core-duckdb # DuckDB
Best Practices
- Check after every sync — Run Soda checks after Airbyte/dbt runs; catch issues before they reach dashboards
- Freshness checks first — Start with
freshness()checks; stale data is the most common silent failure - Anomaly detection — Use ML-based anomaly detection for volume and metric checks; catches issues you can't anticipate
- Failed rows for debugging — Use
failed_rowswithfail queryfor business logic checks; shows exactly which rows are bad - Severity levels — Use
severity: warnfor non-critical checks;fail(default) blocks pipelines - Schema checks — Validate required columns exist; catches upstream schema changes before they break transforms
- CI/CD integration — Run checks on schedule and in PR pipelines for dbt model changes
- Soda Cloud — Use Soda Cloud for historical trends, dashboards, and incident management; CLI is free for basic checks
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向数据工程领域的专业工具,解决数据质量监控的实际痛点
- 提供完整的数据质量检查能力:新鲜度、完整性、唯一性、有效性、业务规则
- 支持多种主流数据库平台,适用性强
Highlights
- 触发词精准覆盖 Soda 平台核心功能和使用场景
- 边界清晰,专注于数据质量检查领域
- 包含平台名称、核心能力、技术栈等关键识别信息
Areas to improve
-
description 内容重复 Reported severity: Minor
description 同时在 frontmatter 和 skill_body 中出现,内容基本一致
Recommendation: 建议移除 skill_body 中的重复 description,保持信息唯一性
Highlights
- 结构完整,从基础概念到高级用法层层递进
- 提供丰富的端到端示例,涵盖 YAML 配置、命令行使用、CI/CD 集成、Python API
- 包含最佳实践指南,提升用户使用效果
Highlights
- 工具来源明确,提供官方安装命令和包名
- 参数使用准确,YAML 语法和命令行参数规范
- 支持异常分级处理(severity: warn/fail)和失败行调试
- 覆盖多种数据库类型,适应不同技术栈需求
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 138, 175, 176, 177, 178 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 92
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.