Skip to main content

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.

来源信息

仓库
fastrepl/anarlog
最近来源活动
2026年7月29日 06:38
检测到的 SKILL.md 语言
英语
星标
9,474
分支
791

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
add-plugin
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.
metadata
{"internal":true}
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`.
在 GitHub 查看