Skip to content
Back to skills

Source Command Docs

ASecurity

Fetch Rust API documentation from docs.rs

  • 13 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 11, 2026
toolsrustapidocumentation

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add TrayHard/d2r-ultra-utility --skill source-command-docs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Source Command Docs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Source Command Docs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/trayhard-source-command-docs/badge)](https://www.skillsdirectory.com/skills/trayhard-source-command-docs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "source-command-docs"
description: "Fetch Rust API documentation from docs.rs"
---

# source-command-docs

Use this skill when the user asks to run the migrated source command `docs`.

## Command Template

# /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
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.