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★ 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
- Call
slint-preview'scheck_slintwith the saved file's absolutepath. If aslint-project.jsonapplies, pass its containing directory as the absoluteprojectRoot. For a self-contained snippet, passsourceinstead ofpath. Passstyleif the project uses a specific standard widget style. - 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. |
Установить 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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic