Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

lov-normalize-tauri-app-icon

БесплатноЗапускает вложенные скриптыНе проверен

校准 Tauri macOS Dock 图标的可见外框、圆角安全区与运行时嵌入链路;适用于“Dock 图标太大”“统一 Tauri app icon”或“normalize Tauri app icon”等请求,并输出可复核的资源与运行时证据。

lovstudioот lovstudio★ 72 звезды на GitHub

Об этом скилле

Tauri 图标校准 · Tauri Icon Alignment

把 Tauri macOS 应用图标校准到与参考图标相同的视觉外框,并验证当前运行的原生进程确实嵌入了新图标。完成标准是 Dock 中的实际显示尺寸与资源、构建产物和运行时证据一致。

Triggers

Activate when

  • 用户说“Dock 里的 Tauri 图标太大/太小”“图标没有圆角”或“把 app icon 对齐到参考应用”。
  • 用户说“统一 Tauri app icon 的视觉大小”“检查 macOS Dock 图标为什么没更新”。
  • User says “normalize Tauri app icon”, “match the Dock icon size”, or “verify the Tauri icon embedded in dev”.

Do not activate when

  • 用户只需要设计一个新 Logo、品牌图形或插画;交给视觉设计或 Logo 生成能力。
  • 用户只要打包、签名、上传或发布桌面应用;交给应用发布能力。
  • 用户处理 iOS、Android 或 Windows 的专有图标规范,且不涉及 Tauri/macOS Dock;使用相应平台的图标工作流。

User Profile (cross-session)

Every invocation reads the shared user-profile/v1 contract declared in skill.yaml. Resolve current request, project context, Skill records, shared preferences, and shared user/brand data in that order. Keep the source portable: do not copy local paths, logos, or private project details into it.

When a user explicitly asks to retain a future calibration choice (for example, a reference icon or preferred visible-envelope ratio), save it under records.* with scripts/profile_store.py record --confirm and report the saved Profile path. Do not persist inferred values, image contents, credentials, or private paths. See references/user-profile.md.

Skill Group Composition

Read references/skill-composition.md before selecting adjacent Logo, SVG, Tauri-install, or release Skills. They are optional artifact-level handoffs, never hidden runtime dependencies of this Skill. This Skill owns the final visual-envelope and runtime-embedding acceptance criterion.

Workflow (MANDATORY)

Follow these steps in order. Do not call a resource change complete from a source-image inspection alone.

Step 0: Resolve the project and required evidence

  1. Locate the active Tauri project, its src-tauri/tauri.conf.json, icon source, generated icon directory, src-tauri/build.rs, and the currently running native executable if one exists.
  2. Preserve unrelated dirty worktree changes. Identify the branch and actual process working directory before editing.
  3. Ask at most one focused question only when neither a reference icon nor a target visual ratio can be inferred from screenshots or project assets.
  4. Load references/tauri-icon-runtime.md before making a runtime conclusion.
  5. Load references/skill-composition.md and follow its single-owner handoff rule before invoking a related Skill.

When running the bundled CLI manually, set the Skill root first:

export SKILL_DIR="/path/to/lov-normalize-tauri-app-icon"
python3 "$SKILL_DIR/scripts/tauri_app_icon.py" --help

Step 1: Measure visual envelopes, not canvas dimensions

Use alpha bounds to compare the non-transparent silhouette. A 512px canvas does not establish that two icons look the same size in Dock.

python3 "$SKILL_DIR/scripts/tauri_app_icon.py" measure --input TARGET.png
python3 "$SKILL_DIR/scripts/tauri_app_icon.py" measure --input REFERENCE.png

Record the visible_side, visible_ratio, corner alpha, and the screenshot pixel bounds when available. If the target has opaque square corners but the requested result needs a rounded macOS silhouette, correct the artwork first; the normalizer preserves the supplied alpha shape and does not invent a logo.

Step 2: Normalize from an explicit reference or ratio

Prefer an approved reference icon. The normalizer centers the visible alpha envelope on a square transparent canvas and scales it to the reference ratio. It refuses to overwrite an output unless --force is explicit.

python3 "$SKILL_DIR/scripts/tauri_app_icon.py" normalize \
  --input TARGET.png \
  --reference REFERENCE.png \
  --output normalized-icon.png

If no reference asset exists, use a measured target ratio and state where it came from:

python3 "$SKILL_DIR/scripts/tauri_app_icon.py" normalize \
  --input TARGET.png \
  --target-visible-ratio 0.805 \
  --output normalized-icon.png

Re-run measure on the output and report both ratios. Do not silently round a ratio or claim visual equivalence without a tolerance.

Step 3: Regenerate the entire Tauri icon set

Generate the platform set from the normalized canonical source rather than editing only one PNG. Use the project’s existing Tauri CLI and output layout:

pnpm tauri icon normalized-icon.png -o src-tauri/icons/<icon-set>

Update bundle.icon in src-tauri/tauri.conf.json so macOS points to the generated .icns and Unix/default-window paths point to the generated PNGs. Keep any other platform entries coherent with the project’s current bundle contract. Review generated asset alpha bounds at the largest available size.

Step 4: Verify the dev-runtime embedding path

Tauri macOS development builds can embed an application icon into the native executable. A later on-disk .icns replacement is insufficient if Cargo did not rerun the build scrip

Полный SKILL.md на GitHub

Установить lov-normalize-tauri-app-icon в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Glob
Grep
Bash
Edit

Вложенные файлы

.gitignoreCHANGELOG.mdLICENSEREADME.mdcases/cases.jsonpricing-card.yamlreferences/skill-card-standard.mdreferences/skill-composition.mdreferences/tauri-icon-runtime.mdreferences/user-profile.mdscripts/profile_store.pyscripts/tauri_app_icon.pyscripts/validate_skill.pyskill-card.mdskill-card.yamlskill.yaml

FAQ

Что делает скилл lov-normalize-tauri-app-icon?

校准 Tauri macOS Dock 图标的可见外框、圆角安全区与运行时嵌入链路;适用于“Dock 图标太大”“统一 Tauri app icon”或“normalize Tauri app icon”等请求,并输出可复核的资源与运行时证据。

Как установить скилл lov-normalize-tauri-app-icon?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл lov-normalize-tauri-app-icon запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить lov-normalize-tauri-app-icon с