Agent Skills › fastrepl/anarlog › add-plugin

add-plugin

GitHub

用于在 Tauri 仓库中通过 CLI 脚手架生成新插件,并自动配置 TypeScript、Rust 依赖及集成点,确保符合项目规范。

.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/anarlog-workflow/SKILL.md
.agents/skills/axum-test-transport/SKILL.md
.agents/skills/create-prs/SKILL.md
.agents/skills/fix-prs/SKILL.md
.agents/skills/fix-ready-prs/SKILL.md
.agents/skills/migrate-to-sqlite/SKILL.md
.agents/skills/new-changelog/SKILL.md
.agents/skills/no-use-effect/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-api/SKILL.md
.agents/skills/release-cli/SKILL.md
.agents/skills/release-docs/SKILL.md
.agents/skills/release-mcp/SKILL.md
.agents/skills/release-new-version/SKILL.md
.agents/skills/release-telemetry/SKILL.md
.agents/skills/sqlite-schema-design/SKILL.md
.agents/skills/sweep-workspace/SKILL.md
.agents/skills/testing/SKILL.md
.agents/skills/update-prs/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
.agents/skills/gitbutler/SKILL.md

Metadata

Files
0
Version
2660f77
Hash
2d24ae65
Indexed
2026-08-20 17:12

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-25 17:52
浙ICP备14020137号-1