# /diagnosing-bugs

Command · Engineering kit · EC02

For hard bugs and slowdowns. Builds a check that fails on the bug, shrinks it, ranks likely causes, adds logging, fixes it with a test that keeps it from coming back, then cleans up.

## Command

```text
/diagnosing-bugs
```

## Skills

- [diagnosing-bugs](https://atlasscope.dev/skills/diagnosing-bugs): Diagnosis loop for hard bugs and performance regressions.

## Related

- [Slowest journeys, end to end](https://atlasscope.dev/prompts/slowest-journeys-end-to-end): Shows where the seconds go on the paths people actually use.
- [Updates that overwrite each other](https://atlasscope.dev/prompts/updates-that-overwrite-each-other): Finds updates that overwrite newer data because two things wrote at once.
- [Code that relies on lucky timing](https://atlasscope.dev/prompts/code-that-relies-on-lucky-timing): Finds code that only works because things usually happen in the right order.
- [Screens showing a change that was refused](https://atlasscope.dev/prompts/screens-showing-a-change-that-was-refused): Finds screens that show a change right away and keep showing it after the server refused it.

Source: https://atlasscope.dev/prompts/diagnosing-bugs
