external-gitcode-ascend-megatron-migration-generator

Generate migration deliverables to introduce relevant Megatron changes.

Last repository push
GitHub Stars
187
Forks
67
Issues / PRs
15

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "external-gitcode-ascend-megatron-migration-generator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ad504c9dd6007d4770ca5ef77c68644685169268b1807746d08c51709ca82e77. Verify the upstream source and version against https://github.com/ascend-ai-coding/awesome-ascend-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Generate migration deliverables to introduce relevant Megatron changes.

0 Downloads

Introduction source: third_party · ascend-ai-coding · 0.0.1 Reference

SkillPi interpretation

Tasks
Generate migration deliverables for bringing relevant Megatron changes
Inputs and outputs
Default to `report + patch`, and generate the final markdown deliverable in Chinese unless the user explicitly requests another locale. Do not default to direct code edits or automatic commits. Default to an implementation-first package, not a minimal patch sketch.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: external-gitcode-ascend-megatron-migration-generator
description: Generate migration deliverables for bringing relevant Megatron changes
  into MindSpeed after branch alignment and impact mapping are complete. Use when
  Codex already has a confirmed MindSpeed-to-Megatron branch pairing and needs to
  produce a migration report, candidate patch, or guarded workspace edits instead
  of redoing upstream analysis from scratch.
original-name: megatron-migration-generator
synced-from: https://gitcode.com/Ascend/agent-skills
synced-date: '2026-05-26'
synced-commit: 1f7666e7768a0ceb21bb1d40ce4b5179fcb6f1d6
license: UNKNOWN

Megatron Migration Generator

Generate implementation-oriented migration artifacts for MindSpeed only after upstream change analysis and impact mapping have narrowed the work to a high-confidence set of items. The goal is to port the upstream feature into MindSpeed with the upstream commit as the primary reference, not to emit a tiny patch hint.

Default Output Mode

Default to report + patch, and generate the final markdown deliverable in Chinese unless the user explicitly requests another locale.

Do not default to direct code edits or automatic commits. Default to an implementation-first package, not a minimal patch sketch.

Supported Modes

  1. report Produce a migration report only.
  2. patch Produce a migration report plus a full implementation reference package. Default to per-feature folders containing full.patch, split patches/, upstream reference metadata, implementation checklists, and explicit uncovered scope.
  3. apply Edit the local workspace without creating a commit. Use only when alignment and impact confidence are high.
  4. commit Reserve for explicit user requests after patch review. Do not use as the first-pass default.

Entry Conditions

Proceed only when all of the following are true:

  • MindSpeed branch is known.
  • Megatron base branch is known.
  • Megatron target branch or change-set is known.
  • Relevant impact items already exist.
  • Each migration-worthy item includes upstream commit references and enough implementation scope to tell config/runtime/wrapper/test work apart.

If any of these are missing, stop and ask for or derive the missing prerequisite instead of guessing.

Workflow

  1. Read the impact report.
  2. Separate high-confidence items from speculative items.
  3. For each high-confidence item, describe: the upstream event, the upstream commit and changed files, the upstream implementation units, the local adaptation target, the intended code change, the uncertainty.
  4. Generate: one integrated migration_report.md impact_report.json if needed for carry-forward candidate_patch.md as a compact summary index a features/ directory with one subfolder per migration item, each containing: full.patch for the full local implementation draft patches/ for split patch series organized by implementation unit candidate.patch as the compatibility entry patch README.md, checklist.md, package_manifest.json, and upstream_reference.json
  5. If in apply mode, edit only the approved files and leave a clear explanation of what changed.

Safety Rules

  • Never generate migration code directly from raw commit history without an impact report.
  • Avoid direct edits in exploration mode.
  • When the target is megatron main, frame code output as a candidate adaptation draft, not a compatibility-guaranteed migration.
  • Prefer patch artifacts over commits because they are easier to review and safer when branch alignment is still evolving.
  • Do not treat one local file edit as a complete feature migration when the upstream commit spans config, runtime logic, wrappers, and tests.
  • When a full migration package cannot be completed from the available inputs, explicitly record uncovered implementation units, omitted scope, and manual follow-ups instead of pretending the feature is complete.

Static Validation

Keep validation lightweight and local:

  • patch applies cleanly
  • paths exist
  • names and arguments match local code structure
  • basic syntax or lint-level checks when available
  • the package explains which upstream implementation units are already ported and which remain to be ported

Do not imply that training correctness, performance, or numerical accuracy has been verified.

References

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value72/100

Highlights

  • 面向 MindSpeed 与 Megatron 分支对齐后的迁移交付物生成,解决特定工程痛点
  • 提供 report/patch/apply/commit 多种输出模式,适应不同置信度场景
Trigger Precision88/100

Highlights

  • 触发条件清晰:需已有确认的 MindSpeed-to-Megatron 分支配对
  • 边界明确,避免在无前置分析时盲目生成迁移代码
Structure and Standards75/100

Areas to improve

  • 缺少显式端到端示例 Reported severity: Minor

    文档描述了工作流但未提供完整的端到端使用示例

    Recommendation: 补充一个从 impact report 到最终 migration package 的完整示例

Highlights

  • 结构完整,包含 Workflow、Safety Rules、Static Validation 等关键章节
  • Entry Conditions 明确,确保前置依赖满足后才执行
Execution Reliability45/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    SKILL.md 引用了 references/migration-modes.md、references/implementation-first-package.md、references/report-template.md、scripts/synthesize_full_patch_series.py、scripts/render_migration_artifacts.py 等文件,但未传入 ZIP 包

    Recommendation: 确保所有被引用的文件都包含在 Skill ZIP 包中,或移除无法提供的引用

Highlights

  • Safety Rules 完善,避免直接编辑和自动提交等高风险操作
  • Static Validation 规则合理,确保生成的 patch 可应用且路径存在
Evidence Verifiability (mean of the first four)70/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • gitcode.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.