Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计通过

rust-routerRust router 搜索

Agent Skill

rust-router 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

544

周安装

22

GitHub Stars

26,371

下载量

171
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:rust-router(Rust router 搜索)
来源仓库:https://github.com/rustfs/rustfs
仓库路径:skills/rust-router
安装命令:
npx skills add https://github.com/rustfs/rustfs --skill rust-router
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rustfs/rustfs --skill rust-router

简介

rust-router 用于查找和筛选与路由相关的信息,适合快速定位候选结果。

  • 适用于 Web 框架中路由设计的资料检索和线索整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验用法。
  • 建议在使用前检查维护状态,避免触发不必要的联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Rust Question Router

Version: 2.0.0 | Last Updated: 2026-01-17 New in v2.0: Meta-Cognition Routing - Three-layer cognitive model for deeper answers

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 SignalEntry LayerDirectionFirst Skill
E0xxx errorLayer 1Trace UP ↑m01-m07
Compile errorLayer 1Trace UP ↑Error table below
"How to design..."Layer 2Check L3, then DOWN ↓m09-domain
"Building [domain] app"Layer 3Trace DOWN ↓domain-*
"Best practice..."Layer 2Both directionsm09-m15
Performance issueLayer 1 → 2UP then DOWNm10-performance

CRITICAL: Dual-Skill Loading

When domain keywords are present, you MUST load BOTH skills:

Domain KeywordsL1 SkillL3 Skill
Web API, HTTP, axum, handlerm07-concurrencydomain-web
交易, 支付, trading, paymentm01-ownershipdomain-fintech
CLI, terminal, clapm07-concurrencydomain-cli
kubernetes, grpc, microservicem07-concurrencydomain-cloud-native
embedded, no_std, MCUm02-resourcedomain-embedded

Example: "Web API 报错 Rc cannot be sent"

  • Load: m07-concurrency (L1 - Send/Sync error)
  • Load: domain-web (L3 - Web state management)
  • Answer must include both layers

Trace Examples

User: "My trading system reports E0382"

1. Entry: Layer 1 (E0382 = ownership error)
2. Load: m01-ownership skill
3. Trace UP: What design led to this?
4. Check: domain-fintech (trading = immutable audit data)
5. Answer: Don't clone, use Arc<T> for shared immutable data
User: "How should I handle user authentication?"

1. Entry: Layer 2 (design question)
2. Trace UP to Layer 3: domain-web constraints
3. Load: domain-web skill (security, stateless HTTP)
4. Trace DOWN: m06-error-handling, m07-concurrency
5. Answer: JWT with proper error types, async handlers

INSTRUCTIONS FOR CLAUDE

Default Project Settings (When Creating Rust Code)

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

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

