favicon
Generate a complete set of favicons from a source image and update HTML.
Skill by artivilla
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/artivilla-favicon
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
favicon- Description
- Generate a complete set of favicons from a source image and update HTML. Use when setting up favicons for a web project.
- License
- MIT
- Instructions
- 220 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
Generate a complete set of favicons from the source image at `$1` and update the project's HTML with the appropriate link tags.
## Prerequisites
First, verify ImageMagick v7+ is installed by running:
```bash
which magick
```
If not found, stop and instruct the user to install it:
- **macOS**: `brew install imagemagick`
- **Linux**: `sudo apt install imagemagick`
## Step 1: Validate Source Image
1. Verify the source image exists at the provided path: `$1`
2. Check the file extension is a supported format (PNG, JPG, JPEG, SVG, WEBP, GIF)
3. If the file doesn't exist or isn't a valid image format, report the error and stop
Note whether the source is an SVG file - if so, it will also be copied as `favicon.svg`.
## Step 2: Detect Project Type and Static Assets Directory
Detect the project type and determine where static assets should be placed. Check in this order:
| Framework | Detection | Static Assets Directory |
|-----------|-----------|------------------------|
| **Rails** | `config/routes.rb` exists | `public/` |
| **Next.js** | `next.config.*` exists | `public/` |
| **Gatsby** | `gatsby-config.*` exists | `static/` |
| **SvelteKit** | `svelte.config.*` exists | `static/` |
| **Astro** | `astro.config.*` exists | `public/` |
| **Hugo** | `hugo.toml` or `config.toml` with Hugo markers | `static/` |
| **Jekyll** | `_config.yml` with Jekyll markers | Root directory (same as `index.html`) |
| **Vite** | `vite.config.*` exists | `public/` |
| **Create React App** | `package.json` has `react-scripts` dependency | `public/` |
| **Vue CLI** | `vue.config.*` exists | `public/` |
| **Angular** | `angular.json` exists | `src/assets/` |
| **Eleventy** | `.eleventy.js` or `eleventy.config.*` exists | Check `_site` output or root |
| **Static HTML** | `index.html` in root | Same directory as `index.html` |
**Important**: If existing favicon files are found (e.g., `favicon.ico`, `apple-touch-icon.png`), use their location as the target directory regardless of framework detection.
Report the detected project type and the static assets directory that will be used.
**When in doubt, ask**: If you are not 100% confident about where static assets should be placed (e.g., ambiguous project structure, multiple potential locations, unfamiliar framework), use `AskUserQuestionTool` to confirm the target directory before proceeding. It's better to ask than to put files in the wrong place.
## Step 3: Determine App Name
Find the app name from these sources (in priority order):
1. **Existing `site.webmanifest`** - Check the detected static assets directory for an existing manifest and extract the `name` field
2. **`package.json`** - Extract the `name` field if it exists
3. **Rails `config/application.rb`** - Extract the module name (e.g., `module MyApp` → "MyApp")
4. **Directory name** - Use the current working directory name as fallback
Convert the name to title case if needed (e.g., "my-app" → "My App").
## Step 4: Ensure Static Assets Directory Exists
Check if the detected static assets directory exists. If not, create it.
## Step 5: Generate Favicon Files
Run these ImageMagick commands to generate all favicon files. Replace `[STATIC_DIR]` with the detected static assets directory from Step 2.
### favicon.ico (multi-resolution: 16x16, 32x32, 48x48)
```bash
magick "$1" \
\( -clone 0 -resize 16x16 \) \
\( -clone 0 -resize 32x32 \) \
\( -clone 0 -resize 48x48 \) \
-delete 0 -alpha on -background none \
[STATIC_DIR]/favicon.ico
```
### favicon-96x96.png
```bash
magick "$1" -resize 96x96 -background none -alpha on [STATIC_DIR]/favicon-96x96.png
```
### apple-touch-icon.png (180x180)
```bash
magick "$1" -resize 180x180 -background none -alpha on [STATIC_DIR]/apple-touch-icon.png
```
### web-app-manifest-192x192.png
```bash
magick "$1" -resize 192x192 -background none -alpha on [STATIC_DIR]/web-app-manifest-192x192.png
```
### web-app-manifest-512x512.png
```bash
magick "$1" -resize 512x512 -background none -alpha on [STATIC_DIR]/web-app-manifest-512x512.png
```
### favicon.svg (only if source is SVG)
If the source file has a `.svg` extension, copy it:
```bash
cp "$1" [STATIC_DIR]/favicon.svg
```
## Step 6: Create/Update site.webmanifest
Create or update `[STATIC_DIR]/site.webmanifest` with this content (substitute the detected app name):
```json
{
"name": "[APP_NAME]",
"short_name": "[APP_NAME]",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png",From artivilla/agents-config, MIT.
More from artivilla/agents-config
- 0.414score
paper-mcp
artivilla
Use the Paper MCP server to fetch paper metadata, sections, figures, citations, and full-text context, then translate that context into structured outputs…
SkillDFreshness: DClaude Code +9 - 0.414score
pr-trends
artivilla
Generate weekly and monthly pull request trend tables for a git repository, including created PRs, merged PRs, average days to merge, and lines changed.
SkillDFreshness: DClaude Code +9 - 0.409score
design-spec-rules
artivilla
Enforce design-to-code fidelity rules.
SkillDFreshness: DClaude Code +9 - 0.409score
interfaces-raunofreiberg
artivilla
Review UI code against Rauno Freiberg's interface guidelines.
SkillDFreshness: DClaude Code +9 - 0.409score
github
artivilla
Manage GitHub issues using gh CLI - create, list, view, update, close, and assign issues.
SkillDFreshness: DClaude Code +9 - 0.406score
mymind
artivilla
Use the local mymind CLI to initialize auth, refresh bookmark cache from access.mymind.com/cards, search bookmarks by text or regex, query tags, and shape…
SkillDFreshness: DClaude Code +9 - 0.403score
git-commit-message
artivilla
Auto-generates conventional commit messages from git diffs with tiered format enforcement.
SkillDFreshness: DClaude Code +9 - 0.390score
railway-docs
artivilla
This skill should be used when the user asks about Railway features, how Railway works, or shares a docs.railway.com URL.
SkillDFreshness: DClaude Code +9 - 0.390score
database
artivilla
This skill should be used when the user wants to add a database (Postgres, Redis, MySQL, MongoDB), says "add postgres", "add redis", "add database", "connect…
SkillDFreshness: DClaude Code +9 - 0.390score
deployment
artivilla
This skill should be used when the user wants to manage Railway deployments, view logs, or debug issues.
SkillDFreshness: DClaude Code +9 - 0.390score
central-station
artivilla
This skill should be used when the user asks about Central Station threads, community discussions, support questions, feature requests, or wants to search…
SkillDFreshness: DClaude Code +9 - 0.390score
projects
artivilla
This skill should be used when the user wants to list all projects, switch projects, rename a project, enable/disable PR deploys, make a project…
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jan 19, 2026 (9 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/artivilla/agents-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from artivilla
- 0.414score
paper-mcp
artivilla
Use the Paper MCP server to fetch paper metadata, sections, figures, citations, and full-text context, then translate that context into structured outputs…
SkillDFreshness: DClaude Code +9 - 0.414score
pr-trends
artivilla
Generate weekly and monthly pull request trend tables for a git repository, including created PRs, merged PRs, average days to merge, and lines changed.
SkillDFreshness: DClaude Code +9 - 0.409score
design-spec-rules
artivilla
Enforce design-to-code fidelity rules.
SkillDFreshness: DClaude Code +9 - 0.409score
github
artivilla
Manage GitHub issues using gh CLI - create, list, view, update, close, and assign issues.
SkillDFreshness: DClaude Code +9 - 0.409score
interfaces-raunofreiberg
artivilla
Review UI code against Rauno Freiberg's interface guidelines.
SkillDFreshness: DClaude Code +9 - 0.406score
mymind
artivilla
Use the local mymind CLI to initialize auth, refresh bookmark cache from access.mymind.com/cards, search bookmarks by text or regex, query tags, and shape…
SkillDFreshness: DClaude Code +9
Cite this page
favicon skill. Agent Mart. https://agentmart.dev/skills/artivilla-favicon (last updated 2026-10-24)