Sub topic 13
Organize and name your files
A series has many files: source designs, fonts, photos, exports, and several versions of each. If you name them carelessly, you will eventually publish the wrong version or lose a slide. This chapter sets up a folder structure, a naming convention, and a small script that checks both.
It assumes you have already built templates (the previous chapter) and are comfortable with a design tool such as Figma, Canva, or Illustrator. You should also know basic command-line or Python usage to run the example script.
Why file organization belongs in the design system
Colors, type, and grids make the series look consistent. File organization makes it reproducible. Someone else, or you in six months, should be able to answer three questions without opening every file:
- Which file is the editable source of this post?
- Which export is the one that was published?
- Which template and version produced it?
Good naming also feeds the next chapter. The export checklist is much easier to run when file names already carry the format, slide number, and version.
Separate sources, assets, and exports
Keep three kinds of material apart, because each has a different lifecycle.
| Kind | Examples | Changes how often | Who edits it |
|---|---|---|---|
| System | Tokens, templates, fonts, logo files | Rarely, deliberately | The series owner |
| Inputs | Photos, icons, illustrations, copy | Per post | Anyone on the team |
| Outputs | Exported PNG/JPG/PDF files | Per post, then frozen | Nobody after publishing |
Treat outputs as read-only. If a published graphic needs a fix, create a new version instead of overwriting the old file.
A folder layout that reflects this:
dailyfocus/
00_system/
tokens/
templates/
fonts/
logos/
01_inputs/
photos/
icons/
copy/
02_posts/
2026-12-04_start-small/
source/
exports/
notes.md
03_archive/The numeric prefixes keep the folders in a fixed order in every file browser. Each post gets its own folder, named by date and a short slug. The date sorts posts chronologically, and the slug tells you what the post is about.
Design a naming convention
A naming convention is a fixed pattern in which each part of the name carries one piece of information. Choose it once, write it down, and apply it to every export.
For this series, the pattern is:
series_template_date_slug_sNN_ratio_vNN.extAn example: dailyfocus_quote-card_2026-12-04_start-small_s01_4x5_v02.png.
| Field | Meaning | Example |
|---|---|---|
| series | Short series name | `dailyfocus` |
| template | Template used | `quote-card` |
| date | Planned publish date, ISO format | `2026-12-04` |
| slug | Short topic description | `start-small` |
| sNN | Slide number, two digits | `s01` |
| ratio | Aspect ratio, written with `x` | `4x5` |
| vNN | Version, two digits | `v02` |
Underscores separate fields. Hyphens separate words inside a field. That way a script can split the name on underscores without guessing.
Rules that prevent common problems
- Use lowercase only. Some file systems treat
Quote.pngandquote.pngas the same file, and others do not. Moving files between a Mac, a Windows machine, and a Linux server then causes silent overwrites or missing files. - Avoid spaces and special characters. Spaces turn into
%20in URLs, and characters such as&,#, and?break links and command-line tools. Stick toa-z,0-9, hyphen, and underscore. - Pad numbers with zeros.
s2sorts afters10alphabetically, whiles02sorts before it. This matters most for carousels, where the slide order must match the file order. - Use ISO dates (
YYYY-MM-DD). They sort correctly as text and cannot be confused between day-first and month-first formats. - Do not put status words in names. Names such as
final,final2, ornewstop meaning anything within a week. Use the version number, and record status somewhere else (see below).
Versioning without chaos
Use two layers of versioning.
- Within the design tool. Figma has version history, and Affinity and Photoshop can use incremental saves. Use these for day-to-day edits.
- On exports. Increase
vNNwhen you re-export a graphic after a meaningful change, such as a corrected headline or a new photo.
Keep only the latest version in the exports/ folder that you hand off for publishing. Move older versions to 03_archive/ or into a subfolder such as exports/superseded/. If several versions sit side by side, someone will upload the wrong one.
Put the status of a post in a notes.md file in its folder instead of in the file name. Four lines are enough: the status (draft, approved, published), the platform and caption link, the approver, and any known issues.
Name things inside the design file too
The same discipline applies inside your design tool.
- Pages or boards. Name them by purpose:
Templates,Posts 2026-12,Archive. - Frames or artboards. Use the slide name, for example
quote-card / s01 / 4x5. A frame name that matches the export name saves renaming. - Layers. Rename the layers that templates depend on, such as
headline,photo,logo, andaccent-bar. Leave decorative layers unnamed only if nobody will touch them. Default names likeRectangle 47make it unclear which layers may change under your variation rules. - Components and styles. Use a path with slashes, for example
color/accentandtext/title. Match the names of your design tokens so the tool and the code refer to the same things.
Check names with a script
Conventions drift unless something enforces them. The script below scans a folder and reports names that do not match the pattern. It also finds carousels with missing slide numbers, for example s01 and s03 without s02.
import re
import sys
from collections import defaultdict
from pathlib import Path
WORD = r"[a-z0-9]+(?:-[a-z0-9]+)*"
NAME = re.compile(
rf"^(?P<series>{WORD})"
rf"_(?P<template>{WORD})"
r"_(?P<date>\d{4}-\d{2}-\d{2})"
rf"_(?P<slug>{WORD})"
r"_s(?P<slide>\d{2})"
r"_(?P<ratio>\d+x\d+)"
r"_v(?P<version>\d{2})"
r"\.(?:png|jpg|webp|pdf)$"
)
def check(folder):
problems = []
slides = defaultdict(set)
for path in sorted(Path(folder).rglob("*")):
if not path.is_file() or path.name.startswith("."):
continue
match = NAME.match(path.name)
if not match:
problems.append(f"bad name: {path.name}")
continue
post = (match["date"], match["slug"], match["ratio"])
slides[post].add(int(match["slide"]))
for post, numbers in slides.items():
missing = set(range(1, max(numbers) + 1)) - numbers
if missing:
gaps = ", ".join(f"s{n:02d}" for n in sorted(missing))
problems.append(f"missing slides in {post[0]} {post[1]} ({post[2]}): {gaps}")
return problems
if __name__ == "__main__":
folder = sys.argv[1] if len(sys.argv) > 1 else "exports"
found = check(folder)
for line in found:
print(line)
print("OK" if not found else f"{len(found)} problem(s)")
sys.exit(1 if found else 0)Run it as python check_names.py 02_posts/2026-12-04_start-small/exports. The exit code is 1 when problems exist, so you can run the script as a step in a publishing routine or a Git hook.
The script checks only the name, not the content. A file called s02 can still contain slide 3. Open the files and verify the order visually before you publish.
Edge cases and gotchas
- Cloud sync conflicts. If two people edit the same source file, sync tools create copies such as
file (conflicted copy).fig. Assign one owner per post source file, and run the name check after syncing. - Fonts and licenses. Keep font files and license notes in
00_system/fonts/. Without the exact font, a reopened source file silently substitutes another one and breaks the type scale. - Photo rights. Record the source and license of each photo in
01_inputs/photos/next to the file, for example in acredits.csv. Do this when you download the image, because you cannot reconstruct it later. - Platform renames. Some platforms rename uploads. Your names are for your own tracking, so keep your master copy rather than downloading from the platform.
- Path length. Deep folders with long slugs can exceed path limits on Windows. Keep slugs under about 30 characters.
- Changing the convention. If you must change it, apply the new pattern to new posts and leave the archive alone, or rename everything in one scripted pass. A mixed archive is the worst outcome.
Exercise
A teammate exports a three-slide carousel in 4:5 as Start Small 1.png, Start Small 2.png, and Start Small 10.png for a post dated 2026-12-04, series dailyfocus, template quote-card. Rewrite the names in the convention (first version), and explain the two problems the original names would cause.
Show answer
The three names are dailyfocus_quote-card_2026-12-04_start-small_s01_4x5_v01.png, dailyfocus_quote-card_2026-12-04_start-small_s02_4x5_v01.png, and dailyfocus_quote-card_2026-12-04_start-small_s03_4x5_v01.png. The original names have spaces and capitals, which break URLs and behave differently across file systems. The numbers are also not zero-padded, and 10 sorts before 2, so the slides would appear out of order. Note that the third file was probably meant to be slide 3, so the teammate's numbering also needs checking.
Exercise
Why does the convention put the version at the end of the name and keep status words like "approved" out of it?
Show answer
A version number changes only when the content changes, so it is a stable fact about the file. Status changes without the file changing, and renaming the file to reflect it would break references and make the name unreliable. Status belongs in notes.md or the team's tracking tool.