CANN智能体路由指南
Agent Router【免费下载链接】cannbot-skillsCANNBot 是面向 CANN 开发的用于提升开发效率的系列智能体本仓库为其提供可复用的 Skills 模块。项目地址: https://gitcode.com/cann/cannbot-skillsFirst routing layer. Pick one route; each route names ONE starting file. The starting file (usually a playbook or the facts router) then points at the smaller files you actually need. Do not preload every drill-down listed — read only what the starting file tells you to, and stop once that file or the focused fact page it points to already answered your question.Primary RoutesTaskStart hereThen (only if needed)Quick fact / value look-up(device caps, pipe pairs, mutex signatures, hard rules, simulator gotchas)agent/references/facts.md(quick chooser)one focused facts page; thenagent/references/constraints/topic.mdfor thewhyWrite a new kernelagent/playbooks/clarify-first.md(mandatory Step 0) →agent/playbooks/kernel-authoring.md(tool-first fast path)one focused facts / constraint / pattern file named by the playbookDebug an existing kernelagent/playbooks/kernel-debugging.md(match the Symptom-to-check map first)one focused facts page; then the constraint file named by the playbook sectionFind an example kernelagent/scripts/select_kernel_example.pyoragent/references/examples/kernel-index.md(filter to ≤3 candidates)agent/references/examples/kernel-catalog.md(read ONLY the matching###entry) → source filePractice problems (write-from-scratch)agent/references/examples/kernel-practice.md—Modify or add a toolagent/playbooks/tool-authoring.mdagent/references/examples/tool-catalog.mdModify or extend docsagent/playbooks/doc-authoring.mdREADME.md,README_CN.md,doc/,doc_cn/Repo structure questionagent/references/repo-map.mddoc/11_architecture_for_contributors.mdWhich code path implements X?agent/references/code-paths.mdagent/references/simulator-v2.mdfor sim-specific paths; then source/testsReading Rulefacts.mdis the chooser for quick factual questions — jump from there to one focused facts page, not all of them.For authoring/debugging, read one playbook and let it pick which constraint / pattern / example files you actually need. Do not preload the full list.For examples, prefer the selector tool first; otherwise filter with the index, then open only the one catalog entry that matches.Open source files only when the guidance layers stop being enough.Files to study/Fallback referenceslists at the bottom of a constraint or pattern file are depth pointers, NOT mandatory follow-ups. If the file you are in already answered your question, stop. In particular, do not bounce back through the facts router once you already reached the focused facts page that owns the value you needed.Machine-readable fallbacksagent/index/kernels.json,agent/index/tools.json— for programmatic selection tools only; agents should prefer the markdown catalogs.Deeper references (addressed by the starting files above)agent/references/constraints/— topic-focused constraint files (tiling, autosync, counters, precision, tail-safety, online-softmax-tail, datamove, reduction, mask, vec-stride, a2-device, a5-device, a2-vec-kernel, vec-reduction-a2)agent/references/patterns/— topology-specific pipeline shapes (a2-* and generic cube/vec combinations)agent/references/simulator-v2.md— V2 runtime and bridge map【免费下载链接】cannbot-skillsCANNBot 是面向 CANN 开发的用于提升开发效率的系列智能体本仓库为其提供可复用的 Skills 模块。项目地址: https://gitcode.com/cann/cannbot-skills创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考