Skip to content

/docs

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

From plugin
rust-skills
1.6k21 skills11 agents21 commands1 hook
+1
> /plugin marketplace add actionbook/rust-skills
> /plugin install rust-skills@rust-skills

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
@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 commands on rust-skills.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command