megatron-commit-tracker
Original:🇺🇸 English
Translated
3 scriptsChecked / no sensitive code detected
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.
7installs
Sourceascend/agent-skills
Added on
NPX Install
npx skill4agent add ascend/agent-skills megatron-commit-trackerTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →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 as a first-class input for every mode.
branchCore Rules
- Use the official upstream repository as the source of truth: .
https://github.com/NVIDIA/Megatron-LM - Require a target unless the user gives a PR or commit that can be resolved unambiguously.
branch - Normalize every request into one object before doing any semantic analysis.
change-set - 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 as valid for exploration, but do not imply that it has a strict MindSpeed mapping.
megatron main
Supported Request Modes
Resolve the user request into exactly one of these modes:
- Use when the user specifies a PR number or a merge request URL.
pr - Use when the user specifies one commit SHA and wants to inspect that change in branch context.
commit - Use when the user specifies
range.base_sha..head_sha - Use when the user specifies a branch plus a period such as
time_window.last 7 days - Use when an automation is checking a branch incrementally.
scheduled
Required Output
Produce a normalized artifact in JSON or markdown code block form with these fields when available:
change-setjson
{
"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 for another branch.
main - 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 , never by repository alone.
repo + branch - For , frame the result as exploratory upstream tracking, not strict migration-ready alignment.
main
Handoff
Pass the normalized to:
change-set- $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 structure is needed.
change-set - 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.