Agent Skillsfastrepl/anarlog › add-plugin

add-plugin

GitHub

用于在Tauri仓库中通过CLI脚手架生成新插件,并自动执行代码清理、配置更新、绑定生成及依赖安装等集成工作。

.agents/skills/add-plugin/SKILL.md fastrepl/anarlog

触发场景

用户请求创建新的Tauri插件 需要在plugins目录下生成插件骨架

安装

npx skills add fastrepl/anarlog --skill add-plugin -g -y
更多选项

非标准路径

npx skills add https://github.com/fastrepl/anarlog/tree/main/.agents/skills/add-plugin -g -y

不安装直接使用

npx skills use fastrepl/anarlog@add-plugin

指定 Agent (Claude Code)

npx skills add fastrepl/anarlog --skill add-plugin -a claude-code -g -y

安装 repo 全部 skill

npx skills add fastrepl/anarlog --all -g -y

预览 repo 内 skill

npx skills add fastrepl/anarlog --list

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

版本历史

  • 2d4c6b1 当前 2026-08-20 17:12

同 Skill 集合

.agents/skills/axum-test-transport/SKILL.md
.agents/skills/fix-ready-prs/SKILL.md
.agents/skills/migrate-to-sqlite/SKILL.md
.agents/skills/new-changelog/SKILL.md
.agents/skills/product-update-newsletter/SKILL.md
.agents/skills/qa-cli-mcp-api/SKILL.md
.agents/skills/qa-critical-ux/SKILL.md
.agents/skills/reactive-sqlite-ui/SKILL.md
.agents/skills/release-new-version/SKILL.md
.agents/skills/sqlite-schema-design/SKILL.md
.claude/skills/fix-ready-prs/SKILL.md
.claude/skills/product-update-newsletter/SKILL.md
.claude/skills/qa-critical-ux/SKILL.md
.claude/skills/release-new-version/SKILL.md
.cursor/skills/new-changelog/SKILL.md
.cursor/skills/qa-cli-mcp-api/SKILL.md
.cursor/skills/qa-critical-ux/SKILL.md
.cursor/skills/release-new-version/SKILL.md
agent-plugins/anarlog/skills/anarlog/SKILL.md
skills/anarlog/SKILL.md

元信息

文件数
0
版本
382d3cf
Hash
2d24ae65
收录时间
2026-08-20 17:12

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-21 15:45
浙ICP备14020137号-1