
Description
code-simplifier is an agent skill written for the RTK Rust codebase. It reviews Rust code for idiomatic simplification, looking for over-engineering, unnecessary allocations and verbose patterns, and it applies Rust idioms such as iterator chains in place of manual loops. The skill is strict about what must stay in place. It lists constraints that are never simplified away: LazyLock regexes, which cannot be moved inside functions even when that looks simpler, the .context() call on every ? operator, which is verbose but required, the fallback to the raw command, which stays even when it looks like dead code, exit-code propagation, which must never be reduced to Ok(()), and #[cfg(test)] test modules. That makes it a safe refactoring aid for a project with those rules, because it changes style without changing behavior. It is meant for contributors to RTK who want to tidy a change before review. The skill is a Rust code tool and is not a general-purpose linter. It passes Gen Agent Trust Hub, Socket and Snyk on skills.sh. Install it with npx skills add https://github.com/rtk-ai/rtk --skill code-simplifier.…
Highlights
- Reviews RTK Rust code for idiomatic simplification
- Replaces manual loops with iterator chains
- Keeps project constraints such as LazyLock regexes and exit codes
- Never removes test modules or the raw command fallback
Ratings & Reviews
No ratings yet
Be the first to rate code-simplifier.
People also visit
code-simplifier FAQ
Is it for any Rust project?
It is written for the RTK codebase and its constraints. Other projects would need their own rules.
Will it change behavior?
The skill is meant to simplify style without changing behavior, and it keeps the constraints it lists.
What does it refuse to simplify?
LazyLock regexes, .context() on each ? operator, the raw command fallback, exit-code propagation and #[cfg(test)] test modules.
How do I install it?
Run npx skills add https://github.com/rtk-ai/rtk --skill code-simplifier.
Which security audits does it have?
On skills.sh, Gen Agent Trust Hub, Socket and Snyk all pass.
What are the best code-simplifier alternatives?
Popular alternatives to code-simplifier include orch-refine-code, component-refactoring and design-patterns. See all code-simplifier alternatives









