lang-rs

Standardizes Rust code quality and implementation choices for idiomatic development using rustfmt, clippy, cargotest, and panic avoidance.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/dragoscirjan/opencode-config --skill lang-rs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lang-rs
Source: https://github.com/dragoscirjan/opencode-config/tree/main/skills/lang-rs
Command: npx skills add https://github.com/dragoscirjan/opencode-config --skill lang-rs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams write Rust code that is idiomatic, safer by default, and easier to maintain by providing a compact set of development standards and guardrails.

Core Features & Use Cases

  • Rust API Guidance: Aligns code with established Rust API design principles for clearer, more consistent interfaces.
  • Tooling Expectations: Encourages formatting, linting, and testing practices that keep Rust projects reliable and maintainable.
  • Safety and Error Handling: Promotes explicit results, optional values, and panic avoidance in library code.
  • Use Case: Use this Skill when reviewing a Rust crate, designing a new module, or setting implementation standards for an async application.

Quick Start

Apply the lang-rs skill to review or write Rust code so it follows the listed style, tooling, safety, and concurrency standards.

Frequently Asked Questions about lang-rs

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

FAQPage Schema
What are the Rust API guidelines for writing safer library code?

Rust API guidelines help standardize library code by enforcing explicit results, optional values, and panic avoidance. Adhering to these principles ensures your crate interfaces are clearer, more consistent, and safer by default.

How do I configure clippy and rustfmt for Rust code quality?

Configuring clippy and rustfmt standardizes Rust code quality by enforcing consistent formatting and linting discipline. Applying these tooling expectations keeps your Rust projects reliable and easier to maintain.

What is the best way to handle errors in async Rust services?

The best way to handle errors in async Rust services is using explicit results and optional values while practicing strict panic avoidance. This approach aligns with Rust API guidelines for safer, more idiomatic development.

Does this Skill apply to both Rust applications and async services?

Yes, this applies to Rust libraries, applications, and async services. It provides API guidance, linting discipline via clippy, and consistent error handling standards for safer, more idiomatic development across these contexts.

Why should I avoid panics in my Rust library code?

You should avoid panics in Rust library code to ensure safer, more predictable error handling. Promoting explicit results and optional values instead of panics makes your crate easier to maintain and more idiomatic.

How do I set implementation standards for a new Rust module?

Set implementation standards for a new Rust module by applying rustfmt, clippy, and cargo test alongside Rust API guidelines. This enforces explicit error handling and consistent tooling expectations for safer code.