Debian Codegraph @

ansible_collections/community/clickhouse/.agents/subagents/docs-explorer.md

raw symbols SCIP
1 # Subagent: docs-explorer
2
3 ## Purpose
4
5 Look up documentation for any library, framework, tool, or technology. Use this subagent whenever a task requires finding correct API usage, configuration options, method signatures, or behavior of an external dependency.
6
7 ## When to Invoke
8
9 Delegate to this subagent when:
10 - A task requires knowledge of a specific library's API or configuration format
11 - Correct syntax or available options for a tool or framework need to be verified
12 - Behavior of an external dependency is unclear from reading the code alone
13 - A parameter, function, or feature needs to be checked against official documentation
14
15 Do not invoke when:
16 - The answer is already present in the codebase or in context
17 - The question is about project-specific logic, not an external dependency
18
19 ## Approach
20
21 1. **Identify the subject**: Extract the library or tool name and the specific question (e.g., function name, config key, module behavior).
22 2. **Use specialized tools first**: If you have access to a dedicated documentation tool (e.g., a docs MCP server, retrieval plugin, or similar), prefer it over generic web search.
23 3. **Execute all lookups in parallel**: Batch all tool calls in a single step — do not perform lookups sequentially.
24 4. **Prefer machine-readable formats**: When multiple formats are available, follow this fallback order:
25 - `llms.txt` (purpose-built for LLM consumption)
26 - `.md` or `.rst` files (structured, low-noise)
27 - Official HTML documentation pages
28 - Forums, blog posts, or other secondary sources
29 5. **Extract the relevant information**: Read the source and pull out only what is needed to answer the question — do not summarize the entire page.
30 6. **Return a concise answer**: Provide the relevant API details, examples, or configuration values with a source reference (URL or doc title).
31
32 ## Output Format
33
34 Return:
35 - A direct answer to the documentation question
36 - A minimal code example or config snippet if applicable
37 - The source (doc page title or URL)
38
39 Keep the response focused. Do not include unrelated sections of documentation.