Favicon Icon Generator 标志

Favicon Icon Generator

社区
kennyzir
favicon-icon-generator

为 Web 项目生成并验证网站图标和应用图标系统。适用于创建 SVG 图标、Web manifest、框架元数据或跨平台网站图标素材。

Add to TypingMind

概览

发布者kennyzir
代码仓库7deer_skills
技能名称favicon-icon-generator
星标数
329
复刻数
143
附带文件
6
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 6 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 kennyzir 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Favicon Icon Generator AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/kennyzir/7deer_skills/tree/main/favicon-icon-generator
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kennyzir/7deer_skills.git /tmp/7deer_skills
mkdir -p .claude/skills
cp -r /tmp/7deer_skills/favicon-icon-generator .claude/skills/favicon-icon-generator
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Favicon Icon Generator,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Favicon Icon Generator。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Favicon Icon Generator 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Favicon & Icon Generator Skill

Overview

A comprehensive skill for generating professional favicon and icon systems for web applications. This skill creates SVG-based icons optimized for browsers, search engines, PWAs, and mobile devices, with automated validation and testing tools.

When to Use This Skill

  • Setting up icons for a new website or web application
  • Fixing missing or broken favicon/icon configurations
  • Improving SEO with proper icon display in search results
  • Implementing PWA (Progressive Web App) icon requirements
  • Creating a complete icon system for multi-platform support

What This Skill Does

1. Icon Design & Creation

  • Creates professional SVG icons optimized for web use
  • Designs icons that represent the core theme/purpose of the application
  • Generates multiple sizes: high-resolution (512x512) and favicon (32x32)
  • Uses modern design principles: gradients, proper contrast, recognizable shapes
  • Ensures icons are clear and visible at small sizes

2. Configuration Setup

  • Updates Next.js layout.tsx with proper metadata configuration
  • Configures PWA manifest.json with correct icon references
  • Sets up HTML head tags for maximum browser compatibility
  • Implements proper icon fallbacks and alternatives

3. Automation Tools

  • Creates verification script to check icon configuration
  • Generates PNG conversion script (optional, requires sharp library)
  • Sets up prebuild hooks for automatic validation
  • Provides testing pages for visual verification

4. Documentation

  • Generates comprehensive setup guides
  • Creates quick reference documentation
  • Provides deployment checklists
  • Includes troubleshooting guides

Icon Design Principles

Visual Elements

  1. Primary Symbol: Main icon representing the app's core purpose

    • Should be simple and recognizable
    • Works well at small sizes (16x16 to 512x512)
    • Uses clear, bold shapes
  2. Color Scheme

    • Uses brand colors or theme colors
    • Provides good contrast against backgrounds
    • Implements gradients for depth and professionalism
    • Dark background for dark-themed sites, light for light-themed
  3. Accent Elements

    • Secondary symbols or indicators
    • Subtle details that don't clutter small sizes
    • Complementary colors for visual interest

Technical Requirements

  • Format: SVG (Scalable Vector Graphics) for main icons
  • Sizes:
    • 512x512 (high-resolution, PWA)
    • 32x32 (favicon, browser tabs)
    • 180x180 (Apple Touch Icon, PNG)
  • Optimization: Clean code, minimal file size (< 5KB)
  • Compatibility: Works in all modern browsers

File Structure

project/
├── public/
│   ├── icon.svg              # Main icon (512x512)
│   ├── favicon.svg           # Favicon (32x32)
│   ├── manifest.json         # PWA manifest
│   ├── icon-test.html        # Testing page
│   └── icon-comparison.html  # Before/after comparison
├── src/app/
│   ├── layout.tsx            # Next.js metadata config
│   └── apple-icon.png        # iOS home screen icon
├── scripts/
│   ├── verify-icons.js       # Validation script
│   └── generate-icons.js     # PNG generation script
└── docs/
    ├── ICON_SETUP.md         # Detailed guide
    └── ICON_QUICK_REFERENCE.md # Quick reference

Implementation Steps

Step 1: Analyze the Application

  1. Identify the core theme/purpose
  2. Review existing branding (colors, style)
  3. Determine key visual elements to represent
  4. Check current icon configuration (if any)

Step 2: Design the Icon

  1. Create main SVG icon (512x512)

    • Primary symbol representing the app
    • Brand colors and gradients
    • Accent elements for distinction
    • Proper viewBox and dimensions
  2. Create favicon version (32x32)

    • Simplified version of main icon
    • Optimized for small size visibility
    • Same color scheme and theme

Step 3: Configure Files

