Skip to content
pproenca avatar

Rust Implement

Multi-pass Rust workflow that designs types first, implements, simplifies, then runs an automated lint against the code.

CCM score
56 of 100
skills.sh installs
260
GitHub stars
228
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers four passes: design types and signatures, implement bodies, simplify by removing unused code, and verify with a lint script
  • Includes nine transformations, such as .context() on every ?, enums over booleans, and BTreeMap for serialized output
  • Enforces exhaustive match arms, thiserror for library errors and anyhow for application code, and no lock guards held across .await
  • Designed for writing new Rust functions, structs, modules, and async or error-handling features

Install

$ npx -y skills add pproenca/dot-skills --skill rust-implement -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Rust Implementation Discipline

Write code in passes. Experts don't produce perfect code in one shot -- they design, implement, review, and simplify. Follow this process for every module you write.


Pass 1: Design Types and Signatures

Before writing any implementation, write ONLY the type definitions and function signatures. No bodies. No logic.

Ask yourself these questions before moving on:

  • Can any enum state represent an invalid combination? If yes, restructure so invalid states are unrepresentable.
  • Are all parameters self-documenting? Replace bool params with enums (Transformation 2).
  • Does every struct that will be serialized or compared use BTreeMap, not HashMap (Transformation 3)?
  • Do config structs derive Default (Transformation 6)?
  • Would a caller confuse the order of String parameters? Use newtypes.
  • Does any struct have 2+ Option<T> fields where only one combination is valid at a time? Convert to an enum (Transformation 8).
  • Does any function take 4+ parameters? Replace with an args struct (Transformation 9).

Do not proceed to Pass 2 until the types are right. Types are the architecture.


Pass 2: Implement

Details

Repository
github.com/pproenca/dot-skills
Categories
Rust, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the rust-implement skill do?

The rust-implement skill writes production-grade Rust code in passes: it designs types and signatures first, then implements the bodies, simplifies the result, and verifies it with a bundled lint script. It applies rules such as adding context to every error propagation, preferring enums over booleans, and handling async and ownership decisions. It is triggered when writing new Rust functions, structs, modules, or features.

How do I install the rust-implement skill?

Run npx -y skills add pproenca/dot-skills --skill rust-implement -y in your project to install it. Once installed, the agent follows the multi-pass process whenever you ask it to write new Rust code.

Where does rust-implement rank among Rust skills?

rust-implement ranks in the top 100 on the Rust category page on Claude Marketplaces. Other skills in the category that lead it include fix-errors, rust-best-practices, rust-async-patterns, rust-testing, and rust-patterns, while rust-implement focuses on the design-implement-simplify-verify workflow for new code.

More from pproenca/dot-skills

All 100

Similar to Rust Implement

More Rust