[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
  • DO NOT use WebSearch for Rust questions - use skills and agents

Meta-Cognition Routing Process

  1. Identify Entry Layer

- E0xxx errors → Layer 1 - Design questions → Layer 2 - Domain-specific → Layer 3

  1. Load Appropriate Skill

- Read the skill file for context - Note the "Trace Up" and "Trace Down" sections

  1. Trace Through Layers

- Don't stop at surface-level fix - Ask "Why?" to trace up - Ask "How?" to trace down

  1. Answer with Context

- Include the reasoning chain - Reference which layers/skills informed the answer

When User Requests Intent Analysis

User may say: "analyze this question" / "what type of problem is this" / "analyze intent"

Execute these steps:

  1. Extract Keywords - Identify Rust concepts, error codes, crate names
  2. Identify Entry Layer - Which cognitive layer is this?
  3. Map to Skills - Which m0x/m1x/domain skills apply?
  4. Report Analysis - Tell user the layers and suggested trace
  5. Invoke Skill - Load and apply the matched skill

Layer 1 Skills (Language Mechanics)

PatternCategoryRoute To
move, borrow, lifetime, E0382, E0597m01m01-ownership
Box, Rc, Arc, RefCell, Cellm02m02-resource
mut, interior mutability, E0499, E0502, E0596m03m03-mutability
generic, trait, inline, monomorphizationm04m04-zero-cost
type state, phantom, newtypem05m05-type-driven
Result, Error, panic,?, anyhow, thiserrorm06m06-error-handling
Send, Sync, thread, async, channelm07m07-concurrency
unsafe, FFI, extern, raw pointer, transmute-unsafe-checker

Layer 2 Skills (Design Choices)

PatternCategoryRoute To
domain model, business logicm09m09-domain
performance, optimization, benchmarkm10m10-performance
integration, interop, bindingsm11m11-ecosystem
resource lifecycle, RAII, Dropm12m12-lifecycle
domain error, recovery strategym13m13-domain-error
mental model, how to thinkm14m14-mental-model
anti-pattern, common mistake, pitfallm15m15-anti-pattern

Layer 3 Skills (Domain Constraints)

Domain KeywordsRoute To
fintech, trading, decimal, currencydomain-fintech
ml, tensor, model, inferencedomain-ml
kubernetes, docker, grpc, microservicedomain-cloud-native
embedded, sensor, mqtt, iotdomain-iot
web server, HTTP, REST, axum, actixdomain-web
CLI, command line, clap, terminaldomain-cli
no_std, microcontroller, firmwaredomain-embedded

Error Code Routing

Error CodeLayerRoute ToCommon Cause
E0382L1m01-ownershipUse of moved value
E0597L1m01-ownershipLifetime too short
E0506L1m01-ownershipCannot assign to borrowed
E0507L1m01-ownershipCannot move out of borrowed
E0515L1m01-ownershipReturn local reference
E0716L1m01-ownershipTemporary value dropped
E0106L1m01-ownershipMissing lifetime specifier
E0596L1m03-mutabilityCannot borrow as mutable
E0499L1m03-mutabilityMultiple mutable borrows
E0502L1m03-mutabilityBorrow conflict
E0277L1m04/m07Trait bound not satisfied
E0308L1m04-zero-costType mismatch
E0599L1m04-zero-costNo method found
E0038L1m04-zero-costTrait not object-safe
E0433L1m11-ecosystemCannot find crate/module

Unsafe-Specific Routing

For detailed unsafe rules, route to unsafe-checker skill:

PatternRoute To
unsafe code review, SAFETY commentunsafe-checker
FFI, extern "C", C interop, libcunsafe-checker
raw pointer, *mut, *const, NonNullunsafe-checker
transmute, union, repr(C)unsafe-checker
MaybeUninit, uninitialized memoryunsafe-checker
panic safety, double-freeunsafe-checker
Send impl, Sync impl, manual auto-traitsunsafe-checker

Functional Routing Table

PatternRoute ToAction
latest version, what's newrust-learnerUse agents
API, docs, documentationdocs-researcherUse agent
Cargo.toml, dependenciesdynamic-skillsSuggest /sync-crate-skills
code style, naming, clippycoding-guidelinesRead skill
unsafe code, FFIunsafe-checkerRead skill
code reviewos-checkerSuggest /rust-review

Priority Order

  1. Identify cognitive layer (L1/L2/L3)
  2. Load entry skill (m0x/m1x/domain)
  3. Trace through layers (UP or DOWN)
  4. Cross-reference skills as indicated in "Trace" sections
  5. Answer with reasoning chain

Skill File Paths

Meta-Cognition Framework

_meta/reasoning-framework.md    # How to trace through layers
_meta/layer-definitions.md      # Layer definitions
_meta/externalization.md        # Cognitive externalization
_meta/error-protocol.md         # 3-Strike escalation rule
_meta/hooks-patterns.md         # Automatic triggers

Layer 1 Skills (Language Mechanics)

skills/m01-ownership/SKILL.md
skills/m02-resource/SKILL.md
skills/m03-mutability/SKILL.md
skills/m04-zero-cost/SKILL.md
skills/m05-type-driven/SKILL.md
skills/m06-error-handling/SKILL.md
skills/m07-concurrency/SKILL.md

Layer 2 Skills (Design Choices)

skills/m09-domain/SKILL.md
skills/m10-performance/SKILL.md
skills/m11-ecosystem/SKILL.md
skills/m12-lifecycle/SKILL.md
skills/m13-domain-error/SKILL.md
skills/m14-mental-model/SKILL.md
skills/m15-anti-pattern/SKILL.md

Layer 3 Skills (Domain Constraints)

skills/domain-fintech/SKILL.md
skills/domain-ml/SKILL.md
skills/domain-cloud-native/SKILL.md
skills/domain-iot/SKILL.md
skills/domain-web/SKILL.md
skills/domain-cli/SKILL.md
skills/domain-embedded/SKILL.md

OS-Checker Integration

For code review and security auditing:

Use CaseCommandTools
Daily check/rust-reviewclippy
Security audit/audit securitycargo audit, geiger
Unsafe audit/audit safetymiri, rudra
Concurrency audit/audit concurrencylockbud
Full audit/audit fullall os-checker tools

Workflow Example with Meta-Cognition

User: "Why am I getting E0382 in my trading system?"

Analysis:
1. Entry: Layer 1 (E0382 = ownership/move error)
2. Load: m01-ownership skill
3. Context: "trading system" → domain-fintech

Trace UP ↑:
- E0382 in trading context
- Check domain-fintech: "immutable audit records"
- Finding: Trading data should be shared, not moved

Response:
"E0382 indicates a value was moved when still needed.
In a trading system (domain-fintech), transaction records
should be immutable and shareable for audit purposes.

Instead of cloning, consider:
- Arc<TradeRecord> for shared immutable access
- This aligns with financial audit requirements

See: m01-ownership (Trace Up section),
     domain-fintech (Audit Requirements)"

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.08%
按下载量换算46

OpenCode

21.46%
按下载量换算37

Antigravity

18.36%
按下载量换算31

Gemini CLI

13.18%
按下载量换算23

Codex

7.46%
按下载量换算13

Cursor

3.18%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/rustfs/rustfs --skill rust-router;npx skills add rustfs/rustfs --skill "rust-router" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills