Ako4all
TongmingLAIC/AKO4ALL
Drive an agentic loop that iteratively optimizes a GPU kernel for maximum speedup.
在 Paddle 代码库中定位问题并输出高质量调试报告的专用技能。当遇到以下场景时优先使用:(1) Paddle 框架 bug 调试,(2) 算子实现问题排查,(3) 训练脚本异常诊断,(4) 分布式训练故障定位,(5) CUDA/GPU 相关错误处理,(6) 需要生成结构化调试报告。
$ npx skills add PaddlePaddle/Paddle --skill paddle-debug -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-debug --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-debug .claude/skills/paddle-debug && 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-debug" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-debug into .claude/skills/paddle-debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-debug", 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-debugType 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-debug -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-debug --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-debug .agents/skills/paddle-debug && 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-debug" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-debug into .agents/skills/paddle-debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-debug", 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-debug -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-debug --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-debug .cursor/skills/paddle-debug && 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-debug" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-debug into .cursor/skills/paddle-debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-debug", 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-debug--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-debug -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install PaddlePaddle/Paddle paddle-debug --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-debug .gemini/skills/paddle-debug && 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-debug" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-debug into .gemini/skills/paddle-debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-debug", 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-debugInstalls 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-debug -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-debug .github/skills/paddle-debug && 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-debug" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-debug into .github/skills/paddle-debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-debug", 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-debug -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-debug --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-debug .opencode/skills/paddle-debug && 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-debug" agent skill from https://github.com/PaddlePaddle/Paddle/tree/develop/.agents/skills/paddle-debug into .opencode/skills/paddle-debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "paddle-debug", 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-debug在 Paddle 代码库中定位问题并输出高质量调试报告的专用技能。当遇到以下场景时优先使用:(1) Paddle 框架 bug 调试,(2) 算子实现问题排查,(3) 训练脚本异常诊断,(4) 分布式训练故障定位,(5) CUDA/GPU 相关错误处理,(6) 需要生成结构化调试报告。
Paddle Debug is an agent skill from PaddlePaddle/Paddle. 在 Paddle 代码库中定位问题并输出高质量调试报告的专用技能。当遇到以下场景时优先使用:(1) Paddle 框架 bug 调试,(2) 算子实现问题排查,(3) 训练脚本异常诊断,(4) 分布式训练故障定位,(5) CUDA/GPU 相关错误处理,(6) 需要生成结构化调试报告。
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/case-studies.md` and `references/cuda-debug.md`).
It sits in AI & LLM Engineering, covering Deep learning. It works with CUDA, Git and Python. The repository describes itself as: PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署). The licence is Apache-2.0.
4 steps, taken from the first numbered list in SKILL.md.
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:
pythongitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, 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 Debug loads about 1.4k tokens when it runs, and up to ~8.6k if it reads all its reference files. Until then it costs about 39 tokens; SKILL.md has 364 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). 364 words, ~1,398 tokens.
.claude/skills/paddle-debug/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.调试遵循以下步骤:
用简洁的自然语言说明:
先确认 bug 能被稳定复现。若无法复现:
抽取独立的 Python 脚本承载问题:
numpy / random / paddle.seed 等)目标:一条命令即可复现 python reproduce_xxx.py。
阅读报错栈和相关代码时,先列出多个可能原因假设(数据异常、shape 错误、数值不稳定、环境不一致、算子实现问题等),不要立刻改代码。
围绕假设在关键路径上加入观测点:
| 观测方式 | 用途 |
|---|---|
| 打印与断言 | 在关键算子调用前后,打印 Tensor 的 shape、dtype、device、数值范围(min/max/mean) |
| 对比法 | 对同一逻辑分别在 CPU / GPU 上运行,比较中间结果差异 |
| 版本与环境信息 | 记录 paddle.__version__、CUDA/CUDNN 版本、驱动信息等 |
每完成一次带观测点的复现:
将调试日志保存到 .paddle-agent/debug-logs/ 目录。
基于已有观测和对比结果,先完成问题分析报告:
# [问题标题]
## 复现方式
- 命令:
- 环境:
- 最小脚本路径:
## 现象描述
[错误信息或异常行为]
## 根因分析
[配置 / 数据 / 框架 / 算子 / 环境中的哪一处有问题]
## 关键证据
[日志片段、对比结果、重要观测点输出]报告存放在 .paddle-agent/debug-analysis/ 目录,没有该目录请创建。
归因时考虑以下维度:
只有在分析结论较为充分时,才进入最小修复阶段:
当判断问题可能由近期提交引入时:
git bisect 对可疑提交范围做二分定位对已定位的问题:
.paddle-agent/debug-analysis/详细的 CUDA 调试技巧:见 references/cuda-debug.md
快速参考:
# 启用错误检查环境变量复现问题
export PYTHONPATH=$(pwd)/Paddle/build/python
FLAGS_check_cuda_error=1 FLAGS_use_system_allocator=1 python reproduce.py关键点:
FLAGS_check_cuda_error=1 让错误立即暴露PADDLE_ENFORCE_GPU_SUCCESS 不会调用 cudaGetLastError(),在错误路径上需手动清除cudaErrorInitializationError(3)——详见 references/cuda-debug.md 中的 CUDA Fork Safety 章节.h 后需重新编译所有引用它的 .cu,并重新链接 .socudaEventSynchronize、cudaStreamSynchronize 等,忽略返回值不仅丢失错误信息,还会导致 CUDA runtime 中残留 sticky errorPADDLE_ENFORCE_GPU_SUCCESS 抛出异常之前,手动调用 cudaGetLastError() 清除残留错误,否则 Python try/except 捕获异常后 CUDA 状态仍被污染cudaErrorInitializationError(3)num_workers > 0 fork 子进程;子进程继承了父进程中 GPU tensor 的引用,GC 回收时触发 cudaFreecudaGetDevice() 返回 cudaErrorInitializationError(3)、cudaErrorNoDevice(100)、cudaErrorInsufficientDriver(35) 均表示 CUDA 不可用cudaFree 是安全的,因为 fork 后子进程中的 GPU 内存不属于该进程,进程退出时由 OS/driver 回收修改 kernel 头文件后的增量编译:
cd build
# 编译修改的 kernel
ninja paddle/phi/CMakeFiles/phi_gpu.dir/kernels/gpu/<kernel_name>.cu.o -j512
# 重新链接 phi_gpu
ninja phi_gpu -j512
# 重新链接 libpaddle.so
ninja paddle/fluid/pybind/libpaddle.so -j512
# 如果 Python 库未自动更新,手动复制
cp paddle/fluid/pybind/libpaddle.so python/paddle/base/libpaddle.soPaddle 构建产物存在两套路径,增量编译后 Python 加载的可能仍是旧版本:
| 构建产物路径 | Python 加载路径 | 说明 |
|---|---|---|
build/paddle/phi/libphi_core.so | build/python/paddle/libs/libphi_core.so | phi core 库 |
build/paddle/phi/libphi_gpu.so | build/python/paddle/libs/libphi_gpu.so | phi GPU 库 |
build/paddle/fluid/pybind/libpaddle.so | build/python/paddle/base/libpaddle.so | 主绑定库 |
增量编译后务必检查:
# 确认 Python 实际加载了哪个 .so
python -c "import paddle; import os; print(os.path.realpath(paddle.__file__))"
# 比较构建时间戳
stat build/paddle/phi/libphi_core.so
stat build/python/paddle/libs/libphi_core.so
# 如果时间戳不一致,手动同步
cp build/paddle/phi/libphi_core.so build/python/paddle/libs/libphi_core.so
cp build/paddle/phi/libphi_gpu.so build/python/paddle/libs/libphi_gpu.so典型症状:修改了源码并重新编译,但运行时错误信息中的行号不变——这说明 Python 加载的仍是旧 .so。
当崩溃发生在公共底层函数(如 GetCurrentDeviceId、cudaFree)时,需穷举所有调用路径来定位真正的入口:
FLAGS_use_system_allocator)确定实际使用的分配器链路DenseTensor::~DenseTensor -> shared_ptr<Allocation> -> AllocationDeleter -> 具体分配器的 FreeImplbacktrace_symbols_fd 打印调用栈,确认实际触发路径PADDLE_ENFORCE_GPU_SUCCESS 是宏,行号由 __LINE__ 决定;FreeImpl 是虚函数,实际调用取决于运行时类型见 references/case-studies.md 了解实际调试案例。
© 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 2 other files (references) in .agents/skills/paddle-debug of PaddlePaddle/Paddle.
Open the folder on GitHubat commit 4793e33
Paddle Debug 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 Debug this skillPaddlePaddle/Paddle | 24k | — | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Ako4allTongmingLAIC/AKO4ALL | 369 | — | ~4k | Automated safety check: Pass | MIT | |
| 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 | |
| Hyperpod Version Checkerawslabs/agent-plugins | 915 | 1 repos | ~910 | Automated safety check: Pass | Apache-2.0 | |
| Quark Env Preflightamd/Quark | 181 | — | ~1.4k | Automated safety check: Pass | MIT |
TongmingLAIC/AKO4ALL
Drive an agentic loop that iteratively optimizes a GPU kernel for maximum speedup.
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…
awslabs/agent-plugins
Check and compare software component versions on SageMaker HyperPod cluster nodes - NVIDIA drivers, CUDA toolkit, cuDNN, NCCL, EFA, AWS OFI NCCL, GDRCopy, MPI, Neuron SDK (Trainium/Inferentia)…
amd/Quark
Collect and normalize environment facts (OS, Python, GPU, CUDA/ROCm, container state) before Quark installation or PTQ planning.
amd/skills
Benchmarks LLM inference and drives GPU kernel optimization with Magpie.
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
PaddlePaddle (飞桨) C++ 算子开发指南。提供从 YAML 配置、InferMeta 函数、Kernel 实现、Python API 封装、单元测试到编译验证的完整算子开发流程指导。在以下场景使用此 skill:(1) 为 Paddle 框架新增 C++ 算子 (2) 修改或调试已有 Paddle 算子 (3) 编写算子的 YAML…
Categories
在 Paddle 代码库中定位问题并输出高质量调试报告的专用技能。当遇到以下场景时优先使用:(1) Paddle 框架 bug 调试,(2) 算子实现问题排查,(3) 训练脚本异常诊断,(4) 分布式训练故障定位,(5) CUDA/GPU 相关错误处理,(6) 需要生成结构化调试报告。. Paddle Debug is an agent skill from PaddlePaddle/Paddle.
Paddle Debug fits situations like: tasks that involve Deep learning.
Run `npx skills add PaddlePaddle/Paddle --skill paddle-debug -a claude-code`. Or copy the skill folder (.agents/skills/paddle-debug in PaddlePaddle/Paddle) into .claude/skills/paddle-debug in your project. Claude Code loads it when a task matches its description.
Run `npx skills add PaddlePaddle/Paddle --skill paddle-debug -a codex`. Or copy the skill folder (.agents/skills/paddle-debug in PaddlePaddle/Paddle) into .agents/skills/paddle-debug 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-debug -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-debug, .gemini/skills/paddle-debug, .github/skills/paddle-debug and .opencode/skills/paddle-debug in your project.
Going by SKILL.md and its folder, Paddle Debug needs the command-line tools its instructions call (python and git). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use git, 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 Debug 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.4k tokens (SKILL.md is roughly 5.6k 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 7.2k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Paddle Debug: Ako4all (TongmingLAIC/AKO4ALL, 369 stars), Fix Env (evo-design/proto-tools, 135 stars), Migrate Workflow Ec2 To Osdc (pytorch/test-infra, 113 stars) and Hyperpod Version Checker (awslabs/agent-plugins, 915 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.