rust-backend-code-standard

Enforce Tauri Rust backend coding standards for entities, services, and commands.

1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/hi-yuki-922/accounting-assistant --skill rust-backend-code-standard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-backend-code-standard
Source: https://github.com/hi-yuki-922/accounting-assistant/tree/main/.claude/skills/rust-backend-code-standard
Command: npx skills add https://github.com/hi-yuki-922/accounting-assistant --skill rust-backend-code-standard

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures consistency, maintainability, and readability in the Tauri Rust backend code, preventing common errors and promoting best practices.

Core Features & Use Cases

  • Code Consistency: Enforces naming conventions, formatting, and architectural patterns.
  • Type Safety: Mandates correct type usage, especially for financial data (Decimal).
  • Error Handling: Guides proper error management using Result and avoiding panics.
  • Use Case: When developing new backend features, use this Skill to ensure all new Rust code adheres to the project's established quality standards before merging.

Quick Start

Apply the rust-backend-code-standard skill to review the new Rust code in src-tauri/src/services/accounting.rs.

Frequently Asked Questions about rust-backend-code-standard

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

FAQPage Schema
What are the Rust backend coding standards for Tauri?

Tauri Rust backend coding standards enforce entity-first design, layered architecture, type safety using Decimal for amounts, explicit error handling with Result, and asynchronous programming within src-tauri/src/.

How do I handle financial data types in Rust backend code?

Handle financial data in Rust backend code by using the Decimal type for amounts. This enforces type safety and prevents common precision errors inherent in standard floating-point arithmetic.

How to structure Rust services and commands in a Tauri backend?

Structure Rust services and commands in a Tauri backend using a layered architecture. This approach governs the creation of entities, services, commands, and enums, ensuring code consistency and maintainability.

Why use explicit error handling with Result in Rust backend development?

Explicit error handling with Result in Rust backend development prevents panics and ensures proper error management. It guides correct error propagation across architectural layers, improving overall code readability.

Does the Rust backend coding standard require specific comments?

Yes, this Rust backend coding standard requires Chinese comments. This enforces readability and consistency across the project, governing code within the src-tauri/src/ directory.

Can I use Sea-ORM with Tauri Rust backend layered architecture?

Yes, you can use Sea-ORM with a Tauri Rust backend. The standard enforces an entity-first design and layered architecture, which integrates with Sea-ORM for database operations and sidecar-related code.