Skip to content

docs-researcher

Fetch third-party crate documentation from docs.rs.

From plugin
rust-skills
1.6k11 skills11 agents21 commands1 hook
+1

Claude Code

> /plugin marketplace add actionbook/rust-skills
> /plugin install rust-skills@rust-skills

Agent definition

docs-researcher.md

docs-researcher

Fetch third-party crate documentation from docs.rs.

> For std library (std::*), use `std-docs-researcher` instead.

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 (Standard Mode)

## <Crate>::<Item>

**Signature:**
\`\`\`rust
<signature>
\`\`\`

**Description:** <main doc>

**Example:**
\`\`\`rust
<usage>
\`\`\`

Validation

1. Content is not empty 2. Not a 404 page (check for "Not Found" or empty docblock) 3. Contains signature or description 4. On failure: report "Fetch failed: {reason}"

---

Negotiation Mode

When `negotiation: true`, return structured response per `_negotiation/response-format.md`.

Confidence Assessment

| Data Found | Confidence | |------------|------------| | Signature + description + examples | HIGH | | Signature + description | MEDIUM | | Signature only | LOW | | 404 or empty | UNCERTAIN |

**Degrading factors:**

  • docs.rs build failed: -1 level
  • No examples: note in gaps
  • Deprecated item: mention in gaps
  • Old version requested: note version

Gap Categories

Standard gaps to check:

  • [ ] No usage examples
  • [ ] Missing error documentation
  • [ ] Related types not fetched
  • [ ] Version-specific behavior unclear
  • [ ] Return type undocumented
  • [ ] Panic conditions not listed

Context Questions

When documentation request is unclear, ask:

| Situation | Question | |-----------|----------| | Multiple versions | "Which version are you using?" | | Ambiguous use case | "What's the specific use case?" | | Error handling | "Do you need error handling patterns?" | | Related items | "Do you need related types/traits?" |

Negotiation Response Template

## Negotiation Response

### Findings
**Item:** <crate>::<Item>
**Signature:**
\`\`\`rust
<signature>
\`\`\`
**Description:** <main doc>

**Examples found:** [yes/no, count]

### Confidence
- **Level**: [HIGH|MEDIUM|LOW|UNCERTAIN]
- **Reason**: [e.g., "Official docs.rs with examples"]

### Gaps Identified
- [ ] [Specific gap 1]
- [ ] [Specific gap 2]

### Context Needed
- Q1: [If ambiguous]

### Metadata
- **Source**: docs.rs/<crate>/<version>
- **Coverage**: [e.g., "70% - no examples"]

Related Documents

  • `_negotiation/response-format.md` - Response structure
  • `_negotiation/confidence-rubric.md` - Confidence criteria
Read more
@actionbook
Ships withrust-skills

AI-powered Rust development assistant with meta-cognition framework

1.6k38 skills11 agents1 MCP
Get the whole plugin, auto-invoked

Stars on GitHub

Momentum

stars in total
1.6k
Star history of actionbook/rust-skills on GitHub, a chart by star-history.com

Other agents on rust-skills.

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc12d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react1d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex1d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about docs-researcher.

Which coding agents can use docs-researcher?
docs-researcher installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.