<h1 align="center">Nerd Fonts Skill</h1>
<p align="center">
<strong>Use Nerd Fonts glyphs for any icon</strong><br />
An <a href="https://agentskills.io">Agent Skill</a> for Claude Code, Codex, Cursor and compatible agents
</p>
<p align="center">
<a href="https://skills.sh/massimodeluisa/nerdfonts-skill"><img src="https://skills.sh/b/massimodeluisa/nerdfonts-skill" alt="skills.sh" /></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-green?style=flat-square" alt="MIT License" /></a>
<a href="https://agentskills.io"><img src="https://img.shields.io/badge/Format-Agent_Skills-orange?style=flat-square" alt="Agent Skills format" /></a>
<a href="https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.5.1"><img src="https://img.shields.io/badge/Nerd_Fonts-v3.5.1-blueviolet?style=flat-square" alt="Nerd Fonts v3.5.1" /></a>
</p>
<p align="center">
<a href="#install">Install</a> ·
<a href="#usage">Usage</a> ·
<a href="#how-it-works">How it works</a> ·
<a href="#repository-structure">Structure</a> ·
<a href="#updating-the-data-snapshot">Data refresh</a>
</p>
<p align="center">
<img src="assets/og.png" alt="Nerd Fonts skill: use Nerd Fonts glyphs for any icon" width="800" />
</p>
---
## What it does
An agent that needs an icon picks a named [Nerd Fonts](https://www.nerdfonts.com) glyph. Not an emoji, not a codepoint from memory.
It picks from the 10,995 glyphs on the [cheat sheet](https://www.nerdfonts.com/cheat-sheet) or in the bundled snapshot, for CLI output, TUIs, shell prompts, statuslines, editor and terminal configs, docs, and web pages.
For the font, it sends you to [font-downloads](https://www.nerdfonts.com/font-downloads) with the package name (`brew`, `scoop`, `choco`, `pacman`), the patched family (`CaskaydiaCove Nerd Font`, not `Cascadia Code`), the variant (Regular, Mono, Propo), and a check that the glyph actually prints.
`/nerd-fonts <file>` reviews a config or source file and reports emoji used as icons, unverified codepoints, obsolete `nf-mdi-*` classes, and wrong family names, each with a fix.
## Install
With the [skills CLI](https://github.com/vercel-labs/skills):
```bash
npx skills add massimodeluisa/nerdfonts-skill
```
Add `-g` for a user-level install, `-a claude-code` (or another agent) to target one agent.
As a Claude Code plugin:
```bash
claude plugin marketplace add massimodeluisa/nerdfonts-skill
claude plugin install nerd-fonts@nerdfonts-skill
```
Manual: copy `skills/nerd-fonts` into `~/.claude/skills/` (or your agent's skills directory) and restart the agent.
## Usage
- `/nerd-fonts` applies the icon policy to the conversation.
- `/nerd-fonts ~/.config/starship.toml` reviews a file.
Example prompts:
```text
Add status icons to this deploy script
Which glyph should I use for a git branch in my tmux status line?
My terminal shows boxes instead of icons, fix it
Install JetBrains Mono Nerd Font and configure kitty
Give me the codepoint and class name for the Devicons rust icon
```
## How it works
[font-downloads](https://www.nerdfonts.com/font-downloads) is the font page. The [cheat sheet](https://www.nerdfonts.com/cheat-sheet) is the icon page.
`skills/nerd-fonts/data/glyphs.tsv` is the cheat sheet data (`glyphnames.json`, Nerd Fonts v3.5.1), so agents can `grep` names and codepoints offline.
The policy is a short list of `MUST / SHOULD / NEVER` rules. CI runs a validator that checks every glyph name and codepoint in this repository against that snapshot.
## Repository structure
```text
nerdfonts-skill/
├── .claude-plugin/ plugin.json, marketplace.json (the repo is the plugin)
├── .github/ CI workflow and weekly upstream watch
├── tools/nfskill/ Rust tool: validate, render, icons, snapshot, sets
├── skills/nerd-fonts/
│ ├── SKILL.md policy, lookup, install, verify
│ ├── data/ glyphs.tsv, common-icons.txt
│ ├── evals/ five lookup and install scenarios
│ └── references/ common-icons, icon-concepts, glyph-sets, fonts, terminals, font-patcher
├── AGENTS.md · CONVENTIONS.md · CONTRIBUTING.md · CHANGELOG.md
└── LICENSE
```
## Updating the data snapshot
When Nerd Fonts publishes a release:
1. Regenerate `data/glyphs.tsv` (command in `skills/nerd-fonts/data/README.md`).
2. Recompute `references/glyph-sets.md`.
3. Refresh `references/fonts.md`.
4. Update the release tag in `SKILL.md`, bump the version, add a changelog line.
5. Run `cargo run --manifest-path tools/nfskill/Cargo.toml -- validate`.
Details in [CONTRIBUTING.md](CONTRIBUTING.md).
## Acknowledgments
[Nerd Fonts](https://github.com/ryanoasis/nerd-fonts) is created by Ryan L McIntyre and its contributors. The glyphs come from Devicons, Font Awesome, Font Awesome Extension, Material Design Icons, Weather Icons, Octicons, Codicons, Font Logos, Pomicons, Powerline Extra Symbols, IEC Power Symbols and Seti-UI, each under its own license. This skill is an independent project and is not affiliated with the Nerd Fonts project. The Nerd Fonts logo used in the social preview is by Ryan L McIntyre, licensed under the SIL Open Font License 1.1. Full notices: [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md).
## Author
<p>
<a href="https://x.com/massimodeluisa"><img src="https://img.shields.io/badge/@massimodeluisa-000000?style=flat-square&logo=x" alt="X" /></a>
<a href="https://github.com/massimodeluisa"><img src="https://img.shields.io/badge/GitHub-massimodeluisa-181717?style=flat-square&logo=github" alt="GitHub" /></a>
</p>
Massimo De Luisa: [massimo.deluisa.bio](https://massimo.deluisa.bio)
## License
MIT, see [LICENSE](LICENSE).