task-onboarding
/task-onboarding
Onboard a git repo onto tt worktree tasks — unique per-task ports and env templating. Use when the user asks to "onboard this repo for tasks", "set up tt tasks", "make worktrees get unique ports", or when a repo's tasks render an empty `.env` and it needs per-task ports. Requires the `tt` CLI on PATH.
- Author
- ChrisTowles ↗
- Repository
- towles-tool ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 26.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
Onboard a git repo onto tt worktree tasks — unique per-task ports and env templating. Use when the user asks to "onboard this repo for tasks", "set up tt tasks", "make worktrees get unique ports", or when a repo's tasks render an empty `.env` and it needs per-task ports. Requires the `tt` CLI on PATH.
Triggers from the description
Original author description
Onboard a git repo onto tt worktree tasks — unique per-task ports and env templating. Use when the user asks to "onboard this repo for tasks", "set up tt tasks", "make worktrees get unique ports", or when a repo's tasks render an empty `.env` and it needs per-task ports. Requires the `tt` CLI on PATH.
How it works
- 1. Discover what the repo needs per-task
- 2. Pick port pools that don't overlap other repos
- 3. Write the template
- 4. Run init and commit
- 5. Verify
SKILL.md preview
---
name: task-onboarding
description: Onboard a git repo onto tt worktree tasks — unique per-task ports and env templating. Use when the user asks to "onboard this repo for tasks", "set up tt tasks", "make worktrees get unique ports", or when a repo's tasks render an empty `.env` and it needs per-task ports. Requires the `tt` CLI on PATH.
---
# Onboard a repo onto tt worktree tasks
Goal: after this, `tt task new "Thing" --repo <name|dir> -b feat/thing` gives
every task of this repo its own rendered `.env` with unique ports, and
merged tasks clean up with `tt task rm` / `tt task clean`.
`tt task init` does the mechanical half (template sidecar, gitignoring
`.env`, rendering the primary checkout's `.env`). Your job is the judgment
half: figure out what this repo's tasks actually need templated, then run
init and verify.
Only `tt task new` and the app's `+` button create tasks. A worktree Claude
Code makes for itself (`claude --worktree`, a background agent) is its own
thing — no rendered `.env`, no ports, not in the rail.
## 1. Discover what the repo needs per-task
Look for anything two concurrent checkouts would collide on:
- Dev-server ports: vite/next/webpack config, `package.json` scripts,
`Procfile`, framework defaults (vite 5173, next 3000, rails 3000, …).
- `docker-compose.yml`: host port mappings, container/volume/network names,
database names.
- An existing `.env.example` / `.env.sample`: hardcoded ports and URLs.
- Setup: the repo's install command (lockfile detection covers plain
`npm/pnpm/yarn/bun install`; anything more needs `TT_TASK_SETUP`).
- Teardown: anything setup starts that removal can't already find on its
own — a docker compose stack not named after the task, an external
process, a scratch DB — needs `TT_TASK_TEARDOWN`. No fallback detection
here (unlike setup); unset means nothing runs.
A repo with none of these still onboards fine — init creates an empty
sidecar and tasks render an empty `.env`.
## 2. Pick port pools that don't overlap other repos
Claims are unique across a repo's own checkouts by construction, but there
is no machine-wide registry — two repos with overlapping pool ranges can
collide. Check the `${tt:port A-B}` ranges already used by the user's other
onboarded repos (grep their `.env.example` / `.claude/task-env.template`;
tracked checkouts are listed in the app rail) and
pick a distinct range per variable, sized ~20+ ports, ideally starting at
the app's default port (e.g. vite → `5173-5272`).
## 3. Write the template
Prefer a committed, tokenized `.env.example` (the convention); use the
`.claude/task-env.template` sidecar only when the repo shouldn't commit tt
tokens. Grammar (one token per value, comments never claim):
```sh
UI_PORT=${tt:port 5173-5272} # port-pool claim, unique per checkout
DB_NAME=myapp_${tt:task-name} # checkout dir basename
URL=http://localhost:${tt:var UI_PORT} # value rendered on an earlier line
BASE=${tt:base} # branch this task PRs into
TT_TASK_SETUP=bun install
#TT_TASK_TEARDOWN=docker compose down --volumes
```
Make the app actually read these env vars — a templated port nobody reads
changes nothing. Never leave a hardcoded port behind for anything a task
runs.
## 4. Run init and commit
```sh
tt task init # idempotent; renders primary/.env and prints claims
```
Commit what it changed plus your template: `.env.example` (or the sidecar)
and `.gitignore`.
## 5. Verify
```sh
tt task ls # primary listed with its claimed ports
tt task new "Task smoke" --repo . -b chore/task-smoke # renders .env, runs setup
tt task ports # every checkout's claims side by side, each probed for a listener
tt task rm chore-task-smoke # guarded removal works
```
Confirm the smoke task's `.env` got *different* ports than primary's (`tt
task ports` shows them side by side), then remove it.
Versions
The database has no other skills named task-onboarding.
Database snapshot: 13.11.2026 · package version aba37c1ee89a (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
- 100worktree
Manage git worktrees with their own dev ports, symlinked .env files, playground, and simulations. Use when the user asks to create, set up, list, enter, or remove a worktree. - 100git-worktree
Use Git worktrees to isolate parallel coding tasks. Use when setting up a task checkout, working in a shared repo, or managing existing worktrees. - 90izumo
Work on multi-repo tasks with the izumo CLI, one folder per task with one git worktree per repo. Use when the current directory, or a parent, has a .izumo file and the user starts, resumes, extends, checks or finishes a piece of work, asks about pull requests, CI, what shipped… - 100setup-repo
Initialize a worktree-based repo layout for parallel development. Creates a main worktree, a reviews worktree for PR reviews, and N numbered work branches. Handles .env creation, dependency installation, and branchlet config. TRIGGER when user asks to set up the repo from… - 100worktree
Use when managing git worktrees (list, create/switch, delete, configure) in this repo; prefer the git-wt subcommand for worktree operations and its configuration options. - 95worktree
Set up a new git worktree for parallel development. Creates the worktree, copies .env files, installs dependencies, and generates Prisma client. TRIGGER when user asks to set up a worktree, work on a branch in isolation, or needs a separate environment for a branch or PR.