Adk Docs

botpress/skills/skills/adk-docs

作者 botpress9085e5d2c173MIT12 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫6 天前更新

guidelines for creating, reviewing, updating, and searching ADK documentation - use when users ask about writing, maintaining, or auditing ADK bot docs

AI 產生的概覽

指導 ADK 機器人專案文件的建立、審查、更新、同步與檢索。

功能
提供指引與指令,用來產生與維護使用者 ADK 機器人專案的文件。涵蓋建立功能文件、審查正確性、程式碼變更後更新、核對文件與程式碼是否一致,以及檢索現有文件。強調使用來自使用者專案與官方 ADK 儲存庫的可驗證程式碼範例,並附上文件標準參考,用於範本與品質檢查。
適用情境
當使用者想為自己的 ADK 機器人或功能撰寫、審查、更新或檢索文件時使用。使用者詢問文件標準、範本或 /adk-document 指令時也適用。
執行需求
僅為說明性內容,不附帶指令碼。它引用隨附的文件標準檔案,並需要存取使用者的 ADK 專案檔案,以及為取得範例而存取官方 ADK 儲存庫或 @botpress/runtime 套件。

ADK Documentation Management

Use this skill when helping users create, review, update, or maintain documentation for their ADK projects. Users write guides and docs for their own bots and features — code examples should come from their project and the official ADK repo.

When to Use This Skill

Activate this skill when users:

  • Want to create documentation for their bot ("Document my order workflow", "Write a guide for my custom actions")
  • Need to review existing project docs for accuracy ("Check if my docs are still correct")
  • Want to update docs after changing their bot ("I refactored the checkout flow, update the docs")
  • Need to check if docs are in sync with their code ("Are my docs current?")
  • Want to search their project documentation ("Find docs about my payment handler")
  • Ask about documentation standards or templates
  • Mention /adk-document

Available Documentation

FileDescription
references/doc-standards.mdDocument types, templates, quality checklists, and health metrics

Available Commands

Command (and suggested subcommand)Description
/adk-document create [topic]Create documentation for a feature in the user's bot
/adk-document review [doc-path]Review project docs for accuracy and completeness
/adk-document update [doc-path] [what-changed]Update project docs after code changes
/adk-document sync [optional-doc-path]Check if project docs are in sync with the bot's code
/adk-document search [search-term]Search project documentation for specific topics

Shared Principles

1. AI-Optimized Structure

  • Clear section headers (##, ###, ####) so ripgrep can find sections
  • Table of contents at top with anchor links
  • Right-sized for document type (see doc-standards reference)
  • Keyword-rich section names — no vague "Advanced Topics" or "Other"

2. Code-First Approach

  • Every concept needs a working code example from actual project code
  • Include file paths with line numbers for verification
  • Primary sources for examples (in priority order):
    1. The user's own ADK project (look for agent.config.ts in the workspace) — BEST
    2. The official ADK repo examples (clone or find locally)
    3. ADK runtime usage (@botpress/runtime packages)
  • Never invent or speculate examples — all code must be verifiable

3. Critical Distinctions

  • ADK primitives (from @botpress/runtime) vs Botpress SDK primitives
  • this.send() in conversations vs client.createMessage() in workflows
  • Messages (persistent, stored) vs Events (ephemeral, not stored)
  • Agnostic APIs vs channel-specific features

4. No Speculation

  • Do NOT add Common Mistakes or Best Practices sections unless the user explicitly provides them
  • Use ❌ WRONG / ✅ CORRECT only when documenting actual reported errors
  • Workflows and examples must be verified from actual code, not imagined

5. Writing Style

  • Direct and actionable — "Use this.send()" not "You might want to consider..."
  • Technically accurate — test examples against actual ADK code
  • Assumes intelligence — provide context and guidance, not hand-holding
  • No marketing fluff — straight to the technical substance

How to Answer

When a user asks about documentation without invoking a specific command:

  1. Load the adk skill (& more, if needed) for ADK context and knowledge
  2. Identify what they need — creating, reviewing, updating, syncing, or searching
  3. Point them to the right command or help directly using the principles above
  4. Reference doc-standards for template and quality guidance

Documentation Location

Documentation is written in the user's own project. Ask the user where they want docs saved if not obvious (common locations: ./docs/, ./guides/, or project root).

Discovering Code Sources

Discover the user's project and the official ADK repo for examples:

javascript
// Find ADK projects in the workspaceGlob({ pattern: '**/agent.config.ts' })
// Find ADK runtime usage in the user's projectGrep({ pattern: 'from [\'"]@botpress/runtime', output_mode: 'files_with_matches' })
// Look for existing project documentationGlob({ pattern: './{docs,guides}/**/*.md' })
// Find official ADK examples if available locallyGlob({ pattern: '**/adk/examples/**/*.ts' })

Cross-References

  • adk skill — Core ADK knowledge (actions, workflows, conversations, etc.)
  • adk-evals skill — Testing and eval documentation
  • adk-frontend skill — Frontend integration documentation
  • adk skill integrations.md reference — Integration lifecycle documentation

來源與署名

來源:botpress/skills位於skills/adk-docs提交9085e5d

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架