blackcccat/resourceforhamster/wanxiangskin-modifier

Claude Code and agent skill by blackcccat/resourceforhamster

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when modifying the WanxiangSkin Hamster3 keyboard under ResourceforHamster, including Custom.libsonnet options, keyboard layouts, button actions, swipe/long-press data, system keys, function rows, toolbars, candidates, iPad behavior, or synchronized README/MODULES updates.

Install

npx vskill@latest install blackcccat/resourceforhamster/wanxiangskin-modifier

SKILL.md

WanxiangSkin Maintainer

一次任务只处理一个 <keyboard-root>,通常为 Skin_Keyboard/万象-元书/WanxiangSkin。除非用户明确要求跨目录操作,源码、验证和文档修改都限制在该皮肤及其对应维护 skill。

必须保持的边界

  • main.jsonnet 只引用 build,键盘入口通过 build/context.libsonnet 解析设备与布局上下文。
  • components 不引用具体键盘族。
  • design 不引用 components 或具体键盘族。
  • 键盘专属长按和滑动数据位于对应键盘族的 data.libsonnet。
  • tempPinyin 可以复用拼音 26 键,因为它是明确的薄覆写入口。
  • Custom.libsonnet 是公开配置唯一入口。
  • 不重新创建 entries/、shared/ 或 keyboards/common/。

工作流程

  1. 读取 <keyboard-root>/MODULES.md 和 references/file-map.md。
  2. 用 rg 定位配置、按钮名、动作和样式的全部读者。
  3. 修改最窄责任层,先数据/规格,再 builder,最后布局。
  4. 每批修改后运行 jsonnet jsonnet/main.jsonnet -o /tmp/WanxiangSkin.json。
  5. 公共层修改同时验证浅色/深色、横屏/竖屏、iPhone/iPad。
  6. 布局选择或滑动辅助修改验证 9/14/17/18/26/27 与 none/up/down/all。
  7. 公开配置或目录职责变化同步更新 README.md、MODULES.md 和本 skill。

修改优先级

  • 配置:jsonnet/Custom.libsonnet
  • 构建映射:jsonnet/build/
  • 颜色/字号/偏移/高度:jsonnet/design/appearance.libsonnet
  • 样式函数:jsonnet/design/styleFactories.libsonnet
  • 通用按键交互:jsonnet/components/key/
  • 拼音系统键:jsonnet/components/systemKeys/
  • 功能行:jsonnet/components/functionRow/
  • 工具栏:jsonnet/components/toolbar/
  • 候选栏:jsonnet/components/candidates.libsonnet
  • 键盘专属行为:对应 jsonnet/keyboards/<family>/

不可回退的数据

  • jsonnet/components/systemKeys/longPressData.libsonnet 中 cn2en.list 使用 rimeOptionLabel$<option> 动态标签。
  • 中文 26 键 KP 标签以 jsonnet/keyboards/keyboard26/pinyin/data.libsonnet 当前文本为准。
  • iPad 已调尺寸位于 jsonnet/keyboards/keyboard26/base/iPadLayout.libsonnet,除非需求明确涉及布局尺寸,不做顺带调整。

功能要点

  • pinyinGrouped:分组拼音 14/17/18 键的共用键盘族,字号参数为 pinyin_grouped_letter_font_size。
  • is_letter_capital:控制中文 9/14/17/18/26/27 键的字母常态大小写,17 键的显式组合标签也必须遵循该配置。
  • keyboard_layout = 27:中文 26 键第二行追加 ;。
  • 布局运行时切换:受 Custom.enable_layout_switcher 总开关控制(默认 false)。关闭时只产出 keyboard_layout 指定的中文布局及对应英文返回路径,工具栏配置中的 keyboard_switcher 会被过滤;开启时产出六套中文布局和 alphabetic9~alphabetic27 返回路径,注册 pinyin9~pinyin27 槽位,并按 Custom.keyboard_layout_schemas 绑定 Rime 方案。14/17/18 键均发小写代表键,大写仅由 Shift 状态触发。
  • 目前 keyboardType 切换只对当前键盘会话有效,收起重开恢复 pinyin 主槽。不要宣称六种布局可持久记忆;参考皮肤使用的是一个键盘文件内的双态 split + #toggleSplitState,不能直接推广为六态。
  • buildContext.withLayout(Settings, layout):布局相关分支必须读本布局的值;不要再让拼音键盘直接读 Custom.libsonnet 的全局 keyboard_layout。
  • swipe_assist_mode:仅中文 26 键;none 使用原通知,其他模式使用 preeditChanged 辅助通知并重排长按菜单。
  • button_123_config.show_swipe_indicators:只控制 123Button 角标,不受 show_swipe 影响,也不控制动作。
  • shift_config:预编辑动作与图标作用于中文 26/27 键和 iPad 26 键,不作用于 14/17/18 键;预编辑上划配置仅中文 26 键使用。
  • button_symbol_config:九键/数字键盘符号按钮交互,不改变位置交换配置。
  • horizon_candidate_button:横向候选栏尾部按钮。
  • temp_pinyin:返回英文键盘、固定 RIME 空格、上划 Shift+space。
  • 工具栏可选 command、symbols、simplified_traditional、undo、redo、cut、copy、paste;command 通过 #toggleCommandView 切换命令面板,symbols 通过 #toggleSymbolBar 切换符号栏。

验证

bash
cd <keyboard-root>
jsonnet jsonnet/main.jsonnet -o /tmp/WanxiangSkin.json

若该命令在内存受限环境报 FATAL ERROR: a memory allocation error occurred,请改在内存充足的电脑或元书开发者模式中构建;皮肤内不包含 Python 构建脚本。

针对单个键盘可直接导入其 keyboard.libsonnet 调用 new(theme, orientation)。完整路径和操作清单见 references/file-map.md 与 references/playbooks.md。

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
126
Repository forks
9
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 May 2026, 5 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/blackcccat/resourceforhamster/wanxiangskin-modifier/badge)](https://verified-skill.com/skills/blackcccat/resourceforhamster/wanxiangskin-modifier)

Something wrong with this skill or its page? Tell us.