Command Palette

Search for a command to run...

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

slint

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

Write, edit, debug, or review Slint UIs and host-language integration in Claude Code. Use for Slint docs, development guidance, compiler diagnostics, and…

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

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

Slint Skill for Claude Code

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. Check main 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. Pass site: "testing" to search the Slint UI Testing docs. 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.

Use the slint-lsp language server for hover, go-to-definition, and source diagnostics when it is installed.

Check Slint and Inspect the First Frame

  1. Call slint-preview's check_slint with the saved file's absolute path. If a slint-project.json applies, pass its containing directory as the absolute projectRoot. For a self-contained snippet, pass source instead of path. Pass style if the project uses a specific standard widget style.
  2. Inspect the compiler diagnostics and the first-frame PNG. Check that layout children align as expected. Fix issues and run the check again.

Use the returned PNG when sharing a screenshot. 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 or interacting with the running app through its embedded MCP server.
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-lsp.
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Write, edit, debug, or review Slint UIs and host-language integration in Claude Code. Use for Slint docs, development guidance, compiler diagnostics, and first-frame screenshots.

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

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

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

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

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

Сравнить slint с