mcpbeat

Setup Worktree

temporalio/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

394 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
423
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/temporalio/ui --skill setup-worktree

The instruction itself

6 sections, as written by the author

Purpose

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.

Steps

1. Find the main worktree path

git worktree list

The first entry is the main worktree. Use it as $MAIN.

2. Copy .env from the main worktree

MAIN=$(git worktree list | head -1 | awk '{print $1}')
cp $MAIN/.env ./.env

3. Build server assets

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.

Why each step is needed

| 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 |

How to use it

Copy the folder

Take temporalio/setup-worktree from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.