mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
880 B
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
- Run
pre-commit run -ato check all files - Report any issues found
- Suggest fixes if pre-commit hooks fail
- 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.