# Extract owner/repo from current git remote
gh repo view --json owner,name -q '"\(.owner.login)/\(.name)"'
```

### Resolution Checklist

For EACH CodeRabbit comment:
- [ ] Evaluated (implemented or rejected with reason)
- [ ] Response added (if rejecting - explain why)
- [ ] Thread resolved via GraphQL mutation

**Goal: Zero unresolved CodeRabbit comments when done.**

---

## Common CodeRabbit Patterns

| Pattern | Verify |
|---------|--------|
| "Consider using X instead of Y" | Check if X works in this context |
| "This could be simplified" | Check if simplification handles edge cases |
| "Missing error handling" | Check if errors are handled elsewhere |
| "Unused import/variable" | Verify with grep, may be used dynamically |
| "Type could be more specific" | Check if generic type is intentional |
| "Add documentation" | Check project conventions on docs |

---

## Red Flags - STOP and Verify

If you catch yourself:
- Agreeing without checking the code
- Implementing before understanding why current code exists
- Not testing changes
- Batch implementing without individual verification

**STOP. You are being performative. Return to verification.**

---

## Summary

**External AI feedback = suggestions to evaluate, not orders to follow.**

1. Read all feedback first
2. Verify each item against codebase
3. Push back on incorrect suggestions
4. Implement confirmed issues one at a time
5. Test each change
6. **Resolve every comment** (implemented or rejected with reason)

No performative agreement. Technical rigor always. Zero unresolved comments.

---

--- title: Vitest: Run Tests and Fix Failures description: Runs Vitest test suite and systematically fixes any failing tests tool: claude category: instruction tags: ['testing', 'vitest', 'debugging', 'workflow'] url: https://alexop.dev/prompts/claude/claude-vitest-command ---