Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

sablier-icon萨布利尔图标

Agent Skill

sablier-icon 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

424

周安装

17

GitHub Stars

6

下载量

137
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sablier-icon(萨布利尔图标)
来源仓库:https://github.com/sablier-labs/agent-skills
仓库路径:skills/sablier-icon
安装命令:
npx skills add https://github.com/sablier-labs/agent-skills --skill sablier-icon
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sablier-labs/agent-skills --skill sablier-icon

简介

sablier-icon 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配和来源线索筛选等研究检索场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件操作。
  • 建议结合原始 README 和仓库内容进一步核验具体用法和功能边界。

SKILL.md

Recolor the Sablier icon SVG to a user-specified color with an analogous gradient, and optionally export to PNG, JPG, or ICO (favicon).

Source

The base icon is at assets/icon.svg (relative to this skill directory). It is a two-path SVG with viewBox="0 0 189.9 236.73" (aspect ratio ~0.802:1). Two CSS classes (.cls-1, .cls-2) reference two <linearGradient> elements in <defs>:

  • <linearGradient id="linear-gradient"> — contains two <stop> elements:

- offset="0"stop-color="#f77423" (top / darker) - offset="1"stop-color="#fbce5b" (bottom / lighter)

  • <linearGradient id="linear-gradient-2"> — inherits stops from the first via xlink:href="#linear-gradient"

To recolor, replace the two stop-color values inside <linearGradient id="linear-gradient">. Always preserve the original viewBox and aspect ratio — never add or change width/height attributes on the SVG.

A flat variant is at assets/icon-white.svg — a single-path SVG with fill="white" and viewBox="0 0 386 480" (aspect ratio ~0.804:1). Used only when --flat is passed.

Color Resolution

Resolve the user's color input using this priority (first match wins):

  1. Exact aliasprimary, secondary, orange, blue (see aliases in palette below)
  2. Exact palette name — e.g. primary-start, dark-300, gray-400
  3. Raw hex — accept #RRGGBB or RRGGBB (6-digit only, reject 3/8-digit). Normalize to lowercase #rrggbb
  4. CSS color name — standard CSS named colors (e.g. red, teal, cornflowerblue)

If multiple palette entries match a prefix (e.g. dark matches dark, dark-100, dark-300), prefer the exact match. If no exact match exists, ask the user to be more specific.

Sablier Brand Palette

Source: sablier-labs/branding

NameHexNotes
primary-start#ff7300Orange gradient start
primary-end#ffb800Orange gradient end
primary / orange#ff9c00Median orange (default primary)
secondary-start#003dffBlue gradient start
secondary-end#00b7ffBlue gradient end
secondary / blue#0063ffMedian blue (default secondary)
secondary-desaturated#266cd9Desaturated blue
dark#14161fDarkest background
dark-100#1e212fApp background
dark-300#2a2e41Card borders
dark-400#30354aInput borders
gray-100#e1e4eaBody text
gray-400#8792abLabels
red#e52e52Error / destructive
white#ffffffOriginal icon color
black#000000Pure black (rarely used)

Gradient Generation

Brand gradient pairs

Use these exact hex pairs — no computation needed:

AliasStart (offset=0, top)End (offset=1, bottom)
primary / orange#f77423#fbce5b
secondary / blue#003dff#00b7ff

When the user says "primary" or "orange", the output is identical to icon.svg (no stop-color changes needed). When the user says "secondary" or "blue", replace the two stop-colors with the blue pair.

Arbitrary colors — piecewise HSL algorithm

For any color not in the brand gradient pairs above, generate an analogous two-stop gradient:

  1. Convert the resolved hex to HSL (h, s%, l%)
  2. Branch by saturation:

- Achromatic (s < 10): keep s = 0 for both stops, vary only lightness - Start: hsl(h, 0%, max(l - 8, 10)%) - End: hsl(h, 0%, min(l + 12, 90)%) - Chromatic (s >= 10): keep hue constant, adjust lightness and gently reduce end saturation - Start: hsl(h, s%, max(l - 8, 15)%) - End: hsl(h, floor(s * 0.9)%, min(l + 12, 88)%)

  1. Ensure endL > startL after clamps; if not, set startL = endL - 10
  2. Convert both HSL values back to 6-digit lowercase hex

SVG Generation

Gradient mode (default)

  1. Read assets/icon.svg
  2. Resolve gradient start/end colors:

- If the color matches a brand gradient pair alias, use the exact hex pair - Otherwise, apply the piecewise HSL algorithm

  1. Find the two <stop> elements inside <linearGradient id="linear-gradient"> and replace their stop-color values:

- offset="0" → start hex - offset="1" → end hex

  1. Structural checks:

- Exactly two stop-color replacements occurred - xlink:href="#linear-gradient" on linear-gradient-2 is still intact - viewBox="0 0 189.9 236.73" preserved, no width/height attributes added

  1. Write to sablier-icon-<color-name>.svg

