← 返回 Skills 市场
openlark

Favicons

作者 OpenLark · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
83
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install favicons
功能描述
Use the favicons Node.js library to generate multi-platform website icons (Favicons).
使用说明 (SKILL.md)

Favicons

Generate cross-platform website icons using the Node.js favicons library.

Use Cases

Use this skill when the user needs to generate website icons, create a PWA icon set for a website, generate app icons for different platforms (iOS, Android, Windows), or produce a complete icon package including HTML tags and manifest files.

Installing Dependencies

Ensure favicons is installed in the project before execution:

npm install favicons

Quick Start

import { favicons } from "favicons";

const response = await favicons(source, configuration);

Workflow

  1. Confirm Source Image: Requires a clear app icon source image (recommended 512x512 or larger, supports PNG/SVG)
  2. Configure Options: Set app name, icon path, platform toggles, etc., as needed
  3. Execute Generation: Run the script to generate icon files
  4. Output Files: Obtain image files, configuration files, and HTML tags

Executing Icon Generation

Use the bundled script to generate icons:

node \x3Cskill-path>/scripts/generate_favicons.js \x3Csource-image> \x3Coutput-directory> \x3Cconfig-JSON>

Example

# Basic usage
node scripts/generate_favicons.js ./logo.png ./dist

# Full configuration
node scripts/generate_favicons.js ./logo.png ./dist '{
  "appName": "My App",
  "appShortName": "App",
  "background": "#2196F3",
  "icons": {"android": true, "appleIcon": true, "windows": true}
}'

Configuration Reference

For detailed configuration options, refer to config_reference.md.

Common Configuration

Option Description
appName Application name
appShortName Application short name (displayed on desktop)
path Icon deployment path prefix
background Icon background color
icons.android Generate Android icons
icons.appleIcon Generate Apple Touch icons
icons.favicons Generate generic favicons

Disabling Specific Platforms

{
  icons: {
    android: false,      // Skip Android icons
    appleStartup: false, // Skip Apple startup images
    yandex: false        // Skip Yandex icons
  }
}

Output Files

The generated directory contains:

  • Image Files: PNG icons of various sizes
  • Configuration Files: manifest.json, browserconfig.xml
  • HTML Tag File: favicon-tags.html (can be directly copied into \x3Chead>)

FAQ

Why are some icons missing? Some icons (such as macOS SVG, Windows tile silhouette effects) require additional module support; the project will follow up continuously.

Generation failed?

  • Ensure the source image exists and is in the correct format
  • Check that Node.js version >= 14
  • Ensure the favicons package is installed correctly
安全使用建议
This skill appears to do exactly what it says: run the favicons Node library to create image/config files. Before installing, ensure you have Node.js and are comfortable running npm-installed packages. The included script writes files to whatever output directory you pass — choose a safe path and verify outputs. As with any third-party script, run it in a trusted environment (or sandbox) if the source is unfamiliar. Note: SKILL.md shows ES module import while the script uses require(); that's harmless but you should install the package into a project environment where the script runs. No credentials or network endpoints are used by the script.
功能分析
Type: OpenClaw Skill Name: favicons Version: 1.0.0 The skill bundle is a legitimate utility for generating website icons using the standard 'favicons' Node.js library. The script 'scripts/generate_favicons.js' correctly implements icon generation by taking a source image and outputting the necessary files and HTML tags to a specified directory, with no evidence of malicious intent, data exfiltration, or suspicious execution patterns.
能力评估
Purpose & Capability
Name and description match the included script and documentation. The skill is a thin wrapper around the Node.js 'favicons' library and only needs filesystem access and the favicons package to perform its stated job.
Instruction Scope
SKILL.md instructs installing the favicons package and running the included Node script with a source image, output directory, and optional JSON config. The runtime instructions only reference relevant files/paths and do not ask the agent to read unrelated system files or credentials.
Install Mechanism
There is no automated install spec; SKILL.md recommends 'npm install favicons'. No downloads from arbitrary URLs or archive extraction occur. The approach is typical for a Node-based helper script.
Credentials
The skill declares no environment variables or credentials. The included script only uses Node standard libs and the favicons package; it does not access external secrets or unrelated services.
Persistence & Privilege
always is false and model invocation is normal. The skill does not request persistent platform privileges or modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install favicons
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /favicons 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
favicons 1.0.0 – Initial Release - Adds the ability to generate multi-platform website icons using the Node.js favicons library. - Supports creation of app icons, manifest files, and HTML tags for various platforms (iOS, Android, Windows). - Includes scripts and documentation for quick start, configuration, and output details. - Provides FAQs and troubleshooting tips for common icon generation issues.
元数据
Slug favicons
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Favicons 是什么?

Use the favicons Node.js library to generate multi-platform website icons (Favicons). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 83 次。

如何安装 Favicons?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install favicons」即可一键安装,无需额外配置。

Favicons 是免费的吗?

是的,Favicons 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Favicons 支持哪些平台?

Favicons 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Favicons?

由 OpenLark(@openlark)开发并维护,当前版本 v1.0.0。

💬 留言讨论