Agent skill · software engineering · sickn33

molykit

CRITICAL: Use for MolyKit AI chat toolkit. Triggers on: BotClient, OpenAI, SSE streaming, AI chat, molykit, PlatformSend, spawn(), ThreadToken, cross-platform async, Chat widget, Messages, PromptInput, Avatar, LLM

Why this skill is useful

Provides specific patterns and utilities for building cross-platform AI chat interfaces that the AI wouldn't reliably generate on its own.

What it needs

Requires makepad installed locally. About 5k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.

What this skill does

MolyKit Skill Best practices for building AI chat interfaces with Makepad using MolyKit - a toolkit for cross-platform AI chat applications. Source codebase: /Users/zhangalex/Work/Projects/FW/robius/moly/moly-kit When to Use Use this skill when: Building AI chat interfaces with Makepad Integrating OpenAI or other LLM APIs Implementing cross-platform async for native and WASM Creating chat widgets (messages, prompts, avatars) Handling SSE streaming responses Keywords: molykit, moly-kit, ai chat, bot client, openai makepad, chat widget, sse streaming Overview MolyKit provides: Cross-platform async utilities (PlatformSend, spawn(), ThreadToken) Ready-to-use chat widgets (Chat, Messages, PromptInput, Avatar) BotClient trait for AI provider integration OpenAI-compatible client with SSE streaming Protocol types for messages, bots, and tool calls MCP (Model Context Protocol) support Cross-Platform Async Patterns PlatformSend - Send Only on Native Platform-Agnostic Spawning Task Cancellation with AbortOnDropHandle ThreadToken for Non-Send Types on WASM BotClient Trait Implementing AI Provider Integration BotContext - Sharable Wrapper Protocol Types Message Structure Bot Identification Widget Patterns Slot Widget - Runtime Content Replacement Avatar Widget - Text/Image Toggle PromptInput Widget Messages Widget - Conversation View UiRunner Pattern for Async-to-UI SSE Streaming Best Practices 1. Use PlatformSend for cross-platform: Same code works on native and WASM 2. Use spawn() not tokio::spawn: Platform-agnostic task spawning 3. Use AbortOnDropHandle: Cancel tasks when widget drops 4. Use ThreadToken for non-Send on WASM: Thread-local storage with token access 5. Use Slot for custom content: Allow BotClient to provide custom widgets 6. Use read()/write() pattern: Safe borrow access via WidgetRef 7. Use UiRunner::deferwithredraw: Update widget from async context 8. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sickn33/molykit

View the source on GitHub

Browse the @skills marketplace