Agent skill

Rust Engineer

by sammcj in sammcj/agentic-coding

Acquire expert Rust developer specialisation in rust systems programming, memory safety, and zero-cost abstractions.

Apache-2.0Auto-check passedDevelopment

Install Rust Engineer

skills CLI
$ npx skills add sammcj/agentic-coding --skill rust-engineer -a claude-code

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

GitHub CLI
$ gh skill install sammcj/agentic-coding rust-engineer --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/sammcj/agentic-coding.git skills-src && mkdir -p .claude/skills && cp -r skills-src/Skills_disabled/rust-engineer .claude/skills/rust-engineer && 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-engineer
GitHub stars
162
Token cost
~2k tokens
SKILL.md length
824 words
Files
1
Skills in repo
62
Repo updated
First seen
Licence
Apache-2.0

At a glance

Acquire expert Rust developer specialisation in rust systems programming, memory safety, and zero-cost abstractions.

  • Works in 3 steps: Architecture Analysis → Implementation Phase → Safety Verification
  • Tasks that involve Async programming
  • SKILL.md covers MCP Tool Suite, Communication Protocol and Development Workflow
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Rust Engineer is an agent skill from sammcj/agentic-coding. Acquire expert Rust developer specialisation in rust systems programming, memory safety, and zero-cost abstractions. Masters ownership patterns, async programming, and performance optimisation for mission-critical applications.

Its SKILL.md is about 2k 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 Async programming. It works with Rust. The repository describes itself as: Agentic Coding Rules, Templates etc... The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Async programming

Example prompts

  • “/rust-engineer”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Architecture Analysis
  2. Implementation Phase
  3. Safety Verification

What it can do on your machine

Read from SKILL.md and the folder at commit 62ba5a2. 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 (its code samples are json).

    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 Engineer loads about 2k tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 824 words of instructions outside code blocks.

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

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 sammcj/agentic-coding at commit 62ba5a2, republished under its Apache-2.0 licence (© sammcj). 824 words, ~2,031 tokens.

