Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Rust refactoring against imported mental models v1.0.0

Use this resource to replace abstractions imported from another language in existing Rust code

New

  • 555 downloads
  • 245 likes
  • 140 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install rust-architecture-refactor-review

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent reviews existing Rust code that carries a foreign mental model, such as single-implementation traits, Rc<RefCell> webs or imperative loops. It names the paradigm the code betrays and prescribes the refactor that removes it, even whole layers. You get code closer to idiomatic Rust.

Mostly picked by

Updated November 2, 2026

Card for the “Rust refactoring against imported mental models” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/: cards on architecture, concurrency and iterators
  • AGENTS.md: instructions for the agent and review scope

Good fit for

  • You are porting Java or C# code to Rust and it keeps an object-oriented shape
  • Your crate uses Rc<RefCell> and clones just to compile

Not for

    Tags

    • rust
    • refactoring
    • architecture
    • concurrency
    • idioms

    About

    You say

    “This crate has a Manager, three single-implementation traits and Rc<RefCell> everywhere. Tell me what we can delete.”

    Card for the “Rust refactoring against imported mental models” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to replace abstractions imported from another language in existing Rust code
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md8.8 KB
    • assets/templates/_template.md1.3 KB
    • LICENSE1.1 KB
    • metadata.json3 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/_sections.md5.8 KB
    • references/arch-default-literal-over-builder.md1.9 KB
    • references/arch-drop-di-trait-single-impl.md2.7 KB
    • references/arch-free-functions-over-manager-struct.md2.2 KB
    • references/arch-no-deref-inheritance.md2.5 KB
    • references/arch-public-fields-over-getter-ceremony.md2.2 KB
    • references/conc-blocking-pool-over-async-cpu-fanout.md2.8 KB
    • references/conc-narrow-locks-before-await.md2.9 KB
    • references/conc-own-spawned-task-handles.md3.2 KB
    • references/conc-spawn-blocking-over-blocking-async.md2.8 KB
    • references/dyn-enum-over-box-dyn-closed-set.md3 KB
    • references/dyn-generics-over-boxed-callbacks.md2.8 KB
    • references/flow-no-catch-unwind-try-catch.md2.8 KB
    • references/flow-option-over-sentinel-values.md2.5 KB
    • references/flow-result-over-unwrap-expected.md2.6 KB
    • references/flow-thiserror-library-anyhow-application.md2.9 KB
    • references/iter-combinator-over-index-loop.md2.6 KB
    • references/iter-stay-lazy-single-collect.md2.8 KB
    • references/own-id-map-over-self-referential.md2.4 KB
    • references/own-no-rc-refcell-object-graph.md2.2 KB
    • references/own-restructure-over-clone.md2.7 KB
    • references/type-enum-over-bool-string-state.md2.6 KB
    • references/type-newtype-parse-dont-validate.md2.6 KB
    • references/type-result-over-parallel-options.md2.3 KB
    • references/type-split-option-god-struct.md2.8 KB
    • SKILL.md11.2 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.experimental/adversarial-rust
    Licence
    MIT

    Notice

    « adversarial-rust » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.