# Add favicon

> Add favicon is an open-source agent skill for developer tools. Adds and redesigns local SVG favicons for docs and multi-site monorepos. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ruan-cat/monorepo/tree/main/ai-plugins/common-tools/skills/add-favicon
- **Repository:** https://github.com/ruan-cat/monorepo
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** add-favicon
- **Collection:** https://github.com/ruan-cat/monorepo
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill guides an agent through creating a clean, transparent-background SVG favicon for documentation sites and frontend projects, with a focus on batches of VitePress sites in one monorepo. It starts by locating each site's config and public folder, then wires the icon into the page head so browsers actually pick it up.

The workflow leans on Iconify and Lucide-style line icons as design inspiration, then asks the agent to simplify and thicken strokes on a 32-unit grid so the mark stays readable at 16 px. It warns against background blocks, text inside icons and copied complex paths, and it suggests a mapping table so each site in a batch gets a distinct, semantically fitting icon.

Verification covers checking the built output for the favicon file and the injected link tag, and for pure Nitro v3 API projects it adds a /favicon.ico redirect route with a test. The skill expects a project with a TypeScript or JavaScript site config and a shell with ripgrep available for searching the repository.

## When your agent uses it

> 为文档站、前端站点或 monorepo 内多个站点补全或重做 favicon.svg。用户提到 favicon、浏览器标签页图标、Iconify、Lucide 风格、VitePress/VuePress 文档站、 public/favicon.svg、head link icon、图标太丑/一团浆糊/不要背景块时必须使用； 尤其适合批量为多个 VitePress 站点设计本地 SVG favicon，并显式配置 head。

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/common-tools/skills/add-favicon)
- [License: MIT](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/common-tools/skills/add-favicon)

## Features

- **Locating site public folders:** Finds VitePress and VuePress config files and works out where the public directory sits for each site.
- **Monochrome line icon design:** Guides transparent, outlined SVG icons with rounded strokes and at most two colours.
- **Head link configuration:** Adds an explicit SVG icon link to site head settings without duplicating existing entries.
- **Batch icon mapping:** Plans a per-site table of semantic icons so a set of documentation sites stays distinct.
- **Build and deploy checks:** Lists commands to confirm the favicon file and link tag appear in built output and live sites.
- **Nitro favicon fallback:** Provides a redirect route from /favicon.ico to the SVG for pure Nitro v3 API projects.

## Good for

- Give my VitePress docs site a proper SVG favicon
- Redesign blurry favicons across several documentation sites in my monorepo
- Add a /favicon.ico fallback to my Nitro API project
- Check that a deployed site serves its favicon correctly

## Install

### Claude Code

This skill ships in the `common-tools` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ruan-cat/monorepo
/plugin install common-tools@ruan-cat-tools
```

Or copy only this skill to `~/.claude/skills/add-favicon`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/add-favicon &&
cp -R "$tmp/ai-plugins/common-tools/skills/add-favicon" ~/.claude/skills/add-favicon &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/add-favicon` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/add-favicon` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/add-favicon &&
cp -R "$tmp/ai-plugins/common-tools/skills/add-favicon" ~/.agents/skills/add-favicon &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/add-favicon` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/add-favicon` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/add-favicon &&
cp -R "$tmp/ai-plugins/common-tools/skills/add-favicon" ~/.cursor/skills/add-favicon &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/add-favicon` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ruan-cat/monorepo.git --path ai-plugins/common-tools/skills/add-favicon
```

Or copy the folder to `~/.gemini/skills/add-favicon` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/add-favicon`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/add-favicon &&
cp -R "$tmp/ai-plugins/common-tools/skills/add-favicon" ~/.copilot/skills/add-favicon &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/add-favicon` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ruan-cat/monorepo.git
```

Then copy `monorepo/ai-plugins/common-tools/skills/add-favicon` into your agent's skills folder as `add-favicon`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Where does the skill place the favicon file in a VitePress project?

It places public/favicon.svg under the VitePress source root, such as src/public, and only uses .vitepress/public when the project config moves the public directory there.

### Does Add favicon use a background behind the icon?

No. By default it asks for a transparent background with no coloured block, gradient or shadow behind the mark.

### Does Add favicon install any dependencies or scripts?

The skill has no bundled scripts. It directs the agent to run ripgrep searches and build or curl checks.

### How do I install Add favicon in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/add-favicon to use it in all your projects, or to .claude/skills/add-favicon in one project. Or install the common-tools plugin, which includes it: /plugin marketplace add ruan-cat/monorepo, then /plugin install common-tools@ruan-cat-tools.

### Does Add favicon run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Add favicon?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Add favicon?

The closest alternatives to Add favicon are Init pure admin iconify, Vitepress, Create docs, Antfu and Build tooling.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Init pure admin iconify](https://ai-powered.com/skills/init-pure-admin-iconify): Init pure admin iconify is an open-source agent skill for developer tools.
- [Vitepress](https://ai-powered.com/skills/vitepress): Vitepress is an open-source agent skill for developer tools.
- [Create docs](https://ai-powered.com/skills/create-docs): Create docs is an open-source agent skill for developer tools.
- [Antfu](https://ai-powered.com/skills/antfu): Antfu is an open-source agent skill for developer tools.
- [Build tooling](https://ai-powered.com/skills/build-tooling): Build tooling is an open-source agent skill for developer tools.
- [Tailwind vite assets](https://ai-powered.com/skills/tailwind-vite-assets): Tailwind vite assets is an open-source agent skill for developer tools.
- [Nitro API development](https://ai-powered.com/skills/nitro-api-development): Nitro API development is an open-source agent skill for developer tools.
- [React frontend](https://ai-powered.com/skills/react-frontend): React frontend is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/add-favicon
