360 Secure SkillHub
360 安全技能中心

Favicon

这是一款实用的Favicon工具,核心功能含:检测网站是否有图标(多方式检测)、下载网站图标(Google API兜底)、生成带文字的SVG占位图标、查看图标文件的尺寸、格式等信息。适用于设计项目取图标、制作临时占位图标、验证图标属性等场景,以命令行指令输入,输出检测结果、对应文件或详情。

bytesagain
bytesagain
热度 48.60
最近更新 2026-03-27 14:47:46
分类:创作依赖:代码执行 / 第三方 API / 读写文件应用场景:图像生成 / 品牌素材

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add favicon
Metadata
name
Favicon
description
Fetch and download favicons from any website for your design projects. Use when grabbing icons, checking availability, or previewing favicon renders.
version
3.0.0
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["favicon","icon","website","image","web","html","branding","developer"]
categories
["Developer Tools","Utility"]

Favicon — Favicon Tool

Check, download, and generate favicons. Detects favicons via /favicon.ico, HTML <link> tags, and apple-touch-icon. Can generate SVG placeholder favicons from text.

Commands

Command Description
check <url> Check if a website has a favicon (tries /favicon.ico, HTML link tags, apple-touch-icon)
download <url> [output] Download a site's favicon (tries direct, HTML parsing, Google API fallback)
generate <text> [size] Generate an SVG favicon placeholder with text (1-2 chars, random background)
info <file> Show image file info — size, MIME type, format (ICO/PNG/JPEG/GIF/SVG/WebP)

Examples

# Check if a site has a favicon
favicon check https://github.com
# → ✓ /favicon.ico — 200
# → ✓ apple-touch-icon found

# Download a favicon
favicon download https://google.com google-icon.ico

# Generate an SVG placeholder
favicon generate "AB" 64
# → Creates AB-favicon.svg with random background color

# Get info about a favicon file
favicon info favicon.ico
# → Size, MIME type, format (detected from magic bytes)

Detection Methods

  1. Direct: Checks <url>/favicon.ico
  2. HTML Parsing: Looks for <link rel="icon"> and <link rel="shortcut icon"> in page HTML
  3. Apple Touch Icon: Checks for <link rel="apple-touch-icon">
  4. Google API (download only): Falls back to google.com/s2/favicons API

Requirements

  • curl — for HTTP requests
  • file (optional) — for MIME type detection in info command
  • xxd (optional) — for magic byte detection in info command