rust

Enforce MSRV, clippy pedantic, zero-unsafe, and error handling conventions for Rust code.

1|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/agentglass/claude-trace --skill rust-agentglass
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust
Source: https://github.com/agentglass/claude-trace/tree/main/.claude-plugin/skills/rust
Command: npx skills add https://github.com/agentglass/claude-trace --skill rust-agentglass

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive, non-negotiable context for developing Rust code within the claude-trace project, ensuring adherence to strict quality, safety, and convention standards.

Core Features & Use Cases

  • Enforces Project Standards: Ensures all Rust code meets the project's Minimum Supported Rust Version (MSRV), pedantic clippy rules, zero-unsafe policy, and specific error handling conventions.
  • PyO3 Integration Guidance: Details correct patterns for integrating Rust with Python via PyO3, including GIL management and thread safety.
  • Testing and Documentation: Mandates specific testing strategies (coverage, location, naming) and documentation standards for public APIs.
  • Use Case: When writing a new Rust function for the claude-trace library, this Skill guides you on how to correctly implement it, add necessary tests, document it according to project standards, and ensure it doesn't violate any safety or linting rules.

Quick Start

Write a new Rust function in src/spans/turn.rs that calculates the duration of a turn span, ensuring it adheres to the project's zero-unsafe policy and includes a comprehensive doc comment.

Frequently Asked Questions about rust

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce a zero-unsafe policy and strict clippy pedantic rules in Rust development?

This context enforces zero-unsafe policy and clippy pedantic rules by providing non-negotiable standards for all .rs files, ensuring Rust development meets strict quality and safety conventions.

What are the correct patterns for PyO3 integration and GIL management in Rust?

Correct PyO3 integration patterns in Rust require specific GIL management and thread safety conventions. This context guides proper integration of Rust with Python via PyO3 for the claude-trace project.

How do I set up testing requirements and documentation standards for Rust public APIs?

Set up Rust testing by following mandated coverage, location, and naming strategies. This context also enforces documentation standards for public APIs across all Cargo.toml and .rs files.

Does this Rust development context enforce Minimum Supported Rust Version (MSRV) compliance?

Yes, this Rust development context enforces MSRV compliance. It provides comprehensive project standards ensuring all code adheres to the specified Minimum Supported Rust Version alongside zero-unsafe policies.

What is the best way to manage error handling conventions when writing Rust functions?

The best way to manage Rust error handling conventions is by applying this context's specific error handling rules. It ensures functions in the claude-trace project maintain strict safety and quality standards.