Next.js layout.tsx
typescript
export async function generateMetadata(): Promise<Metadata> {
  return {
    icons: {
      icon: [
        { url: "/icon.svg", type: "image/svg+xml" },
        { url: "/favicon.svg", type: "image/svg+xml" },
      ],
      shortcut: "/icon.svg",
      apple: [
        { url: "/apple-icon.png", sizes: "180x180", type: "image/png" },
      ],
      other: [
        {
          rel: "mask-icon",
          url: "/icon.svg",
        },
      ],
    },
    // ... other metadata
  };
}

// In the HTML head
<head>
  <link rel="icon" href="/icon.svg" type="image/svg+xml" />
  <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
  <link rel="apple-touch-icon" href="/apple-icon.png" sizes="180x180" />
</head>
manifest.json
json
{
  "icons": [
    {
      "src": "/icon.svg",
      "sizes": "any",
      "type": "image/svg+xml",
      "purpose": "any"
    },
    {
      "src": "/favicon.svg",
      "sizes": "32x32",
      "type": "image/svg+xml",
      "purpose": "any"
    },
    {
      "src": "/apple-icon.png",
      "sizes": "180x180",
      "type": "image/png",
      "purpose": "any"
    }
  ]
}

Step 4: Create Automation Tools

Verification Script (verify-icons.js)
  • Checks all required files exist
  • Validates configuration in layout.tsx and manifest.json
  • Reports missing or misconfigured files
  • Runs automatically before build (prebuild hook)
Generation Script (generate-icons.js)
  • Converts SVG to PNG using sharp library
  • Generates multiple sizes (180x180, 192x192, 512x512)
  • Optional tool for better compatibility
Testing Pages
  • Visual preview of all icons
  • Browser tab icon testing
  • Before/after comparison
  • Deployment checklist

Step 5: Documentation

  1. Create detailed setup guide (ICON_SETUP.md)
  2. Create quick reference (ICON_QUICK_REFERENCE.md)
  3. Create deployment checklist
  4. Document troubleshooting steps

Step 6: Testing & Validation

  1. Run verification script
  2. Test in development environment
  3. Check browser tab display
  4. Test on mobile devices
  5. Validate PWA installation
  6. Clear cache and retest

SVG Icon Template

xml
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
  <!-- Gradients for depth -->
  <defs>
    <linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%">
      <stop offset="0%" style="stop-color:#1e293b;stop-opacity:1" />
      <stop offset="100%" style="stop-color:#0f172a;stop-opacity:1" />
    </linearGradient>
    <linearGradient id="primary" x1="0%" y1="0%" x2="0%" y2="100%">
      <stop offset="0%" style="stop-color:#60a5fa;stop-opacity:1" />
      <stop offset="100%" style="stop-color:#3b82f6;stop-opacity:1" />
    </linearGradient>
  </defs>
  
  <!-- Background -->
  <rect width="512" height="512" rx="80" fill="url(#bg)"/>
  
  <!-- Main symbol -->
  <!-- Add your primary icon element here -->
  
  <!-- Accent elements -->
  <!-- Add secondary elements here -->
  
  <!-- Subtle effects -->
  <!-- Add glow, shadow, or other effects -->
</svg>

Verification Checklist

Pre-Deployment

  • All icon files created (icon.svg, favicon.svg)
  • Configuration files updated (layout.tsx, manifest.json)
  • Verification script passes
  • Icons display correctly in browser tabs
  • Testing pages work correctly
  • Build completes without errors

Post-Deployment

  • Browser tab icon displays (Chrome, Firefox, Safari, Edge)
  • Mobile browser icon displays (iOS Safari, Android Chrome)
  • PWA installation works correctly
  • Bookmarks show icon
  • Google Search Console indexed (wait 24-48 hours)
  • Search results show icon (wait 24-48 hours)

Expected Impact

Immediate Benefits

  • ✅ Professional appearance in browser tabs
  • ✅ Better user experience (easier to find tabs)
  • ✅ Proper PWA support
  • ✅ Mobile home screen icons

SEO Benefits (24-48 hours)

  • ✅ Icon display in Google search results
  • ✅ Increased click-through rate (5-15%)
  • ✅ Improved brand recognition
  • ✅ Enhanced professional credibility

Long-term Benefits

  • ✅ Better user retention
  • ✅ Stronger brand identity
  • ✅ Improved user trust
  • ✅ Higher engagement rates

Troubleshooting

Icon Not Displaying in Browser

  1. Clear browser cache (Ctrl+Shift+Delete)
  2. Hard refresh (Ctrl+F5)
  3. Check file paths are correct
  4. Verify SVG syntax is valid
  5. Check browser console for errors

Icon Not in Google Search Results

  1. Ensure deployed to production
  2. Wait 24-48 hours for re-crawl
  3. Request re-index in Google Search Console
  4. Check robots.txt doesn't block icons
  5. Verify icon files are publicly accessible

