/ludus-toolkit:change-template-input-languagefrom ludus-toolkit
Change keyboard input languages and layouts in Ludus Packer OS templates. Use when converting a Windows, Debian, Kali, or Ubuntu template from one keyboard locale to another, including template directory and .pkr.hcl renames, Packer naming edits, Autounattend.xml InputLocale, preseed xkb-keymap, and Ubuntu autoinstall keyboard settings.
Ships in ludus-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Convert an existing template to a different keyboard input language without changing its display language, system locale, regional format, or ISO unless the user explicitly requests those changes too.
Determine these values before editing:
awesome-ludus-sauce/templates/Keyboard layout, language locale, and filename token are different identifier
systems. Do not assume one value is valid in all three. Ask one short question
if the requested physical layout is ambiguous, such as ANSI US versus British,
standard versus Dvorak, or a locale with multiple national layouts.
Stop before renaming and ask one short question if directory and installer
evidence do not resolve a legacy basename token. Never assume no is the
locale; it can belong to a qualifier such as no-security-updates. Classify
an explicitly named environment such as flare-vm-no before applying an
OS-shaped grammar; preserve its identity rather than inventing OS, release,
architecture, edition, or feature fields.
Validate values before editing. Do not invent them.
reference/xorg.lst as
the bundled reference. Layouts are listed under ! layout; variants are
listed under ! variant and name their compatible layout before the
description. Valid XKB options are listed under ! option. The Ubuntu
autoinstall layout and variant fields map to XKBLAYOUT and
XKBVARIANT.keyboard-configuration package or official Ubuntu/Debian documentation.InputLocale accepts a supported BCP 47 language tag for that
language's default keyboard, such as en-US, or a locale-ID and keyboard
layout pair such as 0409:00000409. Multiple values are semicolon-separated
and the first is the default. Confirm values using Microsoft documentation
or the target Windows image's keyboard-layout registry data.11-22h2) and multiword qualifiers
(no-security-updates). Use
<os>-<release>-<arch>-<role>[-<qualifier>...]-<locale> for Linux,
windows-<release>-<arch>[-<qualifier>...]-<locale> for Windows clients, and
windows-server-<release>-<arch>[-<qualifier>...]-<locale> for Windows
Server. Require desktop or server in the Linux role position and an
explicit lowercase two-letter locale, including us, as the final field.-template,
which extends the final label.For standard Norwegian Bokmal QWERTY, use:
| Context | Value |
|---|---|
| Template name token | no |
Windows InputLocale | nb-NO |
| Linux XKB layout | no |
| Linux XKB variant | empty string |
The standard Norwegian layout is already QWERTY. Do not use nb as an XKB
layout and do not use variant: qwerty; neither identifies the standard
Norwegian XKB keyboard.
flare-vm-<locale> before applying an OS-shaped grammar. Preserve the
FLARE identity and schema, but replace only the final locale with the
requested validated locale. For example, rename flare-vm-no to
flare-vm-us; set the corresponding vm_name to
flare-vm-us-template..pkr.hcl already exists. Do not merge into or overwrite either target.tpm_bypas, tpm_bypass, standard,
standard_evaluation, and desktop_experience, including their hyphenated
spellings. Preserve the underlying
template settings. Retain tpm only when a TPM device is configured; never
infer it from bypass registry commands..pkr.hcl to the new
flare-vm-<locale> basename, update exact identity references, and leave
release-neutral support files unchanged.ubuntu-24.04.2-x64-us-desktop becomes
ubuntu-24.04.2-x64-desktop-no.
Add qualifiers only with direct template evidence: retain enterprise,
explicitly identified no-security-updates, and genuine tpm only for a
configured TPM device. Exclude the incidental Windows metadata fields above
and their hyphenated spellings; never use flare-vm as an OS qualifier or
infer tpm from bypass commands..pkr.hcl already exists. Do not merge into or overwrite
either target..pkr.hcl file so its basename exactly matches the
renamed directory.Autounattend.xml,
kali-preseed.cfg, debian-13-preseed.cfg, or http/user-data.This workflow changes the existing template in place. Copy it instead only if the user explicitly asks to retain both locale variants.
Inspect the complete renamed .pkr.hcl; do not limit the change to vm_name.
vm_name default to <target-basename>-template.
For the named FLARE branch, use the new flare-vm-<locale>-template value
and do not apply release or OS source-label edits.build.sources reference in the same
edit. Leave release-neutral labels alone.keymap=<xkb-layout> if present.console-keymaps-at/keymap, kbd-chooser/method, and
keyboard-configuration/xkb-keymap.iso_url, iso_checksum, UI language, system locale,
timezone, country, or template_description unless one contains an actual
stale template identifier or the user requested broader localization.Search before replacing short tokens such as us or no; never perform a
blind repository-wide replacement.
Edit every active <InputLocale> element in Autounattend.xml, across every
configuration pass in which it appears:
<InputLocale>nb-NO</InputLocale>
Replace the element text regardless of its current value. Leave
SetupUILanguage, SystemLocale, UILanguage, and UserLocale unchanged for
an input-language-only request. Preserve XML namespaces and formatting.
Find the actual preseed filename rather than assuming it is literally
preseed.cfg. Change the active keyboard selection to the validated XKB
layout:
d-i keyboard-configuration/xkb-keymap select no
Also update any keymap= boot argument in the .pkr.hcl as described above.
Do not change debian-installer/locale for an input-language-only request.
Find the actual preseed filename and change the active keyboard selection:
d-i keyboard-configuration/xkb-keymap select no
Update all keyboard-related boot arguments in the .pkr.hcl to the same XKB
layout. Do not change debian-installer, locale, or language-support values
for an input-language-only request.
Edit http/user-data. keyboard must be a mapping nested under autoinstall,
and layout and variant must be nested beneath keyboard:
autoinstall:
version: 1
keyboard:
layout: no
variant: ""
Use the validated XKB variant exactly. Use variant: "" for the standard
layout. For comparison, standard US QWERTY is layout: us with
variant: ""; layout: en with variant: us is not the correct XKB pair.
Leave the top-level autoinstall locale unchanged for an
input-language-only request.
Before finishing:
flare-vm-<new-locale>, the old final locale was replaced rather than an OS
shape being invented, and no excluded Windows metadata field was added.
Confirm tpm is present only when a TPM device is configured, never because
of bypass registry commands..pkr.hcl basename are identical.vm_name default follow the same canonical
basename plus exactly one -template suffix. Validate both names against
the DNS label boundaries, 63-character label limit, and 253-character total
limit above.InputLocale elements have the requested value, or all
Linux installer and boot-command keyboard values agree.layout and variant are
children of keyboard, which is a child of autoinstall.packer fmt -check <target.pkr.hcl> when Packer is installed. If it
fails only because formatting differs, run packer fmt <target.pkr.hcl> and
check again.git diff --check and inspect the complete diff for unintended locale,
ISO, timezone, or display-language changes.Report the old and new template basenames, the requested physical layout, the platform-specific values used, every file renamed or edited, and any checks that could not be run.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dotknewt/awesome-agency --plugin ludus-toolkit7 skills in this plugin
/ludus-cliProvide Ludus CLI command guidance, flags, and workflows for range lifecycle, template management, testing mode, snapshots, users/groups, and diagnostics. Use when users ask how to run, interpret, or troubleshoot any `ludus` command./ludus-environment-guideDiscover, compare, and deploy pre-built Ludus cyber range environments for security training, attack simulation, and detection engineering. Use when users ask to choose a lab, verify prerequisites, or deploy known environments such as GOAD, SCCM, Elastic, or Vulhub./ludus-range-configCreate, edit, and validate Ludus range configuration YAML including VM definitions, domains, networking, router settings, testing behavior, and role configuration. Use when users need help authoring or reviewing `ludus` range config files.Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Sep 23, 2026