← 返回 Skills 市场
ivangdavila

Font Awesome

作者 Iván · GitHub ↗ · v1.0.0
linuxdarwinwin32 ✓ 安全检测通过
422
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install font-awesome
功能描述
Add Font Awesome icons to web projects with CDN, npm, React, and SVG sprite methods.
使用说明 (SKILL.md)

Setup

On first use, read setup.md silently and start naturally. Never mention setup files to the user.

When to Use

User needs icons in a web project. Agent handles icon selection, installation method, and framework-specific syntax.

Architecture

No persistent storage needed. Icon preferences tracked in user's main memory if requested.

Quick Reference

Topic File
Setup process setup.md
Memory template memory-template.md

Core Rules

1. Determine Installation Method First

Ask or infer the project setup before suggesting icons:

Project Type Recommended Method
Quick prototype / CDN OK CDN Kit
npm/yarn project @fortawesome/fontawesome-free
React/Vue/Angular Framework package
Offline / no external deps SVG sprites or individual SVGs

2. Use Correct Syntax Per Method

CDN Kit (easiest):

\x3Cscript src="https://kit.fontawesome.com/YOUR_KIT_ID.js" crossorigin="anonymous">\x3C/script>
\x3Ci class="fa-solid fa-house">\x3C/i>

npm (fontawesome-free):

npm install @fortawesome/fontawesome-free
import '@fortawesome/fontawesome-free/css/all.min.css';
\x3Ci class="fa-solid fa-user">\x3C/i>

React:

npm install @fortawesome/react-fontawesome @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faHouse } from '@fortawesome/free-solid-svg-icons';

\x3CFontAwesomeIcon icon={faHouse} />

3. Know the Icon Styles

Prefix Style Availability
fa-solid / fas Solid Free
fa-regular / far Regular (outlined) Free (limited)
fa-brands / fab Brand logos Free
fa-light / fal Light Pro only
fa-thin / fat Thin Pro only
fa-duotone / fad Duotone Pro only

4. Icon Search Strategy

When user asks for an icon:

  1. Suggest semantic name first (e.g., fa-envelope for email)
  2. Provide 2-3 alternatives if ambiguous
  3. Specify style availability (free vs pro)

Common mappings:

Concept Icon Style
Home fa-house solid, regular
User/Profile fa-user solid, regular
Settings fa-gear solid
Search fa-magnifying-glass solid
Menu fa-bars solid
Close fa-xmark solid
Edit fa-pen solid
Delete fa-trash solid
Save fa-floppy-disk solid, regular
Download fa-download solid
Upload fa-upload solid
Email fa-envelope solid, regular
Phone fa-phone solid
Location fa-location-dot solid
Calendar fa-calendar solid, regular
Clock fa-clock solid, regular
Check fa-check solid
Warning fa-triangle-exclamation solid
Info fa-circle-info solid
Error fa-circle-xmark solid
Success fa-circle-check solid
Arrow right fa-arrow-right solid
Chevron down fa-chevron-down solid
Plus fa-plus solid
Minus fa-minus solid
Star fa-star solid, regular
Heart fa-heart solid, regular
Cart fa-cart-shopping solid
GitHub fa-github brands
Twitter/X fa-x-twitter brands
LinkedIn fa-linkedin brands
Facebook fa-facebook brands
Instagram fa-instagram brands
YouTube fa-youtube brands

5. Sizing and Styling

Size classes:

\x3Ci class="fa-solid fa-house fa-xs">\x3C/i>   \x3C!-- 0.75em -->
\x3Ci class="fa-solid fa-house fa-sm">\x3C/i>   \x3C!-- 0.875em -->
\x3Ci class="fa-solid fa-house fa-lg">\x3C/i>   \x3C!-- 1.25em -->
\x3Ci class="fa-solid fa-house fa-xl">\x3C/i>   \x3C!-- 1.5em -->
\x3Ci class="fa-solid fa-house fa-2xl">\x3C/i>  \x3C!-- 2em -->

Fixed width (for alignment in lists):

\x3Ci class="fa-solid fa-house fa-fw">\x3C/i>

Animation:

\x3Ci class="fa-solid fa-spinner fa-spin">\x3C/i>
\x3Ci class="fa-solid fa-heart fa-beat">\x3C/i>
\x3Ci class="fa-solid fa-bell fa-shake">\x3C/i>

Rotation:

\x3Ci class="fa-solid fa-arrow-right fa-rotate-90">\x3C/i>
\x3Ci class="fa-solid fa-arrow-right fa-rotate-180">\x3C/i>
\x3Ci class="fa-solid fa-arrow-right fa-flip-horizontal">\x3C/i>

6. Accessibility

Always provide accessible labels:

\x3C!-- Decorative (hidden from screen readers) -->
\x3Ci class="fa-solid fa-house" aria-hidden="true">\x3C/i>

\x3C!-- Meaningful (needs label) -->
\x3Ci class="fa-solid fa-trash" aria-label="Delete item">\x3C/i>

