/cannbot-knowledge:knowledge-issue-reportfrom cannbot-knowledge
Generates and validates GitCode Issue submission materials for cannbot-knowledge knowledge base. Collects facts, identifies missing materials, and creates reproducible attachment packages.
Ships in cannbot-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
本 skill 用于把用户反馈整理成可受理的 cannbot-knowledge Issue。目标是收集完整事实、标明缺失材料、生成可复现附件包,而不是直接裁决知识是否正确。
needs-info。让用户选择一个或多个:
整理 Issue 前检查以下材料。缺少关键材料时,先输出 needs-info 清单。
| # | 材料 | 要求 |
|---|---|---|
| 1 | 问题类型 | 从 Issue 类型中选择,可多选 |
| 2 | 知识库版本 | 仓库、分支、commit、tag/release、是否有本地修改 |
| 3 | CANNBot skills 版本 | cannbot-skills 仓库、分支、commit、插件路径 |
| 4 | CLI / 执行器及版本 | 执行器名称、版本、Python 版本、OS |
| 5 | 模型 | 使用 agent/LLM/rerank/judge 时提供完整模型标识;未使用写“未使用” |
| 6 | 完整原始 Prompt / Query | 逐字粘贴完整输入 |
| 7 | 完整触发命令 | 实际执行的完整命令行,包含所有参数 |
| 8 | 配置文件 | 本次运行实际生效配置;敏感信息可脱敏但保留结构 |
| 9 | 运行记录 | session、model request/response、tool call、生成文件 diff |
| 10 | 终端完整输出 | 从命令开始到问题发生为止的完整 stdout/stderr |
| 11 | 复现率 | 工具、检索、agent 类问题至少运行 3 次,说明“运行 y 次,出现 x 次” |
| 12 | 受影响知识 | doc-id/path、section/anchor、status、confidence、resource/sources |
| 13 | 期望行为与实际行为 | 分别说明正确行为和实际发生了什么 |
| 14 | 证据 / 建议修复 | 官方文档、fixed commit、源码路径、trace、日志、错误信息或建议 patch |
git remote -v、git branch --show-current、git rev-parse HEAD、git status --short、必要时 git diff。cannbot-skills 或当前插件仓的 remote、branch、commit、插件路径 plugins-community/cannbot-knowledge/。needs-info。推荐包名:
knowledge-issue-<YYYYMMDD>-<short-title>.tar.gz
推荐结构:
knowledge-issue-20260702-query-error.tar.gz
├── README.md
├── environment.txt
├── command.txt
├── prompt.txt
├── terminal.log
├── configs/
├── sessions/
│ ├── opencode.db
│ ├── model-calls.jsonl
│ └── tool-calls.jsonl
├── knowledge/
│ ├── git-status.txt
│ ├── git-diff.patch
│ └── affected-files.txt
└── reproduction/
├── run-1/
├── run-2/
└── run-3/
知识内容错误可简化为:
README.md
affected-card.md
evidence.md
suggested-fix.patch
## 1. 问题类型
- [ ] 知识内容错误
- [ ] 知识缺失
- [ ] 检索结果错误
- [ ] 图谱关联错误
- [ ] 知识编译错误
- [ ] 知识治理 / lint 错误
- [ ] 下游 agent 使用知识库出错
- [ ] 其他:
## 2. 问题摘要
请用 1-3 句话说明问题。
## 3. 知识库版本
- 知识库仓库:
- 分支:
- commit:
- tag / release:
- 是否有本地修改:
- `git status` / `git diff`:见附件 / 无
## 4. CANNBot skills 版本
- `cannbot-skills` 仓库:
- 分支:
- commit:
- 插件路径:`plugins-community/cannbot-knowledge/`
## 5. CLI / 执行器及版本
- 执行器:
- 执行器版本:
- Python 版本:
- OS:
## 6. 模型
- 模型完整标识:
- 用途:
- 如未使用模型,请写:未使用
## 7. 完整原始 Prompt / Query
请逐字粘贴完整输入。
未使用 Prompt 时填写:
> 未使用 Prompt,仅执行命令。
## 8. 完整触发命令
请粘贴完整命令,包含所有参数。
示例:
```bash
python3 ../knowledge-query/scripts/knowledge_query.py --knowledge-root /path/to/cannbot-knowledge search --query "A5 LayerNorm UB reuse"
```
## 9. 配置文件
请上传本次运行实际生效的配置文件。
包括但不限于:
- `.opencode/`
- `.cannbot/`
- 插件配置
- 检索配置
- `metadata/*.yaml`
敏感信息可以脱敏,但不要删除配置结构。
## 10. 运行记录
如使用 agent / LLM / 多 agent 工作流,请提供:
- session / `opencode.db`
- model request / response JSON
- tool call 记录
- 生成文件 diff
如未使用 agent,请填写:
> 未使用 agent,仅提供命令、配置和终端输出。
## 11. 终端完整输出
请上传完整 stdout / stderr。
要求:
- 不得只贴最后几行;
- 不得删减中间日志;
- 敏感信息可脱敏。
## 12. 复现率
工具类、检索类、agent 类问题请至少运行 3 次。
- Run 1:成功 / 失败,附件:
- Run 2:成功 / 失败,附件:
- Run 3:成功 / 失败,附件:
- 复现率:运行 y 次,出现 x 次
如果是确定性知识内容错误,可以填写:
> 内容错误稳定存在,不需要重复运行。
## 13. 受影响知识
- doc-id / path:
- section / anchor:
- status:
- confidence:
- resource / sources:
## 14. 期望行为
请说明正确行为应该是什么。
## 15. 实际行为
请说明实际发生了什么。
## 16. 证据 / 建议修复
请提供官方文档、fixed commit、源码路径、trace、日志、错误信息或建议 patch。
needs-info。What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub catman626/cannbot-skills --plugin cannbot-knowledge8 skills in this plugin
/knowledge-lintUse when 用户需要在摄入、生成、勘误或提交 PR 前,检查 Ascend NPU 算子 OKF 知识库的结构、溯源、索引或图谱是否合规。/knowledge-queryUse when 用户正在处理昇腾 NPU 上的 Ascend C/CANN 算子任务,并询问 API 名称或可用性、签名、参数、头文件、调用方式、平台/版本支持、Tiling、数据搬运、AICore kernel、实现样例、编译/运行错误、精度、性能或 Profiling;在搜索本地 CANN/Toolkit/SDK 安装包或源码前触发。/ops-knowledge-cv-ingest为 AscendC CV(cube-vector)融合算子生成「cube↔vector 融合设计」wiki(手动触发)。Other plugins' skills for the same job