# /fix - Automated Bug & Exception Debugger

> Analyzes stack traces and failing tests to pinpoint and resolve root causes.

Canonical: https://www.agentickit.co/commands/fix
Last updated: 2026-11-18

Traces runtime errors, unhandled promise rejections, and failing test suites back to their root cause and generates clean, minimal bug fixes.

**Usage:** `Use when encountering runtime exceptions, hydration errors, or failing test suites.`

## Pipeline
1. Parse error stack trace and locate exact source file line numbers
2. Isolate reproducing conditions and write a minimal failing test
3. Apply surgical bug fix without modifying unrelated code logic
4. Run test suite to verify the error is resolved without regressions

## Output files
- `Relevant modified source files`
- `tests/...`

**Claude Code frontmatter:** `argument-hint: [error message, stack trace, or broken behavior]` · `model: inherit`

## Related
- [debugger](https://www.agentickit.co/agents/debugger)
- [test-automator](https://www.agentickit.co/agents/test-automator)
- [error-handling](https://www.agentickit.co/skills/error-handling)
- [testing-vitest](https://www.agentickit.co/skills/testing-vitest)
- [typescript-strict](https://www.agentickit.co/skills/typescript-strict)
