mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
claude: Try sub-agent
This commit is contained in:
parent
1c8f16078c
commit
3924268b42
1 changed files with 26 additions and 0 deletions
26
.claude/subagents/pre-commit.md
Normal file
26
.claude/subagents/pre-commit.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# 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
|
||||
```bash
|
||||
pre-commit run -a
|
||||
```
|
||||
|
||||
This agent ensures code quality standards are maintained across the repository by leveraging the configured pre-commit hooks.
|
||||
Loading…
Add table
Add a link
Reference in a new issue