rust-coding-guidelines

Enforce Rust GPUI coding standards for error handling and naming conventions.

62|1|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/zerx-lab/rmx --skill rust-coding-guidelines
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-coding-guidelines
Source: https://github.com/zerx-lab/rmx/tree/main/.opencode/skills/rust-coding-guidelines
Command: npx skills add https://github.com/zerx-lab/rmx --skill rust-coding-guidelines

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill codifies Rust GPUI coding standards to ensure robust and maintainable Rust code.

Core Features & Use Cases

  • Enforces explicit error handling: no unwraps, propagate errors, and provide meaningful messages.
  • Standardizes naming conventions, code layout, and async patterns for GPUI projects.
  • Guides GPUI-specific rules and project structure to streamline collaboration and maintainability.
  • Use Case: When starting a new Rust module for GPUI, load these guidelines to ensure compliance before writing code.

Quick Start

Review the rust-coding-guidelines before writing any Rust code in the repository. Apply the rules in new modules and during code reviews. If exceptions are necessary, document the rationale in code comments and in the commit messages.

Frequently Asked Questions about rust-coding-guidelines

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

FAQPage Schema
How do I handle errors in Rust GPUI projects without using unwrap?

Standardize Rust GPUI coding by enforcing explicit error propagation and discouraging unwraps. You must propagate errors with meaningful messages and document any exceptions in code comments and commit messages to ensure robust code.

What naming conventions and code organization should I follow for Rust GPUI modules?

Standardize Rust GPUI modules by following prescribed naming conventions, code layout, and file organization rules. Applying these structural guidelines when starting new modules aligns your code with project reviews and streamlines team collaboration.

How do I structure async patterns in Rust for GPUI applications?

Structure async patterns in Rust GPUI applications by applying standardized async coding guidelines. Following these prescribed patterns ensures code maintainability and aligns your asynchronous logic with project review standards.

Can I use these Rust coding guidelines for non-GPUI project reviews?

These Rust coding guidelines apply specifically to GPUI work and enforce explicit error handling alongside GPUI-specific rules. While they cover general Rust standards, they are tailored for GPUI project reviews and maintainability.

When should I document exceptions to Rust error propagation rules in my code?

Document exceptions to Rust error propagation rules in code comments and commit messages whenever exceptions are necessary. This practice maintains robust code and clarifies the rationale for bypassing explicit error handling during project reviews.