megatron-commit-tracker
Track and normalize change requests against the official Megatron-LM repository by branch, PR, commit, commit range, or time window. Use when Codex needs to collect the exact upstream change set before deeper analysis, especially for branch-aware Megatron and MindSpeed migration work, daily/periodic tracking, or preparing inputs for change analysis and migration generation.
How do I install this agent skill?
npx skills add https://github.com/ascend/agent-skills --skill megatron-commit-trackerIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a specialized tool for tracking changes in the official NVIDIA Megatron-LM repository. It uses standard Git commands via safe subprocess calls to fetch commit metadata and PR information from a well-known source.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 1 issue
What does this agent skill do?
Megatron Commit Tracker
Collect the smallest correct upstream change set from the official Megatron-LM repository and hand off a normalized artifact to downstream skills. Treat branch as a first-class input for every mode.
Core Rules
- Use the official upstream repository as the source of truth:
https://github.com/NVIDIA/Megatron-LM. - Require a target
branchunless the user gives a PR or commit that can be resolved unambiguously. - Normalize every request into one
change-setobject before doing any semantic analysis. - Keep this skill mechanical. Do not summarize feature evolution here.
- Prefer PR and range/time-window modes over single-commit mode for feature tracking.
- Treat
megatron mainas valid for exploration, but do not imply that it has a strict MindSpeed mapping.
Supported Request Modes
Resolve the user request into exactly one of these modes:
prUse when the user specifies a PR number or a merge request URL.commitUse when the user specifies one commit SHA and wants to inspect that change in branch context.rangeUse when the user specifiesbase_sha..head_sha.time_windowUse when the user specifies a branch plus a period such aslast 7 days.scheduledUse when an automation is checking a branch incrementally.
Required Output
Produce a normalized change-set artifact in JSON or markdown code block form with these fields when available:
{
"repo": "NVIDIA/Megatron-LM",
"branch": "core_v0.12.1",
"source_type": "pr",
"selector": {
"pr": 1234,
"commit": null,
"base_sha": null,
"head_sha": null,
"since": null,
"until": null
},
"resolved": {
"commits": ["sha1", "sha2"],
"head_sha": "sha2",
"base_sha": "sha0"
},
"analysis_mode": "summary"
}
Also include a compact table of:
- commit SHA
- author
- authored date
- title
- touched files count
Workflow
- Parse the user request into one supported mode.
- Resolve the request against the named Megatron branch.
- Confirm that the branch context is explicit in the output.
- Collect only the raw upstream artifacts needed downstream: commit list, merge metadata, changed files, base/head SHAs, and any linked PR metadata.
- Stop after normalization unless the user explicitly asks for deeper analysis.
Branch Handling
- Never silently substitute
mainfor another branch. - Verify the exact branch string against the official remote before fetch-heavy work when the requested name comes from local conventions or release notes.
- If the user gives a commit without branch context, try to infer the branch only when it is unambiguous. Otherwise state that branch confirmation is needed.
- For periodic tracking, store state by
repo + branch, never by repository alone. - For
main, frame the result as exploratory upstream tracking, not strict migration-ready alignment.
Handoff
Pass the normalized change-set to:
- $megatron-change-analyzer for feature evolution and change classification
- $megatron-impact-mapper only after change analysis has identified relevant events
References
- Read branch-tracking.md for branch-aware request normalization and scheduling guidance.
- Run normalize_change_request.py when a deterministic
change-setstructure is needed. - Run list_remote_branches.py to verify the exact branch names exposed by the official upstream remote before assuming a branch alias is fetchable.
- Run fetch_upstream_changes.py to collect commit metadata from the official upstream repository without manually rebuilding Git queries each time.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/ascend/agent-skills/megatron-commit-tracker">View megatron-commit-tracker on skillZs</a>