favicon
Qué hace
Esta herramienta crea automáticamente todos los iconos necesarios (llamados 'favicons') para tu sitio web a partir de una sola imagen. También actualiza el código de tu web para que estos iconos se muestren correctamente.
Cuándo usarla
- ✓Cuando lanzas un sitio web nuevo y necesitas sus iconos.
- ✓Si cambias la imagen del logotipo principal de tu web.
- ✓Para asegurarte de que tu sitio se vea bien en todos los dispositivos y navegadores.
Link de la skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/favicon/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Genera los favicons de mi sitio web usando la imagen 'logo.png'.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La herramienta primero comprueba que la imagen es válida. Después, detecta qué tipo de framework usa tu web (como Rails, Next.js, etc.) para saber dónde colocar los iconos. Por último, crea todos los tamaños de icono necesarios y añade a tu sitio las instrucciones para que funcionen.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Generate a complete set of favicons from the source image at $1 and update the project's HTML with the appropriate link tags.
When to Use
- You need to generate a complete favicon set from a single source image.
- The task includes placing the assets in the correct framework-specific static directory and updating HTML link tags.
- You want one workflow that validates the source image, detects the project type, and writes the right favicon outputs.
Prerequisites
First, verify ImageMagick v7+ is installed by running:
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
- Verify the source image exists at the provided path:
$1 - Check the file extension is a supported format (PNG, JPG, JPEG, SVG, WEBP, GIF)
- 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):
- Existing
site.webmanifest- Check the detected static assets directory for an existing manifest and extract thenamefield package.json- Extract thenamefield if it exists- Rails
config/application.rb- Extract the module name (e.g.,module MyApp→ "MyApp") - 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.
Important: The -background none flag must come BEFORE the input file to properly preserve transparency when rendering SVGs. Placing it after the input will result in a white background.
favicon.ico (multi-resolution: 16x16, 32x32, 48x48)
magick -background none "$1" \
\( -clone 0 -resize 16x16 \) \
\( -clone 0 -resize 32x32 \) \
\( -clone 0 -resize 48x48 \) \
-delete 0 -alpha on \
[STATIC_DIR]/favicon.ico
favicon-96x96.png
magick -background none "$1" -resize 96x96 -alpha on [STATIC_DIR]/favicon-96x96.png
apple-touch-icon.png (180x180)
magick -background none "$1" -resize 180x180 -alpha on [STATIC_DIR]/apple-touch-icon.png
web-app-manifest-192x192.png
magick -background none "$1" -resize 192x192 -alpha on [STATIC_DIR]/web-app-manifest-192x192.png
web-app-manifest-512x512.png
…
Preguntas frecuentes
¿Necesito instalar algo antes?
Sí, necesitas tener instalado en tu ordenador el programa 'ImageMagick'. La documentación incluye instrucciones para instalarlo en macOS y Linux.
¿Qué son los 'favicons'?
Los favicons son esos iconos pequeños que aparecen en la pestaña del navegador, en los marcadores o en la pantalla de inicio del móvil cuando guardas una web.
¿Qué pasa si mi sitio usa otro framework?
La herramienta intenta detectar automáticamente el tipo de web (Rails, Next.js, etc.) y coloca los iconos en el lugar correcto. Si no está segura, es posible que te pregunte dónde debe colocar los archivos.
Detalles
Descripción original del autor
Generate favicons from a source image
Popularidad
- Estrellas en GitHub
- 48 mil
- Posición en el ranking
- #4601
- Licencia
- MIT
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
00-andruia-consultant
48 milAyuda a tu agente a iniciar o mejorar proyectos de IA. Analiza código, sugiere herramientas y crea planes de acción en español.
007
48 milPermite que tu agente realice auditorías de seguridad y modelado de amenazas. Es útil para proteger proyectos contra ataques y vulnerabilidades.
10-andruia-skill-smith
48 milAyuda a tu agente a crear o mejorar herramientas de IA. Define cómo funcionan, escribe la documentación y valida la estructura.
20-andruia-niche-intelligence
48 milPermite que tu agente cree un resumen de un sector específico. Es útil para entender su contexto, normas, patrones de uso y riesgos, usando fuentes fiables.
Skills parecidas
gifgrep
394 milPermite que tu agente busque GIF en bibliotecas, vea una vista previa de los resultados, descargue un GIF y extraiga un fotograma fijo o una hoja de contacto de fotogramas.
meme-maker
394 milPermite que tu agente elija una plantilla de meme, añada tus propios textos y cree el meme como imagen SVG o PNG.
ios-icon-gen
280 milPermite a tu agente generar iconos para apps de iOS. Usa símbolos de Apple u otras fuentes para crear los archivos correctos.