microsoft/creating-debug-tests-and-iterating
Use this skill when faced with a difficult debugging task where you need to replicate some bug or behavior in order to see what is going wrong.
npx skills add https://github.com/microsoft/FluidFramework --skill creating-debug-tests-and-iterating
<required>
*CRITICAL* Add the following steps to your Todo list using TodoWrite:
<system-reminder>From this point on, ignore any existing tests until you have a working example validated through a new test file.</system-reminder>
<system-reminder>Do NOT use mock mode or test harnesses. You should be testing the real thing.</system-reminder>
<system-reminder>If you get stuck: did you add logs?</system-reminder>
</required>
To test different kinds of applications, write scripts that test the
application interfaces. Your testing should be as close to 'real' as possible.
Identify the application boundary to be tested and the tools you need to test
it.
CLI Tool:
./path/to/cli.sh arg1 arg2
subprocess.run(["./path/to/cli.sh", "arg1", "arg2"])
exec('./path/to/cli.sh', (error, stdout, stderr) => {
if (error) {
console.error(`exec error: ${error}`);
return;
}
console.log(`stdout: ${stdout}`);
console.error(`stderr: ${stderr}`);
});
API:
Start the server:
cd backend && python server.py&
cd frontend && npm run dev&
Call to the server using scripting language of choice.
Do NOT get in a loop where you just keep running other tests. In this mode, you
should ignore other tests entirely until it works.
Web servers or web apps: use playwright (read the .claude/skills/webapp-testing/SKILL.md)
TUI tools: use tmux with screen capture
CLI tools: use bash
Take microsoft/creating-debug-tests-and-iterating from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.