当前位置: 首页 > news >正文

CANN/cannbot-skills 文档编写指南

Documentation Authoring Playbook

【免费下载链接】cannbot-skillsCANNBot 是面向 CANN 开发的用于提升开发效率的系列智能体,本仓库为其提供可复用的 Skills 模块。项目地址: https://gitcode.com/cann/cannbot-skills

Use this playbook when adding or revising repository documentation. Write for future agents and humans who need the shortest path to the right detail level.

Goal

Produce documentation that:

  • explains one layer of the system clearly
  • avoids mixing overview, workflow, and low-level constraints into one blob
  • matches the current repository behavior
  • points readers to the next focused file instead of dumping everything at once

1. Choose the right documentation layer

Before editing, decide which layer the content belongs to:

  • overview or navigation
  • workflow playbook
  • detailed constraint or reference
  • example catalog
  • API or framework documentation

Do not stuff every fact into a giant summary file.

2. Prefer progressive disclosure

Default read order should be:

  1. router or overview
  2. one playbook
  3. one focused reference
  4. one concrete example

If a file tries to do all four jobs at once, split it.

3. Keep purpose and audience obvious

At the top of a doc, make it obvious:

  • what this file is for
  • when to read it
  • what it does not try to cover
  • where to go next for deeper detail

This matters more than long introductions.

4. Separate workflow from facts

Keep these concerns separate:

  • workflow: what to do step by step
  • constraints: rules that must hold
  • examples: which source files to study
  • architecture: where logic lives in the repository

If readers need all of them at once, link them together instead of merging them into one monster file.

5. Keep examples concrete

Prefer:

  • one direct example
  • one clear counterexample
  • one pointer to the exact source file

Avoid vague advice that cannot be traced to repository code.

6. Preserve repository truth

When behavior is subtle, derive documentation from the implementation path, not from memory. Typical sources:

  • easyasc/
  • agent/example/kernels/
  • testcases/
  • doc/
  • agent/scripts/

If you are not sure, inspect the real code before documenting the rule.

7. Keep English documentation in English

Repository rule:

  • codes, error messages, and readme files should be written in English

If Chinese documentation also needs updating, keep the English source coherent first, then mirror as needed.

8. Update owner docs carefully

If a repository change affects the documentation map or high-level structure, refresh the owner docs that describe it:

  • README.md,README_CN.mdwhen the top-level documentation entry map changed
  • agent/references/repo-map.mdwhen top-level layout or ownership changed
  • doc/11_architecture_for_contributors.mdwhen contributor-facing architecture or subsystem ownership changed
  • testcases/README.mdwhen the test-suite layout or fixture/demo boundary changed

If kernel files are added, update:

  • agent/references/examples/kernel-catalog.md

If tool files are added or changed, update:

  • agent/scripts/tools_summary.md
  • agent/references/code-paths.mdif the implementation-path lookup changed

9. Prefer replacement-ready migration

When restructuring documentation, do not delete older guidance until the new layer is actually usable. A migration is only done when the new route works on its own.

Fallback references

Read these if more detail is needed:

  • README.md
  • agent/references/repo-map.md
  • doc/11_architecture_for_contributors.md
  • doc/
  • doc_cn/

【免费下载链接】cannbot-skillsCANNBot 是面向 CANN 开发的用于提升开发效率的系列智能体,本仓库为其提供可复用的 Skills 模块。项目地址: https://gitcode.com/cann/cannbot-skills

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

http://www.jsqmd.com/news/787450/

相关文章:

  • 2026年4月优秀的二手衬四氟管道批发厂家推荐,二手对辊带式压榨机/二手衬塑铁罐,二手衬四氟管道批发厂家推荐 - 品牌推荐师
  • 2026年比较好的膜结构看台棚/膜结构汽车棚/张家港膜结构停车棚品质保障公司 - 品牌宣传支持者
  • DataForSEO API社区文档:提升SEO数据集成效率的实战指南
  • 2026年知名的膜结构加油站棚/膜结构交车充电桩棚/膜结构工厂棚优选公司推荐 - 品牌宣传支持者
  • 2026年靠谱的加气砖加气砌块/砌墙加气砖/加气砼砌块推荐厂家精选 - 行业平台推荐
  • OpenClaw网关端到端测试:Bash脚本实现零依赖自动化验证
  • 大模型“幻觉”不再!揭秘RAG技术如何让AI开卷考试,秒变知识达人!
  • JAKCO:用户中心迭代开发框架,融合敏捷与DDD的渐进式架构演进
  • 2026年产地直供佛山南海蔬菜批发/菌菇类批发市场用户好评榜 - 行业平台推荐
  • Acontext:为AI智能体构建可解释、可编辑的技能记忆层
  • 【含 v2.7.1 安装包】超省心 OpenClaw 2.7.1 部署,零代码零基础无需命令小白快速上手
  • 2026年靠谱的量身职业装定制/酒吧职业装定制推荐榜单公司 - 品牌宣传支持者
  • Crystal Claw:为AI智能体构建持久化、可检索的碎片化记忆系统
  • ImagenTY技能包:基于阿里云百炼,专为中文文字渲染与高质量写实图像生成而设计
  • 自托管AI知识库Khoj部署指南:打造离线可用的个人第二大脑
  • 选择钉钉机器人还是企业微信机器人用于运维告警有什么区别?
  • CANN/runtime 算力Group查询与设置
  • 从零复刻Stripe官网动态背景:WebGL着色器与Next.js实战
  • 2026年进口进口国产水果交易市场/广佛水果货源批发市场批发热销榜 - 品牌宣传支持者
  • 产品经理开项目对齐会不想记笔记?2026年这3款视频内容总结ai工具,散会直接出完整纪要
  • 基于大语言模型的自主代码生成智能体:从原理到实战搭建
  • 浏览器扩展开发实战:基于DOM操作与规则引擎的文本Emoji智能替换
  • 2026年智能网联新能源汽车产业园物流/汽车产业园链物流枢纽/新能源汽车配套产业园哪家服务好 - 行业平台推荐
  • Godot 4实时语音插件集成指南:基于WebRTC的多人游戏语音通信实现
  • 苹果Vision Pro开发指南:从RealityKit到空间计算实战
  • 2026年知名的pro喷枪/常熟仿金马喷枪用户口碑推荐厂家 - 行业平台推荐
  • CANN/pyasc双线性插值函数
  • 2026年性价比高的简约孕妇照/不尴尬私密孕妇照/私密孕妇照/高端孕妇照预约热榜 - 行业平台推荐
  • 基于HTML/CSS/JS+PHP的GPT API集成:从原理到部署的全栈实践
  • Cursor编辑器MCP一键安装器:为AI编程助手扩展文件与命令行能力