Agent skill

External Gitcode Ascend Ascendc Operator Code Gen

by ascend-ai-coding in ascend-ai-coding/awesome-ascend-skills

根据设计文档生成 AscendC 算子完整代码实现并完成框架适配。TRIGGER when: 设计文档已完成,需要生成 ophost/opkernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、ophost、opkernel、tiling、kernel、框架适配、算子注册。

No licenceAuto-check passedAI & LLM Engineering

Install External Gitcode Ascend Ascendc Operator Code Gen

skills CLI
$ npx skills add ascend-ai-coding/awesome-ascend-skills --skill external-gitcode-ascend-ascendc-operator-code-gen -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ascend-ai-coding/awesome-ascend-skills external-gitcode-ascend-ascendc-operator-code-gen --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ascend-ai-coding/awesome-ascend-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/external/gitcode-ascend/ascendc-operator-code-gen .claude/skills/external-gitcode-ascend-ascendc-operator-code-gen && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
external-gitcode-ascend-ascendc-operator-code-gen
GitHub stars
174
Token cost
~2k tokens
SKILL.md length
487 words
Files
21 (incl. references)
Skills in repo
69
Repo updated
First seen
Licence
None found

At a glance

根据设计文档生成 AscendC 算子完整代码实现并完成框架适配。TRIGGER when: 设计文档已完成,需要生成 ophost/opkernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、ophost、opkernel、tiling、kernel、框架适配、算子注册。

  • Works in 4 steps: 读取选中的 op_host 和 op_kernel 模板的完整内容 → 将内容写入… → 替换所有占位符(, 等) → …
  • : 设计文档已完成,需要生成 ophost/opkernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、ophost、opkernel、tiling、kernel、框架适配、算子注册
  • SKILL.md covers 工作流程总览, 阶段 1: 加载参考文档, 阶段 2: 读取设计文档 and 阶段 3: 选择模板并生成代码, plus 4 more sections
  • Calls bash, pip and python

What it does

External Gitcode Ascend Ascendc Operator Code Gen is an agent skill from ascend-ai-coding/awesome-ascend-skills. 根据设计文档生成 AscendC 算子完整代码实现并完成框架适配。TRIGGER when: 设计文档已完成,需要生成 ophost/opkernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、ophost、opkernel、tiling、kernel、框架适配、算子注册。

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 22 other files, including reference files (for example `references/GUIDE.md`, `references/basic-data-structures-api.md` and `references/data-copy-api.md`).

It sits in AI & LLM Engineering, covering Deep learning. It works with PyTorch and C++. The repository describes itself as: A comprehensive knowledge base for Huawei Ascend NPU development, structured as distributed Agent Skills. https://ascend-ai-coding.github.io/awesome-ascend-skills/.

When your agent uses it

  • : 设计文档已完成,需要生成 ophost/opkernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、ophost、opkernel、tiling、kernel、框架适配、算子注册
  • Tasks that involve Deep learning

Example prompts

  • “/external-gitcode-ascend-ascendc-operator-code-gen”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 读取选中的 op_host 和 op_kernel 模板的完整内容
  2. 将内容写入 ascend-kernel/csrc/ops//op_host/.cpp 和 op_kernel/.cpp(覆盖骨架占位文件)
  3. 替换所有占位符(, 等)
  4. 根据设计文档修改

What it can do on your machine

Read from SKILL.md and the folder at commit 62a4ecb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bash
    • pip
    • python
    • pytest

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

External Gitcode Ascend Ascendc Operator Code Gen loads about 2k tokens when it runs, and up to ~18k if it reads all its reference files. Until then it costs about 51 tokens; SKILL.md has 487 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~18k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 487 words (~1,966 tokens).

“根据设计文档生成 op_host + op_kernel 代码,注册到 PyTorch 框架,调用 ascendc-operator-compile-debug skill 完成编译安装和精度测试。”

— opening of SKILL.md by ascend-ai-coding
name
external-gitcode-ascend-ascendc-operator-code-gen
original-name
ascendc-operator-code-gen
synced-from
https://gitcode.com/Ascend/agent-skills
synced-date
2026-05-26
synced-commit
1f7666e7768a0ceb21bb1d40ce4b5179fcb6f1d6
license
UNKNOWN

Read the full SKILL.md on GitHub

Files

SKILL.md and 20 other files (references) in external/gitcode-ascend/ascendc-operator-code-gen of ascend-ai-coding/awesome-ascend-skills.

  • SKILL.md
  • references/GUIDE.md
  • references/basic-data-structures-api.md
  • references/data-copy-api.md
  • references/kernel-constraints.md
  • references/resource-management-api.md
  • references/sort_topk-api.md
  • references/sync-control-api.md
  • references/vector-compute-api.md
  • templates/elementwise_op_host.cpp
  • templates/elementwise_op_kernel.cpp
  • templates/index_op_host.cpp
  • templates/index_op_kernel.cpp
  • templates/index_op_per_elem_host.cpp
  • templates/index_op_per_elem_kernel.cpp
  • templates/pool_ndhwc_op_host.cpp
  • templates/pool_ndhwc_op_kernel.cpp
  • templates/row_op_host.cpp
  • templates/row_op_kernel.cpp
  • … and 2 more

