Agent skill
add-icon
Add new icons to the GitLens GL Icons font
Install this agent skill to your Project
npx add-skill https://github.com/gitkraken/vscode-gitlens/tree/main/.claude/skills/add-icon
SKILL.md
/add-icon - Add GL Icon
Usage
/add-icon [icon-name]
icon-name— kebab-case (e.g.,my-new-icon)
Workflow
1. Add SVG File
Place in images/icons/{icon-name}.svg
Requirements:
- Square viewBox (e.g.,
viewBox="0 0 16 16") - Single color (fill controlled by CSS)
- No embedded
<style>tags or fonts - Use
fill="currentColor"for color inheritance
2. Update Mapping
Append to images/icons/template/mapping.json:
"icon-name": {next-available-code-point}
Code points are in the Private Use Area range (57344-63743). Check existing entries for next available.
3. Build
pnpm run icons:svgo # Optimize SVGs
pnpm run build:icons # Generate font (runs svgo + fantasticon + apply + export)
4. Update Font References
Copy the new glicons.woff2?{hash} URL from src/webviews/apps/shared/glicons.scss and search-replace the old URL across the codebase.
5. Use the Icon
In Lit components:
import { glIcon } from '../shared/components/icons.js';
html`${glIcon('my-new-icon')}`;
In CSS:
.my-element::before {
font-family: 'glicons';
content: '\{codepoint}';
}
Troubleshooting
- Icon not showing: Check font URL is updated, verify code point in mapping.json, rebuild with
pnpm run build:icons - SVG issues: Ensure single path/shape, remove
<style>tags, usefill="currentColor"
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
investigate
Structured investigation of a bug or unexpected behavior before implementing a fix
commit
Create well-formatted git commits following GitLens conventions
analyze
Deep design and implementation analysis with devil's advocate evaluation
add-command
Create new VS Code commands with all required boilerplate
deep-planning
Use when formulating the best technical approach for a task — before writing implementation plans or code. Triggers on architecture decisions, complex features, refactors, or when the user asks how to approach something. Investigates current codebase, questions existing patterns, researches alternatives, and presents approaches with trade-offs.
review
Code review against GitLens standards with optional impact completeness audit
Didn't find tool you were looking for?