Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

slint

БесплатноБез исполняемых скриптовНе проверен

Write, edit, debug, or review Slint UIs and host-language integration. Use for Slint docs, development guidance, inline previews, and preview annotations.

slint-uiот slint-ui★ 22 звезды на GitHub

Об этом скилле

Slint

Find the Slint Project

Look beside the target .slint file and up through the workspace for the applicable slint-project.json. Resolve main, include paths, and library paths relative to the directory containing the project file. Use main for an app preview when the project file selects the entry point.

For Rust, check the owning crate's Cargo.toml and any inherited workspace dependencies. If the crate uses slint_build, read its build script for the entry point and compiler settings. Use Cargo.lock for the resolved Slint version. The project file's edition controls language behavior.

Look Up Slint APIs

Find the project's Slint version in its build configuration or lockfile. Call slint-docs search for the element, property, widget, or API you need. Pass version when the project uses an older release. Call fetch with the result's URL exactly as returned to read the page for that release.

If the documentation tools are unavailable, open the matching release at https://releases.slint.dev/<version>/docs or use the current Slint docs.

Check and Preview

Set prepare_preview: true when the session supports MCP Apps and you want to show an interactive preview.

  1. Call check_slint with the saved file's absolute path. If a slint-project.json applies, pass its containing directory as the absolute projectRoot. Use source for a self-contained snippet.
  2. Inspect the diagnostics and PNG. Check that layout children align as expected. Fix issues and run the check again.
  3. After a successful check, call publish_preview with the returned previewId if you prepared a preview. Run another check if the preparation has expired or was already used.

Use the PNG from check_slint for the visual review and to share the render. In Codex code mode, forward the tool's image and text blocks so the screenshot and diagnostics are visible. When the user annotates an inline preview, use the attached screenshot and any source location to identify the element.

Use the running app or its tests to verify host-language callbacks, models, and application state.

.slint in 30 Seconds

Declarative and reactive: a property binding re-evaluates automatically when anything it reads changes.

import { Button, VerticalBox } from "std-widgets.slint";

component Counter inherits Rectangle {     // root element decides fill behavior
    in property <string> label;            // parent/host writes
    out property <int> count;              // component writes
    callback changed(int);                 // notify the outside world

    VerticalBox {
        Text { text: "\{root.label}: \{root.count}"; }   // interpolation
        Button { text: "+"; clicked => { root.count += 1; root.changed(root.count); } }
    }
}

Property directions: in / out / in-out / private. Two-way bind: a <=> b. Control flow: if cond : E {}, for it[i] in model : E {}. Shared state & host interop: export global Foo { ... }. One-time code: init => { ... }.

Reference Files

Read the matching reference before working in that area.

File Read when…
setup.md Starting a project / wiring the build (Rust/C++/Node/Python).
language-and-layout.md Writing components; an element won't size/fill as expected.
gotchas.md A file won't compile, or colors/units/math/enums behave oddly.
events-and-overlays.md Clicks/keys/modifiers, or popovers/menus/context menus.
icons-and-theming.md Icons, or light/dark theming.
interop.md Connecting the UI to host-language logic (models, callbacks, globals).
polish.md The UI works but looks rough; reviewing a rendered screenshot.
debugging-and-mcp.md Debugging a running app or taking a screenshot with slint-viewer.
licensing.md The user asks about the license, or builds a closed-source app.
web-embedding.md Showing a live .slint preview in a web page, HTML report, or docs.
tools-install.md Installing Slint development tools.
Полный SKILL.md на GitHub

Установить slint в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

guidance/reference/debugging-and-mcp.mdguidance/reference/events-and-overlays.mdguidance/reference/gotchas.mdguidance/reference/icons-and-theming.mdguidance/reference/interop.mdguidance/reference/language-and-layout.mdguidance/reference/licensing.mdguidance/reference/polish.mdguidance/reference/web-embedding.mdguidance/setup.mdguidance/tools-install.md

FAQ

Что делает скилл slint?

Write, edit, debug, or review Slint UIs and host-language integration. Use for Slint docs, development guidance, inline previews, and preview annotations.

Как установить скилл slint?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл slint запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить slint с