Agent skill
clean-code
Format, lint, and fix all warnings across the entire codebase — including test files and pre-existing issues.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/clean-code-flurdy-agent-skills
SKILL.md
Clean Code
Format, lint, and fix all warnings across the entire codebase — including test files and pre-existing issues.
Usage
/clean-code
Instructions
1. Run the project's clean-code target
Each project defines a make clean-code Makefile target with the appropriate tooling for its language/stack.
make clean-code
2. Fix remaining issues
If make clean-code fails or reports warnings/errors that couldn't be auto-fixed, investigate and fix them manually. Do NOT leave any warnings unresolved.
3. Verify clean state
Re-run the target to confirm it passes cleanly:
make clean-code
It must exit with zero warnings and zero errors.
Rules
- Do not skip or suppress warnings (e.g.
eslint-disable,#[allow(...)],@SuppressWarnings) unless there is a genuine false positive with a clear justification - Do not change the project's formatter or linter configuration
- If a fix changes behavior (not just style), flag it to the user before applying
- Test files are in scope — do not skip them
- Pre-existing issues must be fixed, not just new code
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?