clean-code-polishing-good-code

Installation
SKILL.md

Polishing Good Code

Even code written by skilled authors, with full test coverage, can be improved. The Boy Scout Rule (../clean-code-mindset/SKILL.md) applies to good code too. This skill is the final-pass workflow, the small, precise improvements that separate good code from clean code.

Preconditions

  • Run the tests and check coverage first. With full coverage you can make many small changes with confidence. If coverage is thin, add tests before polishing (see ../clean-code-legacy-refactoring/SKILL.md).
  • Review the tests as well. Could they be simpler or more obvious?
  • Respect the existing quality. Acknowledge what's good. The goal is to refine it, not to impose your own taste.

The nit-picking pass

Work through the code in small steps, running tests after each one. The case study's actual moves make a useful checklist:

Installs
1
First Seen
2 days ago