Agent Skills
› fastrepl/anarlog
› add-plugin
add-plugin
GitHub用于在Tauri仓库中通过CLI脚手架生成新插件,并自动执行代码清理、配置更新、绑定生成及依赖安装等集成工作。
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


