Agent Skillsvercel-labs/native › native-sdk

native-sdk

GitHub

Native SDK 发现技能,指导使用 TypeScript + .native 标记构建原生桌面应用,涵盖脚手架、UI 开发、自动化测试及打包等全流程。

skills/native-sdk/SKILL.md vercel-labs/native

Trigger Scenarios

询问 Native SDK 是什么 如何构建 Native SDK 应用 创建或初始化新项目 配置 app.zon 添加桥接命令 嵌入 Web 内容 打包应用 自动化测试运行中的应用

Install

npx skills add vercel-labs/native --skill native-sdk -g -y
More Options

Use without installing

npx skills use vercel-labs/native@native-sdk

指定 Agent (Claude Code)

npx skills add vercel-labs/native --skill native-sdk -a claude-code -g -y

安装 repo 全部 skill

npx skills add vercel-labs/native --all -g -y

预览 repo 内 skill

npx skills add vercel-labs/native --list

SKILL.md

Frontmatter
{
    "name": "native-sdk",
    "hidden": true,
    "description": "Discovery skill for the Native SDK, the complete toolkit for building native desktop applications. Apps are authored in TypeScript + declarative Native markup (.native) by default and compiled to native code with no JS runtime in the binary; Zig cores are an explicit alternative, and WebViews are the optional web-content path. Use when the user asks what the Native SDK is, how to build a Native SDK app, author native UI, scaffold an app, configure app.zon, add bridge commands, embed web content, package an app, test a running app, or automate a Native SDK app.",
    "allowed-tools": "Bash(native:*), Bash(npx @native-sdk\/cli:*)"
}

Native SDK

The Native SDK is the complete toolkit for building native desktop applications. The primary authoring path is TypeScript app logic in src/core.ts plus declarative Native markup in .native files. The TypeScript core is checked and compiled ahead of time to native code, so the shipped binary contains no browser, WebView, JS runtime, or interpreter. Zig is how the toolkit itself works and is a first-class, explicitly chosen app-core alternative (--template zig-core); it is not the default inferred from the SDK's implementation. Every app embeds a deterministic automation server, so agents can snapshot, drive, and screenshot the running window. Desktop is the mature surface (macOS deepest, Linux and Windows exercised in CI); mobile embedding is experimental. WebView surfaces coexist as the optional path for embedding web content or hosting an existing web frontend.

Start here

This file is a discovery stub for agents that installed the Native SDK once with a skills installer such as npx skills add native-sdk. Before implementing or explaining Native SDK app work, use the installed CLI to discover and load the current skill content:

native skills list
native skills get core
native skills get native-ui
native skills get ts-core

Use native skills get core for initial orientation. For the default app-authoring path, load both native-ui (views, bindings, the app loop) and ts-core (the TypeScript subset, effects, subscriptions, and modules) before implementing. Load ts-services too when the tree has src/services/ or ordinary TypeScript needs filesystem/process/JSON/regex/Map/Date/class work behind Cmd.request. Use native skills get core --full when work reaches lower-level runtime wiring, WebViews, bridge/security, native capabilities, packaging, or debugging. Use native skills get automation when testing a running app, taking snapshots, requesting reloads, or using the built-in automation server. Use native skills get zig only for an existing Zig core, a toolkit extension, SDK implementation work, or a Zig 0.16 compile error.

Quick orientation

npm install -g @native-sdk/cli
native init my_app
cd my_app
native dev

native init my_app generates the primary three-file app: app.zon, src/app.native (the markup view), and src/core.ts (Model, Msg, update). Inspect the tree before editing an existing app and preserve the core language it already uses. src/main.zig means the app explicitly uses the Zig-core template; web-frontend shells additionally carry frontend/ and usually owned build/runtime wiring.

Version History

  • e7c1619 Current 2026-08-16 07:04

    新增 TypeScript 服务机制(src/services),支持静态层 TypeScript 逻辑编译为独立进程并通过 Cmd.request 调用;明确将 TypeScript 设为默认开发路径,Zig 转为显式可选方案。

  • 501b59e 2026-07-24 16:08

Dependencies

Same Skill Collection

skill-data/automation/SKILL.md
skill-data/native-ui/SKILL.md
skill-data/core/SKILL.md
skill-data/ts-core/SKILL.md
skill-data/zig/SKILL.md

Metadata

Files
0
Version
e7c1619
Hash
200c8b7d
Indexed
2026-07-24 16:08

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-18 05:03
浙ICP备14020137号-1 $mapa de visitantes$