<< All versions

Skill v1.0.0

Trusted Publisher100/100
microsoft/vscode-codicons/build-new-icons
──Details
PublishedSeptember 8, 2026 at 08:04 PM
Content Hashsha256:0c1513ed35507f5e...
Git SHA
──Files
Files (1 file, 1.9 KB)
SKILL.md1.9 KBactive
SKILL.md · 40 lines · 1.9 KB

version: "1.0.0" name: build-new-icons description: Use after adding SVG icons to vscode-codicons. Builds the codicon font, verifies generated mappings, adds searchable metadata, and checks icon metadata consistency.


Build New Icons

Use this workflow after new SVG icons are added to src/icons/.

Workflow

  1. Compare src/icons/*.svg with the entries in src/template/metadata.json.
  2. Identify and list every icon that does not yet have metadata. If the user supplied icon names, verify them against this comparison rather than assuming the list is complete.
  3. Read src/template/mapping.json and allocate the next unused decimal codepoint to each new icon. Add each icon as the primary name under its codepoint and keep the codepoints in ascending order.
  4. Add an entry to src/template/metadata.json for every new icon:

``json "<icon-name>": { "tags": ["<keyword1>", "<keyword2>"], "category": "<category>", "description": "<Short description of the icon>" } ``

  • Add four to eight search tags that describe the icon's appearance and likely uses.
  • Use the best-fitting category already present in the file, such as action, navigation, debug, file, user, git, layout, editor, symbol, status, media, device, or misc.
  • Write a concise, one-line description.
  • Keep entries sorted alphabetically by icon name.
  1. Run npm run build from the vscode-codicons repository root and wait for it to finish.
  2. If the build fails, diagnose and fix the failure before continuing.
  3. Verify that every new icon remains a primary name under its assigned codepoint in src/template/mapping.json.
  4. Run node scripts/check-metadata.js.
  5. Confirm that the metadata check reports no missing or orphaned entries.
  6. Summarize:
  • The new icon names.
  • Their codepoints from src/template/mapping.json.
  • Their entries from src/template/metadata.json.
All versionsv1.0.1 →