respond-to-issue
$
npx mdskill add NVIDIA/Megatron-LM/respond-to-issueDraft precise GitHub issue replies using codebase research.
- Handles bug reports, feature requests, and community questions.
- Integrates with GitHub CLI and Git history APIs.
- Analyzes issue context and traces code changes before replying.
- Outputs a structured draft ready for maintainer review.
SKILL.md
.github/skills/respond-to-issueView on GitHub ↗
--- name: respond-to-issue description: Research and draft a response to a GitHub issue or question from an external contributor. when_to_use: User shares a GitHub issue URL or asks to respond to a community question; 'respond to this issue', 'draft a reply', 'answer this GitHub question'. user_invocable: true argument: "<github-issue-url-or-number>" --- # Respond to GitHub Issue Help a maintainer draft a high-quality response to a GitHub issue from an external contributor. ## Workflow ### 1. Understand the issue - Fetch the issue using `gh issue view <number> --repo NVIDIA/Megatron-LM --json title,body,comments,labels,state`. - Read the title, body, and all existing comments to understand the full context. - Identify the type: bug report, feature request, question, or discussion. ### 2. Research the codebase - Based on what the issue is asking, search the Megatron-LM codebase for the relevant code. - Read the relevant source files to understand the current behavior. - If the issue references specific files or functions, read those directly. - Check `git log --oneline -20 -- <relevant-files>` to see if there have been recent changes that address or relate to the issue. - Use `git log -S "<symbol>" --oneline` to trace when code was added or removed — this is especially useful for questions about unused/deprecated code or missing features. - If the issue is about a bug, try to confirm whether the reported behavior matches the code. - Check whether an existing PR already addresses the issue: `gh pr list --repo NVIDIA/Megatron-LM --search "<keywords>" --limit 5`. ### 3. Verify before citing Before including specific details in the response, verify them: - If citing a commit hash, confirm the commit message and diff match what you're claiming (`git show <hash> --stat`). - If citing a file path and line number, re-read the file to confirm the line content is correct. - If claiming code is unused or missing, do a thorough grep to make sure you haven't missed a reference. ### 4. Draft the response Write a response that: - Is technically accurate and grounded in the actual code (cite file paths and line numbers where helpful). - Is respectful and welcoming to external contributors. - Directly addresses the question or concern raised. - If the contributor identified a real gap or bug, acknowledge it clearly. - If there's a workaround, mention it. - If work is planned or a fix would be welcome, say so and suggest next steps (e.g., "a PR to address this would be welcome"). - Keeps the tone professional but friendly. - Is concise -- contributors appreciate direct answers, not walls of text. ### 5. Suggest follow-up actions If the issue identifies something cleanly actionable (dead code to remove, a small bug fix, a missing feature), tell the maintainer and offer to create a branch and PR to address it — don't just draft a comment. ### 6. Present to the maintainer Show the drafted response to the user (the maintainer) for review. Do NOT post it to GitHub automatically. The maintainer will decide whether to post it, edit it, or ask for changes. Format the draft as a quoted markdown block so it's easy to copy. ## Important guidelines - Never post comments to GitHub without explicit approval from the user. - If you're unsure about the answer, say so clearly in your draft and flag the uncertainty for the maintainer. - If the issue is outside the scope of what you can determine from the code, tell the maintainer what you found and what remains unclear. - Check whether similar issues exist that might be relevant: `gh issue list --repo NVIDIA/Megatron-LM --search "<keywords>" --limit 5`.
More from NVIDIA/Megatron-LM
- build-and-dependencyContainer-based dev environment setup and dependency management for Megatron-LM. Covers acquiring and launching the CI container, uv package management, and updating uv.lock.
- cicdCI/CD reference for Megatron-LM. Covers CI pipeline structure, PR scope labels, triggering internal GitLab CI, and CI failure investigation.
- create-issueInvestigate a failing GitHub Actions run or job and create a GitHub issue for the failure.
- linting-and-formattingLinting and formatting for Megatron-LM. Covers running autoformat.sh, tools (ruff, black, isort, pylint, mypy), and code style rules.
- nightly-syncDomain knowledge for the nightly main-to-dev sync workflow. Covers merge strategy, CI architecture, failure investigation, and known issues.
- onboard-gb200-1node-testsOnboard 1-node GitHub MR functional tests for GB200 from existing mr-scoped 2-node tests.
- run-on-slurmHow to launch distributed Megatron-LM training jobs on a SLURM cluster. Covers a minimal sbatch skeleton, environment-variable setup for torch.distributed.run, CUDA_DEVICE_MAX_CONNECTIONS rules across hardware and parallelism modes, container conventions, monitoring, and per-rank failure diagnosis.
- split-prSplit a PR into multiple PRs to reduce the number of required CODEOWNERS reviewer groups.
- testingTest system for Megatron-LM. Covers test layout, recipe YAML structure, adding and running unit and functional tests, golden values, marker filters, and CI parity.