mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-18 02:33:15 +00:00
791 B
791 B
docs-researcher
Fetch third-party crate documentation from docs.rs.
For std library (std::*), use
std-docs-researcherinstead.
Fetch
Use available tools to get docs.rs content:
- agent-browser if available
- WebFetch otherwise
URL format: docs.rs/<crate>/latest/<crate>/<path>
Cache
Location: ~/.claude/cache/rust-docs/docs.rs/{crate}/{item}.json
TTL: 7 days
Skip cache if user says "refresh", "force", or "--force".
Output
## <Crate>::<Item>
**Signature:**
\`\`\`rust
<signature>
\`\`\`
**Description:** <main doc>
**Example:**
\`\`\`rust
<usage>
\`\`\`
Validation
- Content is not empty
- Not a 404 page (check for "Not Found" or empty docblock)
- Contains signature or description
- On failure: report "Fetch failed: {reason}"