Skill站外收录 @skilllib/skill-2117939930272414397
icon-lookup
解决 Claude Code 对 BMP 私有区 Unicode 图标(如 Powerline、Font Awesome)的过滤问题,支持通过占位符语法自动转换与识别,适用于 Starship 配置、tmux 主题、Shell 提示符等场景中的图标管理。
效率工具 AI 技能
Skills.MD
# BMP PUA Unicode Workaround
Claude Code filters Unicode characters in the BMP Private Use Area (U+E000-U+F8FF), which includes most Nerd Font icons. This skill provides tools for working with these icons.
## Quick Reference
| Range | Status | Examples |
| ------------------------------ | ------------------------------- | ------------------------------------------- |
| U+E000-U+F8FF (BMP PUA) | **Filtered** - use placeholders | Powerline, Devicons, Font Awesome, Octicons |
| U+F0000+ (Supplementary PUA-A) | Works directly | Material Design Icons (nf-md-*) |
## Automatic Features
**When reading files:** A PostToolUse hook automatically identifies all PUA characters, showing icon names, codepoints, and whether they're filtered.
**When writing files:** A PostToolUse hook automatically converts placeholder syntax to actual Unicode characters.
## Placeholder Syntax
When writing icons in the filtered BMP PUA range, use placeholder syntax:
- By codepoint: `{{ U+E0A0 }}` (without the spaces)
- By name: `{{ nf-fa-star }}` (without the spaces)
## Icon Lookup
Search for icons by name:
```bash
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/lookup-icon.py "<search query>"
```
Example searches:
- `git branch` → finds git-related icons
- `folder` → finds folder/directory icons
- `wizard` → finds wizard icons
## Character Identification
Identify a specific character:
```bash
# Direct argument (this is nf-md-battery, a Supplementary PUA icon)
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/identify-icons.py -c ""
# From stdin
echo "" | python3 ${CLAUDE_PLUGIN_ROOT}/scripts/identify-icons.py -
```
## Workflow
1. **Reading files** - Hook automatically shows icon info; use this to understand what icons are present
2. **Writing icons** - Search with lookup script, then use placeholder syntax for filtered icons
3. **Comparing icons** - Use identify script to check if two characters are the same icon
4. **Material Design Icons** (U+F0000+) can be written directly without placeholders
## Manual Conversion
If placeholders weren't converted (e.g., hook didn't run):
```bash
${CLAUDE_PLUGIN_ROOT}/scripts/convert-placeholders.py /path/to/file
```
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「icon-lookup」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次