Triage
Read $issue_path: JSON with title, body (the issue description), comments (earlier
comments as {author, created_at, url, body}, oldest first; empty for init), repository,
issue_number, and optional followup. The workflow selects $action explicitly and sets
TRIAGE_TYPE to bug or feature_request. Read the matching instructions and schema:
| Type | Action | Instructions | Output schema | Input requirement |
|---|---|---|---|---|
bug |
init |
init.md | init.schema.yml | followup missing or null |
bug |
follow-up |
follow-up.md | follow-up.schema.yml | followup non-null |
feature_request |
init |
init.md | init.schema.yml | followup missing or null |
feature_request |
follow-up |
follow-up.md | follow-up.schema.yml | followup non-null |
Stop without writing a payload if the type or action is unknown or its input requirement is unmet. Read only the selected action's instructions and schema, the selected type's output rules (bug or feature request), and the shared runtime and output rules.
Write $out_dir/payload.json, then validate it against the selected action's schema:
uvx check-jsonschema@0.37.4 \
--schemafile ".claude/skills/triage/$TRIAGE_TYPE/$action.schema.yml" "$out_dir/payload.json"Fix validation errors before finishing.