tauri-development
Skill37 starsChanged 8 months agoMITView on GitHub
Tauri development guidelines for building cross-platform desktop applications with TypeScript, Rust, and modern web technologies
6 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- mesomya/openusage-windowsedited, first seen Nov 8, 2026
- PiloTracer/pilo.ai.logicbisontheir own version, first seen Oct 11, 2026
- Mindrally/skillsedited, first seen Oct 8, 2026
- peakdong68/my-skillsword for word, first seen Aug 29, 2026
- lukemurraynz/hve-agent-skillstheir own version, first seen Aug 27, 2026
Other versions6 projects use a version of this.
Word for word · 2
- peakdong68/my-skills★ 0100% same
- falkoro/tokenmaxxing★ 0100% same
Edited · 2
- Mindrally/skills★ 27597% same
- mesomya/openusage-windows★ 8100% same
Wrote their own version · 2
- lukemurraynz/hve-agent-skills★ 2same name
- PiloTracer/pilo.ai.logicbison★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- release-tagSkill
- tauri-developmentSkill
- tauri-v2Skill
- run-opentokenusageSkill
- tauri-v2Skill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 18 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
18
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Write clean, maintainable TypeScript and Rust code
- Distinctive: line 13
Use TailwindCSS and ShadCN-UI for styling
- Distinctive: line 14
Follow step-by-step planning for complex features
- Distinctive: line 45
Use functional components with TypeScript
- Distinctive: line 47
Use async/await for asynchronous operations
- Distinctive: line 83
Use Result types for fallible operations
- Distinctive: line 90
Use Tauri's security features (CSP, allowlist)
- Distinctive: line 99
Use dark mode support
- Distinctive: line 100
Follow consistent spacing and sizing
- Distinctive: line 103
Use pre-built accessible components
- Distinctive: line 106
Follow accessibility best practices
- Distinctive: line 110
Use React Context for global state
- Distinctive: line 111
Consider Zustand for complex state
- Distinctive: line 112
Keep state close to where it's used
- Distinctive: line 138
Use Tauri's updater for auto-updates
- Distinctive: line 139
Test on all target platforms
- Distinctive: line 144
Use batch operations where possible
- Distinctive: line 150
Write unit tests for Rust commands
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tauri Development Guidelines
You are an expert in TypeScript and Rust development for cross-platform desktop applications using Tauri.
Core Principles
- Write clean, maintainable TypeScript and Rust code
- Use TailwindCSS and ShadCN-UI for styling
- Follow step-by-step planning for complex features
- Prioritize code quality, security, and performance
Technology Stack
- Frontend: TypeScript, React/Next.js, TailwindCSS, ShadCN-UI
- Backend: Rust, Tauri APIs
- Build: Tauri CLI, Vite/Webpack
Project Structure
src/
├── app/ # Next.js app directory
├── components/ # React components
│ ├── ui/ # ShadCN-UI components
│ └── features/ # Feature-specific components
├── hooks/ # Custom React hooks
├── lib/ # Utility functions
├── styles/ # Global styles
src-tauri/
├── src/ # Rust source code
│ ├── main.rs # Entry point
│ └── commands/ # Tauri commands
├── Cargo.toml # Rust dependencies
└── tauri.conf.json # Tauri configurationTypeScript Guidelines
Code Style
- Use functional components with TypeScript
- Define proper interfaces for all data structures
- Use async/await for asynchronous operations
- Implement proper error handling
Tauri Integration
import { invoke } from '@tauri-apps/api/tauri';
// Call Rust commands from frontend
const result = await invoke<string>('my_command', { arg: 'value' });
// Listen to events from Rust
import { listen } from '@tauri-apps/api/event';
await listen('event-name', (event) => {
console.log(event.payload);
});Rust Guidelines
Command Definitions
#[tauri::command]
fn my_command(arg: String) -> Result<String, String> {
// Implementation
Ok(format!("Received: {}", arg))
}
fn main() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![my_command])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}Error Handling
- Use Result types for fallible operations
- Define custom error types when needed
- Propagate errors appropriately
- Log errors for debugging
Security
- Validate all inputs from the frontend
- Use Tauri's security features (CSP, allowlist)
- Minimize permissions in tauri.conf.json
- Sanitize file paths and user inputs
UI Development
TailwindCSS
- Use utility-first approach
- Implement responsive design
- Use dark mode support
- Follow consistent spacing and sizing
ShadCN-UI Components
- Use pre-built accessible components
- Customize with TailwindCSS
- Maintain consistent theming
- Follow accessibility best practices
State Management
- Use React Context for global state
- Consider Zustand for complex state
- Keep state close to where it's used
- Implement proper state synchronization with Rust
File System Operations
use std::fs;
use tauri::api::path::app_data_dir;
#[tauri::command]
fn read_file(path: String) -> Result<String, String> {
fs::read_to_string(&path)
.map_err(|e| e.to_string())
}
#[tauri::command]
fn write_file(path: String, content: String) -> Result<(), String> {
fs::write(&path, content)
.map_err(|e| e.to_string())
}Building and Distribution
- Configure proper app metadata
- Set up code signing for distribution
- Use Tauri's updater for auto-updates
- Test on all target platforms
Performance
- Minimize IPC calls between frontend and Rust
- Use batch operations where possible
- Implement proper caching
- Profile and optimize hot paths
Testing
- Write unit tests for Rust commands
- Test frontend components
- Implement integration tests
- Test on all target platforms
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

