Install
npx skillscat add agora-mc/agora-launcher/kilo-skills-tauri-security Install via the SkillsCat registry.
SKILL.md
Tauri Security
Security rules for the Agora desktop app. Apply these whenever modifying desktop/ configuration or code.
Capability Scoping
- Use explicit, narrow capability patterns. Prefer path literals over globs for privileged APIs.
- Never grant
sql:allow-executeor arbitrary SQL execution. SQL belongs inagora-corebehindrusqliteprepared statements, not in a frontend-reachable plugin. - Shell and HTTP permissions require explicit allow-lists; use
denyas the default and add scopes one-by-one.
Shell / URL Scopes
- Open external URLs only through the system browser API with target
_blank. - Restrict shell commands to a fixed allow-list (e.g., the official Mojang launcher binary path), never a wildcard.
Content Security Policy
- Keep the CSP tight: restrict
script-src,style-src, andconnect-src. - Treat all mod metadata, reviews, curator notes, and crash logs as untrusted user content; render them as plain text or escaped JSX. Never use
dangerouslySetInnerHTML.
Database Security
- All SQL queries must use parameter binding, and all of them live in
agora-core. - Treat
registry.dbas read-only andlocal_state.dbas read-write. Version both schemas.
Secrets & OAuth
- Never write
GITHUB_TOKEN, OAuth tokens, or signing keys to files or logs. - Store OAuth tokens in the platform keychain via Tauri secure APIs; load at runtime into memory.
- The Ed25519 signing key (
ED25519_PRIVATE_KEY) is for CI only and must never be bundled with the app.
Modpack Sandboxing
- Validate override archives before extraction; reject files with executable extensions or absolute paths.