Skip to main content

worktree-ports

Discover and use stable per-app ports assigned to a local monorepo worktree. Use when starting, opening, testing, or debugging local apps, or when worktree slots, localhost ports, PORT, app URLs, or .worktree-env.json are involved.

Source facts

Repository
FranciscoMoretti/chat-js
Last source activity
October 11, 2026 at 08:00
Detected SKILL.md language
English
Stars
1,200
Forks
124

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
6 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
worktree-ports
description
Discover and use stable per-app ports assigned to a local monorepo worktree. Use when starting, opening, testing, or debugging local apps, or when worktree slots, localhost ports, PORT, app URLs, or .worktree-env.json are involved.
# Worktree Ports - Run `bun dev:info --json` before accessing local apps. Use the returned app URLs; never assume a port. - Start apps through the root `bun dev*` scripts so `.env.worktree.local` and `.env.local` are loaded before the wrapper runs. - Set the slot environment variable declared in `.worktree-env.json` in a worktree-local environment file. - Keep app offsets unique and below the configured range stride. - Declare every variable an app needs under its `exports`, including `PORT`. - Configure cross-app environment variables with `{apps.<name>.url}` templates. The generic resolver and command wrapper are bundled in `scripts/`.
View on GitHub