"CRITICAL: Use for ALL Rust questions including errors, design, and coding.
View on GitHubactionbook/rust-skills
rust-skills
January 23, 2026
Select agents to install to:
npx add-skill https://github.com/actionbook/rust-skills/blob/main/skills/rust-router/SKILL.md -a claude-code --skill rust-routerInstallation paths:
.claude/skills/rust-router/--- # Rust Question Router > **Version:** 2.0.0 | **Last Updated:** 2025-01-22 > > **v2.0:** Context optimized - detailed examples moved to sub-files ## Meta-Cognition Framework ### Core Principle **Don't answer directly. Trace through the cognitive layers first.** ``` Layer 3: Domain Constraints (WHY) ├── Business rules, regulatory requirements ├── domain-fintech, domain-web, domain-cli, etc. └── "Why is it designed this way?" Layer 2: Design Choices (WHAT) ├── Architecture patterns, DDD concepts ├── m09-m15 skills └── "What pattern should I use?" Layer 1: Language Mechanics (HOW) ├── Ownership, borrowing, lifetimes, traits ├── m01-m07 skills └── "How do I implement this in Rust?" ``` ### Routing by Entry Point | User Signal | Entry Layer | Direction | First Skill | |-------------|-------------|-----------|-------------| | E0xxx error | Layer 1 | Trace UP ↑ | m01-m07 | | Compile error | Layer 1 | Trace UP ↑ | Error table below | | "How to design..." | Layer 2 | Check L3, then DOWN ↓ | m09-domain | | "Building [domain] app" | Layer 3 | Trace DOWN ↓ | domain-* | | "Best practice..." | Layer 2 | Both directions | m09-m15 | | Performance issue | Layer 1 → 2 | UP then DOWN | m10-performance | ### CRITICAL: Dual-Skill Loading **When domain keywords are present, you MUST load BOTH skills:** | Domain Keywords | L1 Skill | L3 Skill | |-----------------|----------|----------| | Web API, HTTP, axum, handler | m07-concurrency | **domain-web** | | 交易, 支付, trading, payment | m01-ownership | **domain-fintech** | | CLI, terminal, clap | m07-concurrency | **domain-cli** | | kubernetes, grpc, microservice | m07-concurrency | **domain-cloud-native** | | embedded, no_std, MCU | m02-resource | **domain-embedded** | --- ## INSTRUCTIONS FOR CLAUDE ### CRITICAL: Negotiation Protocol Trigger **BEFORE answering, check if negotiation is required:** | Query Contains | Action | |----------------|--------| | "比较", "对比", "compare", "vs", "versus" | **MUST use negotiation** | |