Lint and fix

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

Lint and fix is an AI agent skill from the GitHub repository ubie-oss/dbt-data-privacy. Automated linting and fixing loop using `make lint`. Use when you need to resolve linter violations across the codebase.

How to use this skill

Skill file

Lint and Fix

Purpose

This skill provides an autonomous loop to identify, fix, and verify linter violations in the codebase using the project's make lint command (which runs pre-commit).

Loop Logic

  1. Identify: Run make lint from the workspace root to list current violations.
  2. Analyze: Examine the linter output to understand which files and rules are failing.
  3. Fix: Apply targeted fixes for the identified violations.
  1. Verify: Re-run make lint.

Termination Criteria

Examples

Scenario: Fixing formatting and imports

  1. make lint fails with ruff and black errors.
  2. Agent runs make lint again (some linters auto-fix).
  3. Agent reviews auto-fixed changes.
  4. make lint passes.
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.