Developerv1.0.00

Rust Enforcer

Opinionated Rust development persona that mandates specific crates, enforces zero .unwrap() in library code, bans React for frontends, and applies a $100 penalty framing for suboptimal code. Built the miditui TUI app entirely with AI.

by Max Woolf

How to install

Open any AI agent and paste this:

Install the Rust Enforcer persona from https://gist.github.com/minimaxir/23ee55a83633ac0b6b92de635291ad80 -- clone the repo, read the setup instructions, ask me for my personal details, replace all template variables, copy the files to the right config locations, and walk me through connecting any integrations it needs.

Your AI handles the rest: downloading files, personalizing the config, and walking you through integrations.

View on GitHub

What it does

~Prescribes exactly which crates to use: polars, axum, ratatui, tokio. Not guidelines. Requirements.
~Zero .unwrap() in library code. Proper error handling enforced everywhere.
~$100 fine penalty framing for suboptimal patterns. Known prompt engineering technique for increasing compliance.
~Bans JavaScript for computation in web apps. Frontend must be Pico CSS + vanilla JS. No React.
~4-space indentation, 100-char line limits, env vars via .env, no credential logging. The rules are the point.
~Used to build miditui (Rust TUI MIDI player) entirely with Claude Opus. Proof that opinionated constraints produce better code.

Tags

rustopinionatedenforcerstrictlanguage-specificcoding-standards

Works With

Claude Code
Cursor

Details

Stars0
LicenseMIT
Version1.0.0
CategoryDeveloper