rust-discipline

Community

Enforce Rust discipline across the RIPDPI codebase

Authorpo4yka
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Encode API-design discipline and catch high-signal Rust mistakes before they land in the native Rust workspace. Apply these rules when authoring or reviewing public (pub) and crate-public (pub(crate)) function signatures, struct definitions, and trait bounds anywhere in the workspace, and during code review, pre-merge self-check, and when tightening existing code.

Core Features & Use Cases

  • API Design Rules: Enforce borrowed args over owned references, avoid lifetime infections, and use HRTB-shaped callbacks for safety.
  • Anti-Patterns & Risk Mitigation: Provide guidance on panic discipline, error propagation, Drop/RAII, and aliasing issues to reduce bugs.
  • Use Case: As a code reviewer, apply these rules to a diff to prevent subtle API regressions.

Quick Start

Run the Rust discipline checks on your codebase and integrate into the PR review process to improve API safety.

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: rust-discipline
Download link: https://github.com/po4yka/RIPDPI/archive/main.zip#rust-discipline

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 510,000+ vetted skills library on demand.