T-006
Install Fonts
Installs every font in a folder, skipping web-only formats, duplicates and fonts already there.
Claude skill · September 2026
A Claude Code skill, and the small Python script it runs. Point it at a folder of downloaded fonts and it works out which files your Mac can actually use, shows you what it would install, and only then copies them into ~/Library/Fonts.
It exists because font downloads are messy. A foundry ships the same face as .otf, .ttf and .woff2 side by side, often a folder or two deep. Install all of it and Font Book fills up with duplicate families and web formats macOS can't use.
14 files to 3 fonts
~/Downloads/fonts
- Halden/OFL.txtLeft alone
- Halden/OTF/Halden-Bold.otfInstall
- Halden/OTF/Halden-Italic.otfAlready there
- Halden/OTF/Halden-Regular.otfInstall
- Halden/TTF/Halden-Bold.ttfHas an .otf
- Halden/TTF/Halden-Italic.ttfHas an .otf
- Halden/TTF/Halden-Regular.ttfHas an .otf
- Halden/Web/Halden-Bold.woff2Web-only
- Halden/Web/Halden-Regular.woffWeb-only
- Halden/Web/Halden-Regular.woff2Web-only
- Marlo Mono/MarloMono-Bold.ttfSame name, differs
- Marlo Mono/MarloMono-Regular.ttfInstall
- Marlo Mono/MarloMono-Regular.woff2Web-only
- Specimen.otfNot a font
- 3 Install
- 3 Has an .otf
- 4 Web-only
- 1 Already there
- 1 Same name, differs
- 1 Not a font
$ python3 install-fonts.py ~/Downloads/fontsSource ~/Downloads/fontsFaces 5 installable, from 2 familiesSkipped 4 web-only files (.woff2 and friends cannot be installed)Skipped 1 file(s) that are not valid fonts: Specimen.otfSkipped 1 already installedSkipped 1 same name but different content (use --force): MarloMono-Bold.ttfWould install 3 face(s) into ~/Library/Fonts: Halden 2 Marlo Mono 1Preview only. Re-run with --install to copy them.
What it does
- Installs
.otf,.ttfand.ttcinto~/Library/Fonts. - Skips
.woff,.woff2,.eotand.svg. They're for the web, and Font Book won't take them. - When a face comes as both
.otfand.ttf, installs the.otf. That's what the foundry drew; the.ttfis usually a conversion of it. - Skips fonts already in
~/Library/Fontsor/Library/Fonts, matched by content, so running it twice is safe. - Reports a font with the same name but different bytes instead of overwriting it, unless you pass
--force. - Refuses a file whose header isn't a real font, and lists it.
- Looks inside every folder, so point it at the top of a download.
It only previews until you pass --install. Mac only.
Install
Two files: the skill, and the script it runs. For Claude Code, put both in your skills folder, then ask Claude to install the fonts in a folder. It shows you the preview first.
Or take just the script and run it yourself. It needs Python 3 and nothing else.
mkdir -p ~/.claude/skills/install-fontscd ~/.claude/skills/install-fontscurl -fsSLO https://install-fonts.tirthjivani.in/SKILL.mdcurl -fsSLO https://install-fonts.tirthjivani.in/install-fonts.pyTo undo, delete the fonts from ~/Library/Fonts. There's nothing else to clean up: fonts are plain files, with no registry behind them.
Usage
With the skill, ask in plain words: install the fonts in my Downloads, or add this family to my Mac. Claude runs the preview, shows it to you, and installs once you're happy.
On your own, run it once to see what it would do, then again with --install. The folder defaults to ~/Downloads/fonts.
python3 install-fonts.py ~/Downloads/fonts # previewpython3 install-fonts.py ~/Downloads/fonts --install # copypython3 install-fonts.py ~/Downloads/fonts --install --force# --force overwrites a same-named font that differsWhat the preview shows
- Source. the folder it read.
- Faces. how many faces it could install, and from how many families.
- Skipped. one line each for web-only files, files that aren't real fonts, fonts already installed, and same-named fonts that differ. Bad files and name clashes are listed, up to five of each.
- Would install. the number of new faces, and how many from each family.
With --install, Would install becomes Installing, and it ends with how many were copied and any that failed. If nothing is new, it says so and stops.
How it works
- It walks every file under the folder, ignoring names that start with a dot, like the
._copies a zip made on a Mac leaves behind. - Web formats are counted and set aside. Anything that isn't
.otf,.ttf,.ttcor.dfontis ignored. - Each remaining file has its first four bytes checked against the signatures a real font file starts with. A file that fails is reported, never copied.
- Faces are grouped by family and file name, so the
.otfand.ttfof one face meet, and two families that both have aRegular.otfdon't collide. The family is the top-level folder the file sits in. - From each face it keeps one file, in the order
.otf,.ttf,.ttc,.dfont. - It hashes every font already in
~/Library/Fontsand/Library/Fonts. A face with a matching hash is already installed. One with a matching file name but a different hash is a clash, and is left alone unless you pass--force. - What's left is new. With
--installit's copied into~/Library/Fonts, which it creates if it isn't there.
Font Book picks the fonts up straight away. An app that's already open needs a restart before they show in its font menu.
What Claude tells you
The skill asks Claude to report the real number of faces installed, which is usually far smaller than the file count you see in Finder, and to say why. It names the families it installed and reminds you to restart any open app.
If the file names carry TRIAL or Demo, it notes once that trial fonts are normally licensed for evaluation only, not for published or commercial work.
Limits
- Mac only. It installs for your user, into
~/Library/Fonts, and never writes to/Library/Fonts. - It only checks the top level of the two Fonts folders for what's already installed, not folders inside them.
.dfontis on its list, but the header check looks for the start of a standard font file, which a.dfontdoesn't have. Expect those to be reported as not valid.- Clashes are found by file name. A face installed under a different name with different bytes looks new to it.
- It doesn't read licences. The trial note comes from file names, and only through the skill.
It works entirely on your Mac. The script makes no network requests; it reads files, hashes them and copies them.
Requirements
- macOS.
- Python 3, standard library only. Nothing to
pip install. - Claude Code, if you want it as a skill. The script runs fine without it.
The source repo is private for now. The two files above are the whole tool.
Reference
python3 install-fonts.py [folder] [--install] [--force]
folderpath- Default:
~/Downloads/fonts - The folder to read, searched all the way down.
~is expanded. --installflag- Default:
off - Copy the new faces into
~/Library/Fonts. Without it, it only previews. --forceflag- Default:
off - Install a font whose name matches an installed one but whose content differs, overwriting a same-named copy in
~/Library/Fonts. -h, --helpflag- Print how it decides what to install, and the options.
It exits with 1 when the folder doesn't exist or holds nothing it can install, and 0 otherwise.
Ideas
- Drop in a link to a specimen page and get the font.
- Find every font a site uses and install the free ones.
- A new face installed every Monday, a font of the week.
Want one of these, or something wilder? Let's make it.