wechat-tabbar-icons

Generate, replace, check, or normalize WeChat Mini Program bottom tabBar icon assets. Create local transparent PNG icons based on menu names, tabBar.list in app.json, and normal/selected colors, and write them to iconPath/selectedIconPath; supports pairing with imagegen to produce bitmap source images and output consistent dual-state mini program bottom navigation icons.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "wechat-tabbar-icons" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a27a48917fed50dc681d5fe88c11e5b96fb12dd3d2e18c57c8c871132f48e947. Verify the upstream source and version against https://skillhub.cn/skills/user_7ffc2311/wechat-tabbar-icons before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Generate, replace, check, or normalize WeChat Mini Program bottom tabBar icon assets. Create local transparent PNG icons based on menu names, tabBar.list in app.json, and normal/selected colors, and write them to iconPath/selectedIconPath; supports pairing with imagegen to produce bitmap source images and output consistent dual-state mini program bottom navigation icons.

0 Downloads

Introduction source: third_party · user_7ffc2311 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: wechat-tabbar-icons
description: 生成、替换、检查或规范化微信小程序底部 tabBar 图标资源。用于需要根据菜单名称、app.json tabBar.list、普通态/选中态颜色生成本地透明 PNG 图标,并写入 iconPath/selectedIconPath 时;支持配合 imagegen 生成位图源图,再输出稳定一致的双态小程序底部导航图标。

微信小程序底部导航图标

使用这个技能为微信小程序生成底部 tabBar 图标。重点不是只画出图标,而是输出能在 app.json tabBar.list 中稳定使用的本地双态资源。

配套技能

生成位图源图前,先读取并遵守 $imagegen:/Users/xiaowei/.agents/skills/.system/imagegen/SKILL.md。

当项目没有现成图标体系、用户明确希望生成新图标,或图标隐喻需要原创视觉时,使用 imagegen。如果项目已有 SVG、字体图标或成熟图标库,优先使用确定性的矢量导出流程;除非用户明确要求使用生成式图标。

菜单名称输入

用户可以在调用技能时直接填写菜单名称。支持这些写法:

菜单名称:首页、分类、购物车、我的
底部导航:主页=home,商品=list,购物车=cart,我的=profile
{
  "menus": [
    { "text": "首页", "name": "home", "icon": "house" },
    { "text": "分类", "name": "category", "icon": "grid" },
    { "text": "我的", "name": "profile", "icon": "user" }
  ]
}

处理规则:

  • text 用作 app.json tabBar 的菜单文案。
  • name 用作文件名;没有 name 时,根据菜单含义生成短小英文文件名。
  • icon 用作 imagegen 的图标隐喻;没有 icon 时,根据菜单名称推断。
  • 如果项目已有 app.json,优先保留已有 pagePath 顺序,再用用户填写的菜单名称校准 text、文件名和图标隐喻。
  • 如果用户填写的菜单数量和 app.json tabBar.list 数量不一致,先指出差异;能安全匹配时继续,不能匹配时再询问。

工作流程

  1. 检查 app.json,定位 tabBar.list、tabBar.color、tabBar.selectedColor。
  2. 读取 references/tabbar-icon-rules.md,按其中的命名、提示词、导出和验收规则执行。
  3. 解析用户填写的菜单名称;没有显式填写时,从 app.json 或原型中提取。
  4. 确定输出目录。优先沿用项目已有资源目录;否则使用小程序根目录下的 assets/tabbar/ 或 miniprogram/assets/tabbar/。
  5. 使用 imagegen 为每个菜单生成一张中性透明源图;不要分别生成普通态和选中态。
  6. 使用 scripts/tint_tabbar_icon.py 将透明源图缩放并染色,输出普通态和选中态 PNG,保证双态轮廓一致。
  7. 更新 app.json:为每个 tab 写入本地 iconPath 和 selectedIconPath,菜单文字只放在 text 中,不写进图片。
  8. 验收:检查透明背景、路径存在、尺寸一致、选中态清晰、无文字、无阴影、无复杂背景。

硬性规则

  • 每个菜单必须输出两个 PNG:普通态和选中态。
  • app.json 必须使用本地路径,不要使用远程图片 URL。
  • 图标内部不要包含文字、标签、角标、通知数字。
  • 图标必须适合底部导航小尺寸显示,避免细碎线条、3D、照片质感、复杂渐变和重阴影。
  • 同一组图标要保持统一风格:同样的线宽或填充方式、视觉重量、圆角、留白和配色。
  • 先生成一张中性源图,再用脚本染色生成双态;不要依赖两次生成来得到普通态和选中态。

资源

  • references/tabbar-icon-rules.md:详细规则、菜单名称输入、提示词模板、命名规范、app.json 示例和验收清单。
  • scripts/tint_tabbar_icon.py:把一张透明源图转换成普通态和选中态 tabBar PNG。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 针对微信小程序开发中的 tabBar 图标生成与规范化,解决开发者实际痛点
  • 支持多种输入格式和配套技能协同,提升开发效率
Trigger Precision90/100

Highlights

  • description 清晰描述功能边界,覆盖生成、替换、检查、规范化等场景
  • 触发词完整,包含菜单名称输入格式和硬性规则
Structure and Standards90/100

Highlights

  • 工作流程分8步清晰明确,含验收出口条件
  • 提供多种菜单名称输入示例,frontmatter 完整
Execution Reliability80/100

Areas to improve

  • 脚本错误处理未显式说明 Reported severity: Minor

    tint_tabbar_icon.py 脚本的错误处理机制未在文档中明确说明

    Recommendation: 建议在资源文档中补充 tint_tabbar_icon.py 的异常处理说明,如输入文件不存在、染色失败等情况的处理逻辑

Highlights

  • 工具来源明确,参数正确,覆盖主要异常场景
  • 更新 app.json 有明确流程,不可逆操作有确认机制
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.