Skip to content
Back to skills

Jig Slots

ASecurity

Give a task its own git worktree, and show finished branches in a slot: a worktree with a warm dev server on offset dev and CDP ports. Use when work must run in parallel with other agents or app instances, or a flow asks for a worktree or a slot.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agentsnoderefactoringgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned November 12, 2026

npx -y skills add PetukhovArt/jig --skill jig-slots --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jig Slots?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Jig Slots
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/petukhovart-jig-slots/badge)](https://www.skillsdirectory.com/skills/petukhovart-jig-slots)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: jig-slots
description: "Give a task its own git worktree, and show finished branches in a slot: a worktree with a warm dev server on offset dev and CDP ports. Use when work must run in parallel with other agents or app instances, or a flow asks for a worktree or a slot."
---

# jig slots

`${CLAUDE_PLUGIN_ROOT}` is the plugin root when the agent sets it, otherwise the directory two levels above this file.

CLI: `node "${CLAUDE_PLUGIN_ROOT}/bin/jig.mjs" slot <new|show|release|ls|rm>` and `... worktree <seed|sweep|remove>`. Slot settings live in the `slots` section of `.jig/config.jsonc`, seed settings in its `worktree` section; a human edits both.

Terms:
- **worktree**: a separate tree where an agent edits the code of one feature.
- **slot**: a worktree with packages installed and the dev server always running, numbered 1 to 3. A slot shows a branch: `slot show <n> <branch>` checks the branch out detached (one hot reload) and installs when a lock file changed. New edits reach it by another `show`.

Pick the case and read only its reference:
- One worktree, no running app (tests, refactoring, analysis): `references/no-app.md`.
- Several agents in parallel, no running app: `references/parallel-no-app.md`.
- Slots with running app instances: `references/app-slots.md`.
- A background agent prepares a slot for you: `references/background.md`.
- The agent's own built-in worktrees: `references/native-worktrees.md`.

Rules for every case:
- One writer per worktree. Never run two agents in one checkout.
- `slot show` remembers who showed last and refuses a slot another session showed to in the last 2 hours (or that a plain `git checkout` moved). Your own session is never refused. Never pass `--force` to get past that: it breaks the other session's running work. Take another slot, ask the user, or `slot release <n>` when you are done with yours.
- A fresh worktree has only tracked files: `worktree seed <dir>` copies the ignored files and links from the main checkout. `slot new` seeds by itself.
- `slot new` prints the path, the slot number and the ports. Work only inside that path.
- Verify against the instance of your slot (its CDP port), not a neighbour's.
- Tear down what you started: `slot rm <n>` stops nothing for you; stop your processes by their ports first.
- `worktree sweep` sorts worktrees into buckets and deletes nothing. A bucket is advice: delete an item only after the user agrees to that item, with `worktree sweep --yes <path|slot>`.

Files in this skill

  • SKILL.md2.4 KB
  • agents/openai.yaml126 B
  • references/app-slots.md31.9 KB
  • references/background.md2.7 KB
  • references/native-worktrees.md3.3 KB
  • references/no-app.md1.1 KB
  • references/parallel-no-app.md2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.