gh-run-failure
Use to analyze failures in GitHub pipelines or jobs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use to analyze failures in GitHub pipelines or jobs.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use whenever a user mentions or references a Jira ticket and you want to pull out description, comments, or more.
Use when writing or updating unit tests (in any language).
Generate Git commit messages from staged changes when requested.
Scan and triage Snyk security findings in local repositories and container images. Use for Snyk vulnerability reviews, scan summaries, severity filtering, and remediation planning.
Use the SonarQube CLI to access and understand SonarQube analysis results. Use when the user asks about SonarQube issues.
Suggests improvements for English-language text but does not rewrite the original. Use when asked to correct spelling or wording and the text is English.
| name | gh-run-failure |
| description | Use to analyze failures in GitHub pipelines or jobs. |
<general_guidelines>
gh tool is installed and configured.To focus on a specific job, first list them: gh run view "$RUN_ID" --json jobs --jq '.jobs[] | "(.databaseId)\t(.name)\t(.conclusion)"'
Then fetch that job's log: JOB_ID=987654321 gh run view "$RUN_ID" --job "$JOB_ID" --log
After downloading, search locally for errors: rg -n "error|fail|exception" /tmp/github-run-"$RUN_ID"
Get latest successful run ID:
BRANCH=main
OK=$(gh run list --branch "$BRANCH" --limit 50 --json databaseId,conclusion
--jq '.[] | select(.conclusion=="success") | .databaseId' | head -n1)
echo "$OK"
Diff their SHAs: 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/^/- /'