返回技能列表

enhance-glyph

pjt222
更新于 6 days ago
11 次查看
17
2
17
在 GitHub 上查看
design

关于

The `enhance-glyph` skill refines existing R-based pictogram glyphs (for skills, agents, or teams) by diagnosing and fixing visual issues like poor proportions, readability, or unbalanced glow effects. It guides developers through a visual audit, targeted function modifications, and re-rendering for comparison. Use this skill when a glyph renders poorly at small sizes, its metaphor is unclear, or after changes to the palette or rendering pipeline.

快速安装

Claude Code

推荐
主要方式
npx skills add pjt222/agent-almanac -a claude-code
插件命令备选方式
/plugin add https://github.com/pjt222/agent-almanac
Git 克隆备选方式
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/enhance-glyph

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

精繪符

viz/ 視層之舊象符——審其現繪、診視議、施針對改、重繪、較前後。通於技、agent、team 符。

  • 符於小尺繪劣(細喪、形融)
  • 喻不明或與所代不合
  • 比例議(過大、過小、偏中)
  • 霓暈壓或弱符
  • 一盤佳而他盤劣
  • 加新盤或改繪管後批改

  • :類——skillagentteam
  • :符之 ID(如 commit-changesmystictending
  • :所對特議(可讀、比例、暈、盤容)
  • :示標質之參符
  • :欲優之標盤(默:諸盤)

一:審——估現態

察現符並識特議。

  1. 依類尋符函:
    • viz/R/primitives*.R(19 域文), 映於 viz/R/glyphs.R
    • Agentviz/R/agent_primitives.R, 映於 viz/R/agent_glyphs.R
    • Teamviz/R/team_primitives.R, 映於 viz/R/team_glyphs.R
  2. 讀符函以知其構:
    • 幾層?
    • 呼何原?
    • 尺與位?
  3. 察已繪之出:
    • 技:viz/public/icons/cyberpunk/<domain>/<skillId>.webp
    • Agent:viz/public/icons/cyberpunk/agents/<agentId>.webp
    • Team:viz/public/icons/cyberpunk/teams/<teamId>.webp
    • 察 2-3 他盤之跨盤繪
    • 察於圖尺(~48px)與詳尺(~160px)
  4. 質維計分:
Glyph Quality Dimensions:
+----------------+------+-----------------------------------------------+
| Dimension      | 1-5  | Assessment Criteria                           |
+----------------+------+-----------------------------------------------+
| Readability    |      | Recognizable at 48px? Clear at 160px?         |
| Proportions    |      | Well-centered? Good use of the 100x100 canvas?|
| Metaphor       |      | Does the shape clearly represent the entity?   |
| Glow balance   |      | Glow enhances without overwhelming?            |
| Palette compat |      | Looks good across cyberpunk + viridis palettes?|
| Complexity     |      | Appropriate layer count (not too busy/sparse)? |
+----------------+------+-----------------------------------------------+
  1. 識最低 1-2 維——此乃改標

得:明診符之誤與何維須改。審宜特:「比例:符僅用 40% 畫布」非「劣」。

敗:符函缺或名不在 *_glyphs.R 映→或尚未建;用 create-glyph 代之。

二:診——根因析

定何以議在。

  1. 可讀議:
    • 細過多,於小尺融?
    • 素間對比不足?
    • 線過細(< 1.5 size 於 s=1.0)?
    • 素相距過近?
  2. 比例議:
    • s 過小或過大?
    • 中偏(50, 50)?
    • 素過安域(10-90)?
  3. 議:
    • 符筆寬與 ggfx::with_outer_glow() 相交:
      • 細線:暈致模
      • 厚填:暈加冗盛
    • 多素疊:合暈致熱點
  4. 盤容議:
    • 符用硬碼色非 col/bright 參?
    • 低對盤(cividis、mako)使符不見?
    • 符依某盤不供之色變?
  5. 各議記特根因

得:根因直指碼改。「符過小」→「尺因 0.6 宜 0.8」。「暈壓」→「三疊填各生暈」。

敗:根因於碼察不明→以異參獨繪以隔議。用 render_glyph() 單符試。

三:改——施針對修

編符函以解診議。

  1. 開含符函之文
  2. 施針對診之改:
    • 尺/比例:調 s 乘或素偏
    • 可讀:簡繁素、增筆寬、加距
    • 暈衡:減疊填、填致盛處用輪代
    • 盤容:確諸色源於 col/bright 參,以 alpha 加深
  3. 符函契
    glyph_name <- function(cx, cy, s, col, bright) {
      # cx, cy = center (50, 50)
      # s = scale (1.0 = ~70% of canvas)
      # col = domain color, bright = brightened variant
      # Returns: list() of ggplot2 layers
    }
    
  4. 保函簽——勿改參
  5. 改宜微:修診議,勿重設全符

得:改之符函解一、二步所識之特議。改針對而微——精,非重。

敗:改使他維劣(如修比例破可讀)→復而試他法。若需重設→用 create-glyph 代之。

四:重繪——生新圖

繪改之符並驗修。必用 build.sh——其處平台察與 R 擇。全旗見 render-icon-pipeline

  1. 依類重繪:

    # From project root — use --no-cache to force re-render of modified glyph
    bash viz/build.sh --only <domain> --no-cache          # skills
    bash viz/build.sh --type agent --only <id> --no-cache # agents
    bash viz/build.sh --type team --only <id> --no-cache  # teams
    
  2. 驗各盤之出文存於期徑

  3. 察文大——圖宜 2-15 KB(WebP):

    • < 2 KB:符或過簡或繪敗
    • 15 KB:符或過繁(層過多)

得:諸盤新圖已生。文大於期圍。

敗:build 本誤→察 R 控出特誤。常因:符函缺閉括、引未定原、函返非列。繪成而出空→符層或出畫布。

五:較——前後驗

驗精改善標維。

  1. 較新舊繪:
    • 察 cyberpunk 盤於圖(48px)與詳(160px)
    • 至少察 2 他盤(一亮如 turbo、一暗如 mako)
  2. 重計一步之質維:
    • 標維宜至少增 1
    • 非標維勿減
  3. 若符用於力圖→於其中試:
    • viz/ 起 HTTP 服:python3 -m http.server 8080
    • 載圖尋其點
    • 驗圖於默縮與放大繪正
  4. 記所改與所得

得:標維可量之改而他維無退。符於兩尺與諸盤皆佳。

敗:改微或退→復而重診。或原符之限乃喻之本非實現——此時喻本身須改(升至 create-glyph)。

  • 現符已審並診特議
  • 各議之根因已識
  • 改針對診之議(無過編)
  • 符函契已保(簽未變)
  • 諸盤圖已重繪
  • 前後較示標維改善
  • 非標維無退
  • 文大於期圍(2-15 KB WebP)
  • 符於力圖境繪正(若適)

  • 過精:修一議後調諸餘。循診之議
  • 破契:改函簽破繪管。5-參契不可變
  • 專盤優:使符於 cyberpunk 極佳而 viridis 劣。必察 3+ 盤
  • 略小尺繪:160px 美而 48px 成塊乃敗精
  • 忘重繪:編函而未行 build→改不可見
  • 錯 build:技用 build-icons.R、agent 用 build-agent-icons.R、team 用 build-team-icons.R

GitHub 仓库

pjt222/agent-almanac
路径: i18n/wenyan-ultra/skills/enhance-glyph
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

相关推荐技能

content-collections

Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。

查看技能

polymarket

这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。

查看技能

creating-opencode-plugins

该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。

查看技能

sglang

SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。

查看技能