已合并
feat(agent): agent/skills 迁移至 cuda2ascend 基类继承架构 #310
Riki创建于 28 天前
feat(agent): agent/skills 迁移至 cuda2ascend 基类继承架构 #310
已合并
Riki创建于 28 天前
Riki
Riki成员
28 天前

描述

将 ops-blas 仓的 agent/skills 从自包含工作流迁移至 cuda2ascend 基类继承架构。

改动原因

当前 agent/skills 维护了一套 blas -* 命名的自包含工作流,编排逻辑与领域知识耦合,跨仓无法复用。cannbot-skills 仓的 cuda2ascend 插件已提供基类工作流(FINAL),各算子仓作为子类通过 --override 以相同逻辑名覆写 5 个虚拟 skill。ops-sparse 已完成此迁移,本次对齐。

采取的方法

  1. 重命名为基类通用逻辑名blas -*repo-*
  2. 解耦工作流步骤引用:去掉 SKILL.md 中对特定步骤的引用("2.x.2 联调前"等),改为通用场景描述
  3. 代码模板重构templates/references/,嵌套结构 references/<model>/blas /{op}/archXX/
  4. 内联代码抽取为模板:测试 SKILL.md 中代码示例抽取为独立模板文件到 references/test/{op}/

变更清单

skill 文件数 关键变更
repo-build-guide blas -build-commands 1 重命名 + 解耦
repo-coding-rules blas -ascendc-coding-rules + blas -log + 硬规则 6/9/13/14 15 合并 3 源 + 新建 sparse-coding-conventions.md
repo-knowledge blas -lib-rules + 硬规则 7/11/12 2 重命名 + 新建 sparse-domain-rules.md
repo-op-templates blas -op-templates 13 templates→references 嵌套重构
repo-test-develop blas -ST-develop 7 内联代码抽取为 6 个测试模板
workflow-doc-templates blas -new-op-workflow/assets 14 基类命名 13 模板 + sparse 定制

删除blas -new-op-workflow(编排)、blas -new-op-workflow-maintainagent-model-selectasc-devkit-referenceop-samples-referencegitcode-pr-issue-guidecannbot_references.json —— 由基类(FINAL)或基类生态处理。

新增:5个 SKILL.md + 若干个 reference 文件。

关联的Issue

https://gitcode.com/cann/ops-blas/issues/329

测试

静态验证

功能验证

文档更新

  • 本 PR 不涉及算子使用文档更新
  • agent/skills 内的 SKILL.md 和 references 即为本次更新的全部文档产物

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 Riki 的贡献)
RikiRiki成员
28 天前 关联了issue:[Requirement|需求建议]: agent/skills 迁移至 cuda2ascend 基类继承架构
atomgit-bot
atomgit-bot
28 天前 评论:

🤖 正在生成合并请求摘要,请稍候…

likedislike
atomgit-bot
atomgit-bot
28 天前 评论:

🤖 AI 代码检视正在进行中,请稍候…

likedislike
CANN-robotCANN-robot成员
28 天前 添加了label:stat/needs-squash
CANN-robotCANN-robot成员
28 天前 添加了label:cann-cla/yes
Riki
Riki成员
28 天前 评论:

compile

likedislike
CANN-robot
CANN-robot成员
28 天前 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here
You can get sig-info at here


PR Approval Progress

Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-cann/ops-blas 宋恺, xutianze (2/2) 宋恺, xutianze (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

Twoliges, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robot成员
28 天前 将chenbinbin199309,luowen203_gg123,QK_25415,MaskHunter2008,songkai111,xutianze,wangzitao_leo,nino888,zhaoyingchao2,demoauguste,zizhongchen设为评审人
CANN-robotCANN-robot成员
28 天前 将chenbinbin199309,luowen203_gg123,QK_25415,MaskHunter2008,songkai111,xutianze,wangzitao_leo,nino888,zhaoyingchao2,demoauguste,zizhongchen设为审查人
atomgit-bot
atomgit-bot
28 天前 评论:

⚠️ 本次变更过大(111 个文件、8658 行),已超出 AI 代码评审的处理范围,本次跳过。建议拆分为更小的 PR 以获得有效评审。

likedislike
atomgit-bot
atomgit-bot
28 天前 评论:

⚠️ 本次变更过大(111 个文件、8658 行),已超出 AI 代码评审的处理范围,本次跳过。建议拆分为更小的 PR 以获得有效评审。

likedislike
xutianze
xutianze成员
28 天前 评论:

/approve

likedislike
CANN-robotCANN-robot成员
28 天前 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
28 天前 评论:

流水线任务触发成功
任务链接 [ad8bfc78faf34d5eabf80c3117e45a48][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86_A2 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A2 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5 ✅ SUCCESS >>>>> >>>>>
codecheck ❌ FAILED >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_A2_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A2_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
codecheck_codestyle ⚠️ WARNING >>>>>
precommit ⚠️ WARNING >>>>> >>>>>
likedislike
CANN-robotCANN-robot成员
28 天前 添加了label:approved
CANN-robotCANN-robot成员
28 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
28 天前 添加了label:ci-pipeline-failed
wangzitao
wangzitao成员
28 天前 评论:

/approve

likedislike
CANN-robotCANN-robot成员
28 天前 添加了label:lgtm
RikiRiki成员
28 天前 强制推送  1 个提交:9d923dc8-feat(agent): agent/skills 迁移至 cuda2ascend 基类继承架构
CANN-robotCANN-robot成员
28 天前 删除了label:stat/needs-squash
CANN-robot
CANN-robot成员
28 天前 评论:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): stat/needs-squash.

likedislike
CANN-robotCANN-robot成员
28 天前 删除了label:lgtmapproved
CANN-robot
CANN-robot成员
28 天前 评论:

Notice

New code changes of the pull request are detected and remove these labels lgtm, approved. 😳

likedislike
Riki
Riki成员
28 天前 评论:

compile

likedislike
CANN-robotCANN-robot成员
28 天前 删除了label:ci-pipeline-failed
CANN-robotCANN-robot成员
28 天前 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
28 天前 评论:

流水线任务触发成功
任务链接 [6c8bc262a154426d8806315bf0124144][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86_A2 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A2 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5 ✅ SUCCESS >>>>> >>>>>
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_A2_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A2_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_A5_ubuntu24 ✅ SUCCESS >>>>> >>>>>
codecheck_codestyle ⚠️ WARNING >>>>>
precommit ⚠️ WARNING >>>>> >>>>>
PreSmoke_A900_npupool ✅ SUCCESS >>>>>

[2026-07-27 14:25:30]    CI执行结束

likedislike
CANN-robotCANN-robot成员
28 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
28 天前 添加了label:ci-pipeline-passed
xutianze
xutianze成员
28 天前 评论:

/approve

likedislike
CANN-robotCANN-robot成员
28 天前 添加了label:approved
songkai111成员
28 天前 评论:

/approve

likedislike
CANN-robotCANN-robot成员
28 天前 添加了label:lgtm
CANN-robotCANN-robot成员
28 天前 关闭了关联的issue
CANN-robotCANN-robot成员
28 天前 合入了pull request