iced-rs
БесплатноБез исполняемых скриптовНе проверенLoad whenever building or debugging an Iced UI.
от vanillagreencom★ 93 звезды на GitHubОб этом скилле
Project Instructions
Problems with a kendex-owned skill go through kendex report; check ownership in the file first.
Iced 0.14
Workflow
- Classify the surface with Surface Selection.
- Read the canonical example in
examples/.- Never generate 0.14 code from memory.
- Read the guide for that surface.
- For animated layered UI, read
references/guide-animated-layout.mdfirst.
- For animated layered UI, read
- When debugging, check the guide’s failure modes and API notes.
- For animation or rendering, read the diagnostic checklist.
- Check event capture, layout invalidation, and the 0.14 event signature.
Bundled resources
references/: API refs and guides
- Choose guides and references from the index.
- Look up signatures and feature gates through the Iced 0.14 API page.
Bundled Iced 0.14.0 examples
| Need | Read first |
|---|---|
| Custom Widget impl | examples/custom_widget/src/main.rs |
| GPU shader pipeline | examples/custom_shader/ (full dir) |
| Mesh / vector geometry widget | examples/geometry/src/main.rs |
| Canvas 2D drawing | examples/bezier_tool, examples/clock, examples/color_palette |
| Canvas animation | examples/solar_system, examples/the_matrix, examples/game_of_life |
| Arc/ring animation | examples/loading_spinners, examples/arc |
| Modal dialog | examples/modal/src/main.rs (stack + opaque) |
| Toast/notification overlay | examples/toast/src/main.rs |
| Zoom-on-hover with clipped drawing | examples/loupe/src/main.rs |
| Styled components | examples/styling/ |
| pane_grid layout | examples/pane_grid/ |
| Multi-window | examples/multi_window/ |
| WebSocket subscription | examples/websocket/ |
| Text editing | examples/editor/ |
iced_wgpu/ and external fallbacks
For shader work, read the renderer source in iced_wgpu/src/.
The bundled iced_wgpu/ and examples/ come from Iced 0.14.0.
- Read the bundled source to match the example’s API.
- To run an example, use the upstream workspace at that revision. The skill omits the workspace manifest.
The snapshot's signatures are the authority.
- For discovery beyond it, run
ctx7 docs /websites/iced_rs "<query>". - Then check each signature against
https://docs.rs/iced/0.14.0/iced/or the tag's source, since lookups can return master APIs. - Never copy code from upstream
master.
Breaking changes from Iced 0.13
- Use
keyboard::listenfor ignored key events. See keyboard subscriptions.
Implementation rules
Widget tree consistency
- Keep the wrapper in the widget tree as interaction state changes.
- Attach the handler only when the interaction is enabled.
// WRONG: conditional wrapping changes tree shape
if dragging { mouse_area(label).into() } else { label.into() }
// RIGHT
let mut area = mouse_area(label);
if enable {
area = area.on_press(msg);
}
area
view()
- Keep
view()free of side effects, redraw requests, and caches that depend on how often it runs. - Change app state in
update(). - Keep persistent widget interaction state in Tree.
Redraw vs rebuild
A redraw request on its own uses the existing widget tree.
- Keep widget-driven motion in
widget::Treestate. - Use messages to update app-driven motion.
See Redraw vs rebuild.
Overlay state isolation
Overlay layers (stack children beyond the base) must not affect base-layer widget structure. Never change base-layer construction based on overlay presence.
The one exception is a float popover pushed after its trigger in a column that holds only the trigger, so no child follows the float. See references/widget-float.md § Anchoring to a trigger.
Overlay starvation
Stacked mouse_area(...).interaction(...) layers can block underlying hover/move handlers even without opaque(...).
- Set
Interaction::Grabbingon the real drag target. - Reserve
opaque(...)for true capture zones.
Hover stability
- Hover sensors must not wrap content whose size changes during the animation they trigger.
- Use a stable outer hitbox. See
references/guide-custom-widgets.md§ "Stable hover hit regions."
Scroll state initialization
Scrollable::on_scroll reports changes to the scroll viewport and can publish during redraw processing.
- Use
Sensor::on_showto observe initial size. - Use
Sensor::on_resizefor subsequent size changes.
Single message per interaction
- One widget interaction produces one message.
- Composite actions (tab press becoming a drag) use a state machine in
update(). - W
Установить iced-rs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл iced-rs?
Load whenever building or debugging an Iced UI.
Как установить скилл iced-rs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл iced-rs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic