jpskill.com
🎨 デザイン コミュニティ

chrome-extension-icons

Chrome拡張機能のアイコン作成を支援し、IconifyからSVGアイコンを検索・ダウンロード、必要なPNGサイズに変換、manifest.jsonを自動更新することで、拡張機能のアイコン設定を効率化するSkill。

📜 元の英語説明(参考)

Search and generate icons for Chrome browser extensions. Automatically downloads SVG icons from Iconify (275,000+ free icons), converts them to required PNG sizes (16x16, 32x32, 48x48, 128x128), and updates manifest.json configuration. Use when the user mentions "extension icon", "browser extension icon", "chrome icon", "add icon to extension", "generate icon for extension", or when working with Chrome extension manifest.json icon setup. Supports color customization, local SVG conversion, and batch generation for multiple projects.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Chrome拡張機能のアイコン作成を支援し、IconifyからSVGアイコンを検索・ダウンロード、必要なPNGサイズに変換、manifest.jsonを自動更新することで、拡張機能のアイコン設定を効率化するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o chrome-extension-icons.zip https://jpskill.com/download/17574.zip && unzip -o chrome-extension-icons.zip && rm chrome-extension-icons.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17574.zip -OutFile "$d\chrome-extension-icons.zip"; Expand-Archive "$d\chrome-extension-icons.zip" -DestinationPath $d -Force; ri "$d\chrome-extension-icons.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して chrome-extension-icons.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → chrome-extension-icons フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
2

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Chrome Extension Icons

Iconifyの275,000個以上の無料オープンソースアイコンの膨大なライブラリを使用して、Chromeブラウザ拡張機能用のプロフェッショナルなアイコンを数秒で生成します。

クイックスタートワークフロー

ユーザーが拡張機能アイコンをリクエストした場合、次の手順に従ってください。

1. リクエストを理解する

キー情報を抽出します。

  • Icon theme/keyword: どのようなタイプのアイコンですか? (例: "calendar", "music", "settings", "bookmark")
  • Target directory: アイコンの保存場所 (デフォルト: ./icons)
  • Manifest location: manifest.json へのパス (デフォルト: ./manifest.json)
  • Color preference: 特定の色の要件はありますか? (オプション)
  • Context: manifest.json は既に存在しますか? これは新しいプロジェクトですか?

2. アイコンを自動的に検索する

抽出したキーワードで検索コマンドを実行します。

node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js search "<keyword>"

期待される出力:

  • 一致するアイコンのリストとプレビューURL
  • 最適な一致が自動的に識別される
  • 上位5件の結果が表示される (最適な一致 + 4つの代替案)

ユーザーへの提示:

  • 最適な一致アイコンをそのIDとプレビューリンクとともに表示する
  • 必要に応じて別のアイコンを選択できるように、4つの代替オプションも利用可能であることを簡単に言及する
  • アイコンがどのように見えるかを確認できるように、プレビューURLを提供する

提示例:

拡張機能に最適なカレンダーアイコンが見つかりました。

Best match: mdi:calendar
Preview: https://icon-sets.iconify.design/mdi/icons/calendar.html

このアイコンをChrome拡張機能用に4つのサイズ (16x16, 32x32, 48x48, 128x128) で生成します。
別のスタイルをご希望の場合は、選択できる4つの代替案も保存してあります。

このアイコンで進めてよろしいですか?

3. アイコンを生成する

確認されたら (または、ユーザーがアイコンに対して「はい」と答えた場合は自動的に進む):

node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js generate \
  --icon "<icon-id>" \
  --output "./icons" \
  --manifest "./manifest.json"

カスタムカラーを使用する場合 (ユーザーが色を指定した場合):

node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js generate \
  --icon "<icon-id>" \
  --output "./icons" \
  --manifest "./manifest.json" \
  --color "#ba3329"

4. 結果を確認する

生成後、出力を確認します。

ls -lh ./icons/

4つのPNGファイルが作成されていることを確認します。

  • icon16.png
  • icon32.png
  • icon48.png
  • icon128.png

