Skip to content
Kitbay
Submit

refactor

MITUpdated on Nov 11, 2026332GitHub stars

A contributor skill in the Todoist CLI repository for restructuring code without changing what it does.

What the skill teaches

A contributor skill in the Todoist CLI repository for restructuring code without changing what it does. The agent first pins current behaviour with tests at the public interface, adding tests where none exist, deletes code nothing reaches, moves one concept at a time and reruns the tests after each step, and leaves test inputs and assertions untouched, since a changed expected value means behaviour changed. Command names, flags, JSON output shapes and error codes stay as they are. The change is kept only if the result reads better. It targets the todoist-cli source tree.

Capabilities

  • Pin current behaviour with tests before refactoring
  • Remove dead code safely
  • Restructure code one concept at a time