Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Investigate a failing GitHub Actions run or job and create a GitHub issue for the failure.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-08 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 30% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 52% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 30% | 0% |
Investigate a failing GitHub Actions job, extract the root cause, and file a well-structured bug issue against NVIDIA/Megatron-LM.
The argument is a GitHub Actions URL. It will be one of:
https://github.com/<owner>/<repo>/actions/runs/<run_id>/job/<job_id>https://github.com/<owner>/<repo>/actions/runs/<run_id>Extract run_id and, if present, job_id.
job_id was provided, use that job directly.run_id was provided, list all failed jobs in the run:bash gh run view <run_id> --repo NVIDIA/Megatron-LM --json jobs \ --jq '[.jobs[] | select(.conclusion == "failure") | {id: .databaseId, name: .name, url: .url}]'
If multiple jobs failed, ask the user which one to triage, or triage all of them if they say so.
For each failed job, retrieve the logs and narrow them down to the failure:
bash# Pull the raw log and keep only error-bearing lines gh api repos/NVIDIA/Megatron-LM/actions/jobs/<job_id>/logs 2>&1 \ | grep -E "(FAILED|ERROR|\bError\b|assert|Traceback|Exception|##\[error\])" \ | head -200
Also capture the full job name:
bashgh run view --job <job_id> --repo NVIDIA/Megatron-LM --json name --jq .name
If the grep output is sparse, download the full logs and look for the pytest FAILURES section or the last non-zero exit signal.
Triggering PR: the run's head branch follows the pattern pull-request/<number>. Extract it and resolve the PR:
bashgh run view <run_id> --repo NVIDIA/Megatron-LM --json headBranch --jq .headBranch # → e.g. "pull-request/4332" # Extract PR number and fetch metadata: gh pr view <pr_number> --repo NVIDIA/Megatron-LM --json number,title,url \ --jq '{number: .number, title: .title, url: .url}'
Test file author: find the GitHub login of whoever last touched the failing test file. The file may not exist on main — first determine the PR's base branch, then search from there:
bash# 1. Get the PR's base branch (e.g. "main", "dev", "release/X.Y") gh pr view <pr_number> --repo NVIDIA/Megatron-LM --json baseRefName --jq .baseRefName # 2. Search commits on that base branch gh api "repos/NVIDIA/Megatron-LM/commits?path=<test-file-path>&sha=<base-branch>&per_page=1" \ --jq '.[0] | {login: .author.login, name: .commit.author.name, sha: .sha}'
If the result is empty (file was introduced by the PR itself), query the PR's commits instead:
bashgh api "repos/NVIDIA/Megatron-LM/pulls/<pr_number>/commits" \ --jq '[.[] | select(.files? // [] | any(.filename == "<test-file-path>"))] | .[0].author.login'
As a last resort, list the PR commits and pick the author of the commit whose message most closely relates to the failing test file.
From the logs, identify:
FAILED tests/...::... give the exact pytest node IDs.traceback frame — keep it under ~30 lines.
tests/unit_tests/transformer/moe/**/*.py - latest).Search for open issues that already cover the same test:
bashgh issue list --repo NVIDIA/Megatron-LM \ --state open \ --search "<failed-test-filename>" \ --json number,title,url \ --limit 10
existing issue to the user and stop.
Pass --assignee <test-author-login> to assign the issue to the test file's author. Include the triggering PR URL in the issue body.
bashgh issue create \ --repo NVIDIA/Megatron-LM \ --title "🐛 CI failure: <failed-test-node-id>" \ --label "bug" \ --assignee "<test-author-login>" \ --body "..."
Use the bug-report template body structure:
markdown**Describe the bug** CI test `<failed-test-node-id>` failed in job [`<job-name>`](<job-url>). Tag @NVIDIA/mcore-oncall to get oncall's attention to this issue. **Failing run** | Field | Value | |-------|-------| | PR | [#<pr_number>: <pr_title>](<pr_url>) | | Run | [<run_id>](<run_url>) | | Job | [<job_name>](<job_url>) | **Error**
<core error message / traceback — 30 lines max>
**Steps/Code to reproduce bug**
Re-run the failing CI job linked above, or locally inside the dev container:
pytest <failed-test-node-id>
**Additional context**
Triaged automatically via `/triage-issue`.If multiple tests failed in the same job, list each one as a separate bullet under "Describe the bug" and include the combined error snippets. Assign the issue to the author of whichever test file appears first in the failure list.
Print the URL of the newly created issue (or the duplicate, if found) so the user can review or share it.
lookup fails (e.g. the commit was made by a bot or the login is unavailable), skip --assignee and note it in the "Additional context" section.
Other measured skills in the registry, with their headline benchmark lift.