Agent Skillsfabro-sh/fabro › rust-style-guide

rust-style-guide

GitHub

提供 Rust 项目编码规范与工作流程,涵盖代码编写、审查、重构及新项目配置。支持 Rust 2024/MSRV、异步编程、性能调优、库发布验证及安全宏策略,辅助开发者遵循统一风格。

.fabro/skills/rust-style-guide/SKILL.md fabro-sh/fabro

Trigger Scenarios

编写或审查 Rust 代码 重构 Rust 项目结构 创建新的 Rust crate 或工作区 验证可复用库的发布版本 调查 Rust 代码性能问题

Install

npx skills add fabro-sh/fabro --skill rust-style-guide -g -y
More Options

Non-standard path

npx skills add https://github.com/fabro-sh/fabro/tree/main/.fabro/skills/rust-style-guide -g -y

Use without installing

npx skills use fabro-sh/fabro@rust-style-guide

指定 Agent (Claude Code)

npx skills add fabro-sh/fabro --skill rust-style-guide -a claude-code -g -y

安装 repo 全部 skill

npx skills add fabro-sh/fabro --all -g -y

预览 repo 内 skill

npx skills add fabro-sh/fabro --list

SKILL.md

Frontmatter
{
    "name": "rust-style-guide",
    "description": "Apply this Rust style guide when writing, reviewing, refactoring, or configuring Rust code for this project. Covers Rust 2024\/MSRV, library vs application conventions, public API design, errors, panics, ownership and cloning, async\/Tokio\/concurrency, tracing, rustfmt\/Clippy, testing with nextest, and unsafe\/macro policy. Also use when setting up new Rust projects, investigating Rust performance, verifying library releases, or reviewing Rust code changes."
}

Rust Style Guide

Use this skill to apply the project's Rust style conventions while writing, reviewing, refactoring, or configuring Rust code.

Location: This skill's supporting files live in .fabro/skills/rust-style-guide/ at the repository root. Every linked path below (guidelines.md, guidelines/*.md, workflows/*.md) is relative to that directory. Read them with that prefix — e.g. .fabro/skills/rust-style-guide/guidelines.md.

Supporting Files

Routing Examples

Task Load
Create a new Rust project workflows/new-rust-project.md, guidelines.md
Verify a reusable library release workflows/reusable-library-release.md, guidelines.md
Investigate performance workflows/performance-investigation.md, guidelines.md
Review or refactor code workflows/code-review-refactor.md, guidelines.md
Define a public library error type guidelines.md, library/application errors, error propagation, public API evolution
Handle top-level CLI/application errors guidelines.md, library/application errors, error propagation, panics
Choose enum vs trait vs trait object guidelines.md, enums vs traits, trait design, public API evolution
Add a domain ID or validated value guidelines.md, newtypes, constructors, validation
Write async service code guidelines.md, async runtime, task lifecycle, shutdown, logging
Add instrumentation guidelines.md, logging and observability, error messages
Configure formatting, lints, or tests guidelines.md, rustfmt, Clippy, Cargo, CI
Review unsafe code or macros guidelines.md, unsafe and macros, public API evolution

Core Behavior

  • Load only the pages the task needs; guideline pages are the policy, workflow pages are the procedures.
  • Prefer concrete Rust guidance over language tutorials.
  • Keep library/application differences explicit.
  • Use the project's OO-leaning Rust default without forcing inheritance-shaped designs.
  • Prefer strong, compiler-backed types over primitive-heavy APIs.
  • Apply the loaded rules directly. Ask one focused question only when required project context is missing.

Version History

  • 7501ada Current 2026-07-25 09:40

Same Skill Collection

.claude/skills/changelog/SKILL.md
.claude/skills/docs/SKILL.md

Metadata

Files
0
Version
2f326a1
Hash
69dc6256
Indexed
2026-07-25 09:40

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-16 08:09
浙ICP备14020137号-1 $방문자$