Skip to content
Development
Command

/docs

Specific item (function, struct, trait) to look up

From plugin
rust-skills
1.4k21 skills11 agents21 commands1 hook
+1
Install
> /plugin marketplace add zhanghandong/rust-skills
> /plugin install rust-skills@rust-skills

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/docs

Context preview

What this command does when you run it.

Specific item (function, struct, trait) to look up

Command definition

docs.md
name: docs
description: Fetch Rust API documentation from docs.rs
arguments:
  - name: crate_name
    description: Name of the crate to look up
    required: true
  - name: item
    description: Specific item (function, struct, trait) to look up
    required: false

/docs Command

Fetch API documentation for Rust crates from docs.rs.

Usage

/docs <crate_name> [item]

Examples

/docs snafu              # Get snafu crate overview
/docs tokio spawn        # Get tokio::spawn documentation
/docs serde Serialize    # Get serde::Serialize trait docs

Workflow

1. Use actionbook MCP to get docs.rs selectors 2. Launch `docs-researcher` agent with target URL 3. Wait for agent to complete 4. Return formatted API documentation

Target URLs

  • Overview: `https://docs.rs/<crate>/latest/<crate>/`
  • Function: `https://docs.rs/<crate>/latest/<crate>/fn.<name>.html`
  • Struct: `https://docs.rs/<crate>/latest/<crate>/struct.<Name>.html`
  • Trait: `https://docs.rs/<crate>/latest/<crate>/trait.<Name>.html`
  • Macro: `https://docs.rs/<crate>/latest/<crate>/macro.<name>.html`
  • Module: `https://docs.rs/<crate>/latest/<crate>/<module>/`

Output Format

# <crate_name> API Documentation

## Overview
<crate description>

## Key Types
- `TypeName`: <description>

## Key Functions
- `fn_name`: <description>

## Key Traits
- `TraitName`: <description>

Source: docs.rs
Read more
Ships withrust-skills

AI-powered Rust development assistant with meta-cognition framework

Get the whole plugin