m05-type-driven

Helps you design Rust code so that mistakes simply cannot be written, catching problems before the program ever runs.

Installation
Run `npx skills add "https://github.com/actionbook/rust-skills" --skill "m05-type-driven"` to install this skill, then follow its SKILL.md instructions for my next request.

Paste this into Claude Code, Cursor, or any agent that can run commands.

What this skill does
What it does: This skill teaches an AI coding helper a technique in the Rust programming language for preventing mistakes before a program even runs, by designing the data itself so that wrong or impossible situations simply cannot be created. Instead of checking for errors while the program is running, it encourages building special wrapper types for things like an email address or a user ID, and using step-by-step type changes to make sure, for example, that a network connection cannot be used before it is properly connected. It gives example code and a decision guide for choosing the right technique for a given situation. When to use it: Use it when designing new data structures in a Rust project, especially when trying to avoid runtime checks, loose boolean flags, or optional values in favor of designs that let the compiler catch mistakes automatically.

The full skill text could not be loaded right now. It installs fine with the command above, or read it at the source.

Mirrored from the author's public source. Install counts from the open skills registry.

The systems behind these skills get built for partners every week.

Partner with us