/una-sdk:una-store-submitfrom una-sdk
Prepares a UNA Watch app for store submission: sets APP_ID, stamps app-manifest.json with minKernelVersion, creates a tagged build, validates, and zips for upload.
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.
None: SKILL.md is the whole skill.
You prepare everything. The developer signs in to the store, uploads and publishes. Never upload or publish for them, and don't ask for their store credentials.
Closed-source apps go through the store portal, https://apps.unawatch.com. Open-source apps can instead be contributed to the SDK (see the end).
A store app needs the ID the store issues, not a locally made one. The developer:
Then you:
APP_ID in the app's CMakeLists.txt;cmake -S ... -B build, not just a rebuild).The phone app matches new versions of an app to the installed one by this ID, so it must never change between versions.
Confirm the release version with the developer, for example 1.2.0. The manifest and the tag
both carry it.
The manifest tells the phone app and the store about the app. It isn't installed on the watch.
Keep it at the app's root as app-manifest.json, committed with the app. (The examples'
Output/ folder ignores everything but Output/Release/.) It must be strict JSON, with no
comments.
{
"manifest_version": 1,
"type": ["activity"],
"name": "My App",
"icon": "icon.png",
"binary": "MyApp_1.2.0.uapp",
"appVersion": "1.2.0",
"minKernelVersion": "1.4.0",
"requiredHardware": ["GPS", "HR"],
"description": "One or two sentences for the store listing.",
"id": "03AD5A741E38A35F",
"supportsLaps": false,
"supportsDistance": false,
"supportsTrack": false,
"supportsHeartbeat": false,
"supportsElevation": false,
"supportsStep": false,
"supportsSpeed": "none",
"customMeasures": [],
"stravaExport": false
}
| Key | Value |
|---|---|
manifest_version | Always 1. |
type | One or more of activity, utility, glance, clockface, matching APP_TYPE. |
name, description | As shown in the store and phone app. |
icon | The icon's path inside the zip. |
binary | The .uapp file name inside the zip, exactly as the release build will name it (skill una-build-uapp). |
appVersion | The agreed version (1.2.0). |
minKernelVersion | Set by the SDK's tool (below), never by hand below its floor. |
requiredHardware | Hardware the app can't work without: GPS, ACCELEROMETER, HR, and so on. |
id | The store APP_ID. |
supports*, customMeasures, stravaExport | Activity apps: what the phone app shows for a recorded activity. Use false, "none" and [] for other types. |
configFile, configFields | Only if the app asks the phone for settings. |
The full list of keys, including custom metrics and config fields, is in the SDK's
Docs/app-config-json.md and Docs/app-config-fields.md.
The app needs a watch firmware that provides the SDK interface (ABI) it was built against. The SDK maps that ABI to the lowest firmware version. Stamp it from the SDK the app is built with:
python3 "$UNA_SDK/Utilities/Scripts/app_packer/min_kernel_version.py" --stamp app-manifest.json
python3 "$UNA_SDK/Utilities/Scripts/app_packer/min_kernel_version.py" --check app-manifest.json
--stamp raises the value to the floor and keeps a higher one. A higher value is allowed when the
app needs a specific firmware fix; a lower one is not.
If the manifest has configFields:
python3 "$UNA_SDK/Utilities/Scripts/app_packer/validate_app_config.py" --check app-manifest.json \
--check-bounds Software/Libs/Sources/<file holding the SDK::AppConfig::Field table>.cpp
The release build must come from a committed, tagged state:
git status is clean: no uncommitted changes. Check it yourself: a tagged commit builds
with the plain version even when the working tree has changes, so the version alone doesn't
prove the build is clean.apps-v<major>.<minor>.<patch>, for example apps-v1.2.0. Pushing
the tag is the developer's call.build/, configure, build (skill una-build-uapp).ID line matches the store APP_ID;.uapp name carries the plain version (MyApp_1.2.0.uapp), with no commit count,
hash or -dirty, and matches the manifest's binary.una-unit-test) and a scripted simulator run (skill una-simulator)
on that build..uapp on a watch (skill una-test-on-watch).If anything has to change after tagging, fix it in a new commit and tag a new version.
A zip holding, at its root:
.uapp;app-manifest.json;icon (a PNG; the app's Resources/icon_60x60.png is the usual source).Optionally, add preview screenshots in a previews/ folder named by a "previews" key. Scripted
simulator screenshots work well for this (skill una-simulator).
Stage the files in a new temporary folder, so nothing from an earlier release goes in and no
existing folder is touched. If MyApp_1.2.0.zip already exists, ask the developer before
replacing it; the commands below stop rather than overwrite it.
(
set -e
if [ -e MyApp_1.2.0.zip ]; then echo "MyApp_1.2.0.zip exists" >&2; exit 1; fi
stage=$(mktemp -d)
cp Output/MyApp_1.2.0.uapp app-manifest.json "$stage"/
cp Resources/icon_60x60.png "$stage"/icon.png
out="$PWD/MyApp_1.2.0.zip"
(cd "$stage" && zip -r "$out" .)
rm -rf "$stage"
)
$ErrorActionPreference = 'Stop'
if (Test-Path MyApp_1.2.0.zip) { throw 'MyApp_1.2.0.zip exists' }
$stage = New-Item -ItemType Directory (Join-Path ([IO.Path]::GetTempPath()) ([guid]::NewGuid()))
Copy-Item Output\MyApp_1.2.0.uapp, app-manifest.json $stage
Copy-Item Resources\icon_60x60.png (Join-Path $stage icon.png)
Compress-Archive -Path (Join-Path $stage '*') -DestinationPath MyApp_1.2.0.zip
Remove-Item -Recurse $stage
Before handing it over, check:
binary and icon name files that are in the zip;id equals the build's ID;appVersion equals the version in the .uapp's file name (1.2.0 in MyApp_1.2.0.uapp).Give the developer:
minKernelVersion;Then the steps they take on the store:
An app can instead be offered to the SDK's examples by pull request to
https://github.com/UNAWatch/una-sdk, under Examples/Apps/<AppName>/, laid out like the other
examples. Example apps are built and shipped by the SDK's own release process, so the pull request
contains source only: no .uapp and no zip. Opening the pull request is the developer's decision.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 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-setupSet up a machine to build UNA Watch apps. Installs an arm-none-eabi toolchain, CMake, a build tool and Python, clones the UNA SDK and sets UNA_SDK, on Windows, macOS, Linux or in Docker. Use when starting UNA Watch development, when a build can't find arm-none-eabi-gcc or una-app.cmake, or when UNA_SDK is unset./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-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.npx claudepluginhub unawatch/una-sdk --plugin una-sdkOther plugins' skills for the same job