A wrapper script, `rebuild-wrapper.sh`, takes a mode and an optional host. Switch applies the change now and adds it to the bootloader, test applies it to the running system without the bootloader and suits risky changes, boot adds it to the bootloader for the next start, and dry-activate previews what would change. The script finds the available hosts from the flake, which resolves `nixosConfigurations` from `flake.nix` with host definitions under `hosts/`.
Each run validates with `nix flake check`, formats with `nix fmt`, selects the host by detecting the current one and prompting if it does not match, executes the chosen `nixos-rebuild` subcommand and verifies the resulting system. Failures point to `references/common-issues.md`, and the skill lists maintenance commands for removing old generations with `nix-collect-garbage -d`, optimizing the store and updating flake inputs. The SKILL.md is written in Chinese.