Luigit
repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by admin

pi/agent/skills/nerdfont-icons/SKILL.md

Raw
Rendered preview

name: nerdfont-icons description: Resolve Nerd Font nf-* names to verified code points, glyphs, and dev-language escapes. Use when matching Nerd Font icons to hex/Unicode/JS/CSS/HTML/etc. license: MIT compatibility: "Requires Node.js 18+ with fetch"

Nerd Font Icons

  • Never guess icon names or code points; query the helper:
node scripts/get-nerdfont-codepoint.js <query> [format]
  • Formats: hex, codepoint, glyph, js, html, java, json-escape, css, css-content, python, rust, go, c, cpp, swift, lua, shell, printf, toml, yaml, vim, elisp, wezterm, json, all.
  • Examples: node scripts/get-nerdfont-codepoint.js nf-md-brain all; node scripts/get-nerdfont-codepoint.js brain all.
  • No matches trigger a refresh from the Nerd Fonts cheat sheet, then retry; this requires network access and updates the bundled DB.
  • Multiple matches: show choices; do not invent a match.
  • Do not inspect the bundled DB unless debugging; references/nerdfont-icons.txt.br is Brotli text with name<TAB>hex rows.
---
name: nerdfont-icons
description: Resolve Nerd Font nf-* names to verified code points, glyphs, and dev-language escapes. Use when matching Nerd Font icons to hex/Unicode/JS/CSS/HTML/etc.
license: MIT
compatibility: "Requires Node.js 18+ with fetch"
---

# Nerd Font Icons

- Never guess icon names or code points; query the helper:

```sh
node scripts/get-nerdfont-codepoint.js <query> [format]
```

- Formats: `hex`, `codepoint`, `glyph`, `js`, `html`, `java`, `json-escape`, `css`, `css-content`, `python`, `rust`, `go`, `c`, `cpp`, `swift`, `lua`, `shell`, `printf`, `toml`, `yaml`, `vim`, `elisp`, `wezterm`, `json`, `all`.
- Examples: `node scripts/get-nerdfont-codepoint.js nf-md-brain all`; `node scripts/get-nerdfont-codepoint.js brain all`.
- No matches trigger a refresh from the [Nerd Fonts cheat sheet](https://www.nerdfonts.com/cheat-sheet?q=nf), then retry; this requires network access and updates the bundled DB.
- Multiple matches: show choices; do not invent a match.
- Do not inspect the bundled DB unless debugging; `references/nerdfont-icons.txt.br` is Brotli text with `name<TAB>hex` rows.