Tauri With AI banner
maxart maxart

Tauri With AI

AI community

Description

A comprehensive CLAUDE.md template for Tauri v2 + React desktop apps. Drop it in and Claude Code automatically follows production-grade conventions for TypeScript, Rust, IPC, capabilities-based security, accessibility, testing, code signing, and more — with token-efficient output rules built in.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Tauri-with-AI

A `CLAUDE.md` template that teaches [Claude Code](https://docs.anthropic.com/en/docs/claude-code) modern Tauri v2 + React best practices. Drop it into any Tauri + React desktop project and Claude will follow production-grade conventions for TypeScript, Rust, IPC, capabilities-based security, accessibility, testing, code signing, and more — automatically, on every interaction.

Why

Claude Code reads `CLAUDE.md` from your working directory and applies its rules to every conversation (including sub-agents). Without guardrails, AI-generated Tauri code can drift in ways that are hard to see until release day: commands that return `anyhow::Result` and fail to compile, `std::sync::Mutex` held across `.await`, `unsafe-inline` CSP, blanket `fs:allow-*` permissions, tokens in `localStorage`, missing updater signatures, `.unwrap()` in command handlers. This template codifies the conventions experienced Tauri teams enforce in code review — for both the React frontend and the Rust backend — so Claude follows them from the first line.

Two Versions

Pick the one that fits your project.

File Size Contains Best for
`CLAUDE.md.FULL` 39,944 chars All rules plus BAD/GOOD code examples Teams that want rules plus concrete patterns — Claude follows rules-with-examples more reliably
`CLAUDE.md.SHORT` 26,132 chars All rules, no code examples Token-constrained setups, or projects that just need guardrails without inline samples

Both files cover the **same rules** — the only difference is whether each rule is illustrated with a BAD/GOOD code block. SHORT is ~35% smaller because it strips all fenced code blocks while preserving every rule, table, and checklist.

What's inside (click to expand)
Area Key rules
TypeScript Strict mode, no any, discriminated unions, exhaustive switch guards
**Rust Bac