Skip to content
Back to skills

Coordinate Worktrees And Threads

ASecurity

Assign worktree, branch, write, validation, integration, and cleanup ownership before parallel repository work. Use when a worker will inspect or modify repository state outside the coordinator's worktree.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 5, 2026
ai-agentsgit

Security analysis

A100/100

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

Scanned September 5, 2026

npx -y skills add gaelic-ghost/socket --skill coordinate-worktrees-and-threads --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coordinate Worktrees And Threads?

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

Security grade badge for Coordinate Worktrees And Threads
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gaelic-ghost-coordinate-worktrees-and-threads/badge)](https://www.skillsdirectory.com/skills/gaelic-ghost-coordinate-worktrees-and-threads)

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: coordinate-worktrees-and-threads
description: Assign worktree, branch, write, validation, integration, and cleanup ownership before parallel repository work. Use when a worker will inspect or modify repository state outside the coordinator's worktree.
---

# Coordinate Worktrees And Threads

Establish repository ownership before a worker begins. A thread is not a
worktree, and a branch is not permission to make shared Git mutations.

## Launch Record

For every worker, record the worker/task identity, coordinator, repository and
base commit, worktree path, branch, read/write scope, allowed Git operations,
validation lane, output/merge target, final report route, and retention or
cleanup decision.

## Rules

- Give parallel writers disjoint files or directories and separate worktrees.
- When a Codex-managed worktree versus a plain Git worktree is itself a
  decision, hand that host-specific choice to
  `repository-skills:codex-gui-worktree-workflow`; retain this skill's
  host-neutral ownership record in either case.
- Serialize Git operations that change shared repository state. A worker must
  not assume it owns tags, merges, release branches, deletion, or cleanup.
- Serialize heavy build and test lanes unless the environment explicitly proves
  they are independent and safe.
- Keep final integration, conflict resolution, release, branch accounting, and
  cleanup with the coordinator unless the user explicitly assigns them.
- When a worker returns, report branch/worktree state, commits, validation,
  uncommitted changes, artifacts, and the recommended integration action.

## Completion

The coordinator explicitly chooses whether to retain the worker thread or
worktree for follow-up, merge/preserve its result, archive it, or remove it
after branch accounting. Never delete a worktree or branch merely because a
worker says it is done.

Files in this skill

  • SKILL.md1.8 KB
  • agents/openai.yaml271 B

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.

Comments

Loading comments…

Newsletter

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