Test and fix

From ubie-oss/dbt-data-privacy · View interactive version

Test and fix is an AI agent skill from the GitHub repository ubie-oss/dbt-data-privacy. Autonomously run tests, analyze failures, and fix them in the `integration_tests` directory.

How to use this skill

Skill file

Test and Fix

Purpose

This skill provides an autonomous loop to identify, analyze, and fix test failures within the integration_tests directory using the project's make commands.

Loop Logic

  1. Identify: Run tests from the integration_tests directory.
  1. Analyze: Examine the test output and logs to understand which tests are failing.
  1. Plan Fix: Before applying any fix, create an MVP scaffold that delivers the smallest valuable slice of the fix.
  1. Execute & Test:
  1. Verify: Re-run the tests.

Termination Criteria

Examples

Scenario: Fixing a failing macro unit test

  1. Agent runs make test and identifies a failure in test_macros for dbt-core.
  2. Agent analyzes the output and finds that macro_a is returning incorrect SQL for BigQuery.
  3. Agent creates a plan in memory.
  4. Agent implements a minimal fix for macro_a to address the specific failure.
  5. Agent runs make run-unit-tests-core to quickly verify the fix.
  6. The test passes. Agent runs make test to ensure no regressions across the entire suite.
  7. The test passes. Agent marks the task as complete.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.