One-click install
npx skills add https://github.com/rdjakovic/todo2 --skill configuring-tauri-capabilities-rdjakovic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: configuring-tauri-capabilities
Source: https://github.com/rdjakovic/todo2/tree/main/.claude/skills/tauri-capabilities
Command: npx skills add https://github.com/rdjakovic/todo2 --skill configuring-tauri-capabilities-rdjakovic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers manage and configure security permissions for their Tauri applications, ensuring that only necessary APIs and commands are accessible to different parts of the application.

Core Features & Use Cases

  • Define Security Boundaries: Granularly control which APIs frontend code can access.
  • Per-Window Permissions: Assign different permission sets to different windows based on their labels.
  • Platform-Specific Configuration: Tailor capabilities for desktop and mobile environments.
  • Use Case: Secure a sensitive settings window by only allowing file read/write operations, while the main window has broader access to core application features.

Quick Start

Configure a new capability file named main-window.json in the src-tauri/capabilities/ directory to grant default core and file system permissions to the main window.

Frequently Asked Questions about configuring-tauri-capabilities

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure per-window permissions in a Tauri application?

Per-window permissions in Tauri are configured by creating JSON capability files in the src-tauri/capabilities/ directory, where you assign specific API permission sets to individual windows based on their labels.

What are Tauri capabilities and how do they control app security?

Tauri capabilities are security configurations that define boundaries for API access, ensuring frontend code can only interact with explicitly permitted commands and APIs, granting granular control over application security.

Can I set platform-specific security boundaries for Tauri apps?

Yes, you can configure platform-specific capabilities in Tauri to tailor permissions and security boundaries separately for desktop and mobile environments within your application.

How do I restrict API access for a specific window in Tauri?

To restrict API access for a specific window, define a capability file that targets the window's label and explicitly lists only the necessary core permissions, such as limiting a settings window to file read/write operations.

Do I need to understand JSON or TOML to configure Tauri capabilities?

Yes, understanding JSON and TOML configuration formats is required to define Tauri capabilities, as these formats are used to structure the permission sets and security boundaries for your application.