Open the folder on GitHubat commit 62a4ecb

Compare with similar skills

External Gitcode Ascend Ascendc Operator Code Gen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

External Gitcode Ascend Ascendc Operator Code Gen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
External Gitcode Ascend Ascendc Operator Code Gen this skillascend-ai-coding/awesome-ascend-skills174—~2kAutomated safety check: PassNone
Ako4allTongmingLAIC/AKO4ALL369—~4kAutomated safety check: PassMIT
Paddle Op DevPaddlePaddle/Paddle24k—~1.3kAutomated safety check: PassApache-2.0
Embedded AI Deploymentmatlab/agent-skills-playground1811 repos~3.4kAutomated safety check: PassCustom licence
Qualcomm QNN Backend Developmentpytorch/executorch5.1k—~1.8kAutomated safety check: PassCustom licence
Paddle Cross Ecosystem Custom OpPaddlePaddle/Paddle24k—~883Automated safety check: PassApache-2.0

Similar skills

  • Ako4all

    TongmingLAIC/AKO4ALL

    Drive an agentic loop that iteratively optimizes a GPU kernel for maximum speedup.

    369 GitHub stars~4k tokensUpdated 23 days ago
    AI & LLM EngineeringAuto-check passed
  • Paddle Op Dev

    PaddlePaddle/Paddle

    PaddlePaddle (飞桨) C++ 算子开发指南。提供从 YAML 配置、InferMeta 函数、Kernel 实现、Python API 封装、单元测试到编译验证的完整算子开发流程指导。在以下场景使用此 skill:(1) 为 Paddle 框架新增 C++ 算子 (2) 修改或调试已有 Paddle 算子 (3) 编写算子的 YAML…

    24k GitHub stars~1.3k tokensUpdated 8 days ago
    AI & LLM EngineeringAuto-check passed
  • Embedded AI Deployment

    matlab/agent-skills-playground

    Deploy AI models to embedded hardware using MathWorks tools (MATLAB, Simulink, Embedded Coder).

    181 GitHub starsUsed in 1 repo~3.4k tokens
    AI & LLM EngineeringAuto-check passed
  • Helps build, test and extend the Qualcomm AI Engine Direct (QNN) backend in ExecuTorch, with routes for new ops, model export, Buck-vs-CMake parity fixes and per-layer accuracy debugging.

    5.1k GitHub stars~1.8k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • 将原生 PyTorch 自定义算子库、Torch extension、生态库(TorchCodec/FlashInfer/DeepEP 等)以及 Kernel DSL 生态(Triton/TileLang/TVM FFI 等)以最小修改方式接入 PaddlePaddle。遇到以下场景务必使用:迁移外部算子库到 Paddle;分析 PFCCLab fork 与上游的兼容差异;处理…

    24k GitHub stars~883 tokensUpdated 8 days ago
    AI & LLM EngineeringAuto-check passed
  • At Dispatch V2

    intel/torch-xpu-ops

    Official

    Convert PyTorch ATDISPATCH macros to ATDISPATCHV2 format in ATen C++ code.

    115 GitHub starsUsed in 3 repos~2.2k tokens
    AI & LLM EngineeringAuto-check passed

More from ascend-ai-coding/awesome-ascend-skills

