Skip to content
Skills Library
Programming · Tool integration

worktrees-and-dev-servers

/worktrees-and-dev-servers

Use when working with the repo's moonx root:wt worktree helper, Pierre-managed worktrees, dev-server port offsets, stale server cleanup, Playwright fixtures, or Chrome debug instances. Do not use this as a substitute for host-provided workspace isolation.

Repository
pierre ↗
Licence
Apache-2.0
Last repository change
27.10.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Use when working with the repo's moonx root:wt worktree helper, Pierre-managed worktrees, dev-server port offsets, stale server cleanup, Playwright fixtures, or Chrome debug instances. Do not use this as a substitute for host-provided workspace isolation.

Original author description

Use when working with the repo's moonx root:wt worktree helper, Pierre-managed worktrees, dev-server port offsets, stale server cleanup, Playwright fixtures, or Chrome debug instances. Do not use this as a substitute for host-provided workspace isolation.

How it works

  1. Worktree Commands
  2. Cleanup Contract
Original SKILL.md headings · 51 lines, 295 words
SKILL.md preview
---
name: worktrees-and-dev-servers
description:
  Use when working with the repo's moonx root:wt worktree helper, Pierre-managed
  worktrees, dev-server port offsets, stale server cleanup, Playwright fixtures,
  or Chrome debug instances. Do not use this as a substitute for host-provided
  workspace isolation.
---

# Worktrees and Dev Servers

Pierre includes a repo-specific `git worktree` helper for local/manual
parallelization outside host-managed agent workspaces. Managed Pierre worktrees
live at:

```text
~/pierre/pierre-worktrees/<slug>/
```

Each managed Pierre worktree owns a port offset so dev servers, E2E fixtures,
and the Chrome remote-debug instance do not collide. The main clone keeps
historical default ports; linked Pierre worktrees shift ports.

If you are already inside a Conductor, Codex, Claude, or other host-provided
workspace, do not create another worktree unless the user explicitly asks for a
Pierre-managed worktree. Still use this skill when you start repo dev servers or
E2E fixtures, because the cleanup and port-offset rules apply to those scripts.

## Worktree Commands

The `wt` suite is defined in `scripts/wt.ts`, exposed as the `root:wt` moon
task, and manages only Pierre-managed worktrees:

```bash
moonx root:wt -- new <slug>    # create a worktree, allocate offset, pnpm install
moonx root:wt -- rm <slug>     # kill its processes, remove the worktree
moonx root:wt -- clean         # kill zombie servers on all managed worktree ports
moonx root:wt -- clean <slug>  # clean one managed worktree
moonx root:wt -- ps            # show per-worktree port status (LISTEN / -)
moonx root:wt -- list          # summary of managed + external worktrees
```

Port-binding moon tasks read the offset from `<worktree>/.env.worktree` via
their `envFile` option. Before starting, dev tasks run `scripts/run-dev.sh` to
kill any stale process bound to the target port.

## Cleanup Contract

If you start dev servers, Playwright fixtures, or Chrome debug instances inside
a worktree, run cleanup before completing your turn:

```bash
moonx root:wt -- clean <slug>
```

Use `moonx root:wt -- clean` when you do not know the slug or need to clean
every managed worktree. Use `moonx root:wt -- rm <slug>` only when intentionally
tearing down the worktree itself.

Versions

The database has no other skills named worktrees-and-dev-servers.

Database snapshot: 13.11.2026 · package version 5f01ba531ab6 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 93dev-server
    Manage Next.js dev servers across worktrees, and the worktrees themselves — create one (`wt new`), find finished ones (`wt stale`), remove them (`wt rm`). Start, stop, and read logs from dev servers. Agents can access logs from any running session, regardless of who started it.…
  • 85worktree-help
    Answer questions about the worktree toolkit: VSCode integration, gitignore, port offsets, env files, dependency installs, workflow tips. Use when user asks how worktrees work, "how do I open this in VSCode", "why is .env copied", "what about port collisions", "how do worktrees…
  • 100worktree
    Create, inspect, and safely remove git worktrees for repos under the workspace root (WORKSPACE_ROOT, default ~/git), enforcing the worktree-first policy and the no-stale-worktree guarantee. Use whenever you are about to make a change that will be committed, when the user says…
  • 86worktrees
    Rules for working inside an ramify git worktree. Use whenever the project root has a .worktree.env file, or before starting a dev server, running xcodebuild, switching branches, merging or pushing.
  • 95dev_manage_git-worktrees
    Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification. Triggers: worktree, git worktree, isolated workspace, feature branch…
  • 100worktree-cleanup
    Batch cleanup across MULTIPLE stale worktrees and orphaned branches. Use when tidying up accumulated worktrees, asking about old branches, cleaning up the workspace, or saying "stale worktrees", "orphan branches", "prune worktrees", "clean up old branches", "purge stale…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.