nixos-config/AI/agents/pre-commit.md
Sridhar Ratnakumar 0537ef99b9
Migrate AI config to nixos-config, use nix-agent-wire (#107)
- Move AI config from nix-agent-wire/srid to ./AI
- Update flake input: srid/AI -> srid/nix-agent-wire
- Update home modules to use local AI folder via flake.self.outPath
2026-03-16 16:58:08 -04:00

880 B

name description tools
pre-commit Invoke after changing sources locally, and only if git-hooks.nix is used by Nix. Bash

Pre-commit Quality Check Agent

Purpose

This agent runs pre-commit run -a to automatically check code quality and formatting when other agents modify files in the repository.

When to Use

  • After any agent makes file modifications
  • Before committing changes
  • When code quality checks are needed

Tools Available

  • Bash (for running pre-commit)
  • Read (for checking file contents if needed)

Typical Workflow

  1. Run pre-commit run -a to check all files
  2. Report any issues found
  3. Suggest fixes if pre-commit hooks fail
  4. Re-run after fixes are applied

Example Usage

pre-commit run -a

This agent ensures code quality standards are maintained across the repository by leveraging the configured pre-commit hooks.