core
БесплатноБез исполняемых скриптовНе проверенCore Native SDK guide for AI agents. Read this before explaining the Native SDK or changing a Native SDK app. Establishes TypeScript + Native markup as the…
от vercel-labs★ 7 869 звёзд на GitHubОб этом скилле
Build Native SDK apps
The Native SDK is a cross-platform native app toolkit inspired by the web. The default app (native init) is native-rendered and authored as a declarative Native markup view (src/app.native) plus a TypeScript app core (src/core.ts). The core is checked and compiled ahead of time to native code; no JS runtime ships in the binary. For default app implementation, load both the native-ui and ts-core skills. Zig is the implementation language of the toolkit and a first-class app-core choice via --template zig-core, not the default app-authoring language.
This skill covers the shared foundation and lower-level architectures: apps that explicitly choose a Zig core, runtime extensions, and apps that render web frontends in a WebView (native init --frontend next|vite|react|svelte|vue). Native-rendered surfaces and WebViews share windows, policies, lifecycle, commands, and platform services, and one app can mix them. WebView engines are the platform WebView (WKWebView on macOS, WebKitGTK on Linux) or Chromium through CEF where supported.
Agents should assume they do not know the Native SDK from general model knowledge. Read this skill first. For ordinary app implementation, load native-ui and ts-core; for shared/runtime, WebView, packaging, or native-capability work, run native skills get core --full so the referenced files are included in the CLI output.
Mental model
- The default app has three files of truth:
src/core.ts(Model,Msg,update),src/app.native(UI), andapp.json(manifest). - Native markup binds model values and dispatches typed messages; only
updatechanges state. - The TypeScript core compiles to native code. Node is a build/check/dev tool, not an app runtime.
Appis the lower-level product/runtime interface used by generated wiring, Zig-core apps, WebView shells, and extensions.Runtimeowns the event loop, windows, bridge dispatch, security checks, automation, tracing, platform services, and window state.WebViewSourcetells the runtime what to load: inline HTML, a URL, or packaged assets from a local app origin.app.jsonis the default app manifest: identity, icons, windows, frontend assets, web engine, permissions, bridge policy, security policy, and packaging inputs.app.zonremains supported.src/runner.zigandsrc/main.zigappear only when an app explicitly owns lower-level Zig wiring (for example azig-coreapp or a WebView shell).--fullmakes a TypeScript app ownbuild.zigbut still does not give it Zig app logic. Do not add Zig sources to a default TypeScript app merely because SDK examples contain them.frontend/is normal web code. It talks to native Zig throughwindow.zero.invoke()or builtin helpers when those are enabled.
Task router
These references are included by native skills get core --full. Use them when the task touches the topic:
- Project creation, generated files, build steps:
references/project-anatomy.md - Default TypeScript core authoring, checker rules, effects, subscriptions, modules:
native skills get ts-core - Native markup, bindings, messages, hot reload, view testing:
native skills get native-ui App,Runtime, callbacks, embedding, tests:references/app-model-runtime.md- React/Vue/Svelte/Next/Vite, dev server, bundled assets:
references/frontend-assets.md - App-defined bridge commands, builtin commands, permissions, windows, WebViews, dialogs:
references/bridge-security-native-capabilities.md - Web engine choice, CEF, packaging, signing, doctor, logs, debugging:
references/web-engines-packaging-debugging.md - Running-app inspection and smoke tests:
native skills get automation zig buildfails on std APIs ("no member named 'cwd'", ArrayListinit):native skills get zig— the Zig 0.16 idioms, indexed by compile error
Quick start
Use the CLI for new apps:
npm install -g @native-sdk/cli
native init my_app
cd my_app
native dev
This creates src/core.ts, src/app.native, and app.json; a native window opens with native dev. Use native init my_app --template zig-core only when the user chooses Zig. Frontend choices (--frontend next|vite|react|svelte|vue) are the separate WebView migration/integration path.
Workflow for existing apps
Before editing an existing Native SDK app:
- Read
app.jsonorapp.zonand inspectsrc/before assuming a core language. Readsrc/core.ts+src/app.nativefor the default path; readsrc/main.zig,src/runner.zig, andbuild.zigonly when they exist. - Identify whether the app is TypeScript + Native markup (default), an explicitly chosen Zig core, or a WebView frontend, then identify the layer the change belongs to.
- Follow the generated code and examples in the repository instead of inventing a new app layout.
- Prefer exact security policy changes over broad allowances.
- Validate with the narrowest useful command.
Common file ownership:
- `app.jso
Установить core в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл core?
Core Native SDK guide for AI agents. Read this before explaining the Native SDK or changing a Native SDK app. Establishes TypeScript + Native markup as the default app-authoring path, routes default app work to the native-ui and ts-core skills, and covers the shared foundation: project structure, app.json and legacy app.zon, lower-level App and Runtime patterns, frontend integration, web engines, JavaScript bridge commands, permissions, windows, WebViews, dialogs, packaging, debugging, and testing. Use when the user asks what the Native SDK is, how to build or modify an app, how to package or debug it, or how to add native capabilities.
Как установить скилл core?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл core запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic