ccem: Command for Claude Code

.claude/commands/add-tauri-command.md

add-tauri-command is a command for Claude Code from Genuifx/ccem. It costs 14 tokens per session (326 once invoked), scanned A, original, Apache-2.0.

A guided checklist for adding a Tauri command from start to finish. Tauri is a framework for building desktop apps with a web interface and native code; its commands let those parts communicate.

In plain words
What is it for?
It is for adding new Tauri inter-process communication commands across the project.
Why use it?
It reduces the chance of missing one of the steps needed to connect a new desktop-app command.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is Genuifx/ccem's own configuration. It tells Claude Code how to work on ccem itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ccem configures →

View source ↗ Genuifx/ccem
Reuse

Borrowing it

Nothing to install: this file belongs to Genuifx/ccem. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Genuifx/ccem/main/.claude/commands/add-tauri-command.md
Clone the repo
git clone --depth 1 https://github.com/Genuifx/ccem

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-tauri-command

README.md
[![agentmods](https://agentmods.dev/badge/commands/genuifx/ccem/add-tauri-command/github.svg)](https://agentmods.dev/commands/genuifx/ccem/add-tauri-command)
Your own site
<a href="https://agentmods.dev/commands/genuifx/ccem/add-tauri-command"><img src="https://agentmods.dev/badge/commands/genuifx/ccem/add-tauri-command/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-tauri-command

Your own site · 80×15
<a href="https://agentmods.dev/commands/genuifx/ccem/add-tauri-command"><img src="https://agentmods.dev/badge/commands/genuifx/ccem/add-tauri-command.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 326 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.00326
Opus 5.5 $0.00006 $0.00130
Sonnet 5.5 $0.00003 $0.00065
Haiku 4.5 $0.00001 $0.00033

Measured 1mo ago against content hash 25c40968d0ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-tauri-command scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/add-tauri-command.md · 31 lines

What it actually says

Add a new Tauri command: $ARGUMENTS

Follow this checklist:

1. Rust Backend

  • Define the #[tauri::command] function in apps/desktop/src-tauri/src/main.rs or its dedicated module
  • Add appropriate input/output types with Serialize/Deserialize
  • Register the command in .invoke_handler(tauri::generate_handler![...]) in main()
  • If it needs managed state, add State<'_, Arc<Manager>> parameter

2. TypeScript Types

  • Add request/response types to apps/desktop/src/lib/tauri-ipc.ts

3. IPC Bridge

  • Add the invoke wrapper function in apps/desktop/src/hooks/useTauriCommands.ts
  • Map snake_case response fields to camelCase
  • Update Zustand store if the command affects app state

4. Frontend

  • Call the new function from the appropriate page/component
  • Add i18n keys to both src/locales/zh.json and src/locales/en.json

5. Verify

  • Run cd apps/desktop && pnpm exec tsc --noEmit (type check)
  • Run cd apps/desktop/src-tauri && cargo check (Rust check)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 31 lines · 14 tokens per session scan A 25c40968d0ea

Subscribe to this mod's changes

add-tauri-command is a command published in the GitHub repository Genuifx/ccem (23 stars, last pushed today), licensed Apache-2.0. It adds 14 tokens to every session and 326 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.