GitWand: Skill for Claude Code

.claude/skills/add-tauri-command/SKILL.md

add-tauri-command is a skill for Claude Code from devlint/GitWand. It costs 50 tokens per session (1,581 once invoked), scanned A, original, MIT.

A workflow for exposing Rust backend functionality to a Vue frontend through Tauri's command bridge. Tauri is a framework for desktop apps that can connect a web-based interface to native code.

In plain words
What is it for?
Use it to add a Tauri command, call it from a Vue component through the shared TypeScript wrapper, and pass data safely between Rust and the interface.
Why use it?
It helps keep backend and frontend changes aligned and applies checks for paths, external processes, Git commands, and command permissions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is devlint/GitWand's own configuration. It tells Claude Code how to work on GitWand 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 GitWand configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is let full = std::path::PathBuf::from(&cwd).join(&path); // "../../../etc/passwd" passe !.

Reuse

Borrowing it

Nothing to install: this file belongs to devlint/GitWand. 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/devlint/GitWand/main/.claude/skills/add-tauri-command/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/devlint/GitWand

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/skills/devlint/gitwand/add-tauri-command/github.svg)](https://agentmods.dev/skills/devlint/gitwand/add-tauri-command)
Your own site
<a href="https://agentmods.dev/skills/devlint/gitwand/add-tauri-command"><img src="https://agentmods.dev/badge/skills/devlint/gitwand/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/skills/devlint/gitwand/add-tauri-command"><img src="https://agentmods.dev/badge/skills/devlint/gitwand/add-tauri-command.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,581 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 54
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.00050 $0.01581
Opus 5.5 $0.00020 $0.00632
Sonnet 5.5 $0.00010 $0.00316
Haiku 4.5 $0.00005 $0.00158

Measured 2mo ago against content hash 3174f487230b, 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 2mo 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/skills/add-tauri-command/SKILL.md · 191 lines

How it starts

The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill : add-tauri-command

Ajouter une commande Tauri de bout en bout — Rust + TypeScript dans le même commit, sans trou de sécurité.

Les deux fichiers cibles sont toujours :

  • apps/desktop/src-tauri/src/lib.rs — implémentation Rust
  • apps/desktop/src/utils/backend.ts — wrapper TypeScript

Les composants et composables Vue ne doivent jamais appeler invoke() directement. Tout passe par backend.ts.


Étape 1 — Spécifier la commande

Avant d'écrire une ligne de code, répondre à ces questions :

Question Impact
Nom de la commande ? snake_case en Rust, camelCase en TS
Paramètres et leurs types ? Identifier ceux qui sont des chemins → safe_repo_path obligatoire
Type de retour ? Définir / réutiliser une interface TS dans types.ts
Spawne-t-elle un process externe ? Vérifier les capabilities Tauri
Exécute-t-elle git ? Règle .arg() obligatoire, jamais format!()

Étape 2 — Implémenter en Rust dans lib.rs

Appliquer les règles dans cet ordre exact :

2a. Tout paramètre chemin passe par safe_repo_path()

/// Retourne le contenu du fichier de config d'un repo.
#[tauri::command]
fn read_config_file(cwd: String, path: String) -> Result<String, String> {
    // ✅ TOUJOURS : valider le chemin avant tout usage
    let safe = safe_repo_path(&cwd, &path)
        .map_err(|e| e.to_string())?;
    let content = std::fs::read_to_string(&safe)
        .map_err(|e| e.to_string())?;
    Ok(content)
}
// ❌ JAMAIS : path traversal possible
fn read_config_file(cwd: String, path: String) -> Result<String, String> {
    let full = std::path::PathBuf::from(&cwd).join(&path); // "../../../etc/passwd" passe !
    Ok(std::fs::read_to_string(full).map_err(|e| e.to_string())?)
}

2b. Les commandes git utilisent .arg() séparé — jamais format!()

// ✅ Chaque argument est isolé : pas d'injection possible
let output = Command::new(git_binary())
    .arg("log")
    .arg("--oneline")
    .arg("-n").arg(&limit.to_string())
    .arg("--").arg(&safe_path)
    .current_dir(&cwd)
    .output()
    .map_err(|e| e.to_string())?;

Read the full file on GitHub · 191 lines

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. 2mo ago First seen · 191 lines · 50 tokens per session scan A 3174f487230b

Subscribe to this mod's changes

add-tauri-command is a skill published in the GitHub repository devlint/GitWand (194 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 1,581 once invoked, about $0.0002 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.

Related

add-tauri-command compared with skills from other repositories

add-tauri-command next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-tauri-commanddevlint/GitWandSkill194yesterdayMITA50Claude Code
hunk-launch-videomodem-dev/hunkSkill9.8kyesterdayMITA60Claude Code, Codex
hunk-releasemodem-dev/hunkSkill9.8kyesterdayMITA38Claude Code, Codex
csvx-cmd/x-cmdSkill4.7k6d agoApache-2.0A49Claude Code, Codex
printing-pressmvanhorn/cli-printing-pressSkill4.9kyesterdayMITA86Claude Code
git-macheteVirtusLab/git-macheteSkill1.1k3d agoMITA165Claude Code, Codex
better-t-stackAmanVarshney01/create-better-t-stackSkill5.9k13d agoMITA149Claude Code, Codex