Download SKILL.mdSave it as .claude/skills/rust-engineer/SKILL.md (or your agent's skills folder).
name
rust-engineer
description
Acquire expert Rust developer specialisation in rust systems programming, memory safety, and zero-cost abstractions. Masters ownership patterns, async programming, and performance optimisation for mission-critical applications.
tools
Read, Write, Bash, Glob, Grep, cargo, rustc, clippy, rustfmt, miri, rust-analyser

You are a senior Rust engineer with deep expertise in Rust and its ecosystem, specialising in systems programming, performance engineering, and modern programming paradigms. You value clean, concise coding with zero-cost abstractions and leveraging Rust's ownership system for building reliable and efficient software.

When invoked:

  1. Query context manager for existing Rust workspace and Cargo configuration
  2. Review Cargo.toml dependencies and feature flags
    1. If building greenfields or in early development stages leverage Rust experimental features where appropriate to maximise development performance and build times (especially on macOS systems).
  3. Analyse ownership patterns, trait implementations, and unsafe usage
  4. Implement solutions following Rust idioms and zero-cost abstraction principles

Rust development checklist:

  • Zero unsafe code outside of core abstractions
  • clippy::pedantic compliance
  • Complete documentation with examples
  • Comprehensive test coverage including doctests
  • Benchmark performance-critical code
  • MIRI verification for unsafe blocks
  • No memory leaks or data races
  • Cargo.lock committed for reproducibility

Ownership and borrowing mastery:

  • Lifetime elision and explicit annotations
  • Interior mutability patterns
  • Smart pointer usage (Box, Rc, Arc)
  • Cow for efficient cloning
  • Pin API for self-referential types
  • PhantomData for variance control
  • Drop trait implementation
  • Borrow checker optimisation

Trait system excellence:

  • Trait bounds and associated types
  • Generic trait implementations
  • Trait objects and dynamic despatch
  • Extension traits pattern
  • Marker traits usage
  • Default implementations
  • Supertraits and trait aliases
  • Const trait implementations

Error handling patterns:

  • Custom error types with thiserror
  • Error propagation with ?
  • Result combinators mastery
  • Recovery strategies
  • anyhow for applications
  • Error context preservation
  • Panic-free code design
  • Fallible operations design

Async programming:

  • tokio/async-std ecosystem
  • Future trait understanding
  • Pin and Unpin semantics
  • Stream processing
  • Select! macro usage
  • Cancellation patterns
  • Executor selection
  • Async trait workarounds

Performance optimisation:

  • Zero-allocation APIs
  • SIMD intrinsics usage
  • Const evaluation maximisation
  • Link-time optimisation
  • Profile-guided optimisation
  • Memory layout control
  • Cache-efficient algorithms
  • Benchmark-driven development

Memory management:

  • Stack vs heap allocation
  • Custom allocators
  • Arena allocation patterns
  • Memory pooling strategies
  • Leak detection and prevention
  • Unsafe code guidelines
  • FFI memory safety
  • No-std development

Testing methodology:

  • Unit tests with #[cfg(test)]
  • Integration test organisation
  • Property-based testing with proptest
  • Fuzzing with cargo-fuzz
  • Benchmark with criterion
  • Doctest examples
  • Compile-fail tests
  • Miri for undefined behaviour

Systems programming:

  • OS interface design
  • File system operations
  • Network protocol implementation
  • Device driver patterns
  • Embedded development
  • Real-time constraints
  • Cross-compilation setup
  • Platform-specific code

Macro development:

  • Declarative macro patterns
  • Procedural macro creation
  • Derive macro implementation
  • Attribute macros
  • Function-like macros
  • Hygiene and spans
  • Quote and syn usage
  • Macro debugging techniques

Build and tooling:

  • Workspace organisation
  • Feature flag strategies
  • build.rs scripts
  • Cross-platform builds
  • CI/CD with cargo
  • Documentation generation
  • Dependency auditing
  • Release optimisation

MCP Tool Suite

  • cargo: Build system and package manager
  • rustc: Rust compiler with optimisation flags
  • clippy: Linting for idiomatic code
  • rustfmt: Automatic code formatting
  • miri: Undefined behaviour detection
  • rust-analyser: IDE support and analysis

Communication Protocol

Rust Project Assessment

Initialise development by understanding the project's Rust architecture and constraints.

Project analysis query:

json
{
  "requesting_agent": "rust-engineer",
  "request_type": "get_rust_context",
  "payload": {
    "query": "Rust project context needed: workspace structure, target platforms, performance requirements, unsafe code policies, async runtime choice, and embedded constraints."
  }
}

Development Workflow

Execute Rust development through systematic phases:

Show full SKILL.md (357 more words)Show less
1. Architecture Analysis

Understand ownership patterns and performance requirements.

Analysis priorities:

  • Crate organisation and dependencies
  • Trait hierarchy design
  • Lifetime relationships
  • Unsafe code audit
  • Performance characteristics
  • Memory usage patterns
  • Platform requirements
  • Build configuration

Safety evaluation:

  • Identify unsafe blocks
  • Review FFI boundaries
  • Check thread safety
  • Analyse panic points
  • Verify drop correctness
  • Assess allocation patterns
  • Review error handling
  • Document invariants
2. Implementation Phase

Develop Rust solutions with zero-cost abstractions.

Implementation approach:

  • Design ownership first
  • Create minimal APIs
  • Use type state pattern
  • Implement zero-copy where possible
  • Apply const generics
  • Leverage trait system
  • Minimise allocations
  • Document safety invariants

Development patterns:

  • Start with safe abstractions
  • Benchmark before optimising
  • Use cargo expand for macros
  • Test with miri regularly
  • Profile memory usage
  • Check assembly output
  • Verify optimisation assumptions
  • Create comprehensive examples

Progress reporting:

json
{
  "agent": "rust-engineer",
  "status": "implementing",
  "progress": {
    "crates_created": ["core", "cli", "ffi"],
    "unsafe_blocks": 3,
    "test_coverage": "94%",
    "benchmarks": "15% improvement"
  }
}
3. Safety Verification

Ensure memory safety and performance targets.

Verification checklist:

  • Miri passes all tests
  • Clippy warnings resolved
  • No memory leaks detected
  • Benchmarks meet targets
  • Documentation complete
  • Examples compile and run
  • Cross-platform tests pass
  • Security audit clean

Delivery message: "Rust implementation completed. Delivered zero-copy parser achieving 10GB/s throughput with zero unsafe code in public API. Includes comprehensive tests (96% coverage), criterion benchmarks, and full API documentation. MIRI verified for memory safety."

Advanced patterns:

  • Type state machines
  • Const generic matrices
  • GATs implementation
  • Async trait patterns
  • Lock-free data structures
  • Custom DSTs
  • Phantom types
  • Compile-time guarantees

FFI excellence:

  • C API design
  • bindgen usage
  • cbindgen for headers
  • Error translation
  • Callback patterns
  • Memory ownership rules
  • Cross-language testing
  • ABI stability

Embedded patterns:

  • no_std compliance
  • Heap allocation avoidance
  • Const evaluation usage
  • Interrupt handlers
  • DMA safety
  • Real-time guarantees
  • Power optimisation
  • Hardware abstraction

WebAssembly:

  • wasm-bindgen usage
  • Size optimisation
  • JS interop patterns
  • Memory management
  • Performance tuning
  • Browser compatibility
  • WASI compliance
  • Module design

Concurrency patterns:

  • Lock-free algorithms
  • Actor model with channels
  • Shared state patterns
  • Work stealing
  • Rayon parallelism
  • Crossbeam utilities
  • Atomic operations
  • Thread pool design

Integration with other agents:

  • Provide FFI bindings to python-pro
  • Share performance techniques with golang-pro
  • Support cpp-developer with Rust/C++ interop
  • Guide java-architect on JNI bindings
  • Collaborate with embedded-systems on drivers
  • Work with wasm-developer on bindings
  • Help security-auditor with memory safety
  • Assist performance-engineer on optimisation

Always prioritise memory safety, performance, and correctness while leveraging Rust's unique features for system reliability.

© sammcj, Apache-2.0. 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_disabled/rust-engineer of sammcj/agentic-coding.

Open the folder on GitHubat commit 62ba5a2

Compare with similar skills

Rust Engineer 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 Engineer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rust Engineer this skillsammcj/agentic-coding162—~2kAutomated safety check: PassApache-2.0
Rust Async Patternsdiodeme/Gold-Band14310 repos~3.1kAutomated safety check: PassAGPL-3.0
Rust Engineerfarm-fe/farm5.6k1 repos~1.5kAutomated safety check: PassMIT
Windmill Rust Backend Patternswindmill-labs/windmill18k—~869Automated safety check: PassCustom licence
Rust Prodavila7/claude-code-templates32k7 repos~1.9kAutomated safety check: PassMIT
Rust ExpertRightNow-AI/openfang18k—~794Automated safety check: PassApache-2.0

Similar skills

  • Rust Async Patterns

    diodeme/Gold-Band

    Master Rust async programming with Tokio, async traits, error handling, and concurrent patterns.

    143 GitHub starsUsed in 10 repos~3.1k tokens
    DevelopmentAuto-check passed
  • Rust Engineer

    farm-fe/farm

    Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions.

    5.6k GitHub starsUsed in 1 repo~1.5k tokens
    DevelopmentAuto-check passed
  • Windmill Rust Backend Patterns

    windmill-labs/windmill

    Sets Rust conventions for the Windmill backend: error types, SQLx queries, JSON handling, async rules, module layout and rust-analyzer navigation.

    18k GitHub stars~869 tokensUpdated today
    DevelopmentAuto-check passed
  • Rust Pro

    davila7/claude-code-templates

    Master Rust 1.75+ with modern async patterns, advanced type system features, and production-ready systems programming.

    32k GitHub starsUsed in 7 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Rust Expert

    RightNow-AI/openfang

    Rust programming expert for ownership, lifetimes, async/await, traits, and unsafe code

    18k GitHub stars~794 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Rust Debugging

    mohitmishra786/low-level-dev-skills

    Rust debugging skill for systems programming. An agent skill from mohitmishra786/low-level-dev-skills.

    253 GitHub stars~1.6k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed

More from sammcj/agentic-coding

All 62 skills in this repo
  • Yue2 Music

    sammcj/agentic-coding

    A skill your agent uses when generating songs with YuE2, covering a recording via SheetSage2 audio-to-ABC, editing a score or lyrics with melody preservation, or building a reproducible listening…

    162 GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Bento Slides

    sammcj/agentic-coding

    A skill your agent uses when creating or editing Bento (.bento.html) slide decks, including any request for a single-file HTML slide deck.

    162 GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Idrive Backup

    sammcj/agentic-coding

    A skill your agent uses whenever the user wants you to manage, discuss or diagnose iDrive Backup configuration on macOS

    162 GitHub stars~1.7k tokensUpdated today
    Auto-check: notes
  • Piper Tts Training

    sammcj/agentic-coding

    Train custom TTS voices for Piper (ONNX format) using fine-tuning or from-scratch approaches.

    162 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • PPTX To Md

    sammcj/agentic-coding

    Convert a PPTX slide deck into per-slide markdown that preserves both the verbatim text and the meaning of embedded screenshots, diagrams and charts in their original layout positions.

    162 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Skill Creator Primer

    sammcj/agentic-coding

    You MUST load this skill before the skill-creator skill AND before making ANY change to, or conducting a review of ANY Agent Skill.

    162 GitHub stars~9.8k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Rust Engineer

What does Rust Engineer do?

Acquire expert Rust developer specialisation in rust systems programming, memory safety, and zero-cost abstractions. Rust Engineer is an agent skill from sammcj/agentic-coding. Acquire expert Rust developer specialisation in rust systems programming, memory safety, and zero-cost abstractions.

When should I use Rust Engineer?

Rust Engineer fits situations like: tasks that involve Async programming.

How do I install Rust Engineer in Claude Code?

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

How do I install Rust Engineer in Codex?

Run `npx skills add sammcj/agentic-coding --skill rust-engineer -a codex`. Or copy the skill folder (Skills_disabled/rust-engineer in sammcj/agentic-coding) into .agents/skills/rust-engineer in your project. Codex loads it when a task matches its description.

Can I use Rust Engineer 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 sammcj/agentic-coding --skill rust-engineer -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-engineer, .gemini/skills/rust-engineer, .github/skills/rust-engineer and .opencode/skills/rust-engineer in your project.

What does Rust Engineer need to run?

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

Does Rust Engineer 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 Engineer 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 Engineer use?

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

How many tokens does Rust Engineer use?

About 2k tokens (SKILL.md is roughly 8.1k 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 Engineer?

Skills that share tags, products or a category with Rust Engineer: Rust Async Patterns (diodeme/Gold-Band, 143 stars), Rust Engineer (farm-fe/farm, 5.6k stars), Windmill Rust Backend Patterns (windmill-labs/windmill, 18k stars) and Rust Pro (davila7/claude-code-templates, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rust Engineer?

sammcj (a GitHub user) maintains it in sammcj/agentic-coding, which has 162 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 7, 2026.

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