# Add Plugin

> 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: `fastrepl/add-plugin` (Agent Skill)
- Install (CLI): `npx skillmds@latest add fastrepl/add-plugin`
- Raw SKILL.md: https://api.skillmd.com/api/skills/fastrepl/add-plugin/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: fastrepl (https://skillmd.com/u/fastrepl)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/fastrepl/add-plugin

---


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`.

