3.6 KiB
name, description, argument-hint
| name | description | argument-hint |
|---|---|---|
| adk-document | Create, review, update, sync, or search project documentation for an ADK bot | [action] [topic or doc-path] |
Load the adk-docs skill for documentation standards and the adk skill for ADK context, then help with documentation immediately.
Parse $ARGUMENTS to determine the action. The first word is usually the action (but not always); everything after is the target.
Route by Action
create [topic]
E.g., /adk-document create workflows, /adk-document create the checkout flow
If the topic is a broad term ("workflows", "tools", "actions"), read src/<relevant-dir>/ to enumerate the user's actual primitives first. Document their specific implementations — not generic concepts.
- Research: Find the user's ADK project (
agent.config.ts), read relevant source files insrc/, check existing docs in./docs/or./guides/. - Choose type: Reference (400-500 lines), Conceptual (500-700), Comprehensive (600-800) — see doc-standards reference.
- Write: Every concept needs a working code example from the user's actual code. Include file paths for verification. Use clear headers for ripgrep searchability. No speculative Common Mistakes or Best Practices sections.
- Save: Ask where if unclear (common:
./docs/,./guides/). Verify headers are searchable.
review [doc-path]
E.g., /adk-document review docs/workflows.md
Review the doc for technical accuracy, searchability, and completeness:
- Code accuracy: correct imports (
@botpress/runtime), examples from actual code with file paths, no speculation - Searchability: clear section headers, TOC present, keyword-rich section names
- ADK-specific: distinguishes ADK vs SDK primitives, messages vs events, channel-specific vs agnostic
- Validation:
Grepfor imports, check referenced files exist, flag speculative content
Report: Critical Issues → Searchability Issues → Speculative Content → Missing Verification → Recommendations.
update [doc-path] [what-changed]
E.g., /adk-document update docs/workflows.md added new step type
- Read the existing doc.
- Find what changed in the user's project code.
- Preserve existing structure, style, and TOC.
- Verify all code examples still work. Add new features with project code examples.
- Mark deprecations clearly. Update file path references.
sync [optional-doc-path]
E.g., /adk-document sync, /adk-document sync docs/actions.md
Check if docs are current with the code:
- Find API changes: new exports, deprecated features, changed signatures.
- Cross-reference: what's documented vs. what exists in
src/. - Verify: do documented code examples still match actual code?
Report: Undocumented Features → Deprecated Content → Broken Examples → Missing Patterns → Recommendations. If gaps found, offer to fix them.
search [term]
E.g., /adk-document search workflows, /adk-document search sendMessage
- Find project docs:
Glob({ pattern: "./{docs,guides}/**/*.md" }) - Search headers and content for the term.
- Return: which file, which section, key excerpt (not full dump), related docs.
- If not found in docs, search the project code, then suggest creating docs for the gap.
If No Action Specified
If $ARGUMENTS doesn't start with create/review/update/sync/search, infer the intent:
- Looks like a file path (contains
/or.md) → review that file - Looks like a search term → search for it
- Looks like a topic to document → create docs for it
- Looks like gibberish, ask the user a clarification question