PWA Installation Issues

  1. Verify manifest.json is valid JSON
  2. Check icon sizes are correct
  3. Ensure HTTPS is enabled
  4. Test on different devices
  5. Check browser console for PWA errors

Commands Reference

bash
# Verify icon configuration
npm run verify-icons

# Generate PNG versions (requires sharp)
npm install --save-dev sharp
npm run generate-icons

# Build with automatic verification
npm run build

# Test locally
npm run dev
# Visit http://localhost:3000/icon-test.html

Best Practices

Design

  1. Keep it simple - icons should be recognizable at 16x16
  2. Use brand colors consistently
  3. Ensure good contrast
  4. Test at multiple sizes
  5. Make it memorable and unique

Technical

  1. Use SVG for scalability
  2. Keep file sizes small (< 5KB)
  3. Validate configuration before deployment
  4. Test on multiple browsers and devices
  5. Document the icon system

Maintenance

  1. Version control all icon files
  2. Document design decisions
  3. Keep backup of original designs
  4. Test after any updates
  5. Monitor search result display

Integration with Other Tools

Next.js

  • Automatic metadata generation
  • App directory structure support
  • Static export compatibility
  • Image optimization integration

PWA

  • Manifest.json configuration
  • Service worker compatibility
  • Install prompt support
  • Home screen icon support

SEO Tools

  • Google Search Console integration
  • Structured data compatibility
  • Social media preview support
  • Favicon validation tools

Example Use Cases

1. Gaming Website

  • Icon: Sword, controller, or game-specific symbol
  • Colors: Vibrant, energetic (blue, red, purple)
  • Style: Bold, dynamic, action-oriented

2. Calculator/Tool Website

  • Icon: Calculator symbol, chart, or tool icon
  • Colors: Professional (blue, green, gray)
  • Style: Clean, modern, functional

3. E-commerce Site

  • Icon: Shopping bag, cart, or product
  • Colors: Trustworthy (blue, green, orange)
  • Style: Friendly, approachable, clear

4. Blog/Content Site

  • Icon: Letter, book, or pen
  • Colors: Readable (black, blue, red)
  • Style: Classic, elegant, simple

Resources

Design Tools

  • Figma (free, web-based)
  • Inkscape (free, desktop)
  • Adobe Illustrator (paid)
  • SVG editors online

Conversion Tools

  • CloudConvert (SVG to PNG)
  • Sharp library (Node.js)
  • ImageMagick (command line)
  • Online favicon generators

Testing Tools

  • Browser DevTools
  • Google Search Console
  • Lighthouse (PWA audit)
  • Real device testing

Documentation

Skill Outputs

When this skill is applied, you will receive:

  1. Icon Files

    • icon.svg (512x512)
    • favicon.svg (32x32)
    • Optional PNG versions
  2. Configuration Files

    • Updated layout.tsx
    • Updated manifest.json
    • Updated package.json
  3. Automation Scripts

    • verify-icons.js
    • generate-icons.js
    • Testing HTML pages
  4. Documentation

    • Setup guide
    • Quick reference
    • Deployment checklist
    • Troubleshooting guide
  5. Testing Tools

    • Visual preview page
    • Comparison page
    • Verification script

Success Metrics

Technical Metrics

  • ✅ All verification checks pass
  • ✅ Icons display in all major browsers
  • ✅ PWA installation works
  • ✅ No console errors

Business Metrics

  • 📈 Click-through rate increase (5-15%)
  • 📈 Brand recognition improvement
  • 📈 User retention increase
  • 📈 Professional credibility boost

Maintenance Schedule

Immediate (After Implementation)

  • Test on all target browsers
  • Verify mobile display
  • Check PWA installation
  • Monitor for errors

Short-term (1-7 days)

  • Check Google search results
  • Monitor click-through rates
  • Collect user feedback
  • Fix any issues

Long-term (Monthly)

  • Review analytics impact
  • Update if branding changes
  • Test on new browsers/devices
  • Keep documentation current

Skill Version: 1.0
Last Updated: 2026-02-09
Compatibility: Next.js 13+, React 18+, Modern Browsers
Difficulty: Intermediate
Time to Implement: 1-2 hours

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Favicon Icon Generator AI 技能有什么作用?

为 Web 项目生成并验证网站图标和应用图标系统。适用于创建 SVG 图标、Web manifest、框架元数据或跨平台网站图标素材。

为什么在 TypingMind 中使用 Favicon Icon Generator?

因为您只需安装一次,就能搭配任何模型使用。Favicon Icon Generator 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Favicon Icon Generator?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/kennyzir/7deer_skills/tree/main/favicon-icon-generator。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Favicon Icon Generator?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Favicon Icon Generator 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Favicon Icon Generator 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Favicon Icon Generator AI 技能免费吗?

是的。kennyzir 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