con un clic
setup-worktree
// Set up a new git worktree for this repo by copying gitignored files (bin/) and building server assets so pnpm dev works without errors
// Set up a new git worktree for this repo by copying gitignored files (bin/) and building server assets so pnpm dev works without errors
Instructions for running the UI against a local Temporal server build instead of the built-in CLI dev server. Use when asked how to start the dev environment, run the UI locally, or connect to a local Temporal repo.
Test OAuth2 token refresh and session expiry locally. Use when working on auth, tokens, SSO, OIDC, or session management features.
Migrate a Svelte 4 component to Svelte 5 runes syntax. Use when asked to migrate, convert, or upgrade a .svelte file to Svelte 5.
| name | setup-worktree |
| description | Set up a new git worktree for this repo by copying gitignored files (bin/) and building server assets so pnpm dev works without errors |
When a new git worktree is created, gitignored files (like the Temporal CLI binary in bin/) are missing and server assets haven't been built. Run this skill to get a new worktree ready for development.
git worktree list
The first entry is the main worktree. Use it as $MAIN.
MAIN=$(git worktree list | head -1 | awk '{print $1}')
cp $MAIN/.env ./.env
Builds the frontend into server/ui/assets/ which the Go server embeds. Required for pnpm dev to start.
pnpm build:server
pnpm dev should now start without errors.
| Step | Why |
|---|---|
Copy .env | Gitignored — not present in a fresh worktree, needed for dev modes |
pnpm build:server | Runs VITE_API= BUILD_PATH=server/ui/assets/local vite build — without this, pnpm dev fails because the embedded server assets are missing |