Worktrees
GetStream/stream-chat-react
Creates and manages git worktrees for isolated plan execution.
Automate berth with hooks — run a command when something happens (an agent finishes or needs the user, a worktree is created or removed, a session starts) or gate an action with a before: hook that…
$ npx skills add sean-brydon/berthd --skill berth-hooks -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install sean-brydon/berthd berth-hooks --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/sean-brydon/berthd.git skills-src && mkdir -p .claude/skills && cp -r skills-src/internal/integrations/skills/berth-hooks .claude/skills/berth-hooks && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "berth-hooks" agent skill from https://github.com/sean-brydon/berthd/tree/main/internal/integrations/skills/berth-hooks into .claude/skills/berth-hooks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "berth-hooks", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/sean-brydon/berthd/tree/main/internal/integrations/skills/berth-hooksType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add sean-brydon/berthd --skill berth-hooks -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install sean-brydon/berthd berth-hooks --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sean-brydon/berthd.git skills-src && mkdir -p .agents/skills && cp -r skills-src/internal/integrations/skills/berth-hooks .agents/skills/berth-hooks && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "berth-hooks" agent skill from https://github.com/sean-brydon/berthd/tree/main/internal/integrations/skills/berth-hooks into .agents/skills/berth-hooks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "berth-hooks", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sean-brydon/berthd --skill berth-hooks -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install sean-brydon/berthd berth-hooks --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sean-brydon/berthd.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/internal/integrations/skills/berth-hooks .cursor/skills/berth-hooks && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "berth-hooks" agent skill from https://github.com/sean-brydon/berthd/tree/main/internal/integrations/skills/berth-hooks into .cursor/skills/berth-hooks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "berth-hooks", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/sean-brydon/berthd.git --path internal/integrations/skills/berth-hooks--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add sean-brydon/berthd --skill berth-hooks -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install sean-brydon/berthd berth-hooks --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sean-brydon/berthd.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/internal/integrations/skills/berth-hooks .gemini/skills/berth-hooks && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "berth-hooks" agent skill from https://github.com/sean-brydon/berthd/tree/main/internal/integrations/skills/berth-hooks into .gemini/skills/berth-hooks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "berth-hooks", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install sean-brydon/berthd berth-hooksInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add sean-brydon/berthd --skill berth-hooks -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/sean-brydon/berthd.git skills-src && mkdir -p .github/skills && cp -r skills-src/internal/integrations/skills/berth-hooks .github/skills/berth-hooks && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "berth-hooks" agent skill from https://github.com/sean-brydon/berthd/tree/main/internal/integrations/skills/berth-hooks into .github/skills/berth-hooks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "berth-hooks", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sean-brydon/berthd --skill berth-hooks -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install sean-brydon/berthd berth-hooks --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sean-brydon/berthd.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/internal/integrations/skills/berth-hooks .opencode/skills/berth-hooks && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "berth-hooks" agent skill from https://github.com/sean-brydon/berthd/tree/main/internal/integrations/skills/berth-hooks into .opencode/skills/berth-hooks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "berth-hooks", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
berth-hooksAutomate berth with hooks — run a command when something happens (an agent finishes or needs the user, a worktree is created or removed, a session starts) or gate an action with a before: hook that…
Berth Hooks is an agent skill from sean-brydon/berthd. Automate berth with hooks — run a command when something happens (an agent finishes or needs the user, a worktree is created or removed, a session starts) or gate an action with a before: hook that can refuse it. Covers where hooks live (a repository's .berth/config.json, a box, the laptop), the event catalog, the variables hooks get, and how to test them. Use when the user asks to automate a workflow, react to agents or worktrees, block something, or set up per-worktree databases and ports.
Its SKILL.md is about 940 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Git worktrees. It works with React. The repository describes itself as: Run coding agents on your dev boxes: worktrees, terminals, orchestration, kits and automations, with a desktop app. The licence is MIT.
Read from SKILL.md and the folder at commit fc5b184. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are json and bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Berth Hooks loads about 944 tokens when it runs. Until then it costs about 127 tokens; SKILL.md has 318 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from sean-brydon/berthd at commit fc5b184, republished under its MIT licence (© sean-brydon). 318 words, ~944 tokens.
.claude/skills/berth-hooks/SKILL.md (or your agent's skills folder).A hook runs a shell command when an event happens. A hook whose on starts
with before: runs first and can refuse the action by exiting non-zero; what
it prints becomes the error everyone sees.
{ "hooks": [
{ "on": "agent.waiting", "run": "notify-send \"$BERTH_PATH needs you\"" },
{ "on": "worktree.*", "run": "echo \"$BERTH_EVENT $BERTH_NAME\" >> ~/worktrees.log" },
{ "on": "before:worktree.create", "run": "case \"$BERTH_BRANCH\" in main|master) echo 'not on main'; exit 1;; esac" }
] }on is an event type, a prefix like worktree.*, or *. Optional:
timeout (30s, 5m; default 1m, 30s for gates) and tool (a hook with
"tool": "slack" skips events whose origin is slack, which stops loops).
| Scope | File | Runs | Good for |
|---|---|---|---|
| A repository | hooks in .berth/config.json (or the box's config for the location) | on the box, only for that repo's events, in the worktree with its environment | per-worktree databases, seeding, codegen |
| A box | ~/.berth/hooks.json on the box | on the box, for every event there | box-wide policy, logging |
| The laptop | ~/.berth/hooks.json on the laptop | on the laptop, for events from every box | notifications, opening things locally |
Repository hooks get the worktree's variables ($BERTH_WORKTREE_PATH,
$BERTH_WORKTREE_SLUG, $BERTH_PORT, …) plus the repository's env. Prefer
setup / archive in .berth/config.json for one-time worktree setup and
teardown; use hooks for reactions to other events.
{"type","time","box","origin","data":{…}}.BERTH_EVENT, BERTH_EVENT_BOX, BERTH_EVENT_ORIGIN, and each data field
upper-cased: BERTH_PATH, BERTH_NAME, BERTH_LOCATION, BERTH_BRANCH, …worktree.created, worktree.removed, worktree.setup.{started,finished,failed},
worktree.archive.{started,finished,failed}, task.created,
session.started, session.stopped, session.sent,
agent.ready (idle at its prompt), agent.started, agent.waiting (needs a
human), agent.finished, service.started, service.stopped,
exec.finished, preview.open, location.added, location.removed, config.changed,
share.started, share.stopped, and on the laptop box.connected,
box.disconnected, forward.*.
Gates: before:worktree.create, before:worktree.remove,
before:task.create, before:session.start, before:session.stop,
before:session.send, before:exec, before:location.add,
before:config.change, before:skills.install, before:skills.uninstall.
berthd events # watch events arrive (Ctrl-C to stop)
berthd emit agent.finished path="$PWD" # fire one to try a hook.berth/config.json; use the box's own
config for the location, or read them from the environment at run time.© sean-brydon, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in internal/integrations/skills/berth-hooks of sean-brydon/berthd.
Open the folder on GitHubat commit fc5b184
Berth Hooks next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Berth Hooks this skillsean-brydon/berthd | 286 | — | ~944 | Automated safety check: Pass | MIT | |
| WorktreesGetStream/stream-chat-react | 845 | — | ~794 | Automated safety check: Pass | Custom licence | |
| React Refactor Tournamentragnar-pwninskjold/tech-snacks | 137 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Vercel Composition Patternssupabase/supabase | 111k | 58 repos | ~726 | Automated safety check: Pass | MIT | |
| Finishing a Development Branchobra/superpowers | 297k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Electron Multi-Process ArchitectureiOfficeAI/AionUi | 33k | 1 repos | ~1.8k | Automated safety check: Pass | Apache-2.0 |
GetStream/stream-chat-react
Creates and manages git worktrees for isolated plan execution.
ragnar-pwninskjold/tech-snacks
Review React/Next.js code against the real vercel-react-best-practices skill, backlog the performance findings keyed to actual rule ids + impact tiers, rank the most over-subscribed tiers, then fix…
supabase/supabase
React composition patterns that scale. An agent skill from supabase/supabase.
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
iOfficeAI/AionUi
Tells the agent where new code belongs in an Electron multi-process project and which APIs each process may use, with rules for new bridges, services, agents and workers.
tinyhumansai/openhuman
Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.
sean-brydon/berthd
Use berth to work across development boxes — list repos (locations) and their worktrees, make a worktree or a task (a worktree with an agent in it), start or read terminal sessions, find which port…
sean-brydon/berthd
Show the user data as a chart, table, diagram, notes or one small page in their Shipyard app instead of a wall of text — write a berth.chart JSON, a CSV, Mermaid, Markdown or a self-contained HTML…
sean-brydon/berthd
Use your worktree's own page in a headless browser on the box — open it, read a compact snapshot with @refs, click, fill, press keys, wait, take a screenshot to a file, read console errors, and set…
sean-brydon/berthd
Drive other coding agents through berth — prompt a running agent, wait for its turn to end, run a check in its worktree, loop until a check passes, hand work to a fresh agent in a new worktree, ask…
sean-brydon/berthd
Run a worktree's dev server on its own port and show the page to the user in their Shipyard app — start the app on $BERTHPORT, check it answers, and open it as a browser tab next to your terminal…
sean-brydon/berthd
Check what your change did to a web app's pages before you say you're done — berthd shots compare screenshots your worktree's dev server and the main checkout's at phone, tablet and desktop widths…
Works with
Categories
Automate berth with hooks — run a command when something happens (an agent finishes or needs the user, a worktree is created or removed, a session starts) or gate an action with a before: hook that…. Berth Hooks is an agent skill from sean-brydon/berthd. Automate berth with hooks — run a command when something happens (an agent finishes or needs the user, a worktree is created or removed, a session starts) or gate an action with a before: hook that can refuse it.
Berth Hooks fits situations like: the user asks to automate a workflow; React to agents; block something; set up per-worktree databases and ports.
Run `npx skills add sean-brydon/berthd --skill berth-hooks -a claude-code`. Or copy the skill folder (internal/integrations/skills/berth-hooks in sean-brydon/berthd) into .claude/skills/berth-hooks in your project. Claude Code loads it when a task matches its description.
Run `npx skills add sean-brydon/berthd --skill berth-hooks -a codex`. Or copy the skill folder (internal/integrations/skills/berth-hooks in sean-brydon/berthd) into .agents/skills/berth-hooks in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sean-brydon/berthd --skill berth-hooks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/berth-hooks, .gemini/skills/berth-hooks, .github/skills/berth-hooks and .opencode/skills/berth-hooks in your project.
SKILL.md names no scripts, command-line tools or credentials: Berth Hooks is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Berth Hooks is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 944 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Berth Hooks: Worktrees (GetStream/stream-chat-react, 845 stars), React Refactor Tournament (ragnar-pwninskjold/tech-snacks, 137 stars), Vercel Composition Patterns (supabase/supabase, 111k stars) and Finishing a Development Branch (obra/superpowers, 297k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
sean-brydon (a GitHub user) maintains it in sean-brydon/berthd, which has 286 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 9, 2026.
Source: sean-brydon/berthd on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.