realgenekim / clj-surgeon
PublicBabashka CLI and Claude Code skill for structural Clojure refactoring — move forms, fix declares, rename namespaces, explore via AST.
clj-surgeon is a tool for exploring and refactoring Clojure codebases by viewing code structure and performing precise rearrangements like reordering functions, extracting to new files, fixing forward references, and renaming namespaces.
How It Works
While teaming up with your AI coding buddy on a big Clojure project, you learn about this handy tool that makes tidying up code files quick and painless.
Download the tool and install it into your everyday tools folder with a few simple steps, so it's ready whenever you need it.
Add a short note to your project instructions, teaching your AI helper exactly when and how to use this tool for better results.
Get an instant map of all the building blocks in your files, showing where everything sits and how pieces connect, without reading every line.
Automatically reorder functions to eliminate those pesky forward peeks.
Shift functions to new spots or even fresh files, pulling along what they need.
Update names across your whole project smoothly, keeping everything linked.
Run your chosen fix and watch the tool rearrange everything perfectly, then check that it all works great.
Your codebase is now beautifully organized, your AI buddy zips through tasks without getting bogged down, and refactoring feels effortless.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.