Logo App Icon Gen

App Icon Gen

Cộng đồng
xzhih
app-icon-gen

Use when creating, repairing, converting, packaging, or verifying app icons for any platform from briefs, references, brand marks, SVG/logo/text assets, generated concepts, or existing icons; use the optional Apple adapter when Icon Composer output is requested.

Tổng quan

Nhà phát hànhxzhih
Kho mãapp-icon-skill
Tên kỹ năngapp-icon-gen
Sao
14
Bản fork
2
Tệp đi kèm
43
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 43 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được xzhih công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI App Icon Gen trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/xzhih/app-icon-skill/tree/main/skills/app-icon-gen
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/xzhih/app-icon-skill.git /tmp/app-icon-skill
mkdir -p .claude/skills
cp -r /tmp/app-icon-skill/skills/app-icon-gen .claude/skills/app-icon-gen
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật App Icon Gen trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp App Icon Gen ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng App Icon Gen với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

App Icon Gen

Create reusable cross-platform icon source assets from a JSON spec. The normal route is semantic layered authoring: a small set of meaningful SVG/base-shape layers or deliberately clean PNG fallback layers, rounded preview assets, unrounded app/source assets, and verification evidence. Apple Icon Composer packaging is an optional adapter, not the default contract.

This skill may export rendered PNGs with Icon Composer's bundled ictool when it is locally available on macOS. It does not prove app integration or final platform rendering beyond those exported PNG files.

Hard Contract

For every new or repaired icon, use one generation root: the user-facing delivery directory.

  • target_platforms is optional metadata. Accept the user's platform labels without inferring, expanding, or rejecting non-Apple platforms.
  • Always deliver reusable SVG/PNG source assets first. After reviewing them, ask whether the user wants a native platform export; do not claim a native Android, Windows, Web, tvOS, or visionOS package without its dedicated adapter.
  • Request Apple packaging with an Apple target (iOS, iPadOS, macOS, or watchOS) or an Apple deliverable_type. Only then create a .icon bundle and optional apple/ renders.
  • When watchOS is requested through the Apple adapter, review the circular crop and 1088px Default render separately.
  • Write the current spec at <delivery>/tmp/work/spec.json before generation.
  • When a user source image/vector or selected generated concept exists, keep exactly one visible source evidence file at <delivery>/<delivery-name>.origin.png or <delivery>/<delivery-name>.origin.svg; put unselected candidates under <delivery>/tmp/work/.
  • Put every intermediate artifact under <delivery>/tmp/work/ as it is created: masks, threshold tests, extracted foregrounds, traced candidates, comparison images, notes, and repair scratch.
  • Generate with author-icon --spec <delivery>/tmp/work/spec.json --out <delivery>.
  • Reruns may overwrite generated root files, layers/, .icon/, apple/, and tmp/reports/; they must preserve existing tmp/work/ except for replacing tmp/work/spec.json with the current spec, and preserve .origin.png/.origin.svg unless the selected source changes.
  • Do not generate a full package in another directory and reorganize or copy it into the delivery directory.
  • Do not patch generated layers/, .icon/Assets, or icon.json; update the spec and regenerate.

Normal delivery layout:

text
<delivery>/
  <delivery-name>.preview.svg
  <delivery-name>.preview.png
  <delivery-name>.svg
  <delivery-name>.png
  <delivery-name>.origin.png or <delivery-name>.origin.svg  # when source evidence exists
  <Name>.icon/                        # optional Apple adapter
  apple/                              # optional Apple renders
    iOS/{Default,Dark,TintedLight,TintedDark,ClearLight,ClearDark}.png
    macOS/{Default,Dark,TintedLight,TintedDark,ClearLight,ClearDark}.png
    watchOS/Default.png
  layers/
  tmp/
    reports/
    work/
      spec.json

The visible delivery root must stay limited to .svg, .png, .preview.svg, .preview.png, .origin.png, .origin.svg, .icon, apple/, layers/, and tmp/.

Workflow

  1. Inspect supplied sources before asking questions: attachments, paths, app metadata, existing assets, screenshots, SVG/logo files, .icon bundles, and project-local source vectors.
  2. Choose one route: source conversion, generated concept, direct semantic authoring, or existing package refinement. Record target platforms only when they are known.
  3. Read only the route-specific references below.
  4. Write or update <delivery>/tmp/work/spec.json; keep layers in bottom-to-top visual order. If source evidence exists, copy the selected source or concept to <delivery>/<delivery-name>.origin.png or <delivery>/<delivery-name>.origin.svg.
  5. Generate directly into the delivery directory. The generic SVG/PNG assets are always written. When the Apple adapter is requested and Icon Composer.app's ictool is available, it additionally writes Apple renders under apple/.
  6. Run verify; add --reference when a reference image exists. Normalize the reference first only when its canvas/size/mask differs from the preview canvas.
  7. Inspect generated preview/app assets at full size and 64px plus the applicable verification evidence. If an Apple adapter exists, also inspect .icon/Assets, icon.json, and any requested Apple renders. Record visual-review.json when a human decision is needed; do not treat missing optional platform exports as a generic failure.
  8. If verification or inspection fails, repair the spec, regenerate, and verify again.

Run commands from the skill directory, or use an absolute --prefix to scripts/. Node package metadata lives in scripts/package.json; do not run npm install at the skill root.

bash
npm --prefix scripts ci

delivery="/absolute/path/to/my-icon"
mkdir -p "$delivery/tmp/work"

npm --prefix scripts run author-icon -- \
  --spec "$delivery/tmp/work/spec.json" \
  --out "$delivery"

npm --prefix scripts run verify -- --out "$delivery"

With a reference:

