orca-setup
/orca-setup
Configures a repository for Orca so every new worktree is ready to work: copies the gitignored env files from the main checkout and runs pnpm install. Use when the user asks to set up Orca, add or fix orca.yaml, configure worktree setup/archive hooks, or when a new Orca worktree is missing .env files or node_modules.
- Author
- dezkareid ↗
- Repository
- ai-team ↗
- Licence
- MIT
- Last repository change
- 16.10.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 16.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Configures a repository for Orca so every new worktree is ready to work: copies the gitignored env files from the main checkout and runs pnpm install. Use when the user asks to set up Orca, add or fix orca.yaml, configure worktree setup/archive hooks, or when a new Orca worktree is missing .env files or node_modules.
Original author description
Configures a repository for Orca so every new worktree is ready to work: copies the gitignored env files from the main checkout and runs pnpm install. Use when the user asks to set up Orca, add or fix orca.yaml, configure worktree setup/archive hooks, or when a new Orca worktree is missing .env files or node_modules.
How it works
- Overview
- Procedure
SKILL.md preview
--- name: orca-setup description: "Configures a repository for Orca so every new worktree is ready to work: copies the gitignored env files from the main checkout and runs pnpm install. Use when the user asks to set up Orca, add or fix orca.yaml, configure worktree setup/archive hooks, or when a new Orca worktree is missing .env files or node_modules." metadata: version: "0.0.1" --- ## Overview Orca runs each task in its own git worktree. A fresh worktree only contains tracked files, so gitignored env files (`.env`, `apps/*/.env.local`, ...) and `node_modules` are missing. This skill adds an `orca.yaml` to the repository root whose hooks fix that: - **`scripts.setup`** runs inside the new worktree after Orca creates it. It copies every gitignored `.env*` file from the main checkout into the worktree, keeping the same relative path, then runs `pnpm install --frozen-lockfile`. - **`scripts.archive`** runs before the worktree is archived or removed, and deletes `node_modules` to free disk space. All our repositories share the same stack (pnpm workspaces + turbo), so the same template in [references/orca.yaml](./references/orca.yaml) is reused everywhere. ### Orca facts this skill relies on - Setup and archive scripts receive `ORCA_ROOT_PATH` (main checkout), `ORCA_WORKTREE_PATH` (new worktree) and `ORCA_WORKSPACE_NAME`. - `.worktreeinclude` only accepts **literal, root-relative paths**. Orca skips glob (`*`, `?`) and negation (`!`) lines with a warning, so an entry such as `**/*.env.local` copies nothing. That is why env files are copied by the setup script instead. ## Procedure ### 1. Detect the stack Confirm the repository uses pnpm: `pnpm-lock.yaml` exists at the root or `package.json` has `"packageManager": "pnpm@..."`. If it does not, stop and tell the user that the template assumes pnpm and needs adapting (for example `npm ci` or `yarn install --immutable`). ### 2. Inspect the existing state - **`orca.yaml`**: if it exists, read it and merge into it. Keep any other keys (`worktree.sharedDirectories`, `environmentRecipes`, ...) and any extra setup steps the user already has, and fold the env copy plus `pnpm install` into the existing `scripts.setup`. Never overwrite the file blindly. - **`.worktreeinclude`**: if it exists, look for glob or negation lines. Remove them (or delete the file if nothing literal is left), and explain that Orca ignores them and that the setup script now covers env files. Keep literal entries for things that are not env files. ### 3. Preview the env files that will be copied From the repository root, list what the setup script will copy: ```bash find . \( -name node_modules -o -name .git -o -name .turbo -o -name .next -o -name dist \) -prune -o \ -type f -name '.env*' ! -name '*.example' ! -name '*.sample' ! -name '*.template' -print | while IFS= read -r f; do git check-ignore -q "$f" && echo "$f"; done ``` Show the list to the user and ask them to confirm it. Do **not** print or read the contents of these files, because they contain secrets. If the list is empty, say so: the setup still runs `pnpm install`, and env files will be picked up automatically once they exist in the main checkout. ### 4. Write `orca.yaml` Copy [references/orca.yaml](./references/orca.yaml) to the repository root (or merge it, per step 2). Adjust it only when the repository needs it: - Add extra build-output directories to the `-prune` list if the repo has other large ignored folders. - Append extra setup steps after `pnpm install` (for example a codegen step) only if the user asks for them. ### 5. Verify Dry-run the setup block against a throwaway worktree: ```bash git worktree add /tmp/orca-setup-check -b orca-setup-check export ORCA_ROOT_PATH="$PWD" ORCA_WORKTREE_PATH=/tmp/orca-setup-check # run the body of scripts.setup from orca.yaml here git worktree remove --force /tmp/orca-setup-check && git branch -D orca-setup-check ``` Check that the env files from step 3 now exist in the worktree, and that `pnpm install` finished. Alternatively, if Orca is running, create a real worktree with `orca worktree create --name orca-setup-check --json` and watch its Setup terminal (see the `orca-cli` skill), then remove it with `orca worktree rm`. ### 6. Commit Commit `orca.yaml` (and any `.worktreeinclude` change) using Conventional Commits, for example `chore: add orca.yaml worktree setup`. Never commit directly to `main` or `master`. Propose a branch first.
Files in this package (2)
- SKILL.md 4 KB
- references/orca.yaml 1 KB
Versions
The database has no other skills named orca-setup.
Database snapshot: 13.11.2026 · package version 4f7166200b7f (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100setting-up-worktree-hooks
Gives a repository one idempotent, repo-local worktree setup script (local env files, dependency install, build steps) that worktrunk's `.config/wt.toml` pre-start hook and Orca's `orca.yaml` scripts.setup both call, so every new git worktree is usable at once. Use when adding… - 100add-worktree
Sets up a second checkout of the repo for a branch, so you can work on it without touching the current working tree. Copies the gitignored files the project needs (dependencies, .env files, local config) from the main worktree and repairs node_modules/.bin links in pnpm repos.… - 100worktree
Use when creating or removing git worktrees for isolated parallel development. Handles provisioning of gitignored artifacts, env files, and post-create setup via jig.config.md configuration. - 100orca-cli-local
Applies local lessons to every use of the Orca CLI (orca-ide, orca-dev). Use alongside the upstream orca-cli skill whenever the Orca CLI is needed, including before creating a branch worktree or asking the user for feedback on a change before committing while running inside Orca. - 90worktrees
Use when creating, entering, checking, repairing or removing a git worktree, or when a worktree lacks dependencies, git hooks, skills or ignored files such as .env that the main checkout has. - 100orca-cli
Operate Orca-managed worktrees, folder contexts, terminals, repos, automations, artifacts, skill sharing, worktree comments, and Orca's embedded browser through the `orca` CLI. Use when the user says "$orca-cli", "Orca worktree", "child worktree", "spawn codex/claude in a…