/tizen-sdk-skills:tizen-remote-devicefrom TIZEN SDK SKILLS
Searches local network for Tizen devices via TCP sweep of SDB port 26101, connects/disconnects them over Wi-Fi, and manages bookmarked remote devices in Tizen Studio Device Manager.
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.
If you have no Agent tool (e.g., Cline), go to the "CLI Runner" section below.
tizen-remote-device agent with the Agent tool (personal deployment or tizen-sdk-skills:tizen-remote-device)json 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/remote-device-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" scan
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\remote-device-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" scan
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\*remote-device-cli.js" 2>nul & dir /s /b "%USERPROFILE%\.cline\plugins\cache\tizen-platform\tizen-sdk-skills\*remote-device-cli.js" 2>nul & dir /s /b "%USERPROFILE%\.codex\plugins\cache\tizen-platform\tizen-sdk-skills\*remote-device-cli.js" 2>nul & dir /s /b "%USERPROFILE%\.gemini\plugins\cache\tizen-platform\tizen-sdk-skills\*remote-device-cli.js" 2>nul & ver >nul
Pick the highest-version path (the PowerShell form above already resolved $CLI), then:
node "<found-path>" scan
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.)
A scan with the default 3 s probe timeout finishes in seconds, but --timeout up to 30000 ms
plus the sdb listing can pass Codex's 30 s per tool call (issue #48). For a large --timeout
add --background and poll node "<same lib/cli dir>/job-cli.js" wait --id <job_id>
(≤ 25 s per call) until job.state is done — that response is this runner's envelope.
Codex sandbox (guard rule 12). Run this runner — and its --background form — with escalated
permissions: the network scan and sdb connect need TCP sockets, and the bookmark list lives under <sdk>-data, 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.
✅ ALWAYS use the runner below — NEVER search for the sdb binary or run sdb connect / sdb disconnect / sdb devices yourself. The runner resolves sdb from the SDK, connects with retry, and verifies the device state (issue #96).
node "$CLI" scan [subnet] [--port N] [--timeout MS] # search network for Tizen devices
node "$CLI" scan [--connected-only] [--saved-only] # probe only this PC's sdb-connected / bookmarked devices
node "$CLI" connect <ip[:port]> [--port N] # sdb connect over network
node "$CLI" disconnect <ip[:port]> [--port N] # sdb disconnect
node "$CLI" list # remote (<ip>:<port>) sdb connections
node "$CLI" add <ip[:port]> --name <name> [--port N] # bookmark device in Device Manager's list
node "$CLI" remove <ip[:port]> [--port N] # remove that bookmark
node "$CLI" edit <ip[:port]> [--name N] [--new-ip IP] [--new-port N] # change a bookmark's name/ip/port
node "$CLI" list-saved # read back the bookmarked list
subnet prefix like 192.168.1) with parallel TCP probes against SDB port 26101 (default). Devices answering are Tizen devices in developer mode. Takes ~3 seconds. Works without the SDK installed. A sweep finds every such device on the subnet, not just the user's: when the user wants only their own devices ("내 것만", "연결된 것만", "my devices"), pass --connected-only (the remote devices sdb devices lists as device) and/or --saved-only (the bookmarked list; needs the SDK path). Then only those hosts are probed, each on its own port (a non-default --port is ignored with a warning), and no other address is touched; --connected-only alone fails with sdk_path_not_set when sdb is unavailable; result carries only, hosts_probed, device_count and devices[] (bookmarks add name).sdb connect <ip>:<port> with retry + verification via sdb devices (entry must be device, not offline). Requires SDK (tizen-sdk-init).sdb disconnect <ip>:<port>, verified.sdb devices (serials shaped <ip>:<port>).<name>/<ip>/<port> in Tizen Studio Device Manager's remote_device_scan.list (same file the Device Manager GUI's "Remote Device Manager" dialog reads/writes), so the device shows up there too. Rejects duplicates by <ip>:<port>. Does not run sdb, but needs to find it (see below).<ip>:<port> entry from that same list.<ip> (plus --port) locates the current entry; --name sets a new display name, --new-ip / --new-port move it to a different address. At least one of the three is required, and the resulting <ip>:<port> must not already belong to another bookmark. The envelope returns both the new values and a previous object.[{ name, ip, port }].remote_device_scan.list is never hardcoded — it is derived from the SDK
that is actually installed, so it works on any drive or install directory:
~/.tizen.sdk.path.config, default ~/tizen-sdk) if that directory holds sdk.info or tools/sdb[.exe].PATH. If neither yields an SDK, the command fails with sdk_path_not_set rather than inventing a data directory.TIZEN_SDK_DATA_PATH from <sdk-root>/sdk.info (authoritative — written by the SDK installer, read by Tizen Studio itself).sdk.info, fall back to the sibling convention <sdk-root>-data (e.g. D:\tools\tizen-studio → D:\tools\tizen-studio-data).<data-dir>/device-manager/config/remote_device_scan.list.Every add/remove/edit/list-saved envelope reports the resolved list_path and
sdk_root — check these if the entry doesn't show up in the Device Manager
GUI. If they point at a different SDK than the one your GUI runs from, the user
has more than one Tizen SDK installed; re-point the config with tizen-sdk-init.
Exit code: 0 = success envelope, 1 = failure/error envelope (JSON on stdout).
Success result (scan): result.devices = [{ ip, port, status: connected|disconnected }], plus subnets_scanned, device_count.
Success result (connect): result.device_serial = <ip>:<port> — use this serial with other skills (install-app, file-transfer, sdb-helper).
Success result (add/remove/edit): result.device_count = entries remaining in the bookmark list, result.list_path = resolved path to remote_device_scan.list, result.sdk_root = the SDK the path was derived from. edit additionally returns the updated name/ip/port and result.previous = the values before the change.
Success result (list): result.devices = [{ device_serial, ip, port, status }] (status: connected, or the sdb state such as offline), result.device_count (all remote entries) and result.online_count (entries in the device state, the only ones a command can target).
Success result (list-saved): result.devices = [{ name, ip, port }].
Note: The device must have developer mode enabled and be on the same network. If scan finds nothing, ask the user for the device's IP and run the runner's connect <ip> action with it (never a raw sdb connect). Bookmarking (add/remove/edit/list-saved) is independent of sdb connection state — it only edits Device Manager's saved list, it does not connect/disconnect anything. To rename an existing bookmark, prefer edit over remove+add — it keeps the entry's position in the list.
The runner's stdout JSON envelope lives inside the tool result, so the user never sees it (the Claude Code UI collapses Bash/Agent results into something like "Ran 1 shell command"). The user only sees the final answer text, so the final answer must follow the format below on either execution path (subagent delegation / direct CLI Runner execution):
json block (as the first item).result, or the gist of errors[0].message).errors[0].message/details —
show what is inside the JSON as-is.user_input_required envelope as-is, then ask the user the question.result.device_serial.tizen-sdk-install, then tizen-sdk-inittizen-device-managerSuggested next steps (only when user asks):
tizen-install-app (install app on the connected remote device)tizen-file-transfer (push/pull files)tizen-sdb-helper (logs, screenshot, shell on the device)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub samsung/tizen-agent-skills --plugin tizen-sdk-skills33 skills in this plugin
/tizen-build-projectBuild a Tizen app/project (Native, DotNET, WebApp, standalone RPK resource package, or Platform/GBS). TRIGGERS — 빌드, 빌드해줘, 앱 빌드, 앱 빌드해줘, 프로젝트 빌드, 타이젠 빌드, 타이젠 앱 빌드, RPK 빌드, build, build app, build the app, build project, tz build, gbs build, build native/dotnet/webapp/rpk/platform. When the user asks to build, ROUTE HERE FIRST and follow this skill — do NOT run SDK tools by hand or debug PATH yourself; this skill's CLI runner detects the type and builds/packages correctly./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-nodeCheck Node.js, node check, node 설치 확인, Node.js installed, node version, 노드 확인, "Node.js가 설치되어 있는지 확인해줘", "Do I have Node.js installed? Check the version.", 노드 버전, node 있어?, is node installed. Use this skill for ANY question about whether Node.js is installed or which Node.js version is present — it is the dedicated command for that question, and it answers with version/path info in a Standard JSON Envelope. Do NOT route a Node.js question to the generic environment health check (`--doctor` / core `doctor`) — doctor is a broad multi-component sweep (shell, scripts, SDK, sdb, em-cli) for "is my whole setup healthy?", not the answer to "is Node.js installed?". Also the pre-check before tizen-sdk-install./tizen-create-emulatorTizen create emulator, 타이젠 에뮬레이터 생성, custom emulator, 커스텀 에뮬레이터, em-cli, 에뮬레이터 만들기, 에뮬레이터 VM 생성, emulator VM create, 에뮬레이터 사이즈, 에뮬레이터 해상도, emulator size, emulator resolution, 1080 에뮬레이터, 720 에뮬레이터, list platforms, list emulator templates, 에뮬레이터 템플릿, list VMs, list emulators, available emulators, 에뮬레이터 목록, delete emulator, 에뮬레이터 삭제, TV 에뮬레이터 생성, Samsung TV emulator create. Use this skill to CREATE a custom Tizen emulator VM with a user-selected screen size (default 1080) plus configurable platform and profile via em-cli. Lists screen sizes/platforms/templates/VMs, creates and deletes VMs. ANY "list the available / existing emulators" request ROUTES HERE — it is `list-vm --detail`, never a manual search or a raw em-cli call; report each VM's `profile` from the envelope (tizen-* is the unified tizen profile, not Mobile). Templates here are EMULATOR VM templates — for APP/project templates, use tizen-create-project instead. For LAUNCHING (booting) an existing emulator VM, use tizen-launch-emulator instead./tizen-create-projectCreate Tizen project or app, tizen create project, RPK resource project, 타이젠 프로젝트 생성, 타이젠 앱 생성, 타이젠 리소스 패키지 생성, 타이젠 앱 만들어줘, 웹앱 만들어줘, 웹앱 생성, 네이티브 앱 만들어줘, 닷넷 앱 만들어줘, Tizen 프로젝트 만들기, 앱 생성, make a tizen app, create webapp, import wgt, WGT 가져오기, wgt 임포트, wgt to project, 앱 템플릿, 타이젠 앱 템플릿, 앱 템플릿 알려줘, 프로젝트 템플릿, app templates, project templates, list app templates, 프로젝트 삭제, 프로젝트 삭제해줘, 타이젠 프로젝트 삭제, 프로젝트 지워줘, 프로젝트 폴더 삭제, 프로젝트 정리, delete project, delete tizen project, remove project, clean up projects. Owns the whole project-directory lifecycle through the shipped CLI runner on the SDK host — create (Native, DotNET, WebApp, standalone RPK, TV, Platform) from real SDK templates, list-templates, import-wgt, delete. NEVER hand-write config.xml / tizen-manifest.xml, unzip a .wgt, or rm -rf / Remove-Item a project yourself — ALWAYS use this skill. Emulator VM templates (screen sizes) belong to tizen-create-emulator; a bare "템플릿" needs a clarifying question. Full routing rules are in the body.Other plugins' skills for the same job