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:

  1. Read the current keymap.c and rules.mk
  2. Ask the user: layer name, which base layer to copy from (transparent vs explicit keys), and what key (MO, TG, etc.) will activate it
  3. Add the layer to the enum layers block
  4. Add a fully-populated LAYOUT_109_ansi(...) entry — copy the closest existing layer, replace non-transparent keys as requested
  5. If ENCODER_MAP_ENABLE is set in rules.mk, add an encoder_map entry for the new layer
  6. Remind the user to add an activation key (e.g. MO(NEW_LAYER)) on a reachable key in an existing layer

04 同仓库更多 Skills