manifest.json が更新されたことを確認します。

cat ./manifest.json | grep -A 6 '"icons"'

5. ユーザーに報告する

概要を提供します。

✅ アイコンの生成が完了しました!

生成されたファイル:
- icons/icon16.png (1.2 KB)
- icons/icon32.png (2.4 KB)
- icons/icon48.png (3.8 KB)
- icons/icon128.png (9.5 KB)

manifest.json が更新されました:
{
  "icons": {
    "16": "icons/icon16.png",
    "32": "icons/icon32.png",
    "48": "icons/icon48.png",
    "128": "icons/icon128.png"
  }
}

📌 代替アイコン (別のスタイルを試したい場合):
1. mdi:calendar-month - https://icon-sets.iconify.design/mdi/icons/calendar-month.html
2. fa:calendar - https://icon-sets.iconify.design/fa/icons/calendar.html
3. heroicons:calendar - https://icon-sets.iconify.design/heroicons/icons/calendar.html
4. carbon:calendar - https://icon-sets.iconify.design/carbon/icons/calendar.html

これらの代替案を試したい場合はお知らせください!

高度な機能

カスタムカラーアイコン

ユーザーが特定の色をリクエストした場合 (例: "赤にする", "ブランドカラー #ba3329 を使用する"):

node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js generate \
  --icon "mdi:home" \
  --color "#ba3329" \
  --output "./icons"

: 色のカスタマイズは、単色のSVGアイコンで最適に機能します。複雑なグラデーションは期待どおりにレンダリングされない場合があります。

ローカルSVGファイルを変換する

ユーザーが独自のロゴまたはSVGファイルを持っている場合:

  1. まず、ファイルが存在するかどうかを確認します。

    ls -lh <svg-file-path>
  2. 変換します。

    node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js convert \
      --input "<svg-file-path>" \
      --output "./icons" \
      --manifest "./manifest.json"
  3. オプションで色を適用します。

    node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js convert \
      --input "./logo.svg" \
      --output "./icons" \
      --color "#ff0000"

バッチ生成

ユーザーが複数のプロジェクトのアイコンを必要とする場合:

  1. 構成ファイル icons-config.json を作成します。

    {
      "projects": [
        {
          "name": "Project A",
          "icon": "mdi:calendar",
          "output": "./project-a/icons",
          "manifest": "./project-a/manifest.json"
        },
        {
          "name": "Project B",
          "icon": "mdi:music",
          "output": "./project-b/icons",
          "manifest": "./project-b/manifest.json",
          "color": "#ff0000"
        },
        {
          "name": "Project C",
          "input": "./project-c/logo.svg",
          "output": "./project-c/icons",
          "manifest": "./project-c/manifest.json"
        }
      ]
    }
  2. バッチ生成を実行します。

    node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js batch \
      --config icons-config.json
  3. 各プロジェクトの成功/失敗を示す概要を報告します。

Chrome拡張機能のアイコン要件

Chromeのアイコン要件について常にユーザーに通知してください。

  • 16x16 pixels: Favicon, ツールバーアイコン (小型ディスプレイ)
  • 32x32 pixels: Windowsタスクバー (オプションですが推奨)
  • 48x48 pixels: 拡張機能管理ページ (必須)
  • 128x128 pixels: Chrome Web Store, インストールダイアログ (必須)

Format: PNGのみ (SVGはmanifest.jsonでサポートされていません)

Transparency: サポートされており、非正方形のロゴに推奨されます

File size: 4つのファイルすべてで合計 < 100 KB を目指してください

Manifest.json の構成

スクリプトは icons フィールドを自動的に作成または更新します。

