gh-run-failure/SKILL.md
Use to analyze failures in GitHub pipelines or jobs.
npx skillsauth add bkircher/skills gh-run-failureInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<general_guidelines>
gh tool is installed and configured.To focus on a specific job, first list them: <example> gh run view "$RUN_ID" --json jobs --jq '.jobs[] | "(.databaseId)\t(.name)\t(.conclusion)"' </example>
Then fetch that job's log: <example> JOB_ID=987654321 gh run view "$RUN_ID" --job "$JOB_ID" --log </example>
After downloading, search locally for errors: <example> rg -n "error|fail|exception" /tmp/github-run-"$RUN_ID" </example>
Get latest successful run ID:
<example>
BRANCH=main
OK=$(gh run list --branch "$BRANCH" --limit 50 --json databaseId,conclusion
--jq '.[] | select(.conclusion=="success") | .databaseId' | head -n1)
echo "$OK"
</example>
Diff their SHAs: <example> FAIL_SHA=$(gh run view "$RUN_ID" --json headSha --jq .headSha) OK_SHA=$(gh run view "$OK" --json headSha --jq .headSha) gh api repos/:owner/:repo/compare/"$OK_SHA"..."$FAIL_SHA" --jq '.commits[].commit.message' | sed 's/^/- /' </example>
testing
Use when writing or updating unit tests (in any language).
devops
Use when writing Terraform.
testing
Design and optimize a PostgreSQL-specific schema. Use for PostgreSQL best practices, data types, indexing, constraints, performance patterns, and advanced features.
tools
Automate browser interactions, test web pages and work with Playwright tests.