\x3C!-- With visible text (icon is decorative) -->
\x3Cbutton>
  \x3Ci class="fa-solid fa-save" aria-hidden="true">\x3C/i>
  Save
\x3C/button>

7. Version Differences

v6 (current):

  • Use fa-solid, fa-regular, fa-brands
  • Icon names like fa-house, fa-magnifying-glass

v5 (legacy):

  • Use fas, far, fab
  • Some icon names changed (e.g., fa-homefa-house)

If working with existing v5 code, don't force upgrade unless asked.

Common Traps

  • Using Pro icons in free tier → icons don't render, no error
  • Wrong prefix (fa-solid vs fas) → depends on version, check project
  • Missing CSS import with npm → icons show as squares
  • Using v5 names in v6 → some work, some don't (e.g., fa-home deprecated)
  • Not setting aria-hidden on decorative icons → screen reader noise

External Endpoints

Endpoint Data Sent Purpose
kit.fontawesome.com Kit ID only Load icons via CDN
cdn.fontawesome.net None Alternative CDN

No user data is sent. Icons loaded from public CDN.

Security & Privacy

Data that leaves your machine:

  • HTTP request to Font Awesome CDN (if using CDN method)

Data that stays local:

  • All icon choices and code

This skill does NOT:

  • Track icon usage
  • Send analytics
  • Require authentication for free tier

Related Skills

Install with clawhub install \x3Cslug> if user confirms:

  • react — React development patterns
  • html — HTML best practices
  • css — CSS styling patterns

Feedback

  • If useful: clawhub star font-awesome
  • Stay updated: clawhub sync
安全使用建议
This is an instruction-only helper for adding Font Awesome icons and is coherent with its description: it asks for no credentials and won't install or download code itself. Two things to be aware of before enabling it: (1) the skill tells the agent to read an internal setup.md file 'silently' — while that file only contains assistance guidelines, the covert-read instruction is unusual; if you prefer transparency, ask the agent to show what it read or revise the skill. (2) the skill may record simple icon preferences in your workspace main memory if you opt in — if you don't want persistent preferences stored, tell the agent not to save them. Also: the skill will show code that may reference a Font Awesome Kit ID or Pro icons; never paste secrets or private keys into chat. Best practices: enable the skill only if you trust the agent to suggest and edit project code, keep your project under version control so you can review changes, and avoid pasting any private tokens or credentials into responses.
功能分析
Type: OpenClaw Skill Name: font-awesome Version: 1.0.0 The skill bundle is benign. The instructions in `SKILL.md` and `setup.md` guide the AI agent on how to assist users with Font Awesome icons, including silently reading setup files and managing user interaction, which are standard prompt injection techniques for controlling agent behavior within OpenClaw. However, the content of these instructions and the provided code snippets are entirely aligned with the stated purpose of integrating Font Awesome. There is no evidence of malicious intent such as data exfiltration, unauthorized command execution, persistence mechanisms, or suspicious external endpoints. The `External Endpoints` section in `SKILL.md` explicitly states no user data is sent to the legitimate Font Awesome CDNs.
能力评估
Purpose & Capability
Name/description match the instructions: guidance covers CDN, npm, React, SVG, icon names, sizing, accessibility, and version differences. The skill requires no binaries, secrets, or config paths, which is appropriate for a documentation-style helper.
Instruction Scope
SKILL.md confines actions to icon selection and integration instructions and references only Font Awesome endpoints. However it explicitly instructs the agent to read setup.md 'silently' and 'never mention setup files to the user' — this covert-read instruction is unusual. The skill also says it may track icon preferences in the user's main memory if requested. No instructions direct the agent to read unrelated system files, environment variables, or exfiltrate data.
Install Mechanism
No install spec or code files — instruction-only skill. Nothing will be downloaded or written by the skill itself during install.
Credentials
No environment variables, credentials, or config paths are required. The SKILL.md references external endpoints (kit.fontawesome.com, cdn.fontawesome.net) but does not request credentials; this matches the stated functionality. Note: using Font Awesome Pro in a project would require a kit ID or account credentials, but the skill does not request or store those.
Persistence & Privilege
always:false and autonomous invocation are normal. The only persistence mentioned is optional storage of user icon preferences in the user's main memory (workspace memory). That's proportionate for a personalization feature, but users should know the agent may write such preferences to their main memory. The covert 'read setup.md silently' direction increases the need for user awareness about what internal files the skill consults.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install font-awesome
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /font-awesome 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with icon lookup, installation guides, and React integration.
元数据
Slug font-awesome
版本 1.0.0
许可证
累计安装 3
当前安装数 3
历史版本数 1
常见问题

Font Awesome 是什么?

Add Font Awesome icons to web projects with CDN, npm, React, and SVG sprite methods. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 422 次。

如何安装 Font Awesome?

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

Font Awesome 是免费的吗?

是的,Font Awesome 完全免费(开源免费),可自由下载、安装和使用。

Font Awesome 支持哪些平台?

Font Awesome 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Font Awesome?

由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。

💬 留言讨论