| Files | Last commit | Last update |
|---|---|---|
refactor: 官方插件目录 plugins 更名为 plugins-official Co-authored-by: jon_jin<jinjiong@hisilicon.com> # message auto-generated for no-merge-commit merge: !37 merge refactor/plugins-official into master refactor: 官方插件目录 plugins 更名为 plugins-official Created-by: jon_jin Commit-by: jon_jin Merged-by: cann-robot Description: ## 描述 将官方插件目录 plugins/ 更名为 plugins-official/,与 cannbot-skills 子仓的 plugins-official/ 命名对齐,并与顶层 plugins-community/(社区插件)形成明确的官方/社区对仗。 ### 改动原因 - 子仓 cannbot-skills 中官方插件目录为 plugins-official/,主仓为 plugins/,两侧命名不一致 - 顶层已有 plugins-community/,plugins/ 无法直观表达"官方插件"语义 ### 改动方法 - git mv plugins plugins-official(114 个文件,100% rename,历史保留) - 同步更新所有指向源码目录的引用: - .claude-plugin/marketplace.json:官方插件 source 指向 ./plugins-official/<name> - script/bin/cannbot.js:源码仓插件发现路径改为 plugins-official - script/lib/plugin-bundle.js:源插件根目录与默认发现列表同步更名(打包产物仍输出 dist/plugins/,安装布局 .cannbot/plugins/ 不变) - 测试 fixture 与断言同步更新:仓库根防泄漏断言由禁止 plugins-official 改为禁止旧目录 plugins - README / docs / 插件内文档路径引用同步更新 ## 测试 - script/ 下 npm test:79/79 通过(覆盖插件组装、多工具安装、打包冒烟全流程) ## 类型标签 - [ ] Bug 修复 - [ ] 新特性 - [ ] 文档更新 - [x] 重构 ## 关联的Issue (无) See merge request: cann/cannbot!37 | 2 months ago | |
refactor: 官方插件目录 plugins 更名为 plugins-official Co-authored-by: jon_jin<jinjiong@hisilicon.com> # message auto-generated for no-merge-commit merge: !37 merge refactor/plugins-official into master refactor: 官方插件目录 plugins 更名为 plugins-official Created-by: jon_jin Commit-by: jon_jin Merged-by: cann-robot Description: ## 描述 将官方插件目录 plugins/ 更名为 plugins-official/,与 cannbot-skills 子仓的 plugins-official/ 命名对齐,并与顶层 plugins-community/(社区插件)形成明确的官方/社区对仗。 ### 改动原因 - 子仓 cannbot-skills 中官方插件目录为 plugins-official/,主仓为 plugins/,两侧命名不一致 - 顶层已有 plugins-community/,plugins/ 无法直观表达"官方插件"语义 ### 改动方法 - git mv plugins plugins-official(114 个文件,100% rename,历史保留) - 同步更新所有指向源码目录的引用: - .claude-plugin/marketplace.json:官方插件 source 指向 ./plugins-official/<name> - script/bin/cannbot.js:源码仓插件发现路径改为 plugins-official - script/lib/plugin-bundle.js:源插件根目录与默认发现列表同步更名(打包产物仍输出 dist/plugins/,安装布局 .cannbot/plugins/ 不变) - 测试 fixture 与断言同步更新:仓库根防泄漏断言由禁止 plugins-official 改为禁止旧目录 plugins - README / docs / 插件内文档路径引用同步更新 ## 测试 - script/ 下 npm test:79/79 通过(覆盖插件组装、多工具安装、打包冒烟全流程) ## 类型标签 - [ ] Bug 修复 - [ ] 新特性 - [ ] 文档更新 - [x] 重构 ## 关联的Issue (无) See merge request: cann/cannbot!37 | 2 months ago | |
add cannbot-dsl workflow Co-authored-by: sky-zyh<zhangyuhan45@huawei.com> Co-authored-by: zhouqilong<zhouqilong2@huawei.com> Co-authored-by: zhoulong50_hw<zhoulong50@huawei.com> Co-authored-by: Junren6415<joestranberg99@gmail.com> Co-authored-by: xutianze<xutianze2@huawei.com> # message auto-generated for no-merge-commit merge: !67 merge workflow-dev into master add cannbot-dsl workflow Created-by: sky-zyh Commit-by: sky-zyh;Junren6415;xutianze;zhoulong50_hw;zhou-qilong;zhouqilong Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述您的改动,包括改动的原因和所采取的方法。 ### 举例: #### 新特性 New Features - 【仿真 ops-simulator】新增Ascend 950 仿真Skill:支持 Ascend 950 仿真,并且输出性能分析报告和流水线图。 - 【PyPTO】【pypto-op-design】新增 Skill:pypto-op-design,PyPTO算子方案设计,含快速参考和设计模板。 #### 问题修复 Bug Fix 【算子直调 ops-direct-invoke】修改verify_environment.sh脚本,返回environment.json 固定为1的bug,应该按实际设备的npu count返回。 --> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单的链接。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🌟 新特性 - [ ] ✨ 特性增强 - [ ] 🐛 Bug 修复 - [ ] ⚡ 性能优化 - [ ] 🧪 测试用例 - [ ] 📦 构建 / CI - [ ] 📝 文档更新 - [ ] 🔧 配置变更 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] ♻️ 代码重构 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: ## 流水线故障排查 <!-- 如果下方的流水线检查未通过,可参考以下指引进行自助修复 --> > **UT_Test 未通过?** > 请在下方流水线表格的 **UT_Test** 行,点击右侧的 >>>>> 下载 **CANNBot-skills UT 测试报告**(HTML 格式)。 > 打开报告后,展开页面中的「UT Test 失败修复指南」,复制其中的提示词并粘贴给 Agent,Agent 将根据日志自动定位并修复问题。 > > 示例: >  See merge request: cann/cannbot!67 | 1 month ago | |
feat(ops-registry-invoke): generalize design template skill Co-authored-by: zhangzijie<zhangzijie11@hisilicon.com> # message auto-generated for no-merge-commit merge: !55 merge feat/ops-registry-invoke-design-templates into master feat(ops-registry-invoke): generalize design template skill Created-by: zhangzijie Commit-by: zhangzijie Merged-by: cann-robot Description: ## Summary - add a reusable design-template skill with bundled ACLNN operator design templates - remove hard-coded workspace, workflow-install, paradigm-resource, requirement, and performance-artifact paths from templates - make resource locators, output paths, branch locators, thresholds, and missing-fact handling caller-provided - keep plugins-official/ops-registry-invoke/workflows/op-develop.yaml unchanged relative to upstream/master ## Validation - python3 /root/.codex/skills/.system/skill-creator/scripts/quick_validate.py plugins-official/ops-registry-invoke/skills/design-template passes - no diff remains in plugins-official/ops-registry-invoke/workflows/op-develop.yaml against upstream/master See merge request: cann/cannbot!55 | 2 months ago | |
refactor: 官方插件目录 plugins 更名为 plugins-official Co-authored-by: jon_jin<jinjiong@hisilicon.com> # message auto-generated for no-merge-commit merge: !37 merge refactor/plugins-official into master refactor: 官方插件目录 plugins 更名为 plugins-official Created-by: jon_jin Commit-by: jon_jin Merged-by: cann-robot Description: ## 描述 将官方插件目录 plugins/ 更名为 plugins-official/,与 cannbot-skills 子仓的 plugins-official/ 命名对齐,并与顶层 plugins-community/(社区插件)形成明确的官方/社区对仗。 ### 改动原因 - 子仓 cannbot-skills 中官方插件目录为 plugins-official/,主仓为 plugins/,两侧命名不一致 - 顶层已有 plugins-community/,plugins/ 无法直观表达"官方插件"语义 ### 改动方法 - git mv plugins plugins-official(114 个文件,100% rename,历史保留) - 同步更新所有指向源码目录的引用: - .claude-plugin/marketplace.json:官方插件 source 指向 ./plugins-official/<name> - script/bin/cannbot.js:源码仓插件发现路径改为 plugins-official - script/lib/plugin-bundle.js:源插件根目录与默认发现列表同步更名(打包产物仍输出 dist/plugins/,安装布局 .cannbot/plugins/ 不变) - 测试 fixture 与断言同步更新:仓库根防泄漏断言由禁止 plugins-official 改为禁止旧目录 plugins - README / docs / 插件内文档路径引用同步更新 ## 测试 - script/ 下 npm test:79/79 通过(覆盖插件组装、多工具安装、打包冒烟全流程) ## 类型标签 - [ ] Bug 修复 - [ ] 新特性 - [ ] 文档更新 - [x] 重构 ## 关联的Issue (无) See merge request: cann/cannbot!37 | 2 months ago | |
feat(cake): 引入 CAKE2 社区插件与 plugins-community 通道 Co-authored-by: Junyifannnn<fan.junyi@huawei.com> # message auto-generated for no-merge-commit merge: !15 merge feat/add-plugins-community-channel into master feat(cake): 引入 CAKE2 社区插件与 plugins-community 通道 Created-by: gcw_P2Mh5H1S Commit-by: Junyifannnn Merged-by: cann-robot Description: ## 概述 三个提交,建议逐个评审: 1. b55ef86 — 打通 plugins-community/ 通道(7 个文件)。打包器与安装器原先写死 plugins/,plugins-community/ 下只有 .gitkeep 且全仓无代码读取。 2. c1bfbc1 — 引入 CAKE2 社区插件(19 技能),内容取自 cann/cannbot-skills 已合入 master 的同一份副本,逐字节一致。 3. aec2069 — 按开源软件成分扫描结果更正第三方署名(47 个文件)。 第 2 个提交是内容现状,第 3 个提交是全部许可相关改动。**评审许可问题只需读第 3 个提交。** ## 一、通道(b55ef86,7 文件) 社区插件的目录名与清单 name 不要求一致——cake 的目录是 collaborative-agent-kernel-evolution,清单 name 是 cake——因此社区通道按清单 name 建索引,目录名只作存放位置。plugins/ 保持原规则:目录名即插件 id,不一致即报错。 | 文件 | 内容 | |---|---| | script/lib/plugin-bundle.js | 新增 findPluginDirectory;社区根按清单 name 匹配,官方根保留目录名与 name 一致的断言;社区插件不套用插件根许可 | | script/bin/cannbot.js | resolvePluginDir 增加 plugins-community 与 dist/plugins-community;新增 agent/workflow 正文的技能路径改写;新增跨插件技能重名判定 | | script/test/install.test.js | 辅助函数插件根参数化;marketplace 断言按 source 前缀区分官方与社区;每个 git-subdir 条目一律断言 source.sha === gitlink;新增 6 项用例 | | script/scripts/assemble-plugins.js、plugins/README.md、docs/repository-guide.md、CHANGELOG.md | 日志、文档与变更记录 | 三项行为变更:**技能路径改写**(agent 正文的 skills/<name>/ 改写为安装后的绝对路径,只匹配已解析出的技能名,散文不受影响);**跨插件技能重名按解析后的源路径判定**(源路径相同放行,即合法复用;不同则报错点名。安装记录新增 skillSources 字段,记录中路径已不存在时视为过期记录);**preserveSkillInvocationPolicy 开关**(置真时技能的 disable-model-invocation 保留作者原值;不设该键时行为与现状一致)。 ## 二、cake 内容(c1bfbc1,498 文件) 495 个文件与 cann/cannbot-skills 02e9a93f 的同名文件逐字节一致(diff -r 验证)。唯一差异是 .claude-plugin/plugin.json 的三行:version 由 0.1.1 改为 0.2.0(使两仓并存期间两份副本在坐标上可区分),homepage 与 repository 改指 cannbot。 新增登记文件(cake 在 cannbot-skills 侧没有这些):plugin-sources.json(skillInstallMode 为 symlink,skills 为空数组——19 技能版本不引用 submodule 中的任何技能,因此本 PR 不涉及 gitlink;preserveSkillInvocationPolicy 置真)、init.sh(并补 CANN-2.0 许可头,所照的模板自身缺头)、.codex-plugin/plugin.json、marketplace 条目、OAT.xml 的 Chart.js filteritem。 TileLang、EasyAsc、CV 三条轨道的其余 12 个技能另行提交。 ## 三、第三方署名更正(aec2069,47 文件) 扫描共 50 项命中、48 个文件。**41 项登记为第三方,9 项申请判定误报。** ### 登记(41 项) **40 个文件取自 just-it/ascendopgenagent**(commit d530e7b,按 Apache-2.0 提供)。实测该仓库对应文件最早提交为 2026-03-14 至 03-16,CAKE2 侧为 2026-03-18,由同一次提交一次性引入。原「Copyright (c) 2026 Huawei Technologies Co., Ltd. + CANN-2.0」头替换为: Derived from https://github.com/just-it/ascendopgenagent (commit d530e7b), which distributes this content under the Apache License, Version 2.0. See LICENSE-APACHE in the plugin root for the full text of that License. Modifications Copyright (c) 2026 Huawei Technologies Co., Ltd. **署名只陈述取得途径、不陈述权利归属。** 理由:该仓库文件内无任何版权头,其 LICENSE 的版权人字段留空未填;且它并非所记述 DSL 的源头——该 DSL 使用 Triton 的 tl.* 接口,另含 tl.num_vec_cores()、tl.copyout 等昇腾扩展,二者在 TileLang-Ascend 与 EasyAsc 中均不存在,其 README 自述为「基于 Triton/AscendC」并设有 AKG-Triton Agent。本次扫描本身两次把下游副本报成来源(见下),因此不以扫描结果作为权利归属的依据。写「取自何处、按何许可提供」在任何情况下都为真;若日后查明更上游的来源,补一行即可,不必撤回已公开的版权声明。 **skills/reference-generation/references/hardtanh.py** 改写自 Stanford KernelBench 的 KernelBench/level1/32_HardTanh.py(MIT,Copyright (c) 2023 Anne Ouyang, Simon Guo, Azalia Mirhoseini, Scaling Intelligence Lab, Stanford University)。forward 的 9 行文档字符串逐字一致,代码部分只有一行 F.hardtanh 调用。保留 Stanford 版权声明并加修改声明。扫描命中的 sakanaai/robust-kbench 是 KernelBench 的下游(其路径即 tasks/kernelbench/...)。 随本提交交付:LICENSE-APACHE(Apache-2.0 全文,取自上游)、LICENSE-MIT(MIT 全文,含 Stanford 声明)、README.OpenSource(新建,照 cannbot-skills 的 plugins-community/autoresearch 格式,登记三个组件)、OAT.xml(cake filteritem 由 1 条增至 44 条)。 ### 申请判定误报(9 项) **csrc/op.cpp(47%,命中 wzzll123/multikernelbench)与 setup.py(7%×3,命中 ascend/samples 与 evotoolkit×2)**:源头是华为自有的昇腾官方样例 gitee.com/ascend/samples 的 operator/ascendc/0_introduction/1_add_frameworklaunch/CppExtensionInvocation/——扫描自身已将该样例列为 setup.py 的命中来源之一。setup.py 命中区间为第 22–26 行 5 行,与官方样例第 10–14 行逐字节一致;op.cpp 全文 36 行,命中区间 18–34 行即官方样例 csrc/add_custom.cpp 的算子注册块,连中文注释都一致,差异只有算子名,且该样例文件自带 Copyright (C) 2024-2025. Huawei Technologies Co., Ltd. 头。multikernelbench 与 evotoolkit 同为该样例的下游。 **linear_softplus.py(12%,命中 mindspore-ai/akg)**:无逐字一致内容。概述句描述的运算不同(本项目为 linear + softplus,akg 为 weight-normalized linear 且不含 softplus),形参说明本项目用方括号、akg 用圆括号,代码行分别为 F.linear(x, self.weight) 与 self.linear(x)。相同的只是 Google 风格文档字符串骨架。akg 的该文件位于其自身 thirdparty/ 目录下,akg 亦非来源。 **cake-docs-search/scripts/ 下 4 个文件(72–93%,命中 ascend-ai-coding/awesome-ascend-skills)**:本项目在先。CAKE2 于 2026-03-24(commit e03610da)引入 ascendc-docs-search,对方对应文件最早提交为 2026-05-19,晚约 8 周且该路径仅有 1 个提交;命中路径为 external/cannbot/ops/ascendc-docs-search/scripts/,即对方将本项目内容收录进其「外部依赖」目录;对方仓库无许可文件。同一批脚本此前已在 cannbot-skills 侧提交过同样的审核意见。 ## 四、需要评审确认的一项 **合入本 PR 即等于接受:从 40 个文件上移除华为版权声明、降为修改声明,并承认这些内容取自 ascendopgenagent。** 这不是机械改动,请明确确认。 ## 五、与 cannbot-skills 的差异说明 aec2069 使 cake 不再与 cannbot-skills 的同名文件逐字节一致:41 个文件的许可头不同,另新增 3 个文件。这是有意更正。cannbot-skills 侧的同一批文件仍带原署名并已公开,按迁移计划由后续步骤整体删除该副本——在该仓修改不能使已公开的旧版本失效(按 SHA 仍可取到),因此未在该仓另行提交。 .gitignore 的运行期产物条目不在本 PR:与在途 PR !14 在同一处重叠,待其合入后另行提交。 ## 六、验证 - npm --prefix script test:**48 / 48 通过**(含新增 6 项)。 - npm --prefix script run build:plugins:组装为 plugins-community/cake,19 技能——目录名与清单 name 不一致的解析路径由此在真实内容上走通,而非只在夹具上。 - 五种客户端各安装一次(opencode / codex / claude / trae / dsh):均为 19 技能 + 3 个 agent,退出码 0。 - 19 个技能逐个比对源文件与 dist 产物中 disable-model-invocation 的取值:**差异 0**。 - claude 下 hooks 注册到 settings.json:Stop、PostToolUse、PostToolUseFailure 各一条。 - npm --prefix script run pack:check:通过,tarball 内 plugins-community 条目数为 **0**。 - OAT.xml 登记的 44 个路径逐一存在;自行编写文件的 git diff --check 为 0 行。 - 基线 c82cd77,落后 0 个提交。 ## 七、已知项 导入内容中有 845 行尾随空格,git diff --check 会报出。这些行与 cannbot-skills 已合入的字节一致,未作改动——aec2069 之外不引入与来源无关的差异。本次自行编写的文件中该检查为 0 行。 See merge request: cann/cannbot!15 | 2 months ago |
CANNBot managed plugins
This directory contains the official CANNBot plugin definitions and non-Skill files:
ops-direct-invokeascendc-st-designmodel-infer-optimize
Each plugin declares the Skills it needs in plugin-sources.json. The actual Skill source is maintained in the vendor/cannbot-skills submodule and is not duplicated in this repository.
Each plugin's init.sh creates project Skill symlinks to the submodule. npm --prefix script run build:plugins instead copies the declared Skills into script/dist/plugins/<plugin>/skills/ for a self-contained npm package.
Each init.sh is a thin source adapter for the shared Node installer. Optional dependency repositories are declared in plugin-install.json.
An official plugin's directory name is its plugin id: the directory name and the manifest name must agree, and the bundler rejects a plugin where they do not. Community plugins under plugins-community/ are indexed by their manifest name instead, so their directory name is only a storage location. Each official plugin is assembled with a copy of plugins/LICENSE; a community plugin keeps whatever licence it ships with, and the community root has none.