/una-sdk:una-setupfrom una-sdk
Installs arm-none-eabi toolchain, CMake, Ninja/Make, Python, and clones the UNA SDK for UNA Watch app development. Works on Windows, macOS, Linux, or Docker.
Ships in una-sdk. 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.
The goal is a shell where these all work and UNA_SDK points at an SDK checkout:
arm-none-eabi-gcc --version # Arm GNU Toolchain 14.3.Rel1 or later, or ST's GNU Tools for STM32
cmake --version # 3.21 or later
ninja --version # or make
python3 --version # python on Windows
echo "$UNA_SDK" # absolute path to the una-sdk checkout
Check what is already installed before installing anything. Ask before installing software system-wide or editing shell profiles.
git clone https://github.com/UNAWatch/una-sdk.git
cd una-sdk
git submodule update --init ThirdParty/lvgl # LVGL GUIs and the glance simulators need it
python3 -m pip install -r Utilities/Scripts/app_packer/requirements.txt
TouchGFX-only builds don't need the LVGL submodule.
Where the system Python refuses pip install ("externally-managed-environment", as on recent
Debian, Ubuntu and Homebrew Python), use a virtual environment:
python3-venv on Debian and Ubuntu.python3 -m venv ~/.venvs/una.~/.venvs/una/bin/pip install -r ....source ~/.venvs/una/bin/activate) before configuring an app. The build uses the
first python3 on PATH when it is configured. Alternatively, pass
-DUNA_PYTHON_EXECUTABLE=$HOME/.venvs/una/bin/python3.GitHub's "Source code" release archives leave out submodules, so an SDK taken from one builds
TouchGFX apps but not LVGL ones. Clone the repository instead. Release tags are sdk-v* for the
SDK and apps-v* for the example apps.
Use one of these two:
arm-none-eabi archive for the host, unpack it anywhere and put its bin folder on PATH.
No ST account or software is needed.Do not use a Linux distribution's gcc-arm-none-eabi package. It often fails to link, with
missing _write, _close and similar.
| Host | Toolchain archive | Build tools |
|---|---|---|
| Windows | mingw-w64-x86_64-arm-none-eabi zip | pip install cmake ninja; build with -G Ninja |
| macOS (Apple Silicon) | darwin-arm64-arm-none-eabi | brew install cmake ninja |
| macOS (Intel) | No Arm GNU Toolchain build at 14.3.Rel1 or later: use ST's GNU Tools for STM32 (in STM32CubeCLT), or Docker (below) | brew install cmake ninja |
| Linux x86-64 | x86_64-arm-none-eabi tar.xz | apt install cmake ninja-build python3-pip git (or the distro's equivalent) |
| Linux arm64 | aarch64-arm-none-eabi tar.xz | as above |
Windows:
-G Ninja. With ST's make, the "Unix Makefiles" generator can fail CMake's compiler
test.bash to derive the app version from git. Git for Windows provides bash;
without it on PATH the version falls back to 1.0.0.python3 before python, and a Windows virtual environment has only
python.exe, so CMake can pick a different Python from the one the requirements went into.
Pass the interpreter when configuring an app:
-DUNA_PYTHON_EXECUTABLE="$((Get-Command python).Source)".macOS: untested by the SDK maintainers. If something fails, tell the user and suggest reporting it at https://github.com/UNAWatch/una-sdk/issues.
UNA_SDK is the absolute path of the SDK checkout. Every app's CMakeLists.txt and every
simulator build reads it.
export UNA_SDK="$HOME/path/to/una-sdk" # bash/zsh; add to ~/.bashrc or ~/.zshrc to keep it
$env:UNA_SDK = "C:\path\to\una-sdk" # this session
[Environment]::SetEnvironmentVariable("UNA_SDK", "C:\path\to\una-sdk", "User") # persistent
On Windows, Utilities/Scripts/export-stm32-tools.ps1 sets UNA_SDK persistently and finds an
installed STM32CubeIDE toolchain. Dot-source it:
. <una-sdk>/Utilities/Scripts/export-stm32-tools.ps1. A persistent variable reaches only
shells opened after it was set.
references/Dockerfile builds an Ubuntu image with:
It works on x86-64 and arm64 hosts. From the SDK root:
docker build -t una-build -f skills/una-setup/references/Dockerfile Utilities/Scripts/app_packer
docker run --rm -it --user "$(id -u):$(id -g)" -e HOME=/tmp \
-v "$PWD:/sdk" -v "/path/to/my-app:/app" una-build
On a Linux host, --user makes the build output belong to you rather than root. Docker Desktop
on Windows and macOS doesn't need --user or -e HOME=/tmp.
Inside, UNA_SDK=/sdk, and the build commands in the una-build-uapp skill work as written.
TouchGFX Designer doesn't run in Docker, so regenerate TouchGFX code on Windows. See the
una-new-app skill.
Build one example out of the SDK tree, as a new app would be:
cp -r "$UNA_SDK/Examples/Apps/Alarm" /tmp/MyAlarm
cmake -G Ninja -S /tmp/MyAlarm/Software/Apps/Alarm-CMake -B /tmp/MyAlarm/build
cmake --build /tmp/MyAlarm/build
ls /tmp/MyAlarm/Output # Alarm_<version>.uapp
| Tool | Needed for | Hosts |
|---|---|---|
| TouchGFX Designer (free ST account) | Editing a TouchGFX GUI and regenerating its code | Windows only |
| Visual Studio, or Build Tools for Visual Studio with "Desktop development with C++" | Simulators on Windows | Windows |
GCC, SDL2 (libsdl2-dev), and for TouchGFX simulators libsdl2-image-dev libjpeg-dev ruby ruby-nokogiri | Simulators on Linux | Linux |
Apple Clang, brew install sdl2 | LVGL and glance simulators | macOS |
| Node.js | Converting new fonts for an LVGL GUI | all |
include could not find requested file: /cmake/una-app.cmake: UNA_SDK is not set in
this shell.CMAKE_C_COMPILER not set or a failed compiler test: arm-none-eabi-gcc is not on PATH.
On Windows, use -G Ninja. As a last resort, add
-DCMAKE_C_COMPILER=arm-none-eabi-gcc -DCMAKE_CXX_COMPILER=arm-none-eabi-g++ -DCMAKE_ASM_COMPILER=arm-none-eabi-gcc._write, _close and similar: a distro gcc-arm-none-eabi is first on PATH.
Use the Arm GNU or ST toolchain.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub unawatch/una-sdk --plugin una-sdk7 skills in this plugin
/una-build-uappBuild a UNA Watch app's .uapp package for the watch with CMake and the arm-none-eabi toolchain, and set its version, ID and memory sizes. Use when building, rebuilding or versioning a UNA Watch app for the device, or when a .uapp build fails./una-new-appStart a new UNA Watch app (activity, utility, glance or clockface) by copying the closest SDK example and renaming it. Covers choosing between a TouchGFX and an LVGL GUI, a fresh APP_ID, the paths to fix when the app lives outside the SDK, regenerating TouchGFX code, and converting LVGL fonts and images. Use when creating a UNA Watch app or watch face, when deciding which GUI toolkit to use, or when regenerating TouchGFX code or adding fonts or images to an app./una-simulatorBuild and run a UNA Watch app in the desktop simulator, and drive it with a script, headless, with no window, keyboard or display. Scripts press buttons, set heart rate, GPS, battery and pressure, replay GPS tracks and save PNG screenshots, and the exit code says pass or fail. Use to see or check a UNA Watch app's screens or behaviour without a watch, to take screenshots, or to test a flow end to end./una-store-submitPrepare a UNA Watch app release for the UNA app store (apps.unawatch.com) - store APP_ID, app-manifest.json with minKernelVersion stamped, a clean tagged build, validation and the upload zip - for the developer to upload and publish. Also covers contributing an open-source app to the SDK. Use when releasing, publishing or submitting a UNA Watch app./una-test-on-watchInstall a UNA Watch app (.uapp) on a real watch over USB, collect the watch's log files, and run through the checks only a watch can answer. Use when installing or updating an app on a UNA Watch, when an installed app doesn't appear or closes, or when reading logs or crash dumps from the watch./una-unit-testWrite and run host unit tests (GoogleTest, on the PC's own compiler) for a UNA Watch app's logic, using the SDK's kernel test doubles and in-memory file system. Use when adding tests to a UNA Watch app, testing settings or file code without a watch or simulator, or setting up a Tests/ folder in an app repository.Other plugins' skills for the same job