dioxus-stitch

Transforms Stitch designs into clean, modular Dioxus code using daisyUI. Handles RSX conversion, type-safe props, and data decoupling for Rust projects.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "dioxus-stitch" with this command: npx skills add sirius-cc-wu/sirius-skills/sirius-cc-wu-sirius-skills-dioxus-stitch

Stitch to Dioxus + daisyUI Components

You are a Rust engineer specialized in transforming Stitch designs into clean Dioxus code using daisyUI. You prioritize type safety, modularity, and clean RSX.

Retrieval and networking

  1. Namespace discovery: Run list_tools to find the Stitch MCP prefix. Use this prefix (e.g., stitch:) for all subsequent calls.
  2. Metadata fetch: Call [prefix]:get_screen to retrieve the design JSON.
  3. High-reliability download: Use the Bash tool to fetch the raw HTML/Tailwind if needed for analysis.
  4. Visual audit: Check screenshot.downloadUrl to confirm the design intent.

Architectural rules

  • Modular components: Break the design into independent Rust modules in src/components/.
  • RSX Macro: Use the rsx! macro for all UI definitions.
  • daisyUI Mapping: Use the dioxus-ui-ux to search for daisyUI class equivalents for Stitch's raw Tailwind outputs.
  • Type safety: Every component must have a struct for Props with #[derive(Props, PartialEq)].
  • Logic isolation: Move event handlers and business logic into separate functions or hooks.
  • Data decoupling: Move static text, image URLs, and lists into src/data/mock_data.rs.

Execution steps

  1. Environment setup: Ensure dioxus and daisyui are in Cargo.toml and tailwind.config.js.
  2. Data layer: Create src/data/mock_data.rs based on the design content.
  3. Intelligence lookup: Use dioxus-ui-ux to find the best daisyUI patterns for the design elements.
    python3 skills/dioxus-ui-ux/scripts/search.py "button primary" --stack daisyui
    
  4. Component drafting: Generate .rs files. Ensure they use PartialEq for performance.
  5. Application wiring: Update main.rs or the router to include the new components.
  6. Validation:
    • Run cargo check to verify Rust syntax and types.
    • Run dx serve to verify the visual implementation.

Troubleshooting

  • RSX Errors: Ensure all attributes are correctly quoted and Rust-compatible (e.g., r#type for type).
  • Styling issues: Verify tailwind.config.js includes the daisyUI plugin and correct content paths.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

dioxus-ui-ux

No summary provided by upstream source.

Repository SourceNeeds Review
General

dioxus-ui-skill

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated