Skip to content
TriedPrompts

More in Email, Calendar & Organizing. Also fits: Home, Repairs & Tech Help.

Rename, organize and de-duplicate files with Claude Code

Claude Code organized and renamed the poster's files and folders and found and removed duplicates.

Result: WorkedTool: Claude CodeLevel: Advanced

Copy the prompt

Outcome

Claude Code organized and renamed the poster's files and folders and found and removed duplicates; the poster says it worked incredibly well.

Evidence: Described by posterThe person describes what happened in words, without screenshots or video.

WorkedEvidence: Described by posterPosted Last checked

Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.

How to use this

  1. Tap Copy prompt.
  2. Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
  3. Paste it into the message box.
  4. Send it, then read the answer before acting on it.
New to this? What's a prompt?

A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.

Prompt

Recreated prompt

The source didn't share its exact prompt, so we wrote one from what it describes. The result shown is the source's, not ours.

What the prompt labels mean

The person didn't share their exact words, so we wrote this from what they described. We haven't tested it, and they didn't use this exact version.

Here's a task I'd like your help with. Read it all the way through before you start.

Goal: Tidy up this folder: give files and folders clear, consistent names, and find duplicate files.

Check with me first: Which folder should you work on, and do I have a naming style in mind?

What I'll give you:
- The folder I want cleaned up
- My preferred naming style, if I have one

Rules:
- Show me the proposed new names and folder layout before you change anything.
- List the duplicates you find and confirm with me before deleting any of them.
- If something is missing or unclear, ask me instead of guessing.
- Stay inside the folder you gave me.
- Stop when the cleanup is done and hand back a summary.

Output: A list of what was renamed, what was moved, and which duplicates were removed.

You'll know it worked when: the folder is easy to browse, names follow one style, and no file appears twice.

Works best when: I have a backup of the folder.

Try this in:

Sends the Recreated prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini and Claude open empty, so we copy the prompt for you to paste. Every button also copies it.

The source used Claude Code, which can take actions on your computer or in a browser. These are general chat tools, so results may differ, and a normal chat may only give you a plan.

Opens in a new tab. We don't see what you send.

These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.

Optional stronger version

Our rewrite with extra checks. The poster didn't test it.

Here's a task I'd like your help with. Read it all the way through before you start.

Goal: Rename files and folders consistently and find duplicates in this folder.

Quick check first: tell me if anything below is missing or unclear.

Inputs (fill in or confirm):
- Folder path
- Naming style
- Folders to skip
- Files that must keep their names (e.g. linked by other apps)

Rules:
- Show old → new names before renaming.
- Never delete duplicates; move them to a review folder.
- Keep extensions.
- Use lowercase-with-dashes and ISO dates (YYYY-MM-DD) unless I choose another style.
- Write a CSV log of every rename so it can be reversed.
- Keep both copies when duplicates have different dates; let me choose.
- Do a dry run first: print the full rename and move plan as a table (old path → new path) and wait for my OK.
- Find duplicates by file hash, not by name; keep the oldest copy and move others to a review folder.

Checkpoint: Ask before renaming or moving.

If you get stuck: If a file is locked, skip and report. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords.

Verify before you finish: Count files before and after.

Output: Rename table and duplicates list.

Done when: names are consistent and duplicates are flagged without data loss.

AI tool

Claude Code

Source

Posted
by Joni (@JoniYashvili)
Last checked
Method:
How we verify

https://x.com/JoniYashvili/status/1948767932202238289

Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.

More in Email, Calendar & Organizing

More in PersonalRandom case in Personal