Agent Skillsfastrepl/anarlog › add-plugin

add-plugin

GitHub

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

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

Trigger Scenarios

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

Install

npx skills add fastrepl/anarlog --skill add-plugin -g -y
More Options

Non-standard path

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

Use without installing

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.

Version History

  • 2d4c6b1 Current 2026-08-20 17:12

Same Skill Collection

.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

Metadata

Files
0
Version
382d3cf
Hash
2d24ae65
Indexed
2026-08-20 17:12

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 02:56
浙ICP备14020137号-1 $お客様$