quality-fixes
Skill7 starsChanged 6 months agoMITView on GitHub
Diagnose and repair failing lint, typing, test, Docker, and Jenkins quality gates until the repository passes the same commands CI will run.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- cavemanSkill
- code-qualitySkill
- composition-patternsSkill
- docker-expertSkill
- eea-design-systemSkill
- grill-meSkill
- handoffSkill
- jenkins-pipelineSkill
- plone-backend-developerSkill
- plone-frontend-developerSkill
- react-best-practicesSkill
- react-native-skillsSkill
- react-view-transitionsSkill
- testingSkill
- volto-cypress-writerSkill
- web-design-guidelinesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 18 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Use this skill when a repository already fails lint, typing, tests, Docker verification, or Jenkins quality gates and you need to repair it …
- Distinctive: line 19
Use this skill when:
- Distinctive: line 31
Run the failing commands exactly as the repository or Jenkins would run them.
- Distinctive: line 40
Stop only when the real blocking commands pass.
- Distinctive: line 52
Do not claim the repository is fixed just because auto-fix changed files.
- Distinctive: line 89
If Jenkins exists, treat its command path as canonical.
- Distinctive: line 101
When repairing AI-generated code:
- Distinctive: line 102
prefer minimal edits that preserve the intended behavior
- Distinctive: line 103
remove obvious mechanical drift first
- Distinctive: line 104
do not hide failing logic behind formatter-only cleanup
- Distinctive: line 105
if the underlying generated structure is poor, rewrite the smallest coherent unit instead of stacking fragile patches
- Very specific: line 109
If Ruff uses heavy D docstring rules:
- Very specific: line 110
do not assume ruff --fix can resolve the failures
- Distinctive: line 113
consider phased hard-gating if the repo has large historical debt, but do not weaken checks silently
- Distinctive: line 117
When using this skill, provide:
- Very specific: line 137
Use this skill when the jenkins-pipeline skill or code-quality skill detects that a repository already fails its current quality checks …
- Distinctive: line 142
verify against the actual repository commands, not generalized substitutes
- Distinctive: line 143
prefer the same Docker-based command path Jenkins will use when available
- Distinctive: line 144
keep fixes small and auditable
- Distinctive: line 145
do not mark work complete until the failing Jenkins-quality commands pass
- Distinctive: line 149
When this skill is used before introducing or updating a Jenkinsfile, the objective is to reduce the chance that the first push-triggered …
≈ “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
Quality Fixes
Use this skill when a repository already fails lint, typing, tests, Docker verification, or Jenkins quality gates and you need to repair it until the real blocking commands pass.
When to use
Use this skill when:
- a repo fails Ruff, Black, ESLint, mypy, tsc, pytest, Playwright, Cypress, or similar checks
- a Docker-based
Dockerfile.testverification path fails - a Jenkins pipeline already exists and the code does not pass it
- the Jenkins skill preflight finds existing failures before creating a new Jenkinsfile
Primary goal
Repair the code and supporting configuration until the same commands used by Jenkins or CI pass, while keeping changes as small and explainable as possible.
Required workflow
- Run the failing commands exactly as the repository or Jenkins would run them.
- Capture the real failures, not guessed failures.
- Classify them into:
- safe auto-fixable issues
- direct code repair issues
- environment / dependency / Docker path issues
- Apply safe auto-fixes first.
- Repair remaining code or config problems directly.
- Rerun the same commands.
- Stop only when the real blocking commands pass.
Safe auto-fix first
Try mechanical rewrites before manual code edits when they are safe:
ruff check --fixruff formatblackisortprettier --writeeslint --fixfor safe repository-approved rules
Do not claim the repository is fixed just because auto-fix changed files. Always rerun the failing commands.
Repair categories
1. Lint/config debt
Examples:
- import ordering
- formatting drift
- docstring policy failures
- unused imports
- line length issues
2. Type-check failures
Examples:
- missing annotations required by repo policy
- bad return types
- incorrect optional handling
- missing stubs or import configuration
3. Test failures
Examples:
- broken business logic
- invalid fixtures
- outdated assertions
- file path assumptions
- API behavior mismatches
4. Docker/CI path failures
Examples:
- broken
Dockerfile.test - inconsistent dependency definitions
- package manager conflicts
- missing binaries in the test image
- report paths that Jenkins expects but code does not produce
Jenkins repair policy
If Jenkins exists, treat its command path as canonical.
Always determine:
- which commands run in
Code linting - which commands run in
Unit test - which commands run in
Integration test - whether the repo is verified through
Dockerfile.test
A repair is incomplete until those same commands pass.
AI-generated code guidance
When repairing AI-generated code:
- prefer minimal edits that preserve the intended behavior
- remove obvious mechanical drift first
- do not hide failing logic behind formatter-only cleanup
- if the underlying generated structure is poor, rewrite the smallest coherent unit instead of stacking fragile patches
Ruff-specific guidance
If Ruff uses heavy D docstring rules:
- do not assume
ruff --fixcan resolve the failures - distinguish mechanical failures from policy-heavy documentation debt
- repair new or touched code fully where practical
- consider phased hard-gating if the repo has large historical debt, but do not weaken checks silently
Output requirements
When using this skill, provide:
- the exact commands that were failing
- what was auto-fixed
- what was repaired manually
- the final verification commands that now pass
- any remaining risk or follow-up debt
Reference
See references/fix-loop.md for the recommended diagnosis → repair → rerun loop.
<!-- BEGIN EEA-OVERRIDES -->EEA-Specific Overrides
<!-- EEA-Overrides-Version: 1.0 --><!-- Last-Sync: 2026-07-29 -->EEA routing
Use this skill when the jenkins-pipeline skill or code-quality skill detects that a repository already fails its current quality checks before a new Jenkinsfile is finalized.
EEA repair expectations
For EEA repositories:
- verify against the actual repository commands, not generalized substitutes
- prefer the same Docker-based command path Jenkins will use when available
- keep fixes small and auditable
- do not mark work complete until the failing Jenkins-quality commands pass
EEA first-push goal
When this skill is used before introducing or updating a Jenkinsfile, the objective is to reduce the chance that the first push-triggered Jenkins run fails because of pre-existing, already-known code-quality issues.
<!-- END EEA-OVERRIDES --><!-- Merged Build: upstream SKILL.md + EEA-OVERRIDES.md --><!-- Auto-generated by scripts/build.sh - DO NOT EDIT DIRECTLY --><!-- Source: https://github.com/eea/eea.agent.skills -->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.

