add-icon-mapping

add-icon-mapping is a skill for Claude Code, Codex from lobehub/lobe-icons. It costs 111 tokens per session (1,365 once invoked), scanned A, original, MIT.

A guide for adding keyword-to-icon mappings in the lobe-icons library, including mappings for providers, models, and agents.

In plain words
What is it for?
Use it when adding or changing provider, model, or agent identifiers, updating the provider enum, or fixing an incorrect icon in the main and React Native packages.
Why use it?
It helps fix cases where a known provider or model displays a generic fallback icon because its identifier is not connected to the existing icon.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import Grok from '../icons/Grok'; // react-native package.

Good fit Use it when adding or changing provider, model, or agent identifiers, updating the provider enum, or fixing an incorrect icon in the main and React Native packages.

Compare 6 skills from other repositories ↓
About the project

Lobe Icons is a collection of AI and large-language-model brand logos supplied as dependency-free SVG, PNG, and WebP assets for React and React Native applications. Developers use it to display model and service brands in their interfaces, and the catalogue contains a rule and skill for working with the icon set.

lobehub/lobe-icons · 2,491 stars · on GitHub · icons.lobehub.com

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/lobehub/lobe-icons
agentmods
npx agentmods add skills/lobehub/lobe-icons/add-icon-mapping

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-icon-mapping

README.md
[![agentmods](https://agentmods.dev/badge/skills/lobehub/lobe-icons/add-icon-mapping/github.svg)](https://agentmods.dev/skills/lobehub/lobe-icons/add-icon-mapping)
Your own site
<a href="https://agentmods.dev/skills/lobehub/lobe-icons/add-icon-mapping"><img src="https://agentmods.dev/badge/skills/lobehub/lobe-icons/add-icon-mapping/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-icon-mapping

Your own site · 80×15
<a href="https://agentmods.dev/skills/lobehub/lobe-icons/add-icon-mapping"><img src="https://agentmods.dev/badge/skills/lobehub/lobe-icons/add-icon-mapping.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,365 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 78
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00111 $0.01365
Opus 5 $0.00056 $0.00682
Sonnet 5 $0.00022 $0.00273
Haiku 4.5 $0.00011 $0.00136

Measured 10d ago against content hash 03a6b96d4c4c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

add-icon-mapping scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/add-icon-mapping/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add icon keyword mapping

lobe-icons ships icon components (e.g. src/Grok/) and, separately, mapping tables that resolve a provider/model/agent id string to one of those components. A provider showing the fallback icon in LobeHub almost always means the mapping entry is missing, not the icon itself. Always check src/<Name>/ first — if the brand icon already exists, the task is only wiring it up.

Where mappings live (edit ALL that apply)

The react-native package duplicates the main package's config files. Forgetting the RN package is the most common mistake — the main package edits compile and pass review on their own.

What Main package react-native package
Provider enum src/features/providerEnum.ts packages/react-native/src/features/providerEnum.ts
Provider mappings src/features/providerConfig.tsx packages/react-native/src/features/providerConfig.tsx
Model mappings src/features/modelConfig.ts packages/react-native/src/features/modelConfig.ts
Agent mappings src/features/agentConfig.ts — (main package only)

The static-* workspace packages (static-svg, static-png, static-webp, static-avatar) are generated from icon components and contain no mapping logic — never edit them for a mapping change.

Matching semantics (they differ!)

  • ProviderIcon: exact match — keyword.toLowerCase() === provider. A keyword like xai will NOT match supergrok; every provider id needs its own keyword.
  • ModelIcon / AgentIcon: each keyword is a case-insensitive RegExp tested against the model id, and the first matching entry in the array wins. Consequences:
    • Substrings match: keyword gpt-4 matches chatgpt-4o-latest.
    • Order matters: put more specific entries before general ones (see how gpt-oss sits before the broad OpenAI entry).
    • Regex syntax is live: ^o1, /o1, o1- are anchored patterns, and characters like . or + in a keyword are regex metacharacters — escape or anchor deliberately.

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 81 lines · 111 tokens per session scan A 03a6b96d4c4c

Subscribe to this mod's changes

add-icon-mapping is a skill published in the GitHub repository lobehub/lobe-icons (2,491 stars, last pushed 4d ago), licensed MIT. It adds 111 tokens to every session and 1,365 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

thesvg

Fetch brand SVG logos and cloud architecture icons (AWS, Azure, GCP) from theSVG. Use when the user asks for a brand logo, company icon, framework mark, service icon, or any "icon/logo for X" where X is a real brand or cloud service. Returns ready-to-use CDN URLs or raw SVG markup.

glincker/thesvg · 72 tokens

html-artifacts

Author the HTML for a plan artifact, dashboard iframe, or Slack attachment — structure, design plan, available runtime, theming, and craft. Read this before writing HTML for saveplan, outputiframe, or slackattachhtml.

langchain-ai/open-swe · 51 tokens

infographic-creator

An information-graphic creation guide that turns written information into a visual layout using AntV Infographic, a description language for rendering infographics.

antvis/Infographic · 25 tokens

taiyi-ui-design

A design-planning guide for describing how an application's user interface should look and behave. It produces a UI-DESIGN.md document covering layouts, components, interactions, accessibility, and error states.

Dong90/oh-my-taiyiforge · 35 tokens

taiyi-diagram-pipeline

A pipeline that creates and updates architecture diagrams in three stages: a C4 model from the code, an engineering architecture diagram, and an exported PNG image. C4 is a way to describe software architecture at several levels of detail.

Dong90/oh-my-taiyiforge · 52 tokens

taiyi-diagram-render

A tool for rendering existing C4 or architecture Mermaid diagrams as SVG or PNG images. C4 is a way to show software systems at different levels, while Mermaid is a text format for diagrams.

Dong90/oh-my-taiyiforge · 50 tokens