bash
npm --prefix scripts run verify -- \
  --out "$delivery" \
  --reference "/absolute/path/to/reference.png"

Use absolute paths for script inputs and outputs.

author-icon refuses to replace a non-empty directory it does not own. It refreshes only leaf files in the previous style report's validated generated_files ownership manifest, fails closed when that manifest disagrees with the safe report-derived file set, removes generated directories only after they become empty, and preserves other files even when they sit inside layers/, .icon/, or apple/. Clean an unowned directory outside this workflow only after inspecting it yourself.

Verification Evidence Ladder

Do not repair or switch routes from side-by-side and mean delta alone. Choose evidence by failure type and use it before changing the spec:

  • Whole-icon likeness: inspect reference-side-by-side.png first for overall style, scale, mass, and obvious drift.
  • Geometry, placement, proportion, and layer alignment: inspect reference-overlay.png before deciding a foreground is shifted, too small/large, or the wrong shape.
  • Color, background, glow, shadow, antialiasing, and material drift: inspect reference-diff.png and the verifier diagnostics before changing fills or adding/removing material.
  • Rounded app-mask/frame drift: treat frame_or_rounded_mask_residual_dominated as frame normalization evidence rather than foreground shape failure; inspect the interior diff before repairing the mark.
  • Severe local mismatch: read local_sample_gate, local_samples, and tile_heatmap; translate hotspots into a concrete repair hypothesis instead of treating them as another score.
  • Smooth symbolic marks, mascots, loops, ribbons, and brand-like contours: use overlay/diff plus bbox/centroid or shape-facts when the visual error is ambiguous.
  • Simple SVG primitives: run geometry-audit on the affected layer after repair; a numeric pass does not excuse wobbly curves, bad tangents, or path noise.
  • PNG fallback: inspect the isolated PNG asset and png_layer_hygiene; reference mean success is not enough.

Repair order for reference-driven work: geometry/placement first, then scale/proportion, then color/background, then renderer/material differences. Only choose PNG fallback after the relevant SVG route has failed with evidence from overlay/diff/local diagnostics or isolated asset inspection; for clean separable silhouettes, the relevant SVG route includes component-level traced SVG before PNG fallback.

Reference Routing

  • references/source-requirements.md: provenance, identity risk, source classification, background route, and PNG fallback risk.
  • references/concept-prompts.md: no source artwork exists and image generation or direct concept authoring is needed.
  • references/semantic-icon-design.md: JSON design contract shared by no-reference image generation and direct semantic authoring.
  • references/style-directions.md: SVG-convertible style directions for semantic_icon_design.
  • references/semantic-authoring.md: JSON spec structure, semantic_review, source_analysis, layer order, text, and PNG fallback decisions.
  • references/cookbook.md: route is ambiguous or the icon matches a known family such as geometric marks, letterforms, text, material references, or overlapping plates.
  • references/icon-composer.md: .icon structure, fill formats, Icon Composer material boundaries, asset formats, and icon.json.
  • references/verification.md: verifier behavior, reference comparison, visual-review sidecars, batch summaries, and review gates.
  • references/optimization-methods.md: geometry polish, bitmap extraction, shape diagnostics, localized repair, or foreground cleanup.
  • references/failure-modes.md: dirty PNGs, wrong semantics, preview/fill drift, source-vector needs, path repair, or misleading numeric passes.
  • references/golden-examples.md: small known-good specs and anti-patterns.
  • examples/semantic-image-prompts/README.md: index of no-reference image prompt examples; read only the matching example file after choosing a style direction.

Completion Gate

Complete only when all applicable checks are true:

  • Required root assets, layers/, tmp/reports/style-report.json, and tmp/work/spec.json exist. .icon/ and apple/ exist only when the Apple adapter was requested.
  • When a source/reference/generated concept drove the package, <delivery-name>.origin.png or <delivery-name>.origin.svg exists at the delivery root and is not imported into .icon/Assets.
  • Preview SVG/PNG are the rounded local visual contract; root SVG/PNG are the unrounded app/source canvas.
  • An Apple adapter, when requested, contains clean .icon/Assets rather than a single flattened app icon unless the accepted route is a documented PNG fallback.
  • svg_material_warnings and package warnings are empty. Every png_layer_hygiene entry passes the edge/residue checks; the array may be non-empty for legitimate clean PNG assets.
  • For reference matching, side-by-side, overlay, and diff were generated and inspected; overlay/diff/local diagnostics were used to justify any repair or route change; mean delta, visual_delta_gate, and local_sample_gate either pass the route target or the accepted semantic tradeoff is recorded.
  • No simple background is duplicated into .icon/Assets; no preview-only rim, glow, bevel, shadow, highlight, border, or mask artifact is imported as source material.

Do not widen completion into Icon Composer import, app integration, publication, or platform-specific final rendering unless the user explicitly asks for that.

Final response must include the delivery path, generic source assets, target-platform metadata when supplied, optional adapter outputs, source evidence when applicable, and the preview/assets actually inspected. Ask before claiming or attempting a native export not supported by an installed adapter.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI App Icon Gen làm được gì?

Use when creating, repairing, converting, packaging, or verifying app icons for any platform from briefs, references, brand marks, SVG/logo/text assets, generated concepts, or existing icons; use the optional Apple adapter when Icon Composer output is requested.

Vì sao nên dùng App Icon Gen trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. App Icon Gen là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài App Icon Gen trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/xzhih/app-icon-skill/tree/main/skills/app-icon-gen. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng App Icon Gen?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng App Icon Gen với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng App Icon Gen với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI App Icon Gen có miễn phí không?

Kỹ năng này được xzhih phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