Agent skill

Rust Specialist

by caarlos0 in caarlos0/dotfiles

Rust specialist for implementation, review, refactoring, safety, cross-platform behavior, async/process lifecycles, and measured performance.

MITAuto-check passedDevelopment

Install Rust Specialist

skills CLI
$ npx skills add caarlos0/dotfiles --skill rust-specialist -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install caarlos0/dotfiles rust-specialist --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/caarlos0/dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/rust-specialist .claude/skills/rust-specialist && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rust-specialist
GitHub stars
220
Token cost
~601 tokens
SKILL.md length
288 words
Files
1
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

Rust specialist for implementation, review, refactoring, safety, cross-platform behavior, async/process lifecycles, and measured performance.

  • Rust project work
  • SKILL.md covers Implementation, Changes and tests, Performance and Validation
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Refactoring

What it does

Rust Specialist is an agent skill from caarlos0/dotfiles. Rust specialist for implementation, review, refactoring, safety, cross-platform behavior, async/process lifecycles, and measured performance. Use for Rust project work.

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Refactoring. It works with Rust. The licence is MIT.

When your agent uses it

  • Rust project work
  • Tasks that involve Refactoring

Example prompts

  • “/rust-specialist”

What it can do on your machine

Read from SKILL.md and the folder at commit 892360f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rust Specialist loads about 601 tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 288 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~601

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from caarlos0/dotfiles at commit 892360f, republished under its MIT licence (© caarlos0). 288 words, ~601 tokens.

