| name | lib-slint-expert |
| description | Develop modern GUI applications using Slint with Rust. Use when creating native UI, cross-platform apps, or component libraries. |
| argument-hint | ["prompt"] |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash |
| metadata | {"category":"gui-development","tags":["slint","rust","gui","ui-toolkit","cross-platform","native-ui"]} |
Execute the Slint GUI development task described in $ARGUMENTS.
Steps
- If
$ARGUMENTS is empty, report an error requesting a description of the GUI component or application.
- Read
$SKILL_DIR/references/SLINT_GUIDE.md for core concepts, layout systems, styling, and animations.
- Review
$SKILL_DIR/GETTING_STARTED.md and $SKILL_DIR/DOC.md if further context is needed.
- If the user wants to start a new project, use the templates from
$SKILL_DIR/templates/.
- Implement the required UI components and associated Rust logic based on the user's prompt.
- Verify the UI handles cross-platform requirements if specified.
Examples
User Request: "Create a simple login form with Slint."
Response Strategy: Generate a .slint file using VerticalLayout, TextInput for username and password, and a Button for submit. Include property bindings for the fields.
Troubleshooting
- If a component fails to render, verify that the bindings between Rust ModelRc and Slint properties are correctly set up.
- If performance issues are observed, ensure
ListView is used for long lists and heavy property animations are optimized.