Flat mode (--flat flag)

  1. Read assets/icon-white.svg
  2. Resolve the color to a single hex value:

- If the color matches a brand gradient pair alias (primary, secondary), use the median palette hex (#ff9c00, #0063ff) - Otherwise, use the resolved hex directly

  1. Replace fill="white" on the <path> element only — never touch fill="none" on the root <svg> element
  2. Verify exactly one replacement occurred
  3. Verify viewBox="0 0 386 480" preserved, no width/height attributes added
  4. Write to sablier-icon-<color-name>.svg

Filenames

Use the brand alias when matched by name (e.g. primary), otherwise strip the # prefix and lowercase the hex value (e.g. #E52E52e52e52). If the color cannot be resolved, ask the user to provide a valid hex code.

PNG / JPG Export

If the user passes --format png or --format jpg:

  1. Generate the recolored SVG first
  2. Verify rsvg-convert is available: command -v rsvg-convert >/dev/null 2>&1 || {echo "Error: rsvg-convert not found. Install with: brew install librsvg"; exit 1;}
  3. Use rsvg-convert for SVG→PNG (it correctly renders CSS gradients, unlike ImageMagick's SVG renderer which produces grayscale)
  4. For JPG, convert the PNG with magick (verify availability: command -v magick >/dev/null 2>&1)

Gradient mode (from icon.svg, viewBox 189.9×236.73):

# PNG (transparent background, 1024px height, width auto-computed from aspect ratio ≈822px)
rsvg-convert -h 1024 "<input>.svg" -o "<output>.png"

# JPG (dark background since JPG has no transparency) — render PNG first, then convert
rsvg-convert -h 1024 "<input>.svg" -o "<output>.tmp.png"
magick "<output>.tmp.png" -background "#14161f" -flatten "<output>.jpg"
rm "<output>.tmp.png"

Flat mode (from icon-white.svg, viewBox 386×480):

# PNG (transparent background, explicit height, width auto-computed ≈824px)
rsvg-convert -h 1024 "<input>.svg" -o "<output>.png"

# JPG (dark background)
rsvg-convert -h 1024 "<input>.svg" -o "<output>.tmp.png"
magick "<output>.tmp.png" -background "#14161f" -flatten "<output>.jpg"
rm "<output>.tmp.png"

Verify the exported file's dimensions match the expected aspect ratio.

ICO Export (--format ico or --favicon)

--favicon is a shorthand for --format ico. Both produce a multi-resolution .ico file containing 16x16, 32x32, and 48x48 embedded PNGs — the standard sizes for favicon.ico.

  1. Generate the recolored SVG first
  2. Verify rsvg-convert and magick are available (same checks as PNG/JPG)
  3. Render intermediate PNGs at each favicon size using rsvg-convert (height-constrained to preserve aspect ratio), then center each on a square transparent canvas with magick -extent
  4. Combine into a single .ico with magick
  5. Clean up intermediate PNGs
# Render PNGs preserving aspect ratio (height-constrained), then center on square canvas
for size in 16 32 48; do
  rsvg-convert -h "$size" "<input>.svg" -o "<output>-${size}-raw.tmp.png"
  magick "<output>-${size}-raw.tmp.png" -background transparent -gravity center -extent "${size}x${size}" "<output>-${size}.tmp.png"
  rm "<output>-${size}-raw.tmp.png"
done

# Combine into multi-resolution ICO
magick "<output>-16.tmp.png" "<output>-32.tmp.png" "<output>-48.tmp.png" "<output>.ico"

# Clean up
rm "<output>-16.tmp.png" "<output>-32.tmp.png" "<output>-48.tmp.png"

The output filename follows the sablier-icon-<color-name>.ico pattern — or favicon.ico if the user explicitly requests that name.

The output filename follows the same sablier-icon-<color-name>.<ext> pattern for all other formats.

Examples

  • primarysablier-icon-primary.svg with brand orange gradient (identical to icon.svg)
  • secondarysablier-icon-secondary.svg with blue gradient #003dff / #00b7ff
  • #e52e52sablier-icon-e52e52.svg with red gradient (piecewise HSL algorithm)
  • whitesablier-icon-white.svg with achromatic subtle lightness gradient
  • #00d395 --flatsablier-icon-00d395.svg with flat fill="#00d395"
  • red --format jpgsablier-icon-red.svg + sablier-icon-red.jpg
  • secondary --format pngsablier-icon-secondary.svg + sablier-icon-secondary.png (blue gradient + raster export)
  • primary --format icosablier-icon-primary.svg + sablier-icon-primary.ico (multi-resolution 16/32/48px)
  • primary --favicon → same as --format ico

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.58%
按下载量换算50

Claude

30.53%
按下载量换算42

Cursor

20.41%
按下载量换算28

Gemini CLI

9.78%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills