Advanced · Running the business · About 60 minutes

Building a project folder structure with Claude Code

A tidy, consistent folder structure for the whole business that Claude Code can work in.

Map what the business really keeps, design one structure by client, project and company, then have Claude Code move a copy of your files into it with a written log. You approve the design and every batch of moves. Nothing is ever deleted.

The lessons

  1. Map what the business really keepsFree to read
  2. Design a structure by client, project and companyAdvanced plan
  3. Agree naming rules and write them downAdvanced plan
  4. Have Claude Code move files safely, with a logAdvanced plan
  5. Add instructions at each levelAdvanced plan
  6. Archive the old without deleting anythingAdvanced plan

What you finish with

  • A written map of what the business keeps and where
  • A folder structure by client, project and company, created on disk
  • A naming rules file that people and Claude Code both follow
  • A complete log of every file moved, from where to where
  • Instruction files at each level and an archive of everything that did not fit

Lesson one · free to read

Why this matters

Open the shared drive of almost any small business and you find the same thing. A folder called “Clients”, another called “Clients NEW” and files named “Quote final”, “Quote final v2” and “Quote FINAL use this one”. Everyone has their own system, so nobody can find anything that someone else filed. It costs minutes every day. Now and then it costs a job, when the wrong version of a document goes out.

Claude Code is an AI assistant that runs on your own computer and can read, create and move files in a folder you point it at. It can list ten thousand files, spot the patterns and move them by rule. The same ability is the risk. A tool that can move files can move them to the wrong place. Its built-in undo does not cover files it has moved with a system command. So this course is built around three safeguards: you work on a copy, every move is planned and logged before it happens and nothing is deleted.

Before you start

This course assumes you have done “Setting up Claude Code on your computer”. Claude Code needs a paid Claude plan and works on a Mac or a Windows PC. On Windows, install Git for Windows first, which Anthropic recommends.

  • Make a backup first. Copy all your business files to an external drive or a second cloud location before you do anything else. Check that the backup opens.
  • Create a dedicated folder. Make a new, empty folder called Business somewhere on your own computer, outside any folder that syncs to a cloud service.
  • Copy, do not move. Inside Business, create a folder called _inbox. Copy your existing folders into it. Your originals stay where they are. If you have a great deal of material, start with one area.

Be careful with data. Claude Code sends what it reads to Anthropic’s service to work on it. In this course it works from file and folder names, dates and types. The prompts tell it not to open client documents. Leave payroll, HR records and anything holding passwords out of _inbox and file those by hand. Never give Claude Code logins or credentials. This job needs none.

To start, open a terminal. A terminal is the window where you type commands instead of clicking. On a Mac press Cmd and Space, type Terminal and press Enter. On Windows press the Windows key and X, then choose Terminal or Windows PowerShell. Move into your folder and start Claude Code:

cd [PATH TO YOUR BUSINESS FOLDER]
claude

Check the folder shown when Claude Code starts. It should be your Business folder and nothing higher up.

Step 1: Map what the business really keeps

The first job is a map. Use plan mode for it. Plan mode tells Claude Code to research and propose without changing your files. Press Shift and Tab until the status line shows plan mode, or start a single prompt with /plan.

/plan Survey everything inside the _inbox folder. Do not move, rename, edit or delete anything. Do not open the contents of any file. Work only from folder names, file names, file types, sizes and dates.

Report:
1. The top two levels of folders, with the number of files and total size in each
2. The kinds of thing we keep, grouped in plain English
3. Every way clients or projects have been named, with three examples of each
4. Naming patterns in the files: date formats, version markers, words such as "final" or "copy"
5. Likely duplicates: files with the same name and size in different places.
6. Anything whose name suggests payroll, HR, passwords or bank details. List the locations only.

Then write a one-page summary of how this business has been filing things.

Read the summary slowly. It is a portrait of habits you never chose. If item 6 lists anything, close Claude Code, take those files out of _inbox and file them by hand.

When you are happy, leave plan mode with Shift and Tab and ask Claude Code to save the report as file-map.md in the Business folder. It will ask your permission first. A file ending in .md is a plain text file with simple formatting.

A worked example runs through this course. A five-person building surveying practice copied in four years of work: about nine thousand files. The map found three different ways of naming client folders: by surname, by property address and by job number. It also found hundreds of likely duplicates.

What good looks like: a one-page description of how you file things that makes you wince in recognition, saved as file-map.md, with nothing in _inbox changed.

The map tells you what is wrong. It does not yet tell you what right looks like. Step 2 designs the structure that every file will move into.

Send me a message.

I reply within one working day.

Your details are used to reply to you and for nothing else.