Software Code Refactoring

Improve production code quality while preserving all existing test behavior. Commonly used for the Refactor phase of TDD red-green-refactor, but applicable to any codebase with tests. Use when production code works but needs cleanup — reducing duplication, improving naming, simplifying complexity, aligning with codebase style, extracting functions or types, or removing dead code. Discovers conventions, applies safe transformations, verifies compilation after each change, and produces a structured summary. Works with any language or framework.

stencila 0d21c91 5 files · 23.2 KB Updated

File contents

stencila/stencila/tree/main/.stencila/skills/software-code-refactoring commit 0d21c91775

Frequently asked questions

npx skillmds@latest add stencila/software-code-refactoring