Ako4all
TongmingLAIC/AKO4ALL
Drive an agentic loop that iteratively optimizes a GPU kernel for maximum speedup.
PaddlePaddle (飞桨) C++ 算子开发指南。提供从 YAML 配置、InferMeta 函数、Kernel 实现、Python API 封装、单元测试到编译验证的完整算子开发流程指导。在以下场景使用此 skill:(1) 为 Paddle 框架新增 C++ 算子 (2) 修改或调试已有 Paddle 算子 (3) 编写算子的 YAML…
$ npx skills add PaddlePaddle/Paddle --skill paddle-op-dev -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-op-dev --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/PaddlePaddle/Paddle.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/paddle-op-dev .claude/skills/paddle-op-dev && rm -rf skills-srcUse ~/.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/
Install the "paddle-op-dev" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-op-dev into .claude/skills/paddle-op-dev/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-op-dev", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-op-devType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add PaddlePaddle/Paddle --skill paddle-op-dev -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-op-dev --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PaddlePaddle/Paddle.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/paddle-op-dev .agents/skills/paddle-op-dev && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "paddle-op-dev" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-op-dev into .agents/skills/paddle-op-dev/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-op-dev", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PaddlePaddle/Paddle --skill paddle-op-dev -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-op-dev --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PaddlePaddle/Paddle.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/paddle-op-dev .cursor/skills/paddle-op-dev && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "paddle-op-dev" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-op-dev into .cursor/skills/paddle-op-dev/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-op-dev", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/PaddlePaddle/Paddle.git --path .agents/skills/paddle-op-dev--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add PaddlePaddle/Paddle --skill paddle-op-dev -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-op-dev --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PaddlePaddle/Paddle.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/paddle-op-dev .gemini/skills/paddle-op-dev && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "paddle-op-dev" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-op-dev into .gemini/skills/paddle-op-dev/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-op-dev", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install PaddlePaddle/Paddle paddle-op-devInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add PaddlePaddle/Paddle --skill paddle-op-dev -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/PaddlePaddle/Paddle.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/paddle-op-dev .github/skills/paddle-op-dev && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "paddle-op-dev" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-op-dev into .github/skills/paddle-op-dev/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-op-dev", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add PaddlePaddle/Paddle --skill paddle-op-dev -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-op-dev --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/PaddlePaddle/Paddle.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/paddle-op-dev .opencode/skills/paddle-op-dev && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "paddle-op-dev" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-op-dev into .opencode/skills/paddle-op-dev/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-op-dev", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
paddle-op-devPaddlePaddle (飞桨) C++ 算子开发指南。提供从 YAML 配置、InferMeta 函数、Kernel 实现、Python API 封装、单元测试到编译验证的完整算子开发流程指导。在以下场景使用此 skill:(1) 为 Paddle 框架新增 C++ 算子 (2) 修改或调试已有 Paddle 算子 (3) 编写算子的 YAML…
Paddle Op Dev is an agent skill from PaddlePaddle/Paddle. PaddlePaddle (飞桨) C++ 算子开发指南。提供从 YAML 配置、InferMeta 函数、Kernel 实现、Python API 封装、单元测试到编译验证的完整算子开发流程指导。在以下场景使用此 skill:(1) 为 Paddle 框架新增 C++ 算子 (2) 修改或调试已有 Paddle 算子 (3) 编写算子的 YAML 配置、InferMeta、Kernel、Python API 或单元测试 (4) 理解 Paddle 算子开发架构和流程 (5) 编译 Paddle 并验证算子正确性
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/infermeta.md`, `references/kernel-dev.md` and `references/python-api.md`).
It sits in AI & LLM Engineering, covering Deep learning. It works with Python, C++, CUDA and PyTorch. The repository describes itself as: PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署). The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 4793e33. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
pythonpipmakeFrom the folder's file list and the shell code blocks in SKILL.md.
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.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Paddle Op Dev loads about 1.3k tokens when it runs, and up to ~8k if it reads all its reference files. Until then it costs about 68 tokens; SKILL.md has 267 words of instructions outside code blocks.
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.
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.
The full file from PaddlePaddle/Paddle at commit 4793e33, republished under its Apache-2.0 licence (© PaddlePaddle). 267 words, ~1,264 tokens.
.claude/skills/paddle-op-dev/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.Python API (paddle.xxx)
│
▼ (YAML 自动生成的调度代码)
算子 InferMeta ──→ 推导输出 shape/dtype
│
▼
算子 Kernel ──→ 实际计算(CPU/GPU 分别实现)YAML 配置是连接 Python API 与底层 Kernel 的桥梁,框架编译时自动生成调度代码。
新增算子 xxx 需完成以下 6 步:
在 paddle/phi/ops/yaml/ops.yaml 和 backward.yaml 中配置前向和反向算子。
关键配置项:op(名称)、args(输入)、output(输出)、infer_meta(推导函数)、kernel(计算函数)、backward(反向算子)。
快速示例:
# ops.yaml
- op: trace
args: (Tensor x, int offset = 0, int axis1 = 0, int axis2 = 1)
output: Tensor(out)
infer_meta:
func: TraceInferMeta
kernel:
func: trace
backward: trace_grad详细配置规则见 references/yaml-config.md。
在 paddle/phi/infermeta/ 下实现,按输入 Tensor 个数分文件(unary/binary/multiary)。
职责:推导输出 shape 和 dtype,检查输入合法性。
函数签名模式:
void XxxInferMeta(const MetaTensor& x, int attr, MetaTensor* out) {
// PADDLE_ENFORCE_XX 检查输入
out->set_dims(...);
out->set_dtype(x.dtype());
}详细规则和示例见 references/infermeta.md。
在 paddle/phi/kernels/ 下实现。设备无关的放根目录,设备相关的分 cpu/ 和 gpu/ 子目录。
文件结构:
xxx_kernel.h — 前向声明cpu/xxx_kernel.cc / gpu/xxx_kernel.cu — 设备实现xxx_grad_kernel.h + 对应设备实现 — 反向Kernel 函数模式:
template <typename T, typename Context>
void XxxKernel(const Context& dev_ctx, const DenseTensor& x,
int attr, DenseTensor* out) {
dev_ctx.template Alloc<T>(out);
// 计算逻辑
}
// 注册
PD_REGISTER_KERNEL(xxx, CPU, ALL_LAYOUT, phi::XxxKernel, float, double) {}参考 PyTorch 实现:Paddle 算子的计算逻辑与 PyTorch (ATen) 往往相似。实现 Kernel 时可参考 PyTorch 对应算子的实现(位于 aten/src/ATen/native/ 目录),理解核心算法后适配为 Paddle 的 API 风格(DenseTensor、dev_ctx 等)。注意不要直接复制代码,需根据 Paddle 框架规范进行适配。
详细规则和示例见 references/kernel-dev.md。
在 python/paddle/ 对应子目录中实现 Python API。
关键要素:
_C_ops.xxx(args...)LayerHelper + append_op详细规则和示例见 references/python-api.md。
在 test/legacy_test/test_xxx_op.py 中编写,继承 OpTest。
测试要点:
setUp() 设置 op_type、python_api、inputs、attrs、outputstest_check_output(check_pir=True) 验证前向test_check_grad(['X'], 'Out', check_pir=True) 验证反向init_config()详细规则和示例见 references/unit-test.md。
完成代码开发后,需要编译 Paddle 并运行测试来验证算子的正确性。
在 Paddle 的 build 目录下执行增量编译。新增算子通常只需重新编译 phi 相关目标,无需全量编译。
cd build
# 增量编译(推荐使用 ninja,速度更快)
ninja -j$(nproc)
# 或使用 make
make -j$(nproc)如果只修改了 Kernel/InferMeta 等 C++ 文件,可以缩小编译范围:
# 只编译 phi 库(覆盖 Kernel + InferMeta)
ninja phi -j$(nproc)
# 编译完成后重新安装 Python 包
pip install -e . --no-build-isolation
# 或
cd python && pip install -e .# 方式 1:直接运行测试文件
python test/legacy_test/test_xxx_op.py
# 方式 2:使用 pytest(支持更灵活的筛选)
python -m pytest test/legacy_test/test_xxx_op.py -v
# 方式 3:通过 ctest 运行(在 build 目录下)
cd build && ctest -R test_xxx_op -Vtest_check_output 通过,算子输出与 NumPy 参考实现一致test_check_grad 通过,梯度通过数值微分法校验check_pir=True 下测试通过GPU 算子出现 CUDA 错误时,使用以下环境变量辅助定位:
# 启用 CUDA 同步错误检查 + 系统内存分配器
FLAGS_check_cuda_error=1 FLAGS_use_system_allocator=1 python test/legacy_test/test_xxx_op.py
# 强制 CUDA kernel 同步执行,定位出错的 kernel
CUDA_LAUNCH_BLOCKING=1 python test/legacy_test/test_xxx_op.py常见问题:
CUDA error(9) — kernel 配置无效,检查 grid/block size 是否为 0(通常由空 Tensor 触发)CUDA error(700) — 非法内存访问,检查数组越界或空指针CUDA error(2) — 显存不足,减小测试数据规模或检查是否有显存泄漏| 现象 | 排查方向 |
|---|---|
找不到 XxxInferMeta 符号 | 检查 InferMeta 函数是否在 .h 中声明、YAML 中函数名是否拼写一致 |
找不到 xxx kernel | 检查 PD_REGISTER_KERNEL 注册名是否与 YAML kernel:func 一致 |
Python 端 _C_ops.xxx 不存在 | 确认 YAML 配置正确且已重新编译,pip install -e . 已执行 |
| 参数数量不匹配 | 对照 YAML args 与 InferMeta/Kernel 函数签名的参数列表 |
| 内容 | 文件位置 |
|---|---|
| 前向 YAML | paddle/phi/ops/yaml/ops.yaml |
| 反向 YAML | paddle/phi/ops/yaml/backward.yaml |
| InferMeta | paddle/phi/infermeta/{unary,binary,multiary}.{h,cc} |
| Kernel 头文件 | paddle/phi/kernels/xxx_kernel.h |
| CPU Kernel | paddle/phi/kernels/cpu/xxx_kernel.cc |
| GPU Kernel | paddle/phi/kernels/gpu/xxx_kernel.cu |
| Python API | python/paddle/ 对应子目录 |
| 单元测试 | test/legacy_test/test_xxx_op.py |
inplace: (x -> out)© PaddlePaddle, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (references) in .agents/skills/paddle-op-dev of PaddlePaddle/Paddle.
Open the folder on GitHubat commit 4793e33
Paddle Op Dev 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Paddle Op Dev this skillPaddlePaddle/Paddle | 24k | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Ako4allTongmingLAIC/AKO4ALL | 369 | — | ~4k | Automated safety check: Pass | MIT | |
| ExecuTorch Build Guidepytorch/executorch | 5.1k | — | ~2.3k | Automated safety check: Notes | Custom licence | |
| Embedded AI Deploymentmatlab/agent-skills-playground | 181 | 1 repos | ~3.4k | Automated safety check: Pass | Custom licence | |
| Fix Envevo-design/proto-tools | 135 | — | ~2.5k | Automated safety check: Notes | MIT | |
| Migrate Workflow Ec2 To Osdcpytorch/test-infra | 113 | — | ~2k | Automated safety check: Pass | Custom licence |
TongmingLAIC/AKO4ALL
Drive an agentic loop that iteratively optimizes a GPU kernel for maximum speedup.
pytorch/executorch
Builds ExecuTorch from source: the Python package, C++ runtime, model runners, Android and iOS cross-compilation and backend-specific builds, with environment checks.
matlab/agent-skills-playground
Deploy AI models to embedded hardware using MathWorks tools (MATLAB, Simulink, Embedded Coder).
evo-design/proto-tools
Fixes tool environment setup failures in proto-tools, either just for the current machine (eject the tool's standalone dir, patch it, and point PROTO<TOOLKITSTANDALONEDIR at it; works for any…
pytorch/test-infra
Step-by-step playbook for migrating a pytorch/pytorch .github/workflows/.yml from EC2 to OSDC (ARC) runners — covers both dial-up and 100% opt-in patterns, with the inputs that must be plumbed…
intel/torch-xpu-ops
Convert PyTorch ATDISPATCH macros to ATDISPATCHV2 format in ATen C++ code.
PaddlePaddle/Paddle
A skill your agent uses when needing to compile, rebuild, or install Paddle from source after code changes.
PaddlePaddle/Paddle
A skill your agent uses when working with Paddle 3.0 compiler full pipeline: SOT (Symbolic Opcode Translator) for bytecode-level dy2st graph capture, PIR (Paddle IR) for SSA-based intermediate…
PaddlePaddle/Paddle
A skill your agent uses when working with Paddle's distributed training system: understanding parallelism strategies (DP, ZeRO, TP, PP, SP), semi-automatic parallel with ProcessMesh + shardtensor…
PaddlePaddle/Paddle
A skill your agent uses when navigating Paddle eager-mode (dynamic graph) source code, tracing forward/backward execution, debugging autograd issues, understanding PyLayer, or investigating…
PaddlePaddle/Paddle
A skill your agent uses when working with Paddle's PHI kernel system: registering new kernels, debugging kernel selection/dispatch, understanding code auto-generation from YAML, or implementing…
PaddlePaddle/Paddle
在 Paddle 代码库中定位问题并输出高质量调试报告的专用技能。当遇到以下场景时优先使用:(1) Paddle 框架 bug 调试,(2) 算子实现问题排查,(3) 训练脚本异常诊断,(4) 分布式训练故障定位,(5) CUDA/GPU 相关错误处理,(6) 需要生成结构化调试报告。
Categories
PaddlePaddle (飞桨) C++ 算子开发指南。提供从 YAML 配置、InferMeta 函数、Kernel 实现、Python API 封装、单元测试到编译验证的完整算子开发流程指导。在以下场景使用此 skill:(1) 为 Paddle 框架新增 C++ 算子 (2) 修改或调试已有 Paddle 算子 (3) 编写算子的 YAML…. Paddle Op Dev is an agent skill from PaddlePaddle/Paddle.
Paddle Op Dev fits situations like: tasks that involve Deep learning.
Run `npx skills add PaddlePaddle/Paddle --skill paddle-op-dev -a claude-code`. Or copy the skill folder (.agents/skills/paddle-op-dev in PaddlePaddle/Paddle) into .claude/skills/paddle-op-dev in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PaddlePaddle/Paddle --skill paddle-op-dev -a codex`. Or copy the skill folder (.agents/skills/paddle-op-dev in PaddlePaddle/Paddle) into .agents/skills/paddle-op-dev in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PaddlePaddle/Paddle --skill paddle-op-dev -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/paddle-op-dev, .gemini/skills/paddle-op-dev, .github/skills/paddle-op-dev and .opencode/skills/paddle-op-dev in your project.
Going by SKILL.md and its folder, Paddle Op Dev needs the command-line tools its instructions call (python, pip and make). Our summary lists: Python 3.
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.
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.
Paddle Op Dev is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.1k 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 6.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Paddle Op Dev: Ako4all (TongmingLAIC/AKO4ALL, 369 stars), ExecuTorch Build Guide (pytorch/executorch, 5.1k stars), Embedded AI Deployment (matlab/agent-skills-playground, 181 stars) and Fix Env (evo-design/proto-tools, 135 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
PaddlePaddle (a GitHub organization) maintains it in PaddlePaddle/Paddle, which has 24,120 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on September 30, 2026.
Source: PaddlePaddle/Paddle on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.