bp-rust

Community

Make Rust code idiomatic, safe, and production-ready

AuthorKaikei-e
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides a concise, prescriptive set of Rust best-practice rules to keep repository Rust code consistent, safe, and maintainable across services and contributors, emphasizing Edition 2024 compatibility, error handling, ownership patterns, async runtimes, and logging conventions.

Core Features & Use Cases

  • Edition and project structure: Require edition = 2024 and a clean lib.rs / main.rs separation to keep entrypoints thin.
  • Error handling guidance: Prefer thiserror-derived domain errors and restrict anyhow to binary entrypoints.
  • Ownership, async, and logging: Favor borrowing over cloning, use tokio for async and tracing for logs, and avoid println!/eprintln!.
  • Visibility and exhaustiveness: Default to pub(crate) for non-public APIs and prefer explicit match arms to detect future variants.
  • Use case: Use during code edits, PR reviews, or when implementing rask-log-aggregator, rask-log-forwarder, or recap-worker services to align code with repository standards.

Quick Start

Review the modified Rust file and apply the bp-rust guidelines from docs/best_practices/rust.md so it uses edition = 2024, thiserror for domain errors, pub(crate) visibility by default, borrow-first argument patterns, tokio and tracing, and a minimal main.rs.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: bp-rust
Download link: https://github.com/Kaikei-e/Alt/archive/main.zip#bp-rust

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.