Skip to content
Agent use cases

Batch refactoring Rust compiler code with Claude

The author had Claude build a query-based batch static code refactoring tool to find and rewrite Rust compiler code for faster builds. Rewrite rules and matches are reviewed in advance and applied after running tests on a copy.

agentusecases.ai
Claude

Added 2026-11-14 · originally published Fri, 13 Nov 2026 09:00:00 GMT


Steps

  1. 1Have Claude build a reusable batch static code refactoring tool using structured queries to locate Rust code and its surrounding context.
  2. 2Set rewrite rules for the matches, and review and discuss the proposed rewrites beforehand.
  3. 3Run the refactoring tool on a copy of the code first, reviewing the diff summary along with the build and test results.
  4. 4Once verified, apply the changes to the main branch, ensuring the project compiles and all tests pass.
Copy-ready prompt
In my Rust codebase at [path to repo], find every place that uses [pattern or identifier, e.g. a specific constant or function call] and rewrite each one to [new form or approach]. Build a small reusable tool that finds matches with a structural query and applies the rewrite in bulk, rather than editing by hand. Run it on a copy first, then show me the diff summary and the build and test results before applying changes to the main branch. You're done when the project compiles, tests pass, and no old-pattern uses remain.
#Rust#Code Refactoring#AI Programming
Write an Aseprite plugin with Claude to automate isometric world building

To avoid manually drawing hundreds of grass map tiles, a game artist had Claude write a Lua script to develop an Aseprite plugin. The plugin supports drawing hills, trees, and other terrain by dragging like SimCity, and implements localized real-time redrawing.

Build a Valheim city-building mod with Claude

The author used Claude to write C# code and remote command files to control the game, transforming Valheim into a city-building simulator. The mod features Viking residents, taxes, NPC needs, boss fights, and performance optimizations, and is available for free on Nexus and Thunderstore.

Take over a 90s legacy inventory system with Claude and build a brand-new UI

The author used Claude's latest features and a connector on a Synology server to take over a legacy 90s inventory and POS system. By sending prompts, they automated price adjustments, invoice verification, and stock-ins, saving 2-3 hours daily and eliminating the need to open old software and Excel.

Found this useful? Get daily updates on Telegram or X.

Found this useful? Buy me a coffee ☕

nebu.life is free to use. If it helped you, a small tip keeps it going. Payments go straight to the author's personal account; this site never handles any funds.

Summarized by AI from the original source - refer to the original post for details. Copyright belongs to the original author.

nebu.lifeNebula AI Playbook · Daily AI use cases, prompts and prices

Content is collected daily from public sources and summarized with AI. Every entry links to the original, and copyright stays with the original authors. Spotted an error or a rights issue? Let us know via the contact page.

Last updated 2026-11-14 07:16 (Beijing time)