Zum Inhalt springen
Kitbay
Einreichen

refactor

MITAktualisiert am 11. Nov. 2026332GitHub-Sterne

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

Was der Skill vermittelt

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.

Funktionen

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