AI AGENT ADDONS

Code Simplifier

rtk-ai/rtk

This tool reviews Rust code in the RTK project. It finds parts that are too complex or verbose. It then suggests simpler ways to write the same code. These changes follow common Rust patterns called idioms. The behavior of the code stays the same. The tool knows which parts of the RTK project must not be changed, like lazy_static! regex and .context() calls. It can turn manual loops into iterator chains and replace nested matches with chained methods. It also removes unnecessary clones and uses early returns. This helps keep the code clean and easy to read.

Anyone who writes Rust code for the RTK project can benefit. The tool catches patterns that make code harder to maintain. It suggests replacements that are shorter and more standard. After simplifying, the tool reminds you to run cargo fmt, clippy, and tests to make sure nothing breaks. It also checks that no new unwrap calls appear outside of tests. This keeps the code safe and reliable.

Add Code Simplifier skill to your workflow

Global

mkdir -p ~/.claude/skills/code-simplifier

Project

mkdir -p .claude/skills/code-simplifier

Source Repository

Stars
66,726
Forks
4,125
Watchers
66,726
License
Apache-2.0
Last Push
1 month ago
Created
6 months ago