All 69 skills in this repo
  • Ascend Dmi

    ascend-ai-coding/awesome-ascend-skills

    当用户需要对华为昇腾 NPU 进行硬件层面的管理、测试或诊断时使用此 skill。典型场景: - 查看 NPU 卡的状态、温度、利用率 - 测试内存带宽(h2d/d2h/d2d/p2p) - 跑算力/功耗基准测试(TFLOPS、TOPS) - 诊断 NPU 硬件故障或做健康检查 - 对 NPU 卡做压力测试(aicore、内存) - 复位/恢复卡住或异常的 NPU 卡 典型用户问题(即使不提…

    174 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Ascendc

    ascend-ai-coding/awesome-ascend-skills

    End-to-end AscendC custom operator development for Ascend NPU in an ascend-kernel (csrc/ops + build.sh + torchnpu PyTorch custom op) project.

    174 GitHub stars~3.5k tokensUpdated yesterday
    Auto-check passed
  • Atc Model Converter

    ascend-ai-coding/awesome-ascend-skills

    Complete toolkit for Huawei Ascend NPU model conversion and end-to-end inference adaptation.

    174 GitHub stars~4.6k tokensUpdated yesterday
    Auto-check passed
  • External Cannbot Ops Pypto Op Develop

    ascend-ai-coding/awesome-ascend-skills

    当需要编写 PyPTO 算子实现时使用此 skill。基于需求规格、设计方案和参考实现,生成完整可运行的 PyPTO 算子实现与配套测试、文档。Triggers: 实现算子、写 kernel、编写实现、写 impl、算子编码、开始编码、code the op、写 test、生成测试、写实现代码、op develop、kernel 实现。

    174 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • External Gitcode Ascend Megatron Change Analyzer

    ascend-ai-coding/awesome-ascend-skills

    Analyze official Megatron-LM commits, PRs, and branch change sets to identify feature evolution, candidate breaking changes, and migration-relevant events.

    174 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • External Gitcode Ascend Megatron Commit Tracker

    ascend-ai-coding/awesome-ascend-skills

    Track and normalize change requests against the official Megatron-LM repository by branch, PR, commit, commit range, or time window.

    174 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about External Gitcode Ascend Ascendc Operator Code Gen

What does External Gitcode Ascend Ascendc Operator Code Gen do?

根据设计文档生成 AscendC 算子完整代码实现并完成框架适配。TRIGGER when: 设计文档已完成,需要生成 ophost/opkernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、ophost、opkernel、tiling、kernel、框架适配、算子注册。. External Gitcode Ascend Ascendc Operator Code Gen is an agent skill from ascend-ai-coding/awesome-ascend-skills.

When should I use External Gitcode Ascend Ascendc Operator Code Gen?

External Gitcode Ascend Ascendc Operator Code Gen fits situations like: : 设计文档已完成,需要生成 ophost/opkernel 代码、注册到 PyTorch 框架、编译测试。关键词:代码生成、ophost、opkernel、tiling、kernel、框架适配、算子注册; tasks that involve Deep learning.

How do I install External Gitcode Ascend Ascendc Operator Code Gen in Claude Code?

Run `npx skills add ascend-ai-coding/awesome-ascend-skills --skill external-gitcode-ascend-ascendc-operator-code-gen -a claude-code`. Or copy the skill folder (external/gitcode-ascend/ascendc-operator-code-gen in ascend-ai-coding/awesome-ascend-skills) into .claude/skills/external-gitcode-ascend-ascendc-operator-code-gen in your project. Claude Code loads it when a task matches its description.

How do I install External Gitcode Ascend Ascendc Operator Code Gen in Codex?

Run `npx skills add ascend-ai-coding/awesome-ascend-skills --skill external-gitcode-ascend-ascendc-operator-code-gen -a codex`. Or copy the skill folder (external/gitcode-ascend/ascendc-operator-code-gen in ascend-ai-coding/awesome-ascend-skills) into .agents/skills/external-gitcode-ascend-ascendc-operator-code-gen in your project. Codex loads it when a task matches its description.

Can I use External Gitcode Ascend Ascendc Operator Code Gen in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ascend-ai-coding/awesome-ascend-skills --skill external-gitcode-ascend-ascendc-operator-code-gen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/external-gitcode-ascend-ascendc-operator-code-gen, .gemini/skills/external-gitcode-ascend-ascendc-operator-code-gen, .github/skills/external-gitcode-ascend-ascendc-operator-code-gen and .opencode/skills/external-gitcode-ascend-ascendc-operator-code-gen in your project.

What does External Gitcode Ascend Ascendc Operator Code Gen need to run?

Going by SKILL.md and its folder, External Gitcode Ascend Ascendc Operator Code Gen needs the command-line tools its instructions call (bash, pip, python and pytest). Our summary lists: Python 3.

Does External Gitcode Ascend Ascendc Operator Code Gen access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is External Gitcode Ascend Ascendc Operator Code Gen safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does External Gitcode Ascend Ascendc Operator Code Gen use?

No licence was found for External Gitcode Ascend Ascendc Operator Code Gen or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does External Gitcode Ascend Ascendc Operator Code Gen use?

About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 16k tokens, read only when the agent opens those files.

What are the alternatives to External Gitcode Ascend Ascendc Operator Code Gen?

Skills that share tags, products or a category with External Gitcode Ascend Ascendc Operator Code Gen: Ako4all (TongmingLAIC/AKO4ALL, 369 stars), Paddle Op Dev (PaddlePaddle/Paddle, 24k stars), Embedded AI Deployment (matlab/agent-skills-playground, 181 stars) and Qualcomm QNN Backend Development (pytorch/executorch, 5.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains External Gitcode Ascend Ascendc Operator Code Gen?

ascend-ai-coding (a GitHub organization) maintains it in ascend-ai-coding/awesome-ascend-skills, which has 174 GitHub stars. The repository holds 69 skills in this directory. The repository was last updated on October 7, 2026.

Source: ascend-ai-coding/awesome-ascend-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.