Skip to content
cccskills
FreePublished on GitHub

tauri

构建、调试与发布 Tauri v2 应用的工程化工作流。覆盖项目初始化(create-tauri-app)、前端与 Rust 命令通信(`#[tauri::command]` + `invoke`)、状态管理、Capabilities 权限建模、插件接入、跨平台构建与问题排查。

当用户需求涉及“创建 Tauri 项目”“把 Web 前端接到 Rust 后端”“最小权限配置(fs/http/shell)”“接入 Tauri 官方插件”“执行 tauri dev/build”“排查 Tauri 构建或运行错误”时使用此 skill。

The English summary is being prepared. Showing the original description.

See how to install

Files included (8)

  • SKILL.md3.3 KB
  • agents/openai.yaml235 B
  • references/build-release.md940 B
  • references/command-state.md1.7 KB
  • references/plugins.md912 B
  • references/quickstart.md1.1 KB
  • references/security-capabilities.md1.6 KB
  • references/troubleshooting.md1.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Tauri

Overview

以“先跑通主流程,再收紧权限,再扩展插件”为原则执行 Tauri v2 任务。优先给出可执行命令、最小能力权限和可验证的验收步骤。

Workflow

  1. 确认目标:识别是新建项目、接入功能、配置权限、打包发布还是排障。
  2. 建立基线:优先创建最小可运行项目并执行 tauri dev。
  3. 打通通信:先实现一个最小 #[tauri::command] + invoke 闭环,再增加状态和异步逻辑。
  4. 收紧权限:按窗口/功能拆分 capability,只授予任务必需权限。
  5. 增量接入插件:先安装,再注册,再最小权限验证。
  6. 构建发布:按目标平台执行 tauri build,再处理签名、公证、安装包分发。

Decision Tree

  1. 需求是“从零创建或改造前端集成”:读取 references/quickstart.md。
  2. 需求是“Rust 命令、参数、异步、状态注入”:读取 references/command-state.md。
  3. 需求是“权限模型、capabilities、fs/http/shell 约束”:读取 references/security-capabilities.md。
  4. 需求是“官方插件接入流程与权限联动”:读取 references/plugins.md。
  5. 需求是“多平台构建、目标三元组、发布前检查”:读取 references/build-release.md。
  6. 需求是“dev/build 失败或运行异常”:读取 references/troubleshooting.md。

Execution Rules

  1. 优先使用项目已有包管理器(npm/pnpm/yarn/bun/cargo),避免混用。
  2. 在首次改动 Rust 命令后,立即执行一次前端 invoke 冒烟测试。
  3. 对 fs、http、shell 权限执行最小化配置,禁止“全开权限”作为默认方案。
  4. 在 capability 中显式绑定 windows,避免权限泄漏到不相关窗口/WebView。
  5. 在构建前检查 beforeDevCommand、beforeBuildCommand、frontendDist 与前端实际产物路径是否一致。
  6. 输出时同时给出:执行命令、改动文件、验证方式、回滚点。

Output Template

  1. Goal: 本次 Tauri 任务目标。
  2. Changes: 计划或已修改的文件与配置点。
  3. Commands: 按顺序可执行命令(先验证,后变更)。
  4. Verification: 最小验收步骤(dev 运行、命令调用、权限验证、build 结果)。
  5. Risk: 安全与发布风险(权限范围、平台差异、签名/公证缺口)。

References

仅按需读取,不要一次性加载全部文档:

  • 项目初始化与前端接入:references/quickstart.md
  • Rust 命令与状态管理:references/command-state.md
  • 权限模型与 capability:references/security-capabilities.md
  • 插件接入:references/plugins.md
  • 构建发布:references/build-release.md
  • 故障排查:references/troubleshooting.md

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Write and debug ast-grep rules for structural code search and rewrite. Use when tasks require AST-aware matching (not plain text), such as finding specific syntax shapes, relational patterns (inside/has), composite logic (all/any/not), or precise code refactors across a codebase.

The English summary is being prepared. Showing the original description.

BiFangKNT/mtga1.2KUpdated Jun 18, 2026

gh-cli

Free

使用 GitHub CLI (`gh`) 执行非交互式 GitHub 协作与自动化任务(PR、Issue、Actions、Release、API 查询/修改)。当用户要求“用 gh 命令完成任务”、需要结构化 JSON 输出(`--json`/`--jq`)、批量处理 PR/Issue(如“批量 review 多个 PR”)、按策略合并(如“检查通过后自动 squash 合并”)时使用此 skill。

The English summary is being prepared. Showing the original description.

BiFangKNT/mtga1.2KUpdated Jun 18, 2026

pwsh

Free

在 Windows PowerShell 5.1 与 PowerShell 7 中编写和执行稳定命令,重点处理引号、管道符、原生命令参数传递与跨版本兼容。遇到 `--jq`/过滤表达式被 PowerShell 误解析、同一命令在 pwsh5 与 pwsh7 行为不一致、或需要为 pwsh7.3+ 增加参数传递适配时使用此 skill。

The English summary is being prepared. Showing the original description.

BiFangKNT/mtga1.2KUpdated Jun 18, 2026

Maintain, debug, and recover MTGA's Trae native custom-model route. Use when Trae native integration fails, Trae updates shift ai_agent.dll hook offsets, errors such as 4028/4054/429 appear, native rewriter or SseOpenPayload URL rewriting needs diagnosis, or Codex needs to avoid repeating prior renderer-JS/private-protocol dead ends.

The English summary is being prepared. Showing the original description.

BiFangKNT/mtga1.2KUpdated Jun 18, 2026

UI/UX design intelligence with searchable database

The English summary is being prepared. Showing the original description.

BiFangKNT/mtga1.2KUpdated Jun 18, 2026

uv

Free

在 Windows/macOS/Linux 上使用 `uv` 执行 Python 运行、依赖同步、锁文件管理、Python 版本管理与工具命令(`uv run`、`uv sync`、`uv lock`、`uv python`、`uv tool`)。当任务涉及“用 uv 运行脚本/命令”“临时依赖(`--with`)”“锁文件一致性(`--locked`/`--frozen`)”“跨平台 shell(bash/zsh/PowerShell)下排查 uv 执行问题”时使用此 skill。

The English summary is being prepared. Showing the original description.

BiFangKNT/mtga1.2KUpdated Jun 18, 2026

See all skills by BiFangKNT

Report a problem with this skill