agent/claude/qa/commands/fix.md
Snider 9942ab8081 refactor: restructure as plugin monorepo
Reorganise as a marketplace with multiple focused plugins:
- claude/code: Core development (hooks, scripts, data collection)
- claude/review: Code review automation
- claude/verify: Work verification
- claude/qa: Quality assurance loops
- claude/ci: CI/CD integration

Structure:
- .claude-plugin/marketplace.json lists all plugins
- Each plugin has its own .claude-plugin/plugin.json
- Commands namespaced: /code:*, /review:*, /qa:*, etc.

Install individual plugins or all via marketplace:
  claude plugin add host-uk/core-agent
  claude plugin add host-uk/core-agent/claude/code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 19:44:26 +00:00

57 lines
1 KiB
Markdown

---
name: fix
description: Fix a specific QA issue
args: <issue-description>
---
# Fix Issue
Fix a specific issue from QA output.
## Usage
```
/qa:fix undefined: ErrNotFound in pkg/api/handler.go:42
/qa:fix TestCreateUser failing - expected 200, got 500
/qa:fix pkg/api/handler.go needs formatting
```
## Process
1. **Parse the issue**: Extract file, line, error type
2. **Read context**: Read the file around the error line
3. **Understand**: Determine root cause
4. **Fix**: Make minimal change to resolve
5. **Verify**: Run relevant test/lint check
## Issue Types
### Undefined variable/type
```
undefined: ErrNotFound
```
→ Add missing import or define the variable
### Test failure
```
expected 200, got 500
```
→ Read test and implementation, fix logic
### Formatting
```
file needs formatting
```
→ Run `core go fmt` or `core php fmt`
### Lint warning
```
ineffectual assignment to err
```
→ Use the variable or remove assignment
### Type error
```
cannot use X as Y
```
→ Fix type conversion or function signature