native-ui

native-ui is a skill for Claude Code, Codex from vercel-labs/native. It costs 98 tokens per session (39,668 once invoked), scanned A, original, Apache-2.0.

A guide for building the native markup-based interface of Native SDK applications, together with the application code that stores state and handles messages.

In plain words
What is it for?
Creating or modifying native UI widgets, layouts, bindings, event handling, TypeScript app cores, and explicitly selected Zig cores.
Why use it?
It explains how the interface and its application logic fit together while keeping state changes in the app core.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./zig-out/bin/<app> & # run from the example directory.

Good fit Creating or modifying native UI widgets, layouts, bindings, event handling, TypeScript app cores, and explicitly selected Zig cores.

Compare 6 skills from other repositories ↓
About the project

Native SDK is a toolkit for building desktop applications with native rendering instead of a browser, WebView, or JavaScript runtime bundled into the application. Developers author interfaces in `.native` markup and write application logic in TypeScript or Zig, which the toolkit compiles and renders in real operating-system windows. The catalogue entries provide skills and instructions for working with Native SDK.

vercel-labs/native · 7,804 stars · on GitHub · native-sdk.dev

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/vercel-labs/native
agentmods
npx agentmods add skills/vercel-labs/native/native-ui

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for native-ui

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel-labs/native/native-ui/github.svg)](https://agentmods.dev/skills/vercel-labs/native/native-ui)
Your own site
<a href="https://agentmods.dev/skills/vercel-labs/native/native-ui"><img src="https://agentmods.dev/badge/skills/vercel-labs/native/native-ui/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for native-ui

Your own site · 80×15
<a href="https://agentmods.dev/skills/vercel-labs/native/native-ui"><img src="https://agentmods.dev/badge/skills/vercel-labs/native/native-ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 39,668 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 1039
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • medium Data Exfiltration · line 647
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00098 $0.39668
Opus 5.5 $0.00039 $0.15867
Sonnet 5.5 $0.00020 $0.07934
Haiku 4.5 $0.00010 $0.03967

Measured 5d ago against content hash ec4ac78f047e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

native-ui scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- JSON-over-stdout (`gh --json`, `jq -c`, `curl`) emits one giant line the 4 KiB line cap would destroy. Spawn with `.output = .collect` instead of the default `.lines`: whole stdout (up to 512 KiB) arrives ONCE on the e
skill-data/native-ui/SKILL.md · 1,347 lines

How it starts

The opening of the file, as written. The whole thing — 1,347 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Author native UI with Native markup

A native-rendered Native SDK app is a markup view plus an app core. The primary authoring path is:

  • src/app.native — the entire UI: elements, layout, bindings, message dispatch.
  • src/core.ts — Model, the discriminated Msg union, update(model, msg), effects, subscriptions, and derived binding helpers.
  • app.zon — identity, windows, assets, permissions, and policy.

The TypeScript core is checked and compiled ahead of time to native code; no JS runtime ships in the binary. Load native skills get ts-core beside this skill for every default app implementation. A Zig core (src/main.zig) is first-class when explicitly selected with native init --template zig-core; the Zig-only wiring, builder, and runtime-extension recipes below are labeled so they are not mistaken for the default.

The markup compiles to the same widget tree a hand-written canvas.Ui(Msg) builder view would produce: identical structural widget ids, identical typed handler table. Markup can never mutate state — it binds values and dispatches messages; all logic lives in the app core, whichever core language the existing tree uses.

Editors highlight .native markup well in HTML mode — the default scaffold writes no editor config, so add .vscode/settings.json with "files.associations": {"*.native": "html"} yourself, or scaffold with native init --full, which writes it.

Start a new app with native init (zero-config: app.zon + src/core.ts + src/app.native + assets; the CLI generates the build graph). Use examples/chatbot, examples/soundboard, and examples/system-monitor as substantial TypeScript references. The native check|dev|test|build verbs drive any app directory shaped this way.

Export statusItem(model: Model): StatusItemState from src/core.ts. The generated launcher installs icon/tooltip/click-open commands plus the boot presentation/menu, re-derives it after every committed update, and patches presentation/menu independently. Import StatusItemState from @native-sdk/core/events. Commands route through the core's commandMsg(name): Msg | null export. There is no app-owned Zig wiring and statusItem is automatically marked shell-bound for the markup lint.

Read the full file on GitHub · 1,347 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed ec4ac78f047e
  2. 8d ago Changed 662d84f30de7
  3. 11d ago Changed · +10 lines d12824eb9e9f
  4. 14d ago Changed 5a89546c3064
  5. 15d ago Changed · +25 lines 0a2d1f748c88
  6. 16d ago Changed · +23 lines 58b81d1174e9
  7. 20d ago Changed 1539af7c7692
  8. 1mo ago Changed · +1 lines 0e0529b4d63f
  9. 1mo ago First seen · 1,288 lines · 98 tokens per session scan A 4ba4e9e361c1

Subscribe to this mod's changes

native-ui is a skill published in the GitHub repository vercel-labs/native (7,804 stars, last pushed yesterday), licensed Apache-2.0. It adds 98 tokens to every session and 39,668 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

orca-emulator-android

Android device and emulator control from inside Orca over adb, with the live device view in Orca's emulator pane. Use when driving an adb-connected emulator or phone on Windows, Linux, or macOS: booting AVDs, taps, swipes, typing, hardware buttons, rotation, app install and launch, runtime permissions, the…

stablyai/orca · 102 tokens

glance-canonical-layouts

Use this skill to create home screen widgets using Jetpack Glance Canonical Layouts from the Android Platform Samples project, or when asked to implement standard widget layout patterns (including Check List, Image Grid, Snap Scrolling, and Standard Toolbar).

android/skills · 56 tokens

android-tombstone-symbolication

Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app…

dotnet/skills · 176 tokens

dogfood

Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.

callstack/agent-device · 55 tokens

winapp-maui

Package and sign .NET MAUI Windows apps with winapp: publish the Windows head first, then point packaging at the resolved resizetizer manifest. Use for a MAUI MSIX or signed unpackaged build, MAUI packaging in CI, or 'manifest contains unresolved placeholders' errors from winapp package.

microsoft/winappCli · 68 tokens

apple-search-ads

When the user wants to set up, optimize, or scale Apple Search Ads (ASA) campaigns — including keyword bidding, match types, campaign structure, Creative Product Sets, CPP routing, and ROAS optimization. Use when the user mentions "Apple Search Ads", "ASA", "Search Ads", "Search tab ads", "Today tab ads", "CPT"…

Eronred/aso-skills · 127 tokens