code-simplifier

Review RTK Rust codebases for idiomatic simplification while preserving behavior.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/roberttmadsen13-del/TOURney --skill code-simplifier-roberttmadsen13-del
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-simplifier
Source: https://github.com/roberttmadsen13-del/TOURney/tree/main/SKILLS/rtk-master/.claude/skills/code-simplifier
Command: npx skills add https://github.com/roberttmadsen13-del/TOURney --skill code-simplifier-roberttmadsen13-del

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Review RTK Rust code for idiomatic simplification. Detects over-engineering, unnecessary allocations, verbose patterns. Applies Rust idioms without changing behavior.

Core Features & Use Cases

  • Simplifies iterator chains to idiomatic Rust patterns
  • Reduces redundant allocations and verbose constructs
  • Maintains behavior while meeting RTK constraints described in SKILL.md

Quick Start

Run code-simplifier on your RTK Rust project to produce idiomatic, lean code without changing behavior.

Frequently Asked Questions about code-simplifier

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I simplify Rust code to make it more idiomatic without changing behavior?

You can simplify Rust code by refactoring verbose iterator chains and reducing redundant allocations to match idiomatic patterns. This process enforces readability while strictly preserving the original semantics and runtime behavior of the codebase.

What are common Rust refactoring patterns to reduce unnecessary allocations?

Common Rust refactoring patterns to reduce allocations include streamlining iterator chains and replacing verbose string builds with idiomatic option and result chains. These simplifications detect over-engineering and reduce redundant constructs without altering functionality.

How do I enforce RTK-specific constraints during a Rust code review?

To enforce RTK-specific constraints during a Rust code review, you check for preserving lazy_static usage and requiring .context() on every ? operator. This ensures the code meets RTK project standards while applying idiomatic simplification.

Can I refactor option and result chains in Rust to be more lean without breaking semantics?

Yes, you can refactor option and result chains in Rust to be more lean. The refactoring process simplifies these constructs and verbose patterns to produce idiomatic code while ensuring the original behavior and semantics remain completely unchanged.

What is the best way to detect over-engineering in a Rust codebase?

The best way to detect over-engineering in a Rust codebase is to review it for idiomatic simplification opportunities. This involves identifying verbose patterns, redundant allocations, and unnecessary constructs, then applying standard idioms to make the code lean.

Does code simplification for RTK Rust projects preserve lazy_static usage?

Yes, code simplification for RTK Rust projects explicitly preserves lazy_static usage. The refactoring enforces RTK-specific checks to maintain lazy_static declarations while applying idiomatic patterns and requiring .context() on every ? operator.