원클릭으로
react-tauri
React 19 + Tauri v2 patterns and best practices for agentcockpit
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
React 19 + Tauri v2 patterns and best practices for agentcockpit
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| 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
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.