arthai-marketplace

/qa-incident

Manually create a QA incident from a known issue.

Synopsis

/qa-incident [description]

When to use it

Quickstart

/qa-incident admin page crashes when user has no sessions

What you’ll see: a few clarifying questions (severity, affected files, root cause if known), then a confirmation: “Incident logged. Next /qa run will generate a regression test targeting this issue.”

Examples

/qa-incident admin page crashes when user has no sessions
/qa-incident credit balance goes negative under concurrent checkout
/qa-incident                # no description — you'll be prompted for one

What it does

  1. Parses the description from your argument; if you provided none, it asks you to describe the issue first.
  2. Asks clarifying questions — severity (high / medium / low), affected files if known, and root cause if known (user-confirmation checkpoint).
  3. Creates the incident file at .claude/qa-knowledge/incidents/{date}-{slug}.md with status: uncovered, the root cause (or “To be investigated”), how QA missed it, and a regression-test recommendation. The knowledge-base directory is created automatically if it doesn’t exist yet.
  4. Confirms — the next /qa run reads uncovered incidents and generates a regression test targeting the issue.

Auto-logging from escalation (not manual)

There is also a separate, fully automatic path — you never invoke this yourself. When another workflow resolves an error after the escalation guard tripped (3+ consecutive failures in a row), the resolution is auto-logged as a distinct incident at .claude/qa-knowledge/incidents/{date}-escalation-{slug}.md, with status: covered and type: escalation-resolution (vs. status: uncovered for manually-created incidents above). It records what was tried and failed, the actual root cause, the fix applied, and search keywords — so future sessions find the fix instead of repeating the same debugging journey. This is why you may see both uncovered and covered incidents in the directory: uncovered means “log it, /qa will write a test”; covered means “already resolved, kept as a searchable record.”

Output & artifacts

Troubleshooting

Problem Fix
Invoked with no description You’ll be prompted: describe the issue in a sentence (e.g. “admin page crashes when user has no sessions”)
.claude/qa-knowledge/ doesn’t exist Created automatically — no setup needed
Incident logged but /qa didn’t test it Make sure the next QA run touches the affected area — incidents inform scenario generation for relevant changes