mindspore-ai/akg/kernel-workflow
Claude Code and agent skill by mindspore-ai/akg
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
AI Kernel 算子生成与优化工作流程。当用户需要生成、验证或优化 kernel 算子时使用此 Skill。支持 Triton、CUDA C、C++、TileLang等多种后端 DSL。
Install
npx vskill@latest install mindspore-ai/akg/kernel-workflowSKILL.md
The same SKILL.md was published earlier as mindspore-ai/akg/kernel-workflow.
Kernel 算子生成与优化工作流程
流程概述
- 分析用户输入 → 只有要求描述还是有 task 代码?
- 验证/生成 task 代码 → 详见
references/torch_task_verify.md - 选择生成/优化方式 → 详见
references/tool-selection.md - 执行生成/优化 → 调用子Agent(如用户有额外需求,传递
user_requirements) - 返回结果 → 使用
finish
注意:`user_requirements` 是可选参数。
输入类型判断
- 只有需求描述(无代码)→ 直接
call_op_task_builder - task 代码(包含
class Model(nn.Module))→ 加载references/torch_task_verify.md进行验证 - Kernel 代码需优化(包含
@triton.jit/__global__等)→ 验证 task 代码后加载references/tool-selection.md
基本流程示例
示例 1:用户只有需求描述
示例 2:用户提供 Torch task 代码
示例 3:用户提供 kernel 代码要求优化
参考文档
references/torch_task_verify.md- task 代码验证与补全流程references/tool-selection.md- 子Agent 选择与二次确认流程
Scripts
scripts/check_torch_code.py- 验证 task 代码格式(参数:--stdin --json)
禁止行为
- 不验证 task 代码直接调用子Agent
- 用户未指定生成方式时自动选择
- task 已生成后再调用
call_op_task_builder - 调用子Agent 前不进行二次确认
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 repositoryCheckingakg_agents/python/akg_agents/op/resources/skills/kernel-workflow/SKILL.md
Popularity
- Repository stars
- 259
- Repository forks
- 48
- 7-day trend score
- 28
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/mindspore-ai/akg/kernel-workflow)