hc-skadi/ascendc/ascendc-ut-develop
Claude Code and agent skill by hc-skadi/ascendc
- community
Checking that the SKILL.md file is still in the repository.
Ascend C 算子 UT 开发与覆盖率增强技能。通过分析 op_host/op_api/op_kernel 的测试空白、生成或补充 UT 用例并定位未覆盖代码来提升覆盖率,支持 ops-math/ops-nn/ops-transformer/ops-cv。当用户提及 UT、单元测试、覆盖率、补测、未覆盖代码或需要新增/完善 UT 时使用,ST 测试不适用。
Install
npx vskill@latest install hc-skadi/ascendc/ascendc-ut-developSKILL.md
AscendC 算子 UT 开发
入口参数
| 参数名 | 含义 | 取值约束 | 初值推断 | |
|---|---|---|---|---|
| op_name | 算子名 | 采用下划线命名法 | 驼峰命名自动转换,无法推断时询问 | |
| repo_type | 仓库类型 | 枚举值["ops-math", "ops-nn", "ops-transformer", "ops-cv", "custom"] | 根据工作目录推断,无法推断时询问 | |
| soc_type | 芯片架构 | 枚举值列表["ascend310p", "ascend910b", "ascend910_93", "ascend910_95"] | 用户没有提及则默认全选 | |
| test_model | 测试模块 | 枚举值列表["opapi", "ophost", "opkernel"] | 用户没有提及则默认全选 |
格式约定:整个 skill 里的所有文档中,入口参数使用 ${参数名} 标记,需替换为真实值后再理解。
⚠️ 强制前置步骤(不可跳过)
- 这是强制步骤,必须在执行主流程前完成!- 在此步骤完成前,禁止阅读任何 references/ 目录下的文档和当前工作目录下的文件!- 子步骤必须逐一执行,不允许同时执行或跳步!
0.1 发送问卷确认入口参数
根据"初值推断"规则,尝试获取所有入口参数的值(仅根据已有上下文简单推断,不阅读具体代码和子目录),然后:
立即使用 question 工具,向用户确认入口参数是否正确,问卷内容使用 assets/question.json,在推断出的选项的 label 后加上 "【推荐】",除此之外不得有任何修改
收到用户答复后,根据变量的"含义"理解用户真实需求
0.2 创建 TODO.md
立即使用 todowrite 工具创建 Todos,内容使用 assets/todo.json,不允许进行任何修改
0.3 创建 tmp 目录
创建 /tmp/cannbot_${op_name}/ 目录,用于存放所有中间文件:
重要规则:
- 将入口参数存储在该目录下的
params.json中 - 所有中间文件都应放在该目录下
- 子 Agent 的临时文件也要存放在该目录下
主流程
流程执行规则
用户所有可能的需求都已经被抽象到主流程中,主流程的步骤在不同的需求下会重写为不同实现,你必须严格遵守以下规则:
- 严格顺序执行:必须按照 Step 1 → Step 2 → Step 3 → ... 的顺序执行,不得跳过或乱序
- 禁止提前阅读:在执行到某个步骤前,绝对禁止阅读该步骤的文档!
- 即时更新进度:每完成或跳过一个子步骤,立即使用
todowrite工具更新 TODO.md,将其标记为[x]
主流程链接
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent-skills/model-agent-skills/documentation/ascendc-ut-develop/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hc-skadi/ascendc/ascendc-ut-develop)