/tizen-sdk-skills:tizen-create-projectfrom TIZEN SDK SKILLS
Manages the full Tizen project lifecycle: creates Native, DotNET, WebApp, RPK, TV, and Platform projects from SDK templates; lists available templates; imports .wgt archives; and deletes projects. Never hand-writes project files.
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.
These rules were moved out of the frontmatter description (hosts truncate it at 1024 characters) and apply verbatim:
list-templates action) — NEVER locate or run SDK tools directly for that..wgt archive as a Web project is THIS skill (import-wgt) — NEVER unzip the archive or hand-write config.xml yourself; tz import-wgt does both on the SDK host.delete action) — NEVER rm -rf / Remove-Item / del a project yourself, and never delegate that to a shell command; the delete runs on the SDK host and refuses any path without a Tizen project marker.tizen-create-emulator; if the user says just "템플릿" with no qualifier, ask whether they mean app project templates or emulator templates.config.xml, tizen-manifest.xml) — ALWAYS scaffold from real SDK templates through this skill.This skill owns the project-directory lifecycle. Four actions, all on the same CLI runner:
| Action | Request examples | Section |
|---|---|---|
list-templates | "앱 템플릿 알려줘", "project templates" | Step 1 |
create | "앱 만들어줘", "create a webapp" | Step 2 |
import-wgt | "import WGT", "WGT 프로젝트 가져오기" | Importing a WGT |
delete | "프로젝트 삭제해줘", "delete that project", cleanup | Deleting a project |
Build, install, and certificates are OTHER skills — never run them from here.
Use import-wgt when the user supplies an existing .wgt archive and wants its SDK-generated Web project. Do not unpack the archive or create config.xml manually: the SDK's tz import-wgt performs both operations.
Collect all four values before running it:
.wgt) becomes the project name, and tz
accepts only letters and digits there (^[A-Za-z0-9]+$). my-app.wgt or
Weather.Widget.wgt is refused with invalid_parameters and a suggested name; ask the user
to rename (or copy) the archive first — do not rename it yourself without asking.tizen or tv-samsung<major>.<minor> form (for example, 10.0). <profile>-<version> must be
an installed tz profile — the runner refuses one that tz list templates does not know
(tz itself would accept it and silently keep the api_version from config.xml). When
unsure which versions are installed, run list-templates first: result.profile is the
highest installed tizen-X.Y, result.tv.profile the installed tv-samsung-X.Y.<WORKSPACE_DIR>/<project name> must not exist
yet — a re-import returns project_creation_failed pointing at the delete action.Run the same project-manager-cli.js resolved in CLI Runners below:
node "$CLI" import-wgt --wgt-path "<WGT_PATH>" --profile <tizen|tv-samsung> --platform-version <VERSION> --working-dir "<WORKSPACE_DIR>"
The runner returns result.project_path, verified as <WORKSPACE_DIR>/<WGT filename without .wgt>. Report its envelope and stop; build, signing, installation, and opening an editor are separate requests. In Codex, run the import with escalated permissions because it reads and writes under the configured SDK and destination workspace.
This skill's job ends when the project is created (or deleted). Creation and build are SEPARATE requests:
delete action, report the envelope, then STOP. Never re-create the project afterwards unless the user asked for that too (e.g., "지우고 다시 만들어줘").If there is no Agent tool (e.g., Cline), go to the "CLI Runners" section below.
tizen-create-project agent with the Agent tool (personal deployment or tizen-sdk-skills:tizen-create-project)json block, with only a 1–2 line summary beneath it)For a delete request, confirm the path before delegating: the subagent cannot ask the user questions. Finish Step 1 (path confirmation) of Deleting a project in this conversation first, then pass only the user-confirmed absolute path in the prompt — never pass a partial name as-is.
Use the shipped CLI runners. Find the runner path, then run node on 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" list-templates --type <type>
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" list-templates --type <type>
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>" list-templates --type <type>
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.)
→ Show the returned template list to the user; they MUST pick one.
The list-templates envelope carries result.tv only when the Samsung TV SDK extension is
installed — on typed calls such as --type webapp too, not just on the untyped list:
"tv": {
"profile": "tv-samsung-10.0",
"web": ["Basic_Empty", "Basic_Tizen_Blank", "Caph_Empty_AngularJS", "Caph_Empty_jQuery", "jQueryMobile_NavigationView"],
"dotnet": ["TizenNSClassLib", "TizenNUIApp", "TizenServiceApp"]
}
result.tv is the ONLY way to decide whether the TV SDK is installed — never inspect the SDK
folders or run tz yourself. No result.tv → TV SDK not installed → do not list TV templates
(at most one line: "installing the TV SDK also makes TV templates available").
| User asked | Run | Show the user |
|---|---|---|
| Web app — "웹앱 만들어줘", "타이젠 웹앱 생성", "create a webapp" | list-templates --type webapp | result.templates.webapp and, when result.tv exists, result.tv.web under its own heading — "Samsung TV web app templates (result.tv.profile)". The user picks from either list. |
| Any app, type not given — "타이젠 앱 만들어줘", "앱 생성해줘" | list-templates (no --type) BEFORE asking the type | Every type's list from result.templates as its own group — native, dotnet, webapp, rpk, and platform ("Platform apps (GBS build)": the plugin's GBS samples such as dali-demo, created with --type platform) — plus the TV list when result.tv exists — result.tv.web (web) and result.tv.dotnet (.NET) — and say in the type question (Q1) that TV templates are available. |
| TV app — "TV 앱 만들어줘", "TV 웹앱 생성" | list-templates --type tv | result.tv.web and result.tv.dotnet as two groups (the flat result.templates.tv mixes both). |
create --type tv --template <name> — never --type webapp,
even when the user started with "웹앱 만들어줘": the runner builds TV projects on the
tv-samsung-* profile and picks web vs. dotnet from the template itself.Basic_Empty); quote a name
that contains a space.More… (see Parameters).Where templates come from. The
plugins/cache/...path in the snippets above is only where the runner lives; templates are read from the installed Tizen SDK (tz list templates, under the highest installedtizen-X.Yprofile —result.profilesays which). The runner never returns an empty list as a success:--type <type>with no templates is atemplate_not_foundfailure whose message names the profile it looked at, the profilestzknows, and the fix (platform package / .NET workload / TV SDK missing, or--platform-version <X.Y>to list another installed platform). Report that envelope — never conclude "no templates" from the cache, and never hand-write a project instead (issue #72).
The native
BasicUItemplate is not listed.list-templatesleaves it out on purpose; offer only what the envelope lists. It can still be created by name (--template BasicUI) when the user asks for it explicitly.
Codex sandbox (guard rule 12). Run this runner's list-templates and create with escalated
permissions: the runner syncs the plugin's templates into <sdk>/platforms/... and tz works
inside the SDK tree, and Codex's default workspace-write sandbox blocks writes outside the
workspace. Inside the sandbox the runner has listed zero templates for an SDK that had them
(issue #72: [WARN] Could not sync custom template 'BasicUI' into the SDK (... Read-only file system) followed by No webapp templates under profile tizen-10.0) — that answer is a sandbox
artefact, not a fact about the SDK. An envelope with error_category: sandbox_blocked, a
template_not_found whose details say the SDK directory "is not writable from this shell", 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, do not install platform packages on that evidence, and do not
fall back to raw tz.
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" create --type <type> --template <template> --parent-path "$PARENT" --name <APP>
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" create --type <type> --template <template> --parent-path "<PARENT>" --name <APP>
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>" create --type <type> --template <template> --parent-path "<PARENT>" --name <APP>
Exit code: 0 = success envelope, 1 = failure/error envelope (JSON on stdout).
native | dotnet | webapp | rpk | tv | platform (required)⚠️ CRITICAL: When asking the user to select a project type, ALL SIX types must be selectable — NEVER silently drop any:
native — Native C/C++ appdotnet — C# / .NET appwebapp — Web apprpk — Standalone resource package (non-executable)tv — Samsung TV web appplatform — Platform GBS-buildable sample app (e.g., dali_demo); builds to an .rpm whose /usr/bin/<name> binary is an executable app, launched via tizen-install-app --run⚠️ AskUserQuestion accepts AT MOST 4 options per question — passing 5 or more
fails with InputValidationError: too_big. Never put all six types in one
question. Select the type in TWO steps instead:
native / dotnet / webapp / Other (rpk · tv · platform)…
— list all six type names in the question TEXT so nothing is hidden. When the
list-templates envelope has result.tv, also state in the question text that the TV SDK
is installed and how many TV templates are available (see
Samsung TV templates come along).rpk / tv / platformThe 4-option cap applies to EVERY AskUserQuestion in this flow. When a template
list has more than 4 entries, show the full list as markdown text first, then ask
with the 3 most relevant templates plus a final More… option that leads to a
follow-up question with the remaining ones.
<APP>/ folder is created (required)validatePackageId()
keeps only A-Za-z0-9 (-, _, spaces and non-ASCII characters such as Hangul do
not count), lowercases them and takes the first 10 as the Tizen package ID; fewer
than 10 is rejected with invalid_parameters (installing such a package would fail
with Load archive info fail / Operation not allowed [-4]). Put the rule in the
question text ("at least 10 ASCII letters/digits") and make every option or example you offer
already pass it so the user is never asked twice:
MyTizenWebApp (13), MyTizenNativeApp (16), MyTizenDotnetApp (16), MyTizenApp01 (12), MyDaliDemoApp (13)MyApp (5), HelloApp (8), TestApp (7), Sample01 (8), dali-demo (8)--force — optional flag: replace <PARENT>/<APP>/ if it already exists.
Only replaces an empty folder or one that looks like a Tizen project — never an
arbitrary directory. Without it, creation fails when the target folder exists.--platform-version <X.Y> — optional, on both list-templates and create: use that installed
platform (e.g. 9.0) instead of the newest one. Pass it whenever the user names a version
("9.0으로 만들어줘"), and use the SAME value for list-templates and create. Without it both use
the newest installed platform; when several are installed (tizen-platform-install --list), say
in the summary which one was used (result.profile). A version that is not installed — including
one whose platforms/tizen-X.Y holds only common — fails with platform_version_not_found
and names the tizen-platform-install --platform-version X.Y command to add it. For --type tv
the version also picks the TV profile (tv-samsung-X.Y); when the TV extension is not installed
for that version the run fails instead of falling back to another TV version. Without
--platform-version, TV keeps using the newest installed TV profile.Any request to remove a Tizen project ("프로젝트 삭제해줘", "delete MyApp", cleaning up
repeated fresh-project runs) is handled HERE, with the runner's delete action.
NEVER rm -rf / Remove-Item / del a project yourself. The deletion must run on
the SDK host: when the client runs on a different machine, a local rm -rf deletes a
client-side path (or nothing at all), exits 0, and leaves the project untouched on the
host while reporting success.
Resolve the project path first and show it back to the user for confirmation before running the delete. When you only have a partial name, find the candidates yourself: search (Glob) the current workspace and the parent directories used by earlier create runs for a folder of that name that carries a Tizen project marker. Do NOT infer the target from a partial name when more than one project could match — ask which one (e.g., via AskUserQuestion) and proceed only with the user-confirmed path.
This confirmation happens HERE in the main conversation, BEFORE any delegation — a
subagent cannot ask the user. When delegating to the tizen-create-project agent,
pass the confirmed absolute project path in the prompt, never a partial name.
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
# ALWAYS pass the user-confirmed app name — the runner refuses the delete when
# the resolved folder name differs. Add --dry-run to preview: it runs every
# safety gate and reports the resolved physical path without deleting.
node "$CLI" delete --project "<PARENT>/<APP>" --expect-name "<APP>" --dry-run
node "$CLI" delete --project "<PARENT>/<APP>" --expect-name "<APP>"
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" delete --project "<PARENT>/<APP>" --expect-name "<APP>"
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>" delete --project "<PARENT>/<APP>" --expect-name "<APP>"
(Same optional flags as above: --expect-name <APP> refuses a delete whose resolved
folder name differs; --dry-run runs the gates and previews without deleting.)
--project is the project ROOT directory (the <APP> folder itself, not its parent).
The action needs no Tizen SDK install — it is a pure filesystem operation on the host.
The delete is gated, so a mistyped path cannot wipe an unrelated directory. It returns
invalid_parameters and deletes nothing when the target:
tizen_{native,dotnet,web,resource}_project.yaml,
tizen-manifest.xml, project_def.prop, .tproject, a config.xml in the
tizen.org namespace, a Tizen-referencing .csproj, or GBS CMakeLists.txt +
packaging/*.spec (a solution folder — top-level *.sln with one of these
markers in an immediate subdirectory — also counts);C:\Users, /home);--expect-name) has a folder name that differs from the confirmed app name.A missing directory returns io_error. With --dry-run the same gates run and success
returns {project_path, status: "dry-run"} without deleting. On a real delete, result
is {project_path, status: "deleted"}.
Do not work around a refusal with a shell delete. If the user insists a non-project directory must go, tell them to remove it manually — that decision is theirs, not a retry with different tooling.
rpk creates a standalone resource package, identified by tizen_resource_project.yaml.
Its resources go in the generated res/ directory. The runner creates it with
tz new -t rpk_app -T rpk -p tizen-10.0; do not substitute the Tizen IDE
create resource-project command or hand-create the metadata. RPK is resource-only, so
it cannot be launched after installation.
This is distinct from a .NET project configured with pack_as_rpk: true: that project
remains dotnet (it has a .csproj and tizen_dotnet_project.yaml) even though its
build artifact is .rpk.
APP is ALWAYS the user-provided name (10+ ASCII letters/digits — see Parameters). PARENT depends on whether a folder is open:
<cwd>/<APP>/~/tizen-apps → creates ~/tizen-apps/<APP>/Example: open folder C:/ws, user names app MyTizenWebApp
→ node "$CLI" create --type webapp --template Basic --parent-path "C:/ws" --name "MyTizenWebApp" → creates C:/ws/MyTizenWebApp/
AskUserQuestion JSON safety: paths in question/option text must use forward slashes only (e.g., ~/tizen-apps, C:/Users/...). Raw backslashes break JSON parsing.
tizen-create-project.ps1 or .sh)tz new--open to also open it in VS Code)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"). What the user sees is only the final answer text, so the final answer must follow the format below on any execution path (subagent delegation or direct CLI Runner run):
json block (first item).result, or the gist of errors[0].message).errors[0].message/details — show what is in the
JSON as-is.user_input_required Envelope as-is, then ask the user the question.Scope check:
Single-task request (e.g., "프로젝트 만들어줘") → DONE. Report the envelope and stop. You may mention tizen-build-project as a possible next step in text only — never invoke it yourself.
Multi-step request (e.g., "앱 만들어서 빌드해줘") → Continue to next step.
If templates are missing, direct user to tizen-sdk-install first.
For DotNET projects, ensure tizen-dotnet-setup has run first.
Suggested next steps (only when user asks):
tizen-build-project to build the projecttizen-gdb-debug, DotNET → tizen-dotnet-debugWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tizen, project-creation, samsung-tizen, wgt-import, project-deletion
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-Other plugins' skills for the same job