blackcccat/resourceforhamster/wanxiangskin-modifier
Claude Code and agent skill by blackcccat/resourceforhamster
- community
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-modifierSKILL.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/。
工作流程
- 读取
<keyboard-root>/MODULES.md和references/file-map.md。 - 用
rg定位配置、按钮名、动作和样式的全部读者。 - 修改最窄责任层,先数据/规格,再 builder,最后布局。
- 每批修改后运行
jsonnet jsonnet/main.jsonnet -o /tmp/WanxiangSkin.json。 - 公共层修改同时验证浅色/深色、横屏/竖屏、iPhone/iPad。
- 布局选择或滑动辅助修改验证 9/14/17/18/26/27 与
none/up/down/all。 - 公开配置或目录职责变化同步更新
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切换符号栏。
验证
若该命令在内存受限环境报 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
- SKILL.md in the repositoryCheckingSkin_Keyboard/万象-元书/WanxiangSkin-modifier/SKILL.md
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
[](https://verified-skill.com/skills/blackcccat/resourceforhamster/wanxiangskin-modifier)