cake
v0.1.1CAKE2 - Collaborative Ascend Kernel Evolution. AI-powered AscendC operator generation for Ascend NPU.
By CANNBotLicense: CANN-2.04 GitHub starsUpdated last week
Directory evidence
- Runtimes
- Claude Code
- Parsed components
- 19 skill or MCP entries
- Source updated
- Sep 16, 2026
- Manifest status
- Canonical path parsed
The directory validates manifest shape and source location. It does not execute the plugin or provide a security endorsement. Review the indexing methodology →
Install cake for Claude Code
claude plugin marketplace add IchenDEV/agent-plugin-mkt
claude plugin marketplace update agent-plugin-marketplace
claude plugin install cake@agent-plugin-marketplacePaste and run these commands in a terminal with Claude Code. They add and refresh the PluginsMP catalog, then install this plugin.
The installer fetches third-party code from the source repository shown on this page. This directory validates manifest structure and source location, but does not perform a security audit; review the manifest, components, and source before installing.
Get the source manually
git clone https://github.com/hicann/cannbot-skillsClone the source repository, then follow its setup instructions to add the plugin to a compatible client. The plugin root is plugins-community/collaborative-agent-kernel-evolution/.
Plugin files
├── .claude-plugin/plugin.json├── skills/ascend-call-generation/SKILL.md├── skills/ascendc-evaluation/SKILL.md├── skills/ascendc-op-debug/SKILL.md├── skills/cake-code-review/SKILL.md├── skills/cake-docs-search/SKILL.md├── skills/cake-evo/SKILL.md├── skills/cake-review/SKILL.md├── skills/code-performance-advisor/SKILL.md├── skills/dsl-baseline-generation/SKILL.md├── skills/dsl-lowering/SKILL.md├── skills/dsl-optimization/SKILL.md├── skills/functional-conversion/SKILL.md├── skills/git-version-management/SKILL.md├── skills/op-dashboard/SKILL.md├── skills/op-desc-generation/SKILL.md├── skills/reference-generation/SKILL.md├── skills/remote-cann-development/SKILL.md├── skills/skill-trace/SKILL.md└── skills/task-progress/SKILL.md
Included Skills19
Generate AscendC project scaffold (pybind, CMake, host code, kernel skeleton) from functional PyTorch for pure Vector operators. Use after functional-conversion, before dsl-baseline-generation.
Multi-case operator evaluation with precision testing and performance profiling, use when you want to evaluate the performance and correctness of your AscendC operator implementation.
Unified AscendC operator runtime debug skill. Diagnose precision errors, runtime crashes, hangs, and multicore inconsistencies using a hypothesis-driven protocol with 3-layer evidence (code review → log analysis → tools). Covers hypothesis patterns for Vector operators (cache line conflict, workspace sizing, cross-tile accumulation, einsum semantics, TBuf compiler merge, etc.) plus msSanitizer, msDebug, and msaicerr tool escalation. MUST be invoked before any fix attempt when operator produces wrong output, crashes, hangs, or shows non-deterministic multicore results. Do NOT self-fix without running this skill first. 触发:算子产生错误输出、崩溃、挂死或多核结果不一致时。
Review AscendC kernel code for structural red-line violations (P0–P3) and algorithm correctness. Use after dsl-lowering, before ascendc-evaluation. Outputs rectification report; guides fix → recompile → unit test → system test.
Ascend C 开发资源检索技能。通过本地 API 文档索引、示例代码映射和在线文档兜底搜索定位开发资料,优先查本地、缺失时再查在线。当需要查询 API 用法、示例代码、兼容性信息、官方资料入口或定位文档来源时使用。本技能(含 scripts/ 脚本)源自 cannbot-skills 仓库(gitcode.com/cann/cannbot-skills)的 ops/ascendc-docs-search,重命名而来,为自研代码。
Evolutionary AscendC operator generation — spawn parallel variants with different optimization strategies and select the best. Use as the top-level orchestrator for multi-round kernel optimization. 触发:需要多轮并行进化以优化内核性能时。
Comprehensive review of the entire kernel generation process after all stages complete. Analyzes problems encountered during generation, compile/environment issues, and skill/agent document quality. Produces a REVIEW.md in the kernel output directory. Use when a formal review of the kernel generation process is needed, or when manually triggered by the user.
Diagnose AscendC kernel performance bottlenecks from profiling data (msprof). Matches expert rules first, falls back to LLM analysis. Use when speedup is below target after correctness passes.
Generate initial AscendDSL code (class structure, compute, tiling) from functional PyTorch for pure Vector operators. Use after ascend-call-generation creates the project scaffold.
Translate the operator DSL into AscendC code through multiple passes. Also used when diagnosing compilation errors.
Iteratively optimize AscendDSL code for performance — tiling tuning, vectorization, pipeline adjustments. Use after evaluation shows correctness passes but speedup is below target.
Convert PyTorch nn.Module reference implementation to stateless functional API (module_fn + get_inputs). Use after reference-generation, before ascend-call-generation.
Git 版本管理 - 算子工作区初始化、逐阶段提交、worktree 并行隔离与审计追踪
Generate self-contained interactive HTML dashboard (4 tabs: algo flow, UB tiling, precision, performance) from an AscendC operator output directory. Use when asked to visualize or report operator results. Works for both precision-pass and precision-fail states.
Generate operator description JSON (shapes, dtypes, attributes) from API description or user specification. First step in the cake agent pipeline.
Generate reference PyTorch implementation (nn.Module with get_init_inputs/get_random_inputs) from operator description JSON. Faithfully reproduces the Golden definition when provided. Use after op-desc-generation.
Unified remote NPU development — sync, exec, and test across multiple NPU backends (docker containers, hdspace cloud) via a single Python CLI. Use when: (1) syncing code to any remote NPU server (2) executing build/test commands on remote NPU (3) probing NPU platform info (4) managing multiple remote targets (A2/910B + A3/910C) (5) setting up hdspace tunnel or Docker SSH connections (6) troubleshooting remote compile/run issues (507033, ctypes, rsync)
Track skill invocations, durations, and outcomes during operator generation. Records which skills were called, their inputs/outputs, and correlates with final results. MUST use when: (1) Starting any skill step, (2) Completing any skill step, (3) Final summary to correlate skills with outcomes.
Track and manage task progress via a PROGRESS.md. MUST use when: (1) Starting a new task or operator workflow, (2) Entering or completing any step/stage/substage, (3) After context compaction or reset — read PROGRESS.md first to recover state. Also call when the user asks about current progress or status.
Plugin manifests1
{
"name": "cake",
"description": "CAKE2 - Collaborative Ascend Kernel Evolution. AI-powered AscendC operator generation for Ascend NPU.",
"version": "0.1.1",
"author": {
"name": "CANNBot"
},
"homepage": "https://gitcode.com/cann/cannbot-skills",
"repository": "https://gitcode.com/cann/cannbot-skills",
"license": "CANN-2.0",
"agents": [
"./agents/cake.md",
"./agents/cake-evo.md",
"./agents/cake-partial.md"
]
}For maintainers
If you maintain this plugin, link to this source-backed listing from your README so users can review its manifest and indexed components.
[cake on Agent Plugins Marketplace](https://pluginsmp.com/plugins/cake)