Scaffold Worker
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
When to Use This Skill
For features that initialize or significantly restructure the project skeleton: creating the Tauri app, setting up build tooling, configuring CSS frameworks, adding foundational libraries.
Required Skills
None
Work Procedure
Read the feature description carefully. Understand exactly what needs to be scaffolded.
Check existing state. Read package.json, Cargo.toml, and directory structure to understand what already exists vs. what needs to be created.
Execute setup commands. Run the scaffolding commands (create-tauri-app, pnpm install, etc.). Verify each command succeeds before proceeding.
Configure files. Edit vite.config.ts, tsconfig.json, tailwind.config.cjs, components.json, etc. per the spec requirements. Reference the cc-switch project at /Users/happypeet/Documents/Github/cc-switch/ for exact configuration patterns.
Create foundational files. Set up directory structure, create placeholder files (index.css with Tailwind directives, main.tsx with providers, etc.).
Verify the build. Run:
pnpm tauri dev — verify it starts without errors (kill after confirming)
cd src-tauri && cargo check — verify Rust compiles
pnpm typecheck — verify TypeScript compiles
Write baseline tests. Create at least one trivial test for Rust (cargo test) and one for frontend (vitest) to confirm test infrastructure works.
Commit with a descriptive message.
Example Handoff
{
"salientSummary": "Scaffolded Tauri 2 + React 18 + Vite project with TailwindCSS 3, shadcn/ui (button, card, dialog, badge, progress, switch, input, sonner, scroll-area), i18next (en/zh), and theme provider. Ran `pnpm tauri dev` successfully, `cargo check` passed, `pnpm typecheck` passed.",
"whatWasImplemented": "Complete project skeleton: Tauri 2.8 with React 18 + Vite 7, TailwindCSS 3 with shadcn/ui components, i18next with en.json and zh.json locale files, ThemeProvider, react-query setup, path aliases, vite dev server on port 1420.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{ "command": "pnpm tauri dev (started, verified window opens, killed)", "exitCode": 0, "observation": "Tauri window opened with React app, no console errors" },
{ "command": "cd src-tauri && cargo check", "exitCode": 0, "observation": "Compiles with no errors or warnings" },
{ "command": "pnpm typecheck", "exitCode": 0, "observation": "No TypeScript errors" },
{ "command": "cd src-tauri && cargo test", "exitCode": 0, "observation": "1 test passed" },
{ "command": "pnpm test:unit", "exitCode": 0, "observation": "1 test passed" }
],
"interactiveChecks": []
},
"tests": {
"added": [
{ "file": "src-tauri/src/lib.rs", "cases": [{ "name": "test_app_compiles", "verifies": "basic compilation" }] },
{ "file": "src/__tests__/setup.test.ts", "cases": [{ "name": "vitest works", "verifies": "test infrastructure" }] }
]
},
"discoveredIssues": []
}
When to Return to Orchestrator
pnpm create tauri-app fails or produces unexpected output
- Rust compilation fails due to missing system dependencies
- Cannot install Tauri CLI
Source: iamzhihuix/droid-account-manage — distributed by TomeVault.
1---2name: scaffold-worker3description: Initializes the Tauri 2 project with React, TailwindCSS, shadcn/ui, and i18n from scratch Use when this capability is needed.4---56# Scaffold Worker78NOTE: Startup and cleanup are handled by `worker-base`. This skill defines the WORK PROCEDURE.910## When to Use This Skill1112For features that initialize or significantly restructure the project skeleton: creating the Tauri app, setting up build tooling, configuring CSS frameworks, adding foundational libraries.1314## Required Skills1516None1718## Work Procedure19201. **Read the feature description carefully.** Understand exactly what needs to be scaffolded.21222. **Check existing state.** Read package.json, Cargo.toml, and directory structure to understand what already exists vs. what needs to be created.23243. **Execute setup commands.** Run the scaffolding commands (create-tauri-app, pnpm install, etc.). Verify each command succeeds before proceeding.25264. **Configure files.** Edit vite.config.ts, tsconfig.json, tailwind.config.cjs, components.json, etc. per the spec requirements. Reference the cc-switch project at `/Users/happypeet/Documents/Github/cc-switch/` for exact configuration patterns.27285. **Create foundational files.** Set up directory structure, create placeholder files (index.css with Tailwind directives, main.tsx with providers, etc.).29306. **Verify the build.** Run:31 - `pnpm tauri dev` — verify it starts without errors (kill after confirming)32 - `cd src-tauri && cargo check` — verify Rust compiles33 - `pnpm typecheck` — verify TypeScript compiles34357. **Write baseline tests.** Create at least one trivial test for Rust (cargo test) and one for frontend (vitest) to confirm test infrastructure works.36378. **Commit with a descriptive message.**3839## Example Handoff4041```json42{43 "salientSummary": "Scaffolded Tauri 2 + React 18 + Vite project with TailwindCSS 3, shadcn/ui (button, card, dialog, badge, progress, switch, input, sonner, scroll-area), i18next (en/zh), and theme provider. Ran `pnpm tauri dev` successfully, `cargo check` passed, `pnpm typecheck` passed.",44 "whatWasImplemented": "Complete project skeleton: Tauri 2.8 with React 18 + Vite 7, TailwindCSS 3 with shadcn/ui components, i18next with en.json and zh.json locale files, ThemeProvider, react-query setup, path aliases, vite dev server on port 1420.",45 "whatWasLeftUndone": "",46 "verification": {47 "commandsRun": [48 { "command": "pnpm tauri dev (started, verified window opens, killed)", "exitCode": 0, "observation": "Tauri window opened with React app, no console errors" },49 { "command": "cd src-tauri && cargo check", "exitCode": 0, "observation": "Compiles with no errors or warnings" },50 { "command": "pnpm typecheck", "exitCode": 0, "observation": "No TypeScript errors" },51 { "command": "cd src-tauri && cargo test", "exitCode": 0, "observation": "1 test passed" },52 { "command": "pnpm test:unit", "exitCode": 0, "observation": "1 test passed" }53 ],54 "interactiveChecks": []55 },56 "tests": {57 "added": [58 { "file": "src-tauri/src/lib.rs", "cases": [{ "name": "test_app_compiles", "verifies": "basic compilation" }] },59 { "file": "src/__tests__/setup.test.ts", "cases": [{ "name": "vitest works", "verifies": "test infrastructure" }] }60 ]61 },62 "discoveredIssues": []63}64```6566## When to Return to Orchestrator6768- `pnpm create tauri-app` fails or produces unexpected output69- Rust compilation fails due to missing system dependencies70- Cannot install Tauri CLI7172---73> Source: [iamzhihuix/droid-account-manage](https://github.com/iamzhihuix/droid-account-manage) — distributed by [TomeVault](https://tomevault.io).74<!-- tomevault:4.0:skill_md:2026-06-24 -->