robius-app-architecture
What it does
This skill helps organize the code for applications built with the Makepad tool, especially those that need to handle time-consuming tasks (asynchronous). It teaches how to structure the application so the user interface remains responsive.
When to use it
- βWhen building a Makepad application that connects to a server.
- βWhen planning how different parts of the application will communicate.
- βWhen following examples from applications like Robrix or Moly.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/robius-app-architecture/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHow can I structure my Makepad application to handle network requests efficiently?β
5 new skills a week. 1 minute to read.
How it works
It defines a pattern where the user interface sends requests to a background processing area (using channels and Tokio). This area performs the time-consuming tasks and sends the results back to the user interface for updates.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Supporting material availability
This catalog copy contains the inline guidance below, but does not include the following supporting paths. They are external prerequisites, not bundled files:
<support-root>/references/tokio-integration.md<support-root>/references/channel-patterns.md<support-root>/references/moly-async-patterns.md
Ask for the original supporting material or an existing installation before using a step that depends on these paths; this catalog does not identify a verified download source for them. Resolve each path relative to that installation, inspect its contents, and verify any applicable license and execution prerequisites. Do not run a command or claim a referenced procedure was followed until its required file exists. Do not fabricate the missing scripts or treat an unrelated file with the same name as equivalent. Independent steps fully documented here can proceed within the userβs authorized scope; report any dependent step as unavailable.
Robius App Architecture Skill
Best practices for structuring Makepad applications based on the Robrix and Moly codebases - production applications built with Makepad and Robius framework.
Source codebases:
- Robrix: Matrix chat client - complex sync/async with background subscriptions
- Moly: AI chat application - cross-platform (native + WASM) with streaming APIs
When to Use
Use this skill when:
- Building a Makepad application with async backend integration
- Designing sync/async communication patterns in Makepad
- Structuring a Robius-style application
- Keywords: robrix, robius, makepad app structure, async makepad, tokio makepad
Production Patterns
For production-ready async patterns, see the _base/ directory:
| Pattern | Description |
|---|---|
| 08-async-loading | Async data loading with loading states |
| 09-streaming-results | Incremental results with SignalToUI |
| 13-tokio-integration | Full tokio runtime integration |
Core Architecture Pattern
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β UI Thread (Makepad) β
β βββββββββββ ββββββββββββ ββββββββββββββββββββββββ β
β β App ββββββΆβ WidgetRef ββββββΆβ Widget Tree (View) β β
β β State β β ui β β Scope::with_data() β β
β ββββββ¬βββββ ββββββββββββ ββββββββββββββββββββββββ β
β β β
β β submit_async_request() β
β βΌ β
β βββββββββββββββββββ βββββββββββββββββββββββββββ β
β β REQUEST_SENDER βββββββββββΆβ Crossbeam SegQueue β β
β β (MPSC Channel) β β (Lock-free Updates) β β
β βββββββββββββββββββ βββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββ
β
SignalToUI::set_ui_signal()
β
βββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββ
β Tokio Runtime (Async) β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β worker_task (Request Handler) β β
β β - Receives Request from UI β β
β β - Spawns async tasks per request β β
β β - Posts actions back via Cx::post_action() β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Per-Item Subscriber Tasks β β
β β - Listens to external data stream β β
β β - Sends Update via crossbeam channel β β
β β - Calls SignalToUI::set_ui_signal() to wake UI β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
App Structure
Top-Level App Definition
use makepad_widgets::*;
live_design! {
use link::theme::*;
use link::widgets::*;
App = {{App}} {
ui: <Root>{
main_window = <Window> {
window: {inner_size: vec2(1280, 800), title: "MyApp"},
body = {
// Main content here
}
}
}
}
}
app_main!(App);
#[derive(Live)]
pub struct App {
#[live] ui: WidgetRef,
β¦
FAQ
What are asynchronous tasks?
These are tasks that a program can start and then continue doing other things while waiting for them to finish, instead of freezing while waiting.
What is Makepad?
It is a tool for creating user interfaces for applications, particularly focused on performance and cross-platform compatibility.
Why does the user interface need to remain responsive?
So that the user can continue interacting with the application (clicking buttons, scrolling) while other longer tasks are being processed in the background.
Details
Original description by the author
CRITICAL: Use for Robius app architecture patterns. Triggers on: Tokio, async, submit_async_request, εΌζ₯, ζΆζ, SignalToUI, Cx::post_action, worker task, app structure, MatchEvent, handle_startup
Popularity
- GitHub stars
- 48k
- Ranking position
- #5641
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.