/tizen-sdk-skills:tizen-build-projectfrom TIZEN SDK SKILLS
Builds Tizen apps (Native, DotNET, WebApp, RPK, Platform/GBS) via CLI runner. Detects project type and packages correctly. Activated by build-related requests in English or Korean.
Ships in TIZEN SDK SKILLS. 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.
Handoff notes: Claude Code and Codex CLI may share this project. Before you start, run
handoff-cli.js show(see thetizen-handoffskill) to catch up on what the other agent did. This runner records its own result there automatically; nothing to set up.
If there is no Agent tool (e.g., Cline), go to the "CLI Runner" section below.
tizen-build-project agent with the Agent tool (personal deployment or tizen-sdk-skills:tizen-build-project)--arch for Platform projects) in the promptjson block, with only a 1–2 line summary below it)Pick the ONE block for the shell your terminal / tool runs — the prompt tells you: $ is Bash (Linux, macOS, Claude Code's Git Bash on Windows, Codex on Linux / macOS) → Bash block; PS C:\…> is PowerShell (Codex on Windows, Cline PowerShell terminal) → PowerShell block; C:\…> is cmd.exe (Cline cmd.exe terminal) → cmd.exe block. Run that block as-is: a block pasted into another shell, or wrapped in powershell -Command "…", is a parse error.
Run the node line exactly as written and read the JSON envelope it prints to stdout. Do NOT redirect or capture the output (> file, 2>&1 | tee, Out-File, | Out-String), do NOT wrap the line in cmd /c, powershell -Command "…" or any second shell, and do NOT mix shell dialects: %TEMP% and 2>nul are cmd.exe only, $env:TEMP and Out-File are PowerShell only — in the other shell they are literal text or a parse error. A tool message that the command's completion or output "could not be observed / captured" means the terminal is still busy with an earlier command or its shell-integration hooks have broken, not that the runner failed: open a NEW terminal and re-run the SAME line unchanged. Runners that drive em-cli, sdb or a JVM can take 10–30 s and print the envelope only when they exit — wait for it rather than retrying with a redirect.
Bash — Linux / macOS / Ubuntu, and Windows Git Bash (Claude Code):
BASE="$HOME/.cline"; [ -z "${CODEX_THREAD_ID:-}${CODEX_SANDBOX_NETWORK_DISABLED:-}${CODEX_SANDBOX:-}${CODEX_VERSION:-}" ] || BASE="$HOME/.codex"; [ -z "${GEMINI_CLI:-}" ] || BASE="$HOME/.gemini"; [ -z "${CLAUDECODE:-}" ] || BASE="$HOME/.claude"
_tz_o=; [ -z "${ZSH_VERSION:-}" ] || { [[ ! -o nomatch ]] || _tz_o=1; unsetopt nomatch; }; _tz_s=; CLI=; for _tz_d in "$BASE" "$HOME"/.claude "$HOME"/.cline "$HOME"/.codex "$HOME"/.gemini; do [ "$_tz_d" != "$BASE" ] || [ -z "$_tz_s" ] || continue; _tz_s=1; for _tz_f in "$_tz_d"/plugins/cache/tizen-platform/tizen-sdk-skills/*/lib/cli/project-manager-cli.js; do [ -f "$_tz_f" ] || continue; _tz_v=${_tz_f#"$_tz_d"/plugins/cache/tizen-platform/tizen-sdk-skills/}; _tz_v=${_tz_v%%/*}; case $_tz_v in *[!0-9.]*|.*|*.|*..*|*.*.*.*) continue ;; *.*.*) ;; *) continue ;; esac; _tz_a=${_tz_v%%.*}; _tz_c=${_tz_v##*.}; _tz_b=${_tz_v#*.}; _tz_b=${_tz_b%.*}; if [ -z "$CLI" ] || [ "$_tz_a" -gt "$_tz_A" ] || { [ "$_tz_a" -eq "$_tz_A" ] && { [ "$_tz_b" -gt "$_tz_B" ] || { [ "$_tz_b" -eq "$_tz_B" ] && [ "$_tz_c" -gt "$_tz_C" ]; }; }; }; then CLI=$_tz_f; _tz_A=$_tz_a; _tz_B=$_tz_b; _tz_C=$_tz_c; fi; done; [ -z "$CLI" ] || break; done; unset _tz_s _tz_d _tz_f _tz_v _tz_a _tz_b _tz_c _tz_A _tz_B _tz_C; [ -z "$_tz_o" ] || setopt nomatch; unset _tz_o
node "$CLI" build --project "<project-path>" --build-type Debug
PowerShell (Codex CLI on Windows, Cline PowerShell terminal) — prefers this harness's own cache, then the newest version. Run all three lines below, in order, in the SAME PowerShell session: the node line needs the $CLI the lookup line sets (on its own, node "$CLI" … becomes node <first-arg> and fails with a misleading MODULE_NOT_FOUND), so it carries a guard that stops with a clear message when $CLI is empty. Never wrap the lines in powershell -Command "…" (PowerShell and Git Bash expand $h, $CLI and $env:… before the inner shell runs, so the lookup arrives empty):
$h = ".cline"; if ($env:CODEX_THREAD_ID -or $env:CODEX_SANDBOX_NETWORK_DISABLED -or $env:CODEX_SANDBOX -or $env:CODEX_VERSION) { $h = ".codex" }; if ($env:GEMINI_CLI) { $h = ".gemini" }; if ($env:CLAUDECODE) { $h = ".claude" }
$CLI = $null; foreach ($d in @($h, ".claude", ".cline", ".codex", ".gemini")) { $CLI = Get-ChildItem "$env:USERPROFILE\$d\plugins\cache\tizen-platform\tizen-sdk-skills\*\lib\cli\project-manager-cli.js" -ErrorAction SilentlyContinue | Sort-Object { [version]$_.Directory.Parent.Parent.Name }, FullName | Select-Object -Last 1 -ExpandProperty FullName; if ($CLI) { break } }
if (-not $CLI) { throw 'tizen-sdk-skills runner not found: $CLI is empty. Run the two lookup lines above in THIS PowerShell session first; if they still find nothing, the tizen-sdk-skills plugin is not installed.' }; node "$CLI" build --project "<project-path>" --build-type Debug
Windows — cmd.exe terminal only (Cline with a cmd.exe terminal). & and 2>nul are cmd.exe syntax — in a PowerShell terminal run the PowerShell block above instead; Claude Code on Windows runs Git Bash — use the Bash block above. cmd.exe cannot version-sort, so this only lists every copy: pick your own host's highest version and paste it into the node "<found-path>" step below:
cmd /c dir /s /b "%USERPROFILE%\.claude\plugins\cache\tizen-platform\tizen-sdk-skills\*project-manager-cli.js" 2>nul & dir /s /b "%USERPROFILE%\.cline\plugins\cache\tizen-platform\tizen-sdk-skills\*project-manager-cli.js" 2>nul & dir /s /b "%USERPROFILE%\.codex\plugins\cache\tizen-platform\tizen-sdk-skills\*project-manager-cli.js" 2>nul & dir /s /b "%USERPROFILE%\.gemini\plugins\cache\tizen-platform\tizen-sdk-skills\*project-manager-cli.js" 2>nul & ver >nul
Pick the highest-version path (the PowerShell form above already resolved $CLI), then:
node "<found-path>" build --project "<project-path>" --build-type Debug
Runner not found? If none of the
~/.claude,~/.cline,~/.codex,~/.geminicaches contains the runner, the tizen-sdk-skills plugin is NOT installed on this machine — install it first; do not improvise with other tools. (Contributors working inside the tizen-sdk-skills source repository can use the in-repo runner instead:node common/lib/cli/<runner>.js.)
Under Codex CLI a tool call returns after at most 30 s, and a native, .NET or GBS build (and any
--clean build) usually takes longer — the call would come back with only the runner's
[tizen-build] Building … header while the build keeps running unseen (issue #48). Add
--background: the runner returns a job receipt (result.job_id) within a second. Then poll
node "<same lib/cli dir>/job-cli.js" wait --id <job_id> # blocks ≤ 25 s; repeat while result.state is "running"
status/wait show the live tz build output (progress_tail, log_file); when job.state is
done the response is this runner's build envelope — report it exactly as below. A result
that shows only progress lines and no { "status": … } JSON is not a result.
Codex sandbox (guard rule 12). Run this runner — and its --background form — with escalated
permissions: tz build/tz pack sign with the profile in <sdk>-data/profile/profiles.xml and the --background job must outlive this call, and Codex's default workspace-write sandbox blocks TCP sockets, writes
outside the workspace and (Linux) kills detached jobs when the call ends. An envelope with
error_category: sandbox_blocked / sandbox_job_lost, or a warning starting "Running inside Codex's
sandbox", means exactly that — re-run suggested_fix.command (the same command line, escalate: true)
with escalated permissions; do not retry inside the sandbox and do not fall back to raw tools.
Debug) — Debug | Release | Test. Use Debug unless user explicitly requests Release.--clean (optional flag) — remove previous build output on the SDK host before
building, forcing a full non-incremental rebuild. Use when the user asks for a
clean/full rebuild ("클린 빌드", "전체 재빌드") or when the complete compiler
warning list is needed (incremental builds skip unchanged files, so their
warnings do NOT reappear). Do NOT rm -rf Debug/ yourself — the project lives
on the SDK host, and deleting a local path is a silent no-op for remote clients.--arch <arch> (optional, Platform/GBS projects only, default x86_64) — the
gbs build -A target: x86_64 | armv7l | aarch64 | i586. See
"Platform (GBS) target architecture" below. Ignored for Native/DotNET/WebApp/RPK
projects (a non-default value adds a warning).Exit code: 0 = success envelope (with result.artifacts), 1 = failure/error envelope.
The runner's stdout JSON Envelope is inside the tool result, so the user cannot see it (the Claude Code UI folds Bash results away as "Ran 1 shell command"). What the user sees is only the final answer text, so the final answer must follow the format below no matter which execution path was used (subagent delegation or direct CLI Runner run):
json block (first item).errors[0].message).{ "command": "tizen-sdk build-project", "status": "success", ... }
✅ 6 dali2 RPMs created — ~/GBS-ROOT/local/repos/tizen/x86_64/RPMS/
errors[0].message/details; show what is inside the JSON as-is.ℹ️ Signing profile (default certificates): When no signing profile is specified and no active profile exists, Native/DotNET/WebApp builds proceed using
tz's built-in default developer certificates (tempMobile.p12+ the SDK public distributor certificate) — the same behavior as the VS Code extension. The build envelope carries a warning starting "Signed with Tizen default developer certificates"; surface it. The default-signed package installs on the emulator only. Real Samsung devices (TV, phone, watch) reject it with "Invalid certificate chain", and stores never accept it.For a real device or store submission, create a signing profile with
tizen-certificate-manager(generate-author → create-profile; Samsung devices need the Samsung-certificate flow), then pass the profile name:node "$CLI" build --project "<project>" --build-type Debug --sign-profile MyProfile.Pick the profile by target. A Samsung signing profile (Samsung online-CA certificates) is for the TV emulator (
tizen-create-emulator --profile tv) and real Samsung TVs only; a package built with it does not install on a standard Tizen emulator (--profile tizen). For a standard emulator use a local profile (generate-author → create-profile) or the default certificates. If the user asks to build with a Samsung profile for a standard emulator, say so and use a local profile instead.Standalone RPK projects have no default-certificate fallback. They are packaged by the legacy
tizen package -t rpk, so a missing profile is still rejected withsigning_profile_invalidbefore packaging — create and activate a profile first.If a selected or active signing profile exists but its certificate files are missing or unreadable, the runner rejects the build with
signing_profile_invalid(TIZEN_SDK_CERT_E021) beforetzis invoked. Recreate or repair the profile before retrying; do not run the build unchanged.NEVER run
tz buildortz packdirectly — the CLI runner handles both internally.
Build method by project type. The runner picks the method from markers, top-down:
tizen_resource_project.yaml→ RPK (tizen package -t rpk);tizen_dotnet_project.yaml/*.csproj→ DotNET,tizen_native_project.yaml/project_def.prop→ Native,config.xml/index.html→ WebApp (all three:tz build+tz pack);packaging/*.spec+CMakeLists.txt(at the root or nested, e.g. DALi'sbuild/tizen/CMakeLists.txt) → Platform (GBS, Linux only). GBS is used ONLY for Platform projects. A Native/DotNET/WebApp/RPK build never runs GBS —tizen-manifest.xmlis present in every Native app and is not a Platform marker. A native build that takes a minute istz buildcompiling, not GBS; do not describe it as a GBS build.
A Platform build produces RPMs for one CPU architecture, chosen with --arch. Without it
the runner builds x86_64, which installs only on the emulator — an x86_64 RPM on an ARM
device fails at rpm -i.
| User says | Target | Pass |
|---|---|---|
| emulator, x86, 에뮬레이터 (or nothing about the target) | Tizen emulator | --arch x86_64 (default) |
| arm, armv7, armv7l, 32-bit ARM, 32비트 ARM | 32-bit ARM device or image | --arch armv7l |
| arm64, aarch64, 64-bit ARM, 64비트 ARM | 64-bit ARM device or image | --arch aarch64 |
| i586, 32-bit x86 | legacy 32-bit x86 emulator image | --arch i586 |
node "$CLI" build --project "<platform-project>" --build-type Debug --arch armv7l
Ask before building when the target is unclear. If the user wants the RPM for a real
device ("디바이스에 설치할 RPM", "for my board") but names no architecture, ask which one
(x86_64 / armv7l / aarch64) instead of silently building x86_64.
A connected device tells you. Ask tizen-sdb-helper's shell action (never a
hand-typed sdb shell) to run uname -m; ls -d /usr/lib*. uname -m names the CPU
family; the library directories name the word size of the userspace the RPM installs
into — Tizen's 64-bit images (aarch64, x86_64) have /usr/lib64, 32-bit images
(armv7l, i586) only /usr/lib. Check both: uname -m reports the kernel, so a
64-bit kernel under a 32-bit userspace still prints aarch64, and an aarch64 RPM does
not install there.
uname -m | /usr/lib64 listed? | Pass |
|---|---|---|
aarch64 | yes | --arch aarch64 |
aarch64, armv8l, armv7l (any arm…) | no | --arch armv7l |
x86_64 | yes | --arch x86_64 |
x86_64, i686, i586 | no | --arch i586 |
Prefer this over guessing from the device model.
Only these four names are accepted. arm, arm64 or armv7 are rejected with
invalid_parameters before GBS runs — map them as in the table, do not retry the same value.
The RPMs land in <buildroot>/local/repos/<repo>/<arch>/RPMS/ — buildroot comes from
TIZEN_BUILD_ROOT or .gbs.conf and defaults to ~/GBS-ROOT; result.artifacts already
lists them, so report the arch from those paths.
RPK: A standalone resource project is marked by
tizen_resource_project.yamland is packaged internally withtizen package -t rpk -- <project>, nottz build. A .NET project withpack_as_rpk: trueremains a DotNET project and builds through its normal .NET flow. Both produce.rpk; neither may be launched after installation. The RPK packager crashes (StringIndexOutOfBoundsExceptionin PropertyParser.getKey) on ansdk.infowith a comment header or BOM, as written by installers ≤ 1.1.1. The runner repairs the file before every build and, if it did, adds aRepaired <sdk>/sdk.info: …warning.
Tizen 9.0 dali2 headers use std::string_view and std::any. A DALi project that
does not select C++17 fails inside /usr/include/dali*, which reads as a broken SDK
rather than a missing build setting.
The build script preflights this and exits 4 before GBS runs when a project
declares a dali2-* dependency but no C++17 setting. The only fix is in the project:
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Add it to CMakeLists.txt before add_executable(), then rebuild.
Do not attempt gbs build --define "optflags -std=c++17". The spec's %build
runs plain cmake, so rpm optflags never reach the compiler, and CMake composes its
own -std flag from CMAKE_CXX_STANDARD regardless. This is a dead end, not a
slower path to the same result.
The failure envelope already contains the compile errors. You do NOT need to open the host log file to find out what broke:
errors[0].message — headline, the diagnostic lines (compiler errors first), and the
full-log path.errors[0].details — the same diagnostic lines as a string array, for structured use.Rules:
tizen-dotnet-setup).details names it. Full log: is only for cases where
the diagnostics are empty or insufficient.json block first, then a 1–2 line summary), suggest next steps.tz not found → tizen-sdk-installtizen-dotnet-setup then retrygbs_not_found (exit 6: no tizen-cli GBS plugin and no gbs
on PATH) → show the user suggested_fix.command (it adds the Tizen tools apt repository
and installs gbs, so it needs sudo); do not retry the build until GBS is installedset(CMAKE_CXX_STANDARD 17)
to the project's CMakeLists.txt, then retry--clean fails with exit 5 (build output could not be fully removed — a file
is locked by an editor/emulator/sdb) → the build is deliberately aborted, NOT
run incrementally; close the locking process and retrytizen-create-projectSuggested next steps (only when user asks):
tizen-install-app — install built .tpk/.wgt/.rpk/.rpm to device/emulator
.rpk without --run. The runner internally uses
direct sdb install for RPK; do not replace it with tz install..rpm packages (not .tpk/.wgt).
RPMs are output to <buildroot>/local/repos/<repo>/<arch>/RPMS/ (buildroot from
.gbs.conf, default ~/GBS-ROOT) and can be installed
via tizen-install-app (which supports .rpm — it handles sdb root on, rpm -i,
and app execution as owner user with proper Wayland/DBus environment internally).
NEVER run sdb or rpm directly — always use tizen-install-app for RPM installation.
The RPM's architecture must match the target: the default x86_64 build is for the
emulator — rebuild with --arch armv7l / --arch aarch64 for an ARM device.Debugging: Native → tizen-gdb-debug, DotNET → tizen-dotnet-debug
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tizen-build, tizen-sdk, gbs-build, native-build, dotnet-build, webapp-build, rpk-build
33 skills in this plugin
/tizen-certificate-managerManage Tizen certificates (local self-signed and Samsung online-CA) and signing profiles, including generation, Samsung Account login, distributor selection, profile lifecycle, import, and inspection./tizen-check-disk-spaceCheck disk space, disk space check, 디스크 공간 확인, 용량 확인, storage check, 설치 전 공간 확인, disk space, free space. Use this skill to verify available disk space before installing the Tizen SDK. Runs a quick CLI runner that checks free space on the target drive and returns a Standard JSON Envelope with disk info. Recommended before tizen-sdk-install./tizen-check-nodenpx claudepluginhub samsung/tizen-agent-skills --plugin tizen-sdk-skillsOther plugins' skills for the same job