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★ 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.
- Call
check_slintwith the saved file's absolutepath. If aslint-project.jsonapplies, pass its containing directory as the absoluteprojectRoot. Usesourcefor a self-contained snippet. - Inspect the diagnostics and PNG. Check that layout children align as expected. Fix issues and run the check again.
- After a successful check, call
publish_previewwith the returnedpreviewIdif 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. |
Установить slint в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
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