npx skills add ...
npx skills add nvidia/skills --skill mcore-create-issue
Investigate a failing GitHub Actions run or job and create a GitHub issue for the failure.
npx skills add nvidia/skills --skill mcore-create-issue
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.
If a job_id was provided, use that job directly.
If only a run_id was provided, list all failed jobs in the run:
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:
Also capture the full job 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:
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:
If the result is empty (file was introduced by the PR itself), query the PR's commits instead:
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.tests/unit_tests/transformer/moe/**/*.py - latest).Search for open issues that already cover the same test:
Pass --assignee <test-author-login> to assign the issue to the test file's
author. Include the triggering PR URL in the issue body.
Use the bug-report template body structure:
<core error message / traceback — 30 lines max>
Additional context
Triaged automatically via /triage-issue.