external-gitcode-ascend-megatron-migration-generator
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "external-gitcode-ascend-megatron-migration-generator":https://skillpi.com/zh/skills/deepskill-ad504c9dd6007d4770ca5ef77c68644685169268b1807746d08c51709ca82e77。安装前核对上游来源和版本:https://github.com/ascend-ai-coding/awesome-ascend-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
生成迁移交付物,以引入相关的 Megatron 变更。
介绍来源: third_party · ascend-ai-coding · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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: UNKNOWNMegatron 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
reportProduce a migration report only.patchProduce a migration report plus a full implementation reference package. Default to per-feature folders containingfull.patch, splitpatches/, upstream reference metadata, implementation checklists, and explicit uncovered scope.applyEdit the local workspace without creating a commit. Use only when alignment and impact confidence are high.commitReserve 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
- Read the impact report.
- Separate high-confidence items from speculative items.
- 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.
- Generate:
one integrated
migration_report.mdimpact_report.jsonif needed for carry-forwardcandidate_patch.mdas a compact summary index afeatures/directory with one subfolder per migration item, each containing:full.patchfor the full local implementation draftpatches/for split patch series organized by implementation unitcandidate.patchas the compatibility entry patchREADME.md,checklist.md,package_manifest.json, andupstream_reference.json - If in
applymode, 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
- Read migration-modes.md before choosing the output form.
- Read implementation-first-package.md before generating a migration package that claims to represent a feature implementation.
- Read report-template.md for the expected integrated markdown deliverable structure. Default to Chinese report language.
- Run synthesize_full_patch_series.py after impact mapping when you want known feature commits to expand into fuller multi-file patch series instead of staying as single-file placeholders.
- Run render_migration_artifacts.py to turn an
impact_report.jsoninto reviewable report and patch-plan artifacts before any manual refinement.
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 面向 MindSpeed 与 Megatron 分支对齐后的迁移交付物生成,解决特定工程痛点
- 提供 report/patch/apply/commit 多种输出模式,适应不同置信度场景
亮点
- 触发条件清晰:需已有确认的 MindSpeed-to-Megatron 分支配对
- 边界明确,避免在无前置分析时盲目生成迁移代码
待提升项
-
缺少显式端到端示例 原报告严重程度:轻微
文档描述了工作流但未提供完整的端到端使用示例
改进建议:补充一个从 impact report 到最终 migration package 的完整示例
亮点
- 结构完整,包含 Workflow、Safety Rules、Static Validation 等关键章节
- Entry Conditions 明确,确保前置依赖满足后才执行
待提升项
-
引用文件缺失 原报告严重程度:重大
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 包
改进建议:确保所有被引用的文件都包含在 Skill ZIP 包中,或移除无法提供的引用
亮点
- Safety Rules 完善,避免直接编辑和自动提交等高风险操作
- Static Validation 规则合理,确保生成的 patch 可应用且路径存在
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- gitcode.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。