# Add Tauri Plugin

Scaffolds a new Tauri plugin under plugins/ with project conventions.

- Repository: https://github.com/fastrepl/anarlog (9738 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add fastrepl/anarlog --skill add-plugin -g -a claude-code -y`
Codex: `npx skills add fastrepl/anarlog --skill add-plugin -g -a codex -y`
Cursor: `npx skills add fastrepl/anarlog --skill add-plugin -g -a cursor -y`
Gemini CLI: `npx skills add fastrepl/anarlog --skill add-plugin -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add fastrepl/anarlog`

## Description

Scaffold a new Tauri plugin in this repository when asked to add or create a plugin under `plugins/`. Use this for plugin generation and repository integration work, not for editing an existing plugin unless the request is specifically about bringing a freshly generated plugin in line with project conventions.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

Create a new plugin with:

```bash
npx @tauri-apps/cli plugin new NAME \
--no-example \
--directory ./plugins/NAME
```

Decide `NAME` from the user request, then run the generator.

Follow the style and conventions used in `plugins/analytics`:

- remove generated `rollup.config.js`
- remove generated `README.md`
- update `tsconfig.json`
- update `package.json`

If the user does not ask for different command behavior, keep the single `ping` function in both `ext.rs` and `commands.rs`.

After the code changes are in place, generate bindings:

```bash
pnpm -F @anlg/plugin-<NAME> codegen
```

Finish by updating these integration points:

- `Cargo.toml`
- `apps/desktop/src-tauri/Cargo.toml`
- `apps/desktop/package.json`
- `apps/desktop/src-tauri/capabilities/default.json`

Run `pnpm i` after updating `apps/desktop/package.json`.

