원클릭으로
wtc
Use when user invokes /wtc to work with Docker Compose worktree isolation, start/stop infra per worktree, or check worktree status
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when user invokes /wtc to work with Docker Compose worktree isolation, start/stop infra per worktree, or check worktree status
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | wtc |
| description | Use when user invokes /wtc to work with Docker Compose worktree isolation, start/stop infra per worktree, or check worktree status |
| metadata | {"author":"0-sayed"} |
Zero-config Docker Compose isolation for git worktrees. Each worktree gets its own containers, ports, and volumes — no conflicts when running multiple branches simultaneously.
Repo: https://github.com/LevwTech/worktree-compose
remapped_port = 20000 + default_port + worktree_index
Worktree index comes from position in git worktree list. Run wtc ls to see current assignments.
The default formula 20000 + port + index creates collisions when services have consecutive ports:
Service ports: 8001, 8002, 8003, 8004
WT1: 28002, 28003, 28004, 28005
WT2: 28003, 28004, 28005, 28006 ← overlaps WT1
WT3: 28004, 28005, 28006, 28007 ← overlaps WT1 & WT2
Fix: Use index * 100 offset instead of just index:
WT1: 28101, 28102, 28103, 28104
WT2: 28201, 28202, 28203, 28204 ← no overlap
WT3: 28301, 28302, 28303, 28304 ← no overlap
After wtc start, run the fix script inside the worktree:
cd <worktree-path>
bash "${HOME}/.agents/skills/wtc/scripts/wtc-fix-ports"
The script auto-detects the worktree index from known infra ports (postgres, redis, etc.) and fixes ALL *_PORT variables in .env.
wtc isolates Docker infra. It does NOT guarantee database state.
After wtc start, before starting your app:
Do NOT assume a running database means migrations are applied or seed data exists.
CRITICAL: Always run wtc from the repo root, not from inside a worktree.
wtc ls # list all worktrees with indices, status, ports
wtc start 1 3 # start infra for worktrees by index
wtc stop 1 3 # stop (preserves volumes)
wtc restart 1 # stop → resync → rebuild → start
wtc promote 1 # copy worktree changes into current branch
wtc clean # stop all, remove all worktrees + prune Docker (DESTRUCTIVE)
# 1. From repo root
cd /path/to/repo
wtc ls # see worktree indices
wtc start <index> # start Docker infra
# 2. Move into worktree
cd <worktree-path>
# 3. Fix port collisions (if project has consecutive service ports)
bash "${HOME}/.agents/skills/wtc/scripts/wtc-fix-ports"
# 4. Check database readiness
# Run migrations/seeds if needed
# 5. Start app (project-specific)
# e.g., make dev, pnpm dev, npm run dev
These are project-specific — handle them via Makefile, scripts, or the repo's instructions file.
wtc can only remap ports declared with env var defaults:
# wtc can remap
ports:
- "${POSTGRES_PORT:-5432}:5432"
# wtc skips (hardcoded)
ports:
- "5432:5432"
wtc start runs docker compose up -d --build, which checks network for image updates. For fast startup after first run, use wtc-up script (see below).{
"mcpServers": {
"wtc": {
"command": "npx",
"args": ["wtc", "mcp"]
}
}
}
{
"sync": [".generated/prisma-client"],
"envOverrides": {
"VITE_API_URL": "http://localhost:${BACKEND_PORT}"
}
}
| Script | Purpose | When to use |
|---|---|---|
wtc-fix-ports | Fix port collisions | After wtc start, if project has consecutive service ports |
wtc-up | Fast startup (no --build) | Daily startup when images already exist |
wtc start always uses --build which checks network for base image updates. Use wtc-up for fast startup:
cd <worktree-path>
bash "${HOME}/.agents/skills/wtc/scripts/wtc-up"
When to use which:
wtc start <index> — First time setup, or after Dockerfile changeswtc-up — Daily startup, images already built, no network checksSee DECISIONS.md for the reasoning behind design decisions in this skill.
Source: 0-sayed/auto-pr — distributed by TomeVault.
Author or edit a Cate IDE theme — one data-driven theme covering app chrome colors, the terminal ANSI palette, and Monaco editor syntax tokens. Use when the user asks to create, customize, recolor, or generate a Cate theme, mentions a color scheme (Dracula, Nord, "make Cate look like X"), or wants a new light/dark theme. Use when this capability is needed.
一键发布 Markdown 到微信公众号草稿箱。基于 wenyan-cli,支持多主题、代码高亮、图片自动上传。 Use when this capability is needed.
Apply this skill when reviewing code changes, scope, risks, or verification gaps. Use when this capability is needed.
Apply this skill when Flutter widgets, screens, routing, state management, async UI, platform channels, assets, responsive layout, accessibility, or Flutter tests are created or changed. Use when this capability is needed.
Apply this skill when Rust source, Cargo metadata, features, traits, errors, ownership, async runtime, unsafe code, tests, examples, benchmarks, release profiles, MSRV, toolchain declarations, standard-library APIs, or public crate APIs are created or changed. Use when this capability is needed.
Install Claude Code skills from various sources. Use when this capability is needed.