Cursor plugin — A friendly code cleaner expert that refactors dirty code: format, noise, dead code, naming, and structure. Stack-agnostic: it analyzes your code first (language, conventions), then applies cleanups. Works with any tech stack.
This repo is a Cursor plugin. To use it:
- From this repo: In Cursor, add a plugin from a Git URL:
https://github.com/raksbisht/vibe-code-cleaner, or clone the repo and add the plugin from the repo root (this repository is the plugin). - From the marketplace: Install from the Cursor Marketplace when published.
/add-plugin vibe-code-cleaner| Skill | Description |
|---|---|
vibe-clean |
Full cleanup: analyze code (stack/conventions) → format, noise, dead code, naming, structure → apply refactors and output a vibe report. |
vibe-check |
Report-only: analyze and list what would be cleaned; no edits. |
| Rule | Description |
|---|---|
vibe-clean-conventions |
When the user asks to clean, tidy, or vibe-check code, run the vibe-clean (or vibe-check) skill. Prefer project style; keep tone friendly. |
| Command | Description |
|---|---|
vibe-clean |
Run the full vibe-clean workflow (analyze → refactor dirty code → vibe report). |
vibe-check |
Run vibe-check (report what would be cleaned; no edits). |
- Command: Use
/vibe-cleanto refactor the current file or selection; use/vibe-checkto see what would be cleaned without applying. - Chat: Ask to "clean this code," "tidy up," "vibe check," or "refactor this dirty code" — the agent runs the appropriate skill.
- Format: Indentation, quotes, semicolons, trailing spaces, newlines (inferred from the repo).
- Noise: Stray console/debugger/print, commented-out blocks, pre-ship TODOs.
- Dead code: Unused imports, unused variables, unreachable code, unused functions.
- Naming: Unclear names (e.g. x, temp, data2) → suggest clearer names and apply.
- Structure: Long functions/files, duplication → suggest extract/split and apply.
It analyzes the code first (language, file type, repo conventions) so cleanups fit your stack. No bug detection in v1.
Rakesh Bisht — GitHub. For bugs or feature requests, open an issue.
MIT
