Development
Command
/docs
Specific item (function, struct, trait) to look up
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.mdname: 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
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
Ships withrust-skills
AI-powered Rust development assistant with meta-cognition framework
Get the whole plugin
Other commands on rust-skills.
- /achievement
View coding achievements, stats, and progress
Open command - /ai-daily
Generate AI daily/weekly news report from Reddit communities
Open command - /audit
Heavy-weight security and safety audit using os-checker tools.
Open command - /cache-clean
Clean Rust docs cache
Open command - /cache-status
Show Rust docs cache status
Open command - /clean-crate-skills
Remove local dynamic crate skills
Open command

