Rust Elegant
Rust 优雅开发规范,必须在以下场景触发:为 Rust 项目写代码、review Rust 代码、设计 Rust 项目结构、处理 Rust 错误类型时。覆盖命名、注释规范、枚举设计、trait 抽象、项目结构、错误处理、所有权、迭代器、宏、内存分配、match 穷尽性、unsafe 等所有 Rust 惯用法。只要任务涉及写或修改 Rust 代码,必须读取此 skill。
Install
npx skills add fuqiuluo/rust-elegant --skill rust-elegantgit clone --depth 1 https://github.com/fuqiuluo/rust-elegant.git /tmp/rust-elegant
mkdir -p ~/.claude/skills
cp -r /tmp/rust-elegant/. ~/.claude/skills/rust-elegantPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Rust 优雅开发规范 **核心原则:写出来的代码要让有经验的 Rust 工程师看了不难受。能跑不是标准,惯用、可维护、高性能才是标准。** --- ## 适用范围 - 这些规则作用于**本次新写或改动的代码**。已有代码优先遵循项目现有约定(错误类型、模块布局、命名、注释风格),不要在修 bug 或加功能时顺手重构周边代码。 - 在已有代码里发现下表的问题:在回复里指出,是否重构由用户决定。 - 规则是默认做法,不是教条。常见例外写在对应的 reference 里;偏离默认做法时,在注释或回复里说明理由。 - 先分清写的是**库的公共 API**(会被其他 crate 依赖)还是**应用代码**(bin、服务,以及库的内部实现)。API 设计类规则(trait 抽象、`impl Into` / `impl Iterator` 签名、`#[non_exhaustive]`、thiserror 错误枚举)对库的公共 API 是硬性要求;应用代码优先简单直接,不为还没出现的需求提前抽象。 - review 代码时,区分"会导致 bug"的问题和"风格建议",不要把风格建议说成必须修改。 --- ## 快速诊断:看到这些先停一下 | 看到这个 | 可能的问题 | 去读 | |---|---|---| | 主语是自定义类型的自由函数,如 `fn parse_version(s)`、`fn version_to_string(v)` | 行为没有归位到类型上 | [type-design.md](references/type-design.md) | | `utils.rs` / `helpers.rs` 里堆着某个类型专属的函数 | 同上 | [project-structure.md](references/project-structure.md) | | 调用处像 `f(url, 8, 30_000, 3, true)`,看不出每个值是什么 | C 式传参 | [type-design.md](references/type-design.md) | | 参数是 `&String` / `&Vec<T>` / `&Box<T>` / `&Option<T>` | 过度具体化 | [type-design.md](references/type-design.md) | | 返回 `(u32, u32, bool)` 这类多元素元组,或定义多字段 tuple struct | 字段没有名字,只能靠 `.0` `.1` 猜 | [type-design.md](references/type-design.md) | | 数值收窄用 `as`(如 `n as u16`) | 越界时静默截断 | [type-design.md](references/type-design.md) | | `fn get_name(&self)`;只借用 `self` 却叫 `into_xxx` | 不符合标准库命名惯例 | [naming.md](references/naming.md) | | 生产路径上的 `.unwrap()`;库的公共 API 返回 `Box<dyn Error>` | 错误处理走极端 | [error-handling.md](references/error-handling.md) |
Details
- Skill name
rust-elegant- Repository
- fuqiuluo/rust-elegant
- License
- Unlicense
- Repo updated
- 22 October 2026
FAQ
What does the Rust Elegant skill do?
Rust 优雅开发规范,必须在以下场景触发:为 Rust 项目写代码、review Rust 代码、设计 Rust 项目结构、处理 Rust 错误类型时。覆盖命名、注释规范、枚举设计、trait 抽象、项目结构、错误处理、所有权、迭代器、宏、内存分配、match 穷尽性、unsafe 等所有 Rust 惯用法。只要任务涉及写或修改 Rust 代码,必须读取此 skill。
How do I install the Rust Elegant skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add fuqiuluo/rust-elegant --skill rust-elegant. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Rust Elegant popular?
It lives in fuqiuluo/rust-elegant, which has 12 GitHub stars and 1 forks.
Related skills
Vault
12AnYejun/blind-vault
Store and use the user's API keys, passwords, tokens, and credentials WITHOUT ever seeing their values. Trigger whenever the user mentions an API key, token, password, credential, login, secret, or .env file; wants to store or rotate one; or a command needs auth / fails with 401/403/"missing key". Values live in the macOS Keychain; the agent only ever reads a pointer manifest.
Enterprise Architect
7rafalr100/enterprise-architect-skill
Operate as a world-class Enterprise Architect (FAANG / top-tier consulting calibre) grounded in TOGAF, Zachman, and modern EA practice. Opens with discovery — asks the clarifying questions that materially change the architecture before producing any deliverable. Activates when the user asks for enterprise-architecture work — target architectures, reference architectures, architecture patterns, standards, principles, capability maps, technology strategy, roadmaps, trade-off analysis, architecture decision records, governance, or audience-tiered architecture presentations (C-level/board, solutio
Multi Search
11Nex-ZMH/Agent-websearch-skill
智能多引擎搜索,自动检测网络环境并按优先级切换:DuckDuckGo -> Tavily -> Bing API -> Bing爬虫。支持自动配额管理和网络缓存。Invoke when user needs web search with automatic engine selection and network adaptation.
Codex Sites Convex
12convex/Codex-Sites-Convex-Backend-Skill
Build, extend, validate, and publish a ChatGPT Sites application whose durable database and backend functions run on Convex. Use when a user invokes $codex-sites-convex, selects this skill from the skill picker, asks for a ChatGPT Site backed by Convex, or asks to add Convex data, realtime queries, mutations, authentication, files, schedules, or actions to an existing ChatGPT Sites project.
B3sty Skill
10b3sty191/b3sty-skill
b3sty rules for implementing, reviewing, debugging, refactoring, or optimizing RedM/FiveM Lua resources. Use for FXServer manifests, client/server Lua, natives/entities, native invocation from docs (hashes, InvokeNative, marshalling, RDR3 structs), events/callbacks/exports/NUI, NUI/browser-UI bridge (SendNUIMessage, RegisterNUICallback, SetNuiFocus), NUI XSS/player-string rendering, OneSync/entity networking (net IDs, ownership, routing buckets, broadcasts), built-in client events (weaponDamageEvent, explosionEvent), anti-cheat/event-security hardening (give-item/give-money dupe prevention, Re
Clojure Skills
13chaploud/clojure-skills
Clojure/ClojureScript/ClojureDart development skill. Activates when working with .clj, .cljs, .cljc, .cljd, .edn, .bb, .lpy files. Provides structural search and editing of S-expressions, nREPL evaluation, runtime queries via cider-nrepl, and static navigation via clojure-lsp.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.