.agents/skills/triage-issue/scripts/README.md
Security scripts for the automated triage-issue workflow.
Checks GitHub issues for two things before triage proceeds:
Exit codes: 0 = safe, 1 = rejected, 2 = input error (treat as rejection).
Parses gh api JSON output (single issue or search results) into a readable summary. Used in CI instead of inline Python.
Posts the triage report to an existing Linear issue. Reads LINEAR_CLIENT_ID and LINEAR_CLIENT_SECRET from environment variables — never pass secrets as CLI arguments.
Reads Claude Code execution output JSON (from the triage GitHub Action) and prints Markdown for the job summary: duration, turns, cost, and a note when the run stopped due to error_max_turns. Used by the workflow step that runs if: always() so the summary is posted even when the triage step fails (e.g. max turns reached).