{
  "manifest_version": 3,
  "name": "My Extension",
  "version": "1.0.0",
  "icons": {
    "16": "icons/icon16.png",
    "32": "i
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Chrome Extension Icons

Generate professional icons for Chrome browser extensions in seconds using Iconify's vast library of 275,000+ free open-source icons.

Quick Start Workflow

When the user requests an extension icon, follow these steps:

1. Understand the Request

Extract key information:

  • Icon theme/keyword: What type of icon? (e.g., "calendar", "music", "settings", "bookmark")
  • Target directory: Where to save icons (default: ./icons)
  • Manifest location: Path to manifest.json (default: ./manifest.json)
  • Color preference: Any specific color requirement (optional)
  • Context: Is manifest.json already present? Is this a new project?

2. Search for Icons Automatically

Run the search command with the extracted keyword:

node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js search "<keyword>"

Expected output:

  • List of matching icons with preview URLs
  • Best match automatically identified
  • Top 5 results displayed (best match + 4 alternatives)

Present to user:

  • Show the best matching icon with its ID and preview link
  • Briefly mention that 4 alternative options are also available if they want to choose differently
  • Provide the preview URL so they can see what the icon looks like

Example presentation:

I found a great calendar icon for your extension:

Best match: mdi:calendar
Preview: https://icon-sets.iconify.design/mdi/icons/calendar.html

I'll generate this icon in 4 sizes (16x16, 32x32, 48x48, 128x128) for your Chrome extension.
If you'd prefer a different style, I also have 4 alternatives saved that you can choose from.

Shall I proceed with this icon?

3. Generate Icons

Once confirmed (or auto-proceed if user said "yes" to any icon), run:

node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js generate \
  --icon "<icon-id>" \
  --output "./icons" \
  --manifest "./manifest.json"

With custom color (if user specified a color):

node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js generate \
  --icon "<icon-id>" \
  --output "./icons" \
  --manifest "./manifest.json" \
  --color "#ba3329"

4. Verify Results

After generation, check the output:

ls -lh ./icons/

Verify 4 PNG files are created:

  • icon16.png
  • icon32.png
  • icon48.png
  • icon128.png

Check manifest.json was updated:

cat ./manifest.json | grep -A 6 '"icons"'

5. Report to User

Provide a summary:

✅ Icon generation complete!

Generated files:
- icons/icon16.png (1.2 KB)
- icons/icon32.png (2.4 KB)
- icons/icon48.png (3.8 KB)
- icons/icon128.png (9.5 KB)

Your manifest.json has been updated:
{
  "icons": {
    "16": "icons/icon16.png",
    "32": "icons/icon32.png",
    "48": "icons/icon48.png",
    "128": "icons/icon128.png"
  }
}

📌 Alternative icons (if you want to try a different style):
1. mdi:calendar-month - https://icon-sets.iconify.design/mdi/icons/calendar-month.html
2. fa:calendar - https://icon-sets.iconify.design/fa/icons/calendar.html
3. heroicons:calendar - https://icon-sets.iconify.design/heroicons/icons/calendar.html
4. carbon:calendar - https://icon-sets.iconify.design/carbon/icons/calendar.html

Just let me know if you'd like to try any of these alternatives!

Advanced Features

Custom Color Icons

When user requests a specific color (e.g., "make it red", "use my brand color #ba3329"):

node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js generate \
  --icon "mdi:home" \
  --color "#ba3329" \
  --output "./icons"

Note: Color customization works best with single-color SVG icons. Complex gradients may not render as expected.

Convert Local SVG File

When user has their own logo or SVG file:

  1. First check if the file exists:

    ls -lh <svg-file-path>
  2. Convert it:

    node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js convert \
      --input "<svg-file-path>" \
      --output "./icons" \
      --manifest "./manifest.json"
  3. Optionally apply color:

    node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js convert \
      --input "./logo.svg" \
      --output "./icons" \
      --color "#ff0000"

Batch Generation

When user needs icons for multiple projects:

  1. Create a configuration file icons-config.json:

    {
      "projects": [
        {
          "name": "Project A",
          "icon": "mdi:calendar",
          "output": "./project-a/icons",
          "manifest": "./project-a/manifest.json"
        },
        {
          "name": "Project B",
          "icon": "mdi:music",
          "output": "./project-b/icons",
          "manifest": "./project-b/manifest.json",
          "color": "#ff0000"
        },
        {
          "name": "Project C",
          "input": "./project-c/logo.svg",
          "output": "./project-c/icons",
          "manifest": "./project-c/manifest.json"
        }
      ]
    }
  2. Run batch generation:

    node ~/.claude/skills/chrome-extension-icons/scripts/generate-icons.js batch \
      --config icons-config.json
  3. Report summary showing success/failure for each project

Chrome Extension Icon Requirements

Always inform users about Chrome's icon requirements:

  • 16x16 pixels: Favicon, toolbar icon (small displays)
  • 32x32 pixels: Windows taskbar (optional but recommended)
  • 48x48 pixels: Extension management page (required)
  • 128x128 pixels: Chrome Web Store, installation dialog (required)

Format: PNG only (SVG is not supported in manifest.json)

Transparency: Supported and recommended for non-square logos

File size: Aim for < 100 KB total for all 4 files

Manifest.json Configuration

The script automatically creates or updates the icons field:

{
  "manifest_version": 3,
  "name": "My Extension",
  "version": "1.0.0",
  "icons": {
    "16": "icons/icon16.png",
    "32": "icons/icon32.png",
    "48": "icons/icon48.png",
    "128": "icons/icon128.png"
  }
}

If action or browser_action exists, default_icon is also updated:

{
  "action": {
    "default_icon": {
      "16": "icons/icon16.png",
      "32": "icons/icon32.png",
      "48": "icons/icon48.png",
      "128": "icons/icon128.png"
    }
  }
}

Error Handling

Missing Dependencies

If the script fails with Sharp installation error:

macOS:

brew install vips
cd ~/.claude/skills/chrome-extension-icons && npm install

Ubuntu/Debian:

sudo apt-get install libvips-dev
cd ~/.claude/skills/chrome-extension-icons && npm install

Windows:

npm install --global windows-build-tools
cd ~/.claude/skills/chrome-extension-icons && npm install

Inform the user of these steps if installation fails.

API Failures

The script has built-in retry logic (3 attempts with exponential backoff). If Iconify API fails:

  • Suggest trying again in a moment
  • Offer to use a local SVG if available
  • Check internet connection

Rate Limiting

If HTTP 429 error occurs, the script automatically waits and retries. Inform user:

The icon API is experiencing high traffic. Waiting 60 seconds before retry...

Invalid Icon Selection

If an icon doesn't render well or user doesn't like it:

  • Present the 4 saved alternative icons
  • Offer to search for a different keyword
  • Suggest using their own SVG file

Best Practices

  1. Always preview: Show the user the icon preview URL before generating
  2. Confirm before generating: Unless user explicitly requested immediate action
  3. Check manifest.json exists: If not, inform user a new one will be created
  4. Verify output: Always run ls to confirm files were created successfully
  5. File sizes: Report file sizes to ensure they're reasonable (< 20 KB each)
  6. Backup warning: If manifest.json exists, mention it will be updated (not replaced)

Common User Phrases That Trigger This Skill

  • "I need an icon for my Chrome extension"
  • "Add a calendar icon to my extension"
  • "Generate extension icons"
  • "Can you create icons for my browser extension?"
  • "I need icons for manifest.json"
  • "Convert my logo to Chrome extension format"
  • "Make extension icons from this SVG"

Examples

See examples/usage.md for detailed conversation examples and edge cases.

Technical Details

  • Icon source: Iconify API (https://iconify.design/)
  • Total icons: 275,000+ from 200+ icon sets
  • Image processing: Sharp library (high-performance Node.js)
  • Supported input: SVG (from Iconify or local file)
  • Output format: PNG with transparency
  • Node.js requirement: >= 18.17.0

Troubleshooting Quick Reference

Issue Solution
Sharp won't install Install libvips: brew install vips (macOS)
API timeout Retry after a moment, check connection
Icon looks bad Try a different icon from alternatives
Wrong colors Use --color flag for single-color icons
File too large Complex SVGs may create large PNGs, try simpler icon
Manifest not updating Check file permissions, verify path is correct

Remember: This skill automates a tedious process. Be helpful, present clear options, and make the experience smooth for the user. Always show preview links so users know what they're getting before generation.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。