用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/iamzhihuix/droid-account-manage --skill tauri-worker命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | tauri-worker |
| description | Implements Tauri features end-to-end (Rust commands + React components) |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
For features that involve both Rust backend logic and React frontend UI. This covers account management commands, quota queries, settings, auto-switch, and all UI components.
agent-browser — For verifying UI interactions in the Tauri WebView when the feature includes user-facing components.Read the feature description, AGENTS.md, and architecture.md. Understand what to build and what conventions to follow. Check preconditions.
Read existing code. Before writing anything, read the files you'll modify or extend. Understand the current command registration in lib.rs, the component structure in App.tsx, and any existing patterns.
Write Rust tests first (red). For any new Tauri command:
cd src-tauri && cargo test — confirm tests FAIL (red)Implement Rust backend (green). Write the command logic:
commands/account.rs (or appropriate module)commands/mod.rs and lib.rs#[tauri::command(rename_all = "camelCase")]Result<T, String> where T is a serializable structcd src-tauri && cargo test — confirm tests PASS (green)Write frontend tests first (red). For any new React component:
src/__tests__/ or co-locatedpnpm test:unit — confirm tests FAIL (red)Implement React frontend (green). Build the component:
t("key") from react-i18next — add keys to both en.json and zh.jsoninvoke() from @tauri-apps/api/core to call Rust commandspnpm test:unit — confirm tests PASS (green)Run validators. Execute all of:
cd src-tauri && cargo testpnpm test:unitpnpm typecheckManual verification via agent-browser. If the feature has UI:
pnpm tauri devinteractiveChecks entryCommit with a descriptive message.
{
"salientSummary": "Implemented add_account Tauri command (JWT decode + storage write) and AddAccountDialog React component. Paste JSON → instant preview of decoded user info → save to ~/.factory-accounts/. Verified via `cargo test` (5 passing), `pnpm test:unit` (3 passing), and agent-browser (paste JSON → see preview → click Add → appears in list).",
"whatWasImplemented": "Rust: add_account command in commands/account.rs that accepts JSON string, decodes JWT payload, writes to storage. React: AddAccountDialog component with textarea, live JWT preview, label input, and submit. Added i18n keys for en/zh. Integrated with react-query invalidation on success.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{ "command": "cd src-tauri && cargo test", "exitCode": 0, "observation": "5 tests passed including JWT decode, storage write, duplicate detection" },
{ "command": "pnpm test:unit", "exitCode": 0, "observation": "3 tests passed: dialog renders, preview shows on paste, error on invalid JSON"
pnpm tauri dev (build errors from prior features)