Skip to content

Isurwars/Correlation / .agents/skills/slint-preview

slint-preview

Verified

Execute hot-reloading preview sessions and Slint syntax verification for iterative UI development. Use when validating .slint markup or previewing components.

FileKindSize
SKILL.mdskill md1.5 KB
---
name: slint-preview
description: Execute hot-reloading preview sessions and Slint syntax verification for iterative UI development. Use when validating .slint markup or previewing components.
---

# Slint Live Preview Loop

This skill handles real-time live previewing, hot-reloading, and syntax diagnostics for Slint markup files (`.slint`).

## 1. Syntax & Markup Validation

Before submitting or compiling `.slint` changes:
1. Ensure all imported types exist in `Types.slint` or imported module files.
2. Check that component properties use proper `in`, `out`, or `in-out` annotations.
3. Validate layout nesting constraints (`Vertical`, `Horizontal`, `GridLayout`, `ScrollView`).

## 2. Preview Workflows

### Primary: `slint-viewer` (Hot-Reload)
When `slint-viewer` is available on the system:
```bash
slint-viewer --auto-reload -I ui/ ui/AppWindow.slint
```

### Fallback: CMake Target Verification
When `slint-viewer` is not installed, validate `.slint` markup by triggering a fast Slint-to-C++ header generation build:
```bash
cmake --build build --target correlation_gui_tests -j$(nproc)
```
If Slint code generator fails, inspect compiler output for syntax/line errors in the source `.slint` file.

## 3. Responsive Layout Testing

Validate layout behavior at key viewport dimensions:
- Minimum bounds: 1050 × 725 px
- Preferred bounds: 1180 × 795 px
- Max / High-DPI bounds: 1920 × 1080 px

Ensure scrolling wrappers (`ScrollView`) accommodate overflow elements cleanly at minimum bounds.
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies 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 colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall