Agent Skills
› fastrepl/anarlog
› add-plugin
add-plugin
GitHub用于在 Tauri 仓库中通过 CLI 脚手架生成新插件,并自动配置 TypeScript、Rust 依赖及集成点,确保符合项目规范。
Trigger Scenarios
用户请求添加或创建新的 Tauri 插件
需要在 plugins/ 目录下初始化插件结构
Install
npx skills add fastrepl/anarlog --skill add-plugin -g -y
SKILL.md
Frontmatter
{
"name": "add-plugin",
"metadata": {
"internal": true
},
"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."
}
Create a new plugin with:
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:
pnpm -F @anlg/plugin-<NAME> codegen
Finish by updating these integration points:
Cargo.tomlapps/desktop/src-tauri/Cargo.tomlapps/desktop/package.jsonapps/desktop/src-tauri/capabilities/default.json
Run pnpm i after updating apps/desktop/package.json.
Version History
- 2d4c6b1 Current 2026-08-20 17:12


