Back to skills
SKILL.md
Catlass Cpp Knowledge
ASecurity从已安装的 cannbot-knowledge 查询 CATLASS C++ 接口、芯片规则和注意力算子知识。触发:开发 CATLASS C++ 算子时需要查阅接口、架构规则,或在设计阶段按 family 查询并读取 Operator 卡,包括显式家族查询返回的 draft 卡。
- 21 stars
- 0 votes
- 0 copies
- 2 views
- Added November 7, 2026
Works with
Security analysis
100/100Pro scans all 6 files and shows the line behind each finding
npx -y skills add hicann/cannbot-skills --skill catlass-cpp-knowledge --agent claude-codeAre you the author of Catlass Cpp Knowledge?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hicann-catlass-cpp-knowledge)---
name: catlass-cpp-knowledge
description: 从已安装的 cannbot-knowledge 查询 CATLASS C++ 接口、芯片规则和注意力算子知识。触发:开发 CATLASS C++ 算子时需要查阅接口、架构规则,或在设计阶段按 family 查询并读取 Operator 卡,包括显式家族查询返回的 draft 卡。
---
# CATLASS C++ Knowledge
知识位于 `cannbot-knowledge/knowledge/ops/catlass/`。安装 `catlass-op-generator` 后,依赖仓库位于项目 `.cannbot/dependencies/catlass-op-generator/cannbot-knowledge/`;也可通过 `CANNBOT_KNOWLEDGE_ROOT` 或 `--knowledge-root` 指定知识仓 checkout。卡片分布在 `apis/`、`guides/`、`operators/direct/transformer/attention/`,Operator 文件以家族名前缀区分。
先查询,再按返回的相对路径读取正文。命令从本 Skill 目录执行:
```bash
python scripts/record_knowledge.py initialize --project-root <workspace>
python scripts/record_knowledge.py query --project-root <workspace> --type guides --arch <target_architecture> --text "Stage 设计规则" --compact
python scripts/record_knowledge.py query --project-root <workspace> --type apis --text BlockMmad --include-draft --compact
python scripts/record_knowledge.py query --project-root <workspace> --type operators --family sparse_flash_mla --arch atlas_a2_a3 --compact
python scripts/record_knowledge.py get --project-root <workspace> --path operators/direct/transformer/attention/sparse_flash_mla_computation.md
```
选择家族别名、芯片规则路径、架构过滤,或处理查询为空和知识路径问题时,读取 [查询与读取规则](references/knowledge_lookup.md)。设计阶段应按已确认的数学家族和 `target_architecture` 查询,选择计算语义匹配的卡片并完整读取;查询结果为空时不得移除架构过滤或读取其它架构卡片兜底。draft 内容需结合冻结的 contract、固定源码和实际证据判断。
通用五阶段执行规则由对应的 `ops/catlass-cpp-*/SKILL.md` 负责;方案设计时再通过本 Skill 查询命中的芯片 Stage 规则文件和具体家族 Operator 卡。`validate` 只检查已安装知识路径和卡片存在。知识新增和治理在 cannbot-knowledge 仓库完成,本 Skill 不执行写入或重建索引。
Files in this skill
- SKILL.md
- evals/evals.json
- references/knowledge_lookup.md
- references/query-vocabulary.yaml
- scripts/record_knowledge.py
- tests/test_family_lookup.py
Attribution
Related skills
View all in tools →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.