with one click
react-tauri
React 19 + Tauri v2 patterns and best practices for agentcockpit
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
React 19 + Tauri v2 patterns and best practices for agentcockpit
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Testing strategy, patterns, and coverage optimization for quality assurance. Use this skill whenever the task involves deciding what to test, how to structure tests, what coverage to aim for, when to use mocks vs real dependencies, or how to write tests that actually catch bugs (not just pass). Also use when the user asks about test pyramids, flaky tests, integration vs unit, TDD, or improving an existing test suite.
Production readiness validation — runs all checks before merging or deploying. Use this skill whenever the task involves verifying that code is ready to ship: type checking, linting, tests passing, coverage thresholds, dead code, security issues, or any pre-merge checklist. Also use when the user asks "is this ready?", wants a pre-PR review, or needs to confirm nothing is broken after a refactor.
Swift architecture reference — SwiftUI, UIKit, Combine, async/await, actors, and production best practices for Swift 5.9/6.0 (2024-2025). Use when making architectural decisions, reviewing Swift code, or selecting libraries. Also use when the user mentions iOS development, macOS apps, or Apple platform development.
UI/Frontend architecture reference - React 19, Next.js 15, Vue 3, Svelte 5, Angular 19, CSS modern features, component libraries, state management, and production best practices for 2024-2025. Use when building frontend UIs, selecting frameworks, reviewing component code, or making frontend architecture decisions.
UX design reference - research methods, design systems, accessibility (WCAG 2.2, EAA), UX laws, AI-driven workflows, tools (Figma, Penpot), and production best practices for 2024-2025. Use when making UX decisions, reviewing designs, implementing accessibility, selecting design tools, or applying UX principles.
C# architecture reference - frameworks, design patterns, ASP.NET Core, Entity Framework, Blazor, Unity, and production best practices for C# 12/13 and .NET 8/9 (2024-2025). Use when making architectural decisions, reviewing C# code, or selecting libraries.
| name | react-tauri |
| description | React 19 + Tauri v2 patterns and best practices for agentcockpit |
agentcockpit is a desktop app built with React 19 (frontend) and Tauri v2 (Rust backend). The React app runs inside a Tauri webview, communicating with Rust via IPC (invoke).
@vitejs/plugin-reactimport { invoke } from '@tauri-apps/api/core';
// Call Rust command
const result = await invoke<string>('execute_command', { cmd: 'ls', cwd: '/path' });
// With timeout wrapper (prevents hangs in bundled app)
import { withTimeout } from '../core/utils/promiseTimeout';
const result = await withTimeout(invoke<string>('command', args), 5000, 'description');
import { listen } from '@tauri-apps/api/event';
const unlisten = await listen<string>('event-name', (event) => {
console.log(event.payload);
});
// Cleanup in useEffect return
return () => { unlisten(); };
import { readTextFile, writeTextFile, exists } from '@tauri-apps/plugin-fs';
const content = await readTextFile('/path/to/file');
await writeTextFile('/path/to/file', content);
memo() for expensive rendersuseCallback and useRef to avoid re-render cascadesAppContext) with useReducerusePty, useTauriBrowserView)AppContext with useReducer for global state (projects, terminals, settings)useApp(), useAppSettings(), useTerminalActivityState()window) for cross-component communicationagentcockpit-project.jsoninvoke() with withTimeout() — bundled Tauri apps can hang on IPCcat/echo failsmemo() on terminal and browser components (expensive renders)UnlistenFn in refs and clean up in useEffect returnsrc/
├── agents/ # Plugin-specific code (per agent)
├── components/ # UI components (by domain)
├── contexts/ # React contexts
├── core/ # Shared utilities, event bus
├── hooks/ # Custom React hooks
├── layouts/ # App shell layout components
├── plugins/ # Plugin system infrastructure
├── services/ # Business logic (no UI)
├── styles/ # CSS themes and global styles
└── types/ # TypeScript type definitions