文件最后提交记录最后更新时间
agent team适配asys命令 Co-authored-by: w1694521740<wushizhen@huawei.com> # message auto-generated for no-merge-commit merge: !160 merge master into master agent team适配asys命令 Created-by: w1694521740 Commit-by: w1694521740 Merged-by: cann-robot Description: ## 描述 【算子直调 ops-direct-invoke】统一 environment.json 字段名从嵌套点号格式(cann.version、npu.available、compiler.bisheng_path)改为扁平格式(cann_version、npu_available、bisheng_path),涉及 Architect/Developer/Reviewer Agent、task-prompts、review-checklist、AGENTS.md 共 6 个文件。 ### 举例: #### 新特性 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 <!-- https://gitcode.com/cann/skills/issues/83> ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🌟 新特性 - [ ] ✨ 特性增强 - [ ] 🐛 Bug 修复 - [ ] ⚡ 性能优化 - [ ] 🧪 测试用例 - [ ] 📦 构建 / CI - [ ] 📝 文档更新 - [ ] 🔧 配置变更 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] ♻️ 代码重构 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/cannbot-skills!16029 天前
feat: add CRLF line-ending detection test and .gitattributes Co-authored-by: yanhf<yanhaifeng5@huawei.com> # message auto-generated for no-merge-commit merge: !183 merge master into master feat: add CRLF line-ending detection test and .gitattributes Created-by: yanhf Commit-by: yanhf Merged-by: cann-robot Description: 新特性 New Features - 【代码看护】新增行尾检测单元测试 tests/unit/test-line-endings.sh:扫描仓库中所有文本文件,检测 DOS 风格 CRLF 行尾,发现时报告 FAIL。已集成到 --fast 默认拦截链,排在所有单测首位执行。 - 【代码看护】新增 .gitattributes:对所有文本文件类型(.c .h .py .sh .md .yaml .json 等)强制 eol=lf,从 Git 层防止未来提交引入 CRLF 行尾。 问题修复 Bug Fix - 【代码看护】修复 22 个存量文件的 CRLF 行尾问题:涉及 ops/ascendc-direct-invoke-template、ops/ascendc-registry-invoke-template、ops/ascendc-code-review、plugins- official/ops-direct-invoke、model/teams/infer-model-optimize-team 等模块。使用 dos2unix 统一转换为 Unix LF。 --- 关联的Issue --- 测试 - 新增的 tests/unit/test-line-endings.sh 已通过 20 项场景验证(含 CRLF 检测、二进制排除、目录排除、混合行尾、空文件等边缘用例),全部 PASS - run-tests.sh --fast 集成验证通过,测试项共 10 个,新测试排首位并 PASS - 修复后真实仓库扫描 882 个文件,确认无 CRLF 残留 --- 文档更新 无 --- 类型标签 - [x] 🌟 新特性 - [x] 🐛 Bug 修复 - [x] 🧪 测试用例 - [x] 🔧 配置变更 See merge request: cann/cannbot-skills!18324 天前
optimize direct workflow to support user provided testcases Co-authored-by: jon_jin<jinjiong@hisilicon.com> # message auto-generated for no-merge-commit merge: !285 merge master-fork into master optimize direct workflow to support user provided testcases Created-by: jon_jin Commit-by: jon_jin Merged-by: cann-robot Description: ## 描述 add requirement source in direct workflow,to avoid skip user’ tescase in prompt ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单的链接。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🌟 新特性 - [ ] ✨ 特性增强 - [ ] 🐛 Bug 修复 - [ ] ⚡ 性能优化 - [ ] 🧪 测试用例 - [ ] 📦 构建 / CI - [ ] 📝 文档更新 - [ ] 🔧 配置变更 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] ♻️ 代码重构 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: ## 流水线故障排查 <!-- 如果下方的流水线检查未通过,可参考以下指引进行自助修复 --> > **UT_Test 未通过?** > 请在下方流水线表格的 **UT_Test** 行,点击右侧的 >>>>> 下载「UT_Test 自检修复提示词模版」。 > 将下载的模版内容粘贴给 Agent,Agent 将根据日志自动定位并修复问题。 > > 示例: > ![UT_Test下载示例](pipeline-ut-test-download-link.png) See merge request: cann/cannbot-skills!2859 天前
【Plugin 架构重构】将 ops/teams 迁移至 plugins-official,重新设计 Claude Code Plugin 安装架构,采用 Anthropic 官方 strict: false 模式按 team 划分 skills,引入原生 dependencies 自动依赖解析 Co-authored-by: yanhf<yanhaifeng5@huawei.com> # message auto-generated for no-merge-commit merge: !128 merge sync into master 【Plugin 架构重构】将 ops/teams 迁移至 plugins-official,重新设计 Claude Code Plugin 安装架构,采用 Anthropic 官方 strict: false 模式按 team 划分 skills,引入原生 dependencies 自动依赖解析 Created-by: yanhf Commit-by: yanhf Merged-by: cann-robot Description: --- 描述 重构 Refactor 【Plugin 架构重构】将 ops/teams 迁移至 plugins-official,重新设计 Claude Code Plugin 安装架构,采用 Anthropic 官方 strict: false 模式按 team 划分 skills,引入原生 dependencies 自动依赖解析。 背景 原有架构下 ops/teams/ 中的 team 不是独立 plugin,skills 以软链接方式引用,导致 Claude Code marketplace 安装时 cache 复制失败(copyDir 跳过指向 source 目录外的 symlinks)。需要重构为符合 Claude Code plugin 规范的自包含架构。 主要改动 1. 目录迁移 — ops/teams/ 下所有 team 迁移至 plugins-official/,每个 team 成为独立 Claude Code plugin - plugins-official/ops-direct-invoke/(3 个 Agent + 工作流 + hooks) - plugins-official/pypto-op-orchestrator/(3 个 Subagent + 状态机编排 + hooks) - plugins-official/ops-code-reviewer/(1 个 Agent + hooks) - plugins-official/ops-registry-invoke/(占位) 2. Skills 按 team 严格分类 — 参考 Anthropic 官方 skills marketplace 设计(source 共享 + strict: false + skills 数组选取子集),每个 team 只加载自己需要的 skills: | Skills Plugin | 数量 | 依赖方 | |------------------------------|------|-----------------------| | ops-direct-invoke-skills | 12 | ops-direct-invoke | | pypto-op-orchestrator-skills | 8 | pypto-op-orchestrator | | ops-code-reviewer-skills | 2 | ops-code-reviewer | 3. 原生依赖机制 — 利用 Claude Code v2.1.110+ 的 dependencies 字段,team plugin 声明对应 skills plugin 依赖,用户只需安装 team plugin,skills 自动拉取 4. Plugin Agent 前缀 — plugin 安装模式下 agent 注册为 {plugin}:{agent} 格式,更新所有 subagent_type 引用(如 ops-direct-invoke:ascendc-kernel-architect) 5. Hooks 去重 — 多 plugin 共存时 hooks 命名冲突,统一为 session-start-{team} 格式(session-start-ops-direct、session-start-pypto、session-start-reviewer) 6. 仓库链接切换 — 全部链接从私仓 yanhf/cann_skills 切换至正式仓库 cann/skills 安装方式 Claude Code Plugin 安装(推荐) /plugin marketplace add https://gitcode.com/cann/skills.git /plugin install ops-direct-invoke@cannbot # 自动安装 ops-direct-invoke-skills /plugin install pypto-op-orchestrator@cannbot # 自动安装 pypto-op-orchestrator-skills /plugin install ops-code-reviewer@cannbot # 自动安装 ops-code-reviewer-skills init.sh 本地安装(仍兼容) bash plugins-official/ops-direct-invoke/init.sh project claude 关联的Issue 无 测试 - /plugin install ops-direct-invoke@cannbot 自动安装 ops-direct-invoke-skills 依赖(12 个 skill) - /plugin install pypto-op-orchestrator@cannbot 自动安装 pypto-op-orchestrator-skills 依赖(8 个 skill) - /plugin install ops-code-reviewer@cannbot 自动安装 ops-code-reviewer-skills 依赖(2 个 skill) - /doctor 无报错 - init.sh 脚本安装方式验证(opencode / claude 两种模式) - Agent subagent_type 前缀引用正确(如 ops-direct-invoke:ascendc-kernel-architect) - 多 plugin 同时安装时 hooks 无命名冲突 文档更新 更新了 README.md、quickstart.md、INSTALL.md 中的仓库链接和安装说明。 See merge request: cann/skills!1281 个月前
基于Blaze的matmul单算子直调 Co-authored-by: chenkang30<chenkang30@huawei.com> # message auto-generated for no-merge-commit merge: !244 merge pr-225 into master 基于Blaze的matmul单算子直调 Created-by: chenkang30 Commit-by: 陈康;chenkang30 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述您的改动,包括改动的原因和所采取的方法。--> 1、优化ascendc-direct-invoke-template的skill,将内部的matmul算子相关知识独立出单独的skill,保持直调脚手架功能纯粹,本次修改先将单算子相关知识移出去,matmul的mx融合相关内容,计划下一步整改; 2、Blaze(Basic Linear Algebra OptimiZed Engine,基础线性代码优化引擎),构建基于Blaze的matmul直调skill,支持模块化设计和代码分层,结合AscendC的tensor_api来实现算子kernel,可快速生成matmul单算子模板。Blaze详细信息可参考:https://gitcode.com/cann/ops-tensor ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单的链接。--> https://gitcode.com/cann/cannbot-skills/issues/137 ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] 🌟 新特性 - [x] ✨ 特性增强 - [ ] 🐛 Bug 修复 - [ ] ⚡ 性能优化 - [ ] 🧪 测试用例 - [ ] 📦 构建 / CI - [ ] 📝 文档更新 - [ ] 🔧 配置变更 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] ♻️ 代码重构 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: ## 流水线故障排查 <!-- 如果下方的流水线检查未通过,可参考以下指引进行自助修复 --> > **UT_Test 未通过?** > 请在下方流水线表格的 **UT_Test** 行,点击右侧的 >>>>> 下载「UT_Test 自检修复提示词模版」。 > 将下载的模版内容粘贴给 Agent,Agent 将根据日志自动定位并修复问题。 > > 示例: > ![UT_Test下载示例](pipeline-ut-test-download-link.png) See merge request: cann/cannbot-skills!24412 天前