Main Site ↗

rust-skills

by actionbook94953GitHub

No description provided.

Unlock Deep Analysis

Use AI to visualize the workflow and generate a realistic output preview for this skill.

Powered by Fastest LLM

Development
Compatible Agents
Claude Code
Claude Code
~/.claude/skills/
Codex CLI
Codex CLI
~/.codex/skills/
Gemini CLI
Gemini CLI
~/.gemini/skills/
O
OpenCode
~/.opencode/skills/
O
OpenClaw
~/.openclaw/skills/
GitHub Copilot
GitHub Copilot
~/.copilot/skills/
Cursor
Cursor
~/.cursor/skills/
W
Windsurf
~/.codeium/windsurf/skills/
C
Cline
~/.cline/skills/
R
Roo Code
~/.roo/skills/
K
Kiro
~/.kiro/skills/
J
Junie
~/.junie/skills/
A
Augment Code
~/.augment/skills/
W
Warp
~/.warp/skills/
G
Goose
~/.config/goose/skills/

Skill Collection

82 Skills
Coming Soon
rust-learnercoding-guidelinesm01-ownershipcore-fix-skill-docsrust-dailydomain-iotdomain-cloud-nativecore-agent-browsercore-dynamic-skillsm02-resourceunsafe-checkerm05-type-drivendomain-mlm03-mutabilitydomain-clim04-zero-costm06-error-handlingmeta-cognition-paralleldomain-webm09-domainm14-mental-modelm07-concurrencym10-performancerust-code-navigatorm11-ecosystemdomain-embeddedrust-skill-creatorm12-lifecyclem13-domain-errorrust-call-graphrust-trait-explorerrust-routerm15-anti-patternrust-deps-visualizerdomain-fintechrust-refactor-helpercore-actionbookrust-learnerrust-symbol-analyzerrust-dailym10-performancem13-domain-errorrust-code-navigatorcore-actionbookdomain-cloud-nativerust-routerrust-refactor-helpercore-fix-skill-docsrust-trait-explorerm07-concurrencyrust-skill-creatorm12-lifecyclem06-error-handlingdomain-fintechcoding-guidelinesm03-mutabilitydomain-mlm01-ownershipm02-resourceunsafe-checkercore-dynamic-skillsrust-call-graphdomain-clim15-anti-patterndomain-embeddedcore-agent-browserm14-mental-modelm05-type-drivenm04-zero-costm09-domainrust-deps-visualizermeta-cognition-parallelrust-symbol-analyzerm11-ecosystemdomain-webdomain-iot

This is a Skill collection repository. View available Skills in the list above. This SKILL.md is only for repository description.

SKILL.md

Rust Skills - Claude Instructions

CRITICAL: Negotiation Protocol Check (BEFORE ANY SKILL)

STOP! Before loading ANY skill, check if negotiation is required:

Query ContainsAction
"比较", "对比", "compare", "vs", "versus", "区别", "difference"MUST invoke rust-router FIRST
"最佳实践", "best practice", "推荐", "recommend"MUST invoke rust-router FIRST
Domain keyword + error (e.g., "交易系统 E0382", "web API Send")MUST invoke rust-router FIRST
Two or more technologies (e.g., "tokio 和 async-std")MUST invoke rust-router FIRST

When negotiation is required, your response MUST include:

## Negotiation Analysis

**Query Type:** [Comparative | Cross-domain | Synthesis | Ambiguous]
**Negotiation:** Enabled

### Source Assessment
[For each information source:]
- **Confidence:** HIGH | MEDIUM | LOW | UNCERTAIN
- **Gaps:** [What's missing]
- **Coverage:** [X]%

## Synthesized Answer
[Your answer]

**Overall Confidence:** [Level]
**Disclosed Gaps:** [What user should know is missing]

DO NOT skip directly to tokio-basics, ratatui-*, or other specialized skills for comparison queries!


CRITICAL: Rust-Router First

For ANY Rust-related question, ALWAYS invoke rust-router skill FIRST.

This is NON-NEGOTIABLE. Do NOT:

  • Use WebSearch for Rust questions
  • Answer from memory without invoking skill
  • Skip to specialized skills without checking router

What Triggers Rust-Router?

ANY question containing:

  • Rust, cargo, crate, rustc, Cargo.toml
  • Question words + Rust context
  • Error codes: E0XXX
  • Code writing requests in Rust
  • ANY question while in a Rust project (*.rs, Cargo.toml)

Workflow

User Question
     |
[1] Invoke: Skill(rust-router)
     |
[2] Read rust-router content -> Identify category (m01-m15, etc.)
     |
[3] Invoke specialized skill if needed (e.g., m01-ownership)
     |
[4] Answer based on skill knowledge

Routing Table (in rust-router)

User IntentRoute To
ownership/borrow/lifetime/E0382/E0597m01-ownership
Box/Rc/Arc/smart pointersm02-resource
mut/Cell/RefCell/interior mutabilitym03-mutability
generic/trait/E0277/E0308m04-zero-cost
newtype/type state/PhantomDatam05-type-driven
Result/Option/error handling/panicm06-error-handling
async/await/concurrency/thread/Send/Syncm07-concurrency
unsafe/FFI/raw pointerunsafe-checker
domain model/DDDm09-domain
performance/benchmarkm10-performance
crate/dependency/ecosystemm11-ecosystem
RAII/Drop/resource lifecyclem12-lifecycle
domain error/retry/circuit breakerm13-domain-error
learning Rust/mental model/whym14-mental-model
anti-pattern/code smell/common mistakesm15-anti-pattern
Rust version/crate version/latest featuresrust-learner
code style/naming/clippycoding-guidelines
tokio relatedtokio-* skills

Special Cases

Rust Version / Crate Info

User: "What's new in latest Rust" / "tokio latest version"
-> Invoke: rust-learner
-> Use agent: rust-changelog / crate-researcher
-> DO NOT use WebSearch

Writing Rust Code

User: "Help me write an async HTTP server"
-> Invoke: rust-router (identify: async + web)
-> Invoke: m07-concurrency + domain-web
-> Check rust-learner for latest patterns
-> Write code

Error Debugging

User: "How to fix E0382"
-> Invoke: rust-router (identify: ownership error)
-> Invoke: m01-ownership
-> Explain fix patterns

Agent Priority

After invoking skills, use these agents for live data:

NeedAgent
Rust release inforust-changelog
Crate version/infocrate-researcher
API documentationdocs-researcher
Clippy lint detailsclippy-researcher

Fallback to WebSearch ONLY if all agents fail.

Default Project Settings

When creating new Rust projects or Cargo.toml files, use these defaults:

[package]
edition = "2024"  # ALWAYS use latest stable edition
rust-version = "1.85"  # Minimum supported Rust version

[lints.rust]
unsafe_code = "warn"

[lints.clippy]
all = "warn"
pedantic = "warn"

Rules:

  • ALWAYS use edition = "2024" (not 2021 or earlier)
  • Include rust-version for MSRV clarity
  • Enable clippy lints by default

Source: https://github.com/actionbook/rust-skills

Content curated from original sources, copyright belongs to authors

Grade B
-AI Score
Best Practices
Checking...

This is a Skill Collection

Please copy individual Skills from the 6 available below

User Rating

USER RATING

0UP
0DOWN
Loading files...

WORKS WITH

Claude Code
Claude
Codex CLI
Codex
Gemini CLI
Gemini
O
OpenCode
O
OpenClaw
GitHub Copilot
Copilot
Cursor
Cursor
W
Windsurf
C
Cline
R
Roo
K
Kiro
J
Junie
A
Augment
W
Warp
G
Goose