Download SKILL.mdSave it as .claude/skills/rust-specialist/SKILL.md (or your agent's skills folder).
name
rust-specialist
description
Rust specialist for implementation, review, refactoring, safety, cross-platform behavior, async/process lifecycles, and measured performance. Use for Rust project work.

Rust Specialist

Follow repository conventions first. Use Rust's type system to make invalid states hard to express, but prefer straightforward code over typestate, generics, traits, macros, or new crates that do not pay for themselves.

Implementation

  • Prefer safe Rust and the standard library.
  • Keep public APIs small; use pub(crate) or private items by default.
  • Model meaningful states with enums; do not replace a clear boolean with an abstraction merely for style.
  • Propagate errors with context and match the repository's error types.
  • Use unwrap, expect, and panic! only where repository policy and an invariant make them appropriate.
  • Every unsafe block needs a precise SAFETY explanation and the smallest possible scope.
  • Prefer #[cfg] for platform-specific code. Use Path/OsStr rather than string-based path manipulation.
  • In async and process code, inspect cancellation, task ownership, EOF, pipe inheritance, shutdown ordering, and blocking operations.

Changes and tests

  • Make surgical diffs and reuse neighboring patterns.
  • Add deterministic regression tests for behavior changes. Control ordering with channels, barriers, or injected state rather than sleeps.
  • Check absent/default/explicit values when changing serde or configuration.
  • Keep test-only helpers and fields behind #[cfg(test)] where possible.
  • Do not add dependencies, Miri, property testing, benchmarks, or audit tools unless the task demonstrates a need.

Performance

Measure before optimizing. Establish a representative benchmark or profile, change the demonstrated hot path, and report before/after numbers. Do not infer performance from iterator style, allocation folklore, or generated assembly without evidence relevant to the workload.

Validation

Discover repository commands. Prefer the smallest targeted test plus formatting and linting already required by the project. Expand to crate or workspace checks only when the changed surface warrants it.

For reviews, report only high-confidence soundness, correctness, portability, lifecycle, error-handling, and measured-performance problems. Do not impose a fixed response template.

© caarlos0, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/rust-specialist of caarlos0/dotfiles.

Open the folder on GitHubat commit 892360f

Compare with similar skills

Rust Specialist next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rust Specialist compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rust Specialist this skillcaarlos0/dotfiles220—~601Automated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman42k—~2.6kAutomated safety check: PassGPL-3.0
Rust Best Practicesfarm-fe/farm5.6k3 repos~1.1kAutomated safety check: PassMIT
RTK Rust Design Patternsrtk-ai/rtk83k—~1.9kAutomated safety check: PassApache-2.0
RTK Rust Code Simplifierrtk-ai/rtk83k—~1.1kAutomated safety check: PassApache-2.0
Rust Hygiene Audittsz-org/tsz577—~1.5kAutomated safety check: PassApache-2.0

Similar skills

  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    42k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Describes seven Rust design patterns for the RTK CLI filter modules, with when to use each, RTK examples, and notes on when a pattern is overkill.

    83k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Reviews RTK's Rust code for over-engineering and verbose patterns, applying idioms like iterator chains and early returns while protecting a specific list of constraints from being simplified away.

    83k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Run a deep DRY + code-hygiene audit of the Rust workspace and turn the findings into verified, deduplicated, hierarchical GitHub tech-debt issues.

    577 GitHub stars~1.5k tokensUpdated 29 days ago
    DevelopmentAuto-check passed
  • Coding Agent

    mastra-ai/mastra

    Authoring playbook for building agents that write, edit, review, or refactor code.

    29k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed

More from caarlos0/dotfiles

All 20 skills in this repo
  • CLI Design

    caarlos0/dotfiles

    Design and review command-line interfaces for usability, automation, safety, accessibility, and long-term compatibility.

    220 GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Dependabot Merge

    caarlos0/dotfiles

    Review and merge open dependency pull requests from Dependabot, Renovate and similar bots across the goreleaser organization and the caarlos0 user.

    220 GitHub stars~5k tokensUpdated today
    Auto-check passed
  • Gh CLI

    caarlos0/dotfiles

    Use GitHub CLI efficiently for pull requests, CI checks, workflow runs, logs, and merge status.

    220 GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Tui Design

    caarlos0/dotfiles

    Design terminal user interfaces and interactive CLIs that stay usable, accessible, and scriptable.

    220 GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Dashboard

    caarlos0/dotfiles

    Design and review dashboards that are informative, honest, accessible, and visually polished, independent of any tool.

    220 GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • Gh Doc Author

    caarlos0/dotfiles

    Author and revise clear GitHub internal documentation, including design docs, proposals, decision records, runbooks, status updates, and handoffs.

    220 GitHub stars~2.2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Rust Specialist

What does Rust Specialist do?

Rust specialist for implementation, review, refactoring, safety, cross-platform behavior, async/process lifecycles, and measured performance. Rust Specialist is an agent skill from caarlos0/dotfiles. Rust specialist for implementation, review, refactoring, safety, cross-platform behavior, async/process lifecycles, and measured performance.

When should I use Rust Specialist?

Rust Specialist fits situations like: rust project work; tasks that involve Refactoring.

How do I install Rust Specialist in Claude Code?

Run `npx skills add caarlos0/dotfiles --skill rust-specialist -a claude-code`. Or copy the skill folder (skills/rust-specialist in caarlos0/dotfiles) into .claude/skills/rust-specialist in your project. Claude Code loads it when a task matches its description.

How do I install Rust Specialist in Codex?

Run `npx skills add caarlos0/dotfiles --skill rust-specialist -a codex`. Or copy the skill folder (skills/rust-specialist in caarlos0/dotfiles) into .agents/skills/rust-specialist in your project. Codex loads it when a task matches its description.

Can I use Rust Specialist in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add caarlos0/dotfiles --skill rust-specialist -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rust-specialist, .gemini/skills/rust-specialist, .github/skills/rust-specialist and .opencode/skills/rust-specialist in your project.

What does Rust Specialist need to run?

SKILL.md names no scripts, command-line tools or credentials: Rust Specialist is instructions for the agent only.

Does Rust Specialist access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Rust Specialist safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rust Specialist use?

Rust Specialist is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rust Specialist use?

About 601 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rust Specialist?

Skills that share tags, products or a category with Rust Specialist: Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars), Rust Best Practices (farm-fe/farm, 5.6k stars), RTK Rust Design Patterns (rtk-ai/rtk, 83k stars) and RTK Rust Code Simplifier (rtk-ai/rtk, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rust Specialist?

caarlos0 (a GitHub user) maintains it in caarlos0/dotfiles, which has 220 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 9, 2026.

Source: caarlos0/dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.