ascendc-operator-code-review
Ascend C 代码检视技能。基于假设检验方法论对代码进行安全规范检视。调用时必须明确提供:代码片段和检视规则描述。TRIGGER when: 用户要求代码检视、代码review、询问代码安全问题、检查编码规范、或需要检查特定代码问题(如内存泄漏、整数溢出、空指针等)。关键词:Ascend…
Skill by Ascend
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ascend-ascendc-operator-code-review
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ascendc-operator-code-review
What's inside
- Skill name
ascendc-operator-code-review- Description
- Ascend C 代码检视技能。基于假设检验方法论对代码进行安全规范检视。调用时必须明确提供:代码片段和检视规则描述。TRIGGER when: 用户要求代码检视、代码review、询问代码安全问题、检查编码规范、或需要检查特定代码问题(如内存泄漏、整数溢出、空指针等)。关键词:Ascend C、代码检视、代码review、安全规范、内存、指针、溢出、泄漏、编码规范。
- License
- MulanPSL-2.0
- Instructions
- 127 lines in SKILL.md · view on GitHub
Files (8)
- SKILL.md
- 01_numeric_operations.md · references/
- 02_memory_pointer_safety.md · references/
- 03_resource_management.md · references/
- 04_input_validation.md · references/
- 05_concurrency_safety.md · references/
- 06_operator_interface.md · references/
- 07_interface_compatibility.md · references/
SKILL.md (first lines)
# Ascend C 代码检视技能 ## 核心原则 1. **合规优先** - 所有检视动作映射至编码规范具体条款,100%覆盖无遗漏 2. **可审计可复用** - 检视动作全程日志记录 3. **简洁高效** - 检视报告结构化,清晰明了 ## 调用接口 ### 必需参数 调用此技能时,必须明确提供以下参数: **参数1:代码片段** - 待检视的代码内容 - 可以是函数、代码块、文件内容等 **参数2:检视规则描述** - 明确指定要检视的问题类型 - 例如:`检查整数溢出`、`检查内存泄漏`、`检查空指针解引用`等 - 或指定具体的规范文件路径 **参数3:规范文件路径**(可选) - 指定具体的编码规范文件路径 - 如果未指定,将根据检视规则描述查找对应的规范文件 ### 参数校验 如果缺少任何一个必需参数,应: 1. 明确通知用户缺少哪些参数 2. 放弃执行检视 3. 提示用户提供完整参数 ### 规范文件引用 当用户指定检视规则描述时,按以下规则匹配规范文件: - `数值运算`、`溢出`、`除零` → references/01_numeric_operations.md - `内存`、`指针`、`越界` → references/02_memory_pointer_safety.md - `资源`、`泄漏` → references/03_resource_management.md - `输入`、`验证` → references/04_input_validation.md - `并发`、`线程` → references/05_concurrency_safety.md - `算子接口`、`Runtime`、`Tiling`、`动态Shape` → references/06_operator_interface.md - `接口兼容性`、`ABI` → references/07_interface_compatibility.md - 用户直接指定路径 → 使用指定路径 ## 检视流程(假设检验驱动) ### 阶段一:准备 1. 校验必需参数是否完整 2. 根据检视规则描述或指定路径读取编码规范文件 3. 确认待检视的代码片段 ### 阶段二:假设检验(核心) **步骤1:代码段识别** 将目标代码划分为独立的代码段(函数、语句块、逻辑单元) **步骤2:假设建立** 对每个代码段建立假设: - **原假设 H0**:该代码段是安全的 - **备择假设 H1**:该代码段存在风险 - **自信值初始化**:0% **步骤3:证据收集与评估** 按维度系统性寻找证据: | 证据类型 | 分析动作 | 分值规则 | |---------|---------|---------| | 红线规范违反 | 对照红线规范条款识别严重违规点 | 有效证据 +40% | | 一般规范违反 | 对照一般规范条款识别违规点 | 有效证据 +20% | | 上下文防御缺失 | 检查作用域内是否有防御代码 | 无防御 +30% | | 函数调用链风险 | LSP/Grep 分析调用函数内部逻辑 | 发现风险 +25% | | 数据流追踪风险 | 分析变量来源、运算过程 | 发现风险 +25% | - 提供数值运算类型证据时,需提供明确的风险运算案例(如溢出,越界,回绕,等) **分析要求**: - 使用LSP获取代码中的符号定义,使用Grep查找依赖关系 - 风险代码必须要检查是否在当前文件作用域内的其他位置进行防御 - 遇到函数调用,必须查看函数内部逻辑并综合判断 - 遇到存在风险的结构体或成员变量,必须查看定义和运算过程 **步骤4:证据有效性校验** 排除误报: - 已在作用域其他位置进行有效防御 → 排除 - 上下文可证明不可能触发风险 → 排除 **步骤5:决策判断** 计算自信值并决策: - 自信值 = Σ 有效证据分值 - **决策规则**:当自信值超过60%时,判定代码段存在风险,进入报告生成;否则继续检查下一代码段 ### 阶段三:报告生成 1. 按代码检视报告模板格式生成报告 2. 每个问题详情前展示假设检验过程(证据链和自信值计算过程) ## 注意事项 1. 请先完整阅读对应的编码规范文件,并根据这些规范进行代码review,其他的一概不统计 2. 检视过程中,存疑代码块存在函数调用行为,必须动用LSP工具,或者搜索工具,实现深层次分析 3. 不确定的编码规范问题,在输出报告中以存疑的形式进行列举,供用户自主判断 4. 检视报告中列举的问题代码不宜过长,描述清晰问题代码即可 5. 返回检视结果时,必须仔细检查结果中风险代码行的行数是否正确 6. 返回检视结果时,所有风险代码块都应该被引用,不能只展示一个行数 ## 输出规范 ### 检视报告必需包含 1. 检视类别
From Ascend/agent-skills, MulanPSL-2.0.
More from Ascend/agent-skills
- 0.573score
ascendc-operator-design
Ascend
完成AscendC算子设计 - 帮助用户完成算子的架构设计、接口定义和性能规划。当用户提到算子设计、算子开发、tiling策略、内存规划、AscendC kernel设计、两级tiling、核间切分、核内切分时,使用此skill。
SkillCFreshness: C★ 52Claude Code +9 - 0.573score
ascendc-operator-performance-optim
Ascend
排查并优化 Ascend C 算子性能。当用户开发、审查或优化 Ascend C kernel 算子时使用,或当用户提及 Ascend C 性能优化、算子优化、tiling、流水、搬运、 内存优化、NPU/昇腾等关键词时触发。
SkillCFreshness: C★ 52Claude Code +9 - 0.571score
ascend-transformer-boost
ascend-transformer-boost-team + Claude + Claude Code + deepseek-v4-pro
昇腾 Transformer 加速库(ATB)核心技能集索引(Index Skill)。 整合 8 大核心技能:CANN 安装部署、ATB 测试框架编译、 ATB→ACLNN 算子替换设计文档生成、ATB→ACLNN 算子迁移,覆盖昇腾 NPU 开发全链路。
SkillCFreshness: C★ 52Claude Code +9 - 0.570score
k8s-check-fix
Ascend
Kubernetes 集群健康检查与安全修复 — 诊断问题,用户确认后执行修复
SkillCFreshness: C★ 52Claude Code +9 - 0.567score
cann-nnal-installer
Ascend
昇腾NPU CANN Toolkit+Kernels+NNAL安装部署技能。支持从官网下载run包安装和从Docker镜像提取两种方式,覆盖驱动检查、包下载、安装、环境变量配置与验证全流程。当用户需要安装CANN全套组件或指定版本CANN到自定义路径时调用。
SkillCFreshness: C★ 52Claude Code +9 - 0.522score
ascendc-operator-code-gen
Ascend
No description from the publisher yet.
SkillCFreshness: C★ 52Claude Code +9 - 0.514score
ascend-profiling-anomaly
Ascend
Analyze Huawei Ascend NPU profiling data to discover hidden performance anomalies and produce a detailed model architecture report reverse-engineered from…
SkillDFreshness: D★ 52Claude Code +9 - 0.514score
ascendc-operator-performance-eval
Ascend
在 ascend-kernel 的 csrc/ops/<op>/test 下维护仅含 JSONL 的 profiler 性能用例,使用 torch_npu.profiler(固定 warmup=5、active=5)采集,汇总 ASCEND_PROFILER_OUTPUT/op_statistic.csv 的…
SkillDFreshness: D★ 52Claude Code +9 - 0.514score
megatron-migration-generator
Ascend
Generate migration deliverables for bringing relevant Megatron changes into MindSpeed after branch alignment and impact mapping are complete.
SkillDFreshness: D★ 52Claude Code +9 - 0.514score
ascend-docker
Ascend
Create Docker containers for Huawei Ascend NPU development with proper device mappings and volume mounts.
SkillDFreshness: D★ 52Claude Code +9 - 0.514score
hccl-test
Ascend
HCCL (Huawei Collective Communication Library) performance testing for Ascend NPU clusters.
SkillDFreshness: D★ 52Claude Code +9 - 0.511score
ascendc-operator-precision-debug
Ascend
AscendC 算子精度问题调试与根因定位。当算子精度测试失败(allclose 不通过、结果偏差、输出全零/NaN 等)时使用。流程:误差分布分析 → 代码易错点审查 → 实验隔离 → printf/DumpTensor 插桩 → 修复验证。关键词:精度调试、精度问题、结果不一致、误差定位、allclose…
SkillDFreshness: D★ 52Claude Code +9
Signals
- Stars
- 52
- Forks
- 3
- Open issues
- 2
- Last commit (this folder)
- Apr 7, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MulanPSL-2.0
- Repository
- github.com/Ascend/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Ascend
- 0.573score
ascendc-operator-performance-optim
Ascend
排查并优化 Ascend C 算子性能。当用户开发、审查或优化 Ascend C kernel 算子时使用,或当用户提及 Ascend C 性能优化、算子优化、tiling、流水、搬运、 内存优化、NPU/昇腾等关键词时触发。
SkillCFreshness: C★ 52Claude Code +9 - 0.573score
ascendc-operator-design
Ascend
完成AscendC算子设计 - 帮助用户完成算子的架构设计、接口定义和性能规划。当用户提到算子设计、算子开发、tiling策略、内存规划、AscendC kernel设计、两级tiling、核间切分、核内切分时,使用此skill。
SkillCFreshness: C★ 52Claude Code +9 - 0.570score
k8s-check-fix
Ascend
Kubernetes 集群健康检查与安全修复 — 诊断问题,用户确认后执行修复
SkillCFreshness: C★ 52Claude Code +9 - 0.567score
cann-nnal-installer
Ascend
昇腾NPU CANN Toolkit+Kernels+NNAL安装部署技能。支持从官网下载run包安装和从Docker镜像提取两种方式,覆盖驱动检查、包下载、安装、环境变量配置与验证全流程。当用户需要安装CANN全套组件或指定版本CANN到自定义路径时调用。
SkillCFreshness: C★ 52Claude Code +9 - 0.522score
ascendc-operator-code-gen
Ascend
No description from the publisher yet.
SkillCFreshness: C★ 52Claude Code +9 - 0.514score
ascend-docker
Ascend
Create Docker containers for Huawei Ascend NPU development with proper device mappings and volume mounts.
SkillDFreshness: D★ 52Claude Code +9
Cite this page
ascendc-operator-code-review skill. Agent Mart. https://agentmart.dev/skills/ascend-ascendc-operator-code-review (last updated 2026-10-24)