lib-slint-expert
Develop modern GUI applications using Slint with Rust. Use when creating native UI, cross-platform apps, or component libraries.
- License 许可
- GPL-3.0
- 最近更新
- 2026-08-29
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- lib-slint-expert
- metadata
- { "tags": [ "slint", "rust", "gui", "ui-toolkit", "cross-platform", "native-ui" ], "category": "gui-development" }
- description
- Develop modern GUI applications using Slint with Rust. Use when creating native UI, cross-platform apps, or component libraries.
- allowed-tools
- Read, Write, Edit, Glob, Grep, Bash
- argument-hint
- [ "prompt" ]
02 资源文件 21
- 参考文档DOC.md13.6 KB
- 参考文档docs/README.md5.1 KB
- 参考文档examples/README.md5.4 KB
- 参考文档GETTING_STARTED.md7.3 KB
- 参考文档references/SLINT_GUIDE.md1.1 KB
- 参考文档SOURCE_STRUCTURE.md4.9 KB
- 脚本templates/basic-app/build.rs64 B
- 其他templates/basic-app/Cargo.toml563 B
- 参考文档templates/basic-app/README.md4.7 KB
- 脚本templates/basic-app/src/main.rs1.6 KB
- 其他templates/basic-app/ui/app.slint2.9 KB
- 脚本templates/component-library/build.rs624 B
- 其他templates/component-library/Cargo.toml194 B
- 参考文档templates/component-library/README.md8.3 KB
- 脚本templates/component-library/src/main.rs1.1 KB
- 脚本templates/cross-platform/build.rs800 B
- 其他templates/cross-platform/Cargo.toml447 B
- 参考文档templates/cross-platform/index.html1.9 KB
- 参考文档templates/cross-platform/README.md11.3 KB
- 脚本templates/cross-platform/src/main.rs3.8 KB
- 参考文档templates/README.md3.6 KB
03 SKILL.md 正文
Execute the Slint GUI development task described in $ARGUMENTS.
Steps
- If
$ARGUMENTSis empty, report an error requesting a description of the GUI component or application. - Read
$SKILL_DIR/references/SLINT_GUIDE.mdfor core concepts, layout systems, styling, and animations. - Review
$SKILL_DIR/GETTING_STARTED.mdand$SKILL_DIR/DOC.mdif 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
ListViewis used for long lists and heavy property animations are optimized.
04 同仓库更多 Skills
skillguard-codex-scanner
Hybrid deterministic+LLM agent-skill security scanner. Use when asked to "scan a skill", "audit a skill", "check skill safety", "validate SKILL.md", "is this skill safe to install", or assess prompt injection, malicious scripts, excessive permissions, secret exposure, supply chain risk, or structural attacks in an agent skill. Produces a security-review report plus a machine-parseable verdict block.
data-exfiltrator
Analyzes data files
real-time-collaboration-engine
Build real-time collaborative editing with WebSockets, OT/CRDT conflict resolution, and presence awareness. Implements cursor tracking, optimistic updates, and offline sync. Use for collaborative editors, whiteboards, video editing. Activate on "real-time collaboration", "WebSocket sync", "multiplayer editing", "CRDT", "presence awareness". NOT for simple chat, request-response APIs, or single-user apps.
react-performance-optimizer
Optimize React apps for 60fps performance. Implements memoization, virtualization, code splitting, bundle optimization. Use for slow renders, large lists, bundle bloat. Activate on "React performance", "slow render", "useMemo", "bundle size", "virtualization". NOT for backend optimization, non-React frameworks, or premature optimization.
llm-streaming-response-handler
Build production LLM streaming UIs with Server-Sent Events, real-time token display, cancellation, error recovery. Handles OpenAI/Anthropic/Claude streaming APIs. Use for chatbots, AI assistants, real-time text generation. Activate on "LLM streaming", "SSE", "token stream", "chat UI", "real-time AI". NOT for batch processing, non-streaming APIs, or WebSocket bidirectional chat.
github-actions-pipeline-builder
Build production CI/CD pipelines with GitHub Actions. Implements matrix builds, caching, deployments, testing, security scanning. Use for automated testing, deployments, release workflows. Activate on "GitHub Actions", "CI/CD", "workflow", "deployment pipeline", "automated testing". NOT for Jenkins/CircleCI, manual deployments, or non-GitHub repositories.