fix-precommit
Skill11 starsChanged 3 months agoApache-2.0View on GitHub
Run pre-commit hooks and fix any errors they report
In this repository6 other files it gives its agents.
- aws-syncSkill
- ensure-english-consistencySkill
- expand-writingSkill
- generate-reportSkill
- inspect-dataSkill
- review-paperSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
Run the pre-commit hooks and fix any errors they report.
- Very specific: line 9
Run uv run pre-commit run --all-files and capture the output.
- Distinctive: line 10
Read the output carefully.
- Very specific: line 15
After fixing all issues, re-run uv run pre-commit run --all-files to verify all hooks pass.
- Distinctive: line 16
If new errors appear in the re-run, repeat the fix-and-verify cycle until the run is fully clean.
- Distinctive: line 19
Follow the project style: single quotes for string literals, double quotes only for docstrings.
- Distinctive: line 20
Do not add unnecessary changes beyond what the hooks require.
- Distinctive: line 21
Do not commit anything.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run the pre-commit hooks and fix any errors they report.
Steps:
- Run
uv run pre-commit run --all-filesand capture the output. - Read the output carefully. Identify every file and error flagged.
- For each error, open the relevant file(s) and apply the necessary fixes:
- Flake8 violations: fix the specific line(s) reported (line length, unused imports, whitespace, etc.)
- Formatter changes (e.g. ruff-format, black): apply the formatting the hook expects
- Any other hook failures: follow the specific guidance in the hook output
- After fixing all issues, re-run
uv run pre-commit run --all-filesto verify all hooks pass. - If new errors appear in the re-run, repeat the fix-and-verify cycle until the run is fully clean.
Important rules while fixing:
- Follow the project style: single quotes for string literals, double quotes only for docstrings.
- Do not add unnecessary changes beyond what the hooks require.
- Do not commit anything.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

