AI Blocks

Putting the blocks together

This is taking longer than expected.

Try againBrowse the library
AI Blocks · All skills by job · Minds · Mini tools · How it works · From a source · Apps

AI Blocks › Test and fix code

Untested code change guide

Give it code with no tests. Get safe steps to add tests and change it without breaking anything.

Untested code change guide is a free AI skill for the job "Test and fix code". Give the instructions to an AI assistant that supports the required files and tools, then review its output.

Free · No account · MIT licence · Made by Wondel.ai · Level: advanced · Thinking: high

Made by Wondel.ai. See the original on GitHub; we copied it as it is, with its licence.

What it does

A safe way to change code that has no tests, one step at a time. You get tests around the part you will touch before you edit it, so you know right away if you broke something. The method comes from Michael Feathers' book on legacy code. It starts by naming where the change goes and where its effects show up. Then it breaks the dependencies that block testing using small, low-risk moves, and writes tests that record what the code does today. Only then do you change behaviour or refactor, in separate steps. It rates your approach out of ten and lists what to do to improve it. It is for anyone who inherited code without tests.

You give it

You get

Use it when

How to use it

  1. Add it to your AI once: download it and add the folder to Claude, ChatGPT or Codex as a skill.
  2. Ask for the job in your own words. Your AI opens the skill when it fits.

More for Test and fix code

Every test and fix code skill