AGENT SKILL
add-layer
Scaffold a new QMK layer in keymap.c following the existing pattern
- License 许可
- Apache-2.0
- 最近更新
- 2026-04-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- add-layer
- description
- Scaffold a new QMK layer in keymap.c following the existing pattern
03 SKILL.md 正文
The user wants to add a new layer to keyboards/keychron/q6_max/keymaps/ecoutu/keymap.c.
Steps:
- Read the current keymap.c and rules.mk
- Ask the user: layer name, which base layer to copy from (transparent vs explicit keys), and what key (MO, TG, etc.) will activate it
- Add the layer to the
enum layersblock - Add a fully-populated
LAYOUT_109_ansi(...)entry — copy the closest existing layer, replace non-transparent keys as requested - If ENCODER_MAP_ENABLE is set in rules.mk, add an encoder_map entry for the new layer
- Remind the user to add an activation key (e.g.
MO(NEW_LAYER)) on a reachable key in an existing layer