rewrite-rs

31 mods across 1 repository, 1 stars between them.

rust-performance

25

rewrite-rs/skills

Skill Claude CodeCodex

Profile before optimizing, cut allocation out of hot paths, and treat LTO, codegen-units, PGO and target-cpu as the last five percent. Use when Rust code is too slow, when a benchmark regresses, when reviewing code that allocates or formats inside a loop, when release-profile or codegen flags come up, or when the user…

1 15d ago A 83 tokens original BSD-3-Clause

type-driven-design

26

rewrite-rs/skills

Skill Claude CodeCodex

Make illegal states unrepresentable — enums instead of boolean and string flags, newtypes instead of bare primitives, parsed types instead of validated ones, typestate for protocol order. Use when a struct has fields that are only valid in some combinations, when validation is re-checked at many call sites, when…

1 15d ago A 82 tokens original BSD-3-Clause

unsafe-rust

27

rewrite-rs/skills

Skill Claude CodeCodex

Justify, document, and verify unsafe Rust — safety invariants on every unsafe block, sound safe wrappers, undefined behaviour hazards, and verification with Miri. Use when writing or reviewing unsafe code, when working across an FFI boundary, when raw pointers or transmute appear, when a safe API wraps an unsafe…

1 15d ago A 81 tokens original BSD-3-Clause

rust-code-review

28

rewrite-rs/skills

Skill Claude CodeCodex

Review Rust changes on two axes at once — standards (idioms, ownership, errors, API surface, unsafe) and spec (does the change do what was asked) — with a Rust smell baseline layered on the repo lint configuration. Use when reviewing a Rust diff, pull request, or branch, when asked whether a change is ready to merge…

1 15d ago A 89 tokens original BSD-3-Clause

rust-skills-map

29

rewrite-rs/skills

Skill Claude CodeCodex

The router for this skill set — which Rust skill covers which decision, how they relate, and which one to reach for from where you are.

1 15d ago A 34 tokens original BSD-3-Clause

rust-testing

30

rewrite-rs/skills

Skill Claude CodeCodex

Design Rust tests that catch real regressions — unit, integration, doc, property, snapshot, and golden tests, and differential tests that prove a port matches its source. Use when writing or reviewing Rust tests, when a change lands without tests, when deciding what form a test should take, when a port needs parity…

1 15d ago A 86 tokens original BSD-3-Clause

setup-rust-skills

31

rewrite-rs/skills

Skill Claude CodeCodex

Configure a Rust repo for this skill set — lint and format configuration, and a recorded project posture (edition, MSRV, async runtime, nostd, unsafe policy) at docs/agents/rust.md.

1 15d ago A 48 tokens original BSD-3-Clause