Skip to content
Skills Library
Programming · Automation

fork-bead-threads

/fork-bead-threads

Starts isolated Codex worktree threads for dependency-aware Beads work. Use when explicitly asked to split a Beads backlog into separate implementation threads.

Repository
dotfiles ↗
Licence
MIT
Last repository change
25.10.2026

Assessment and security

100/ 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.
Content35 / 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
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

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

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Starts isolated Codex worktree threads for dependency-aware Beads work. Use when explicitly asked to split a Beads backlog into separate implementation threads.

Original author description

Starts isolated Codex worktree threads for dependency-aware Beads work. Use when explicitly asked to split a Beads backlog into separate implementation threads.

How it works

  1. Build the launch set
  2. Fork isolated worktrees
  3. Name for humans
  4. Send the completion contract
  5. Coordinate shared surfaces
  6. Verify the launch
  7. Report
Original SKILL.md headings · 98 lines, 666 words
SKILL.md preview
---
name: fork-bead-threads
description: Starts isolated Codex worktree threads for dependency-aware Beads work. Use when explicitly asked to split a Beads backlog into separate implementation threads.
---

# Fork Bead Threads

Turn a Beads work surface into clearly named, isolated Codex threads that own outcomes through verification, closure, commit, and push.

## Build the launch set

1. Read every requested issue with `br show <id>` and inspect native dependencies.
2. Search recent Codex threads for each bead ID. Reuse an existing active owner; never launch two owners for one bead.
3. Include missing concrete prerequisite beads required to unblock the requested work.
4. Skip umbrella issues and epics unless they contain independent implementation work.
5. Record the frontier:
   - ready issues start immediately
   - blocked issues get their blocker issue and owning thread ID

Do not flatten dependencies merely to maximize parallelism.

## Fork isolated worktrees

Use `codex_app__fork_thread` with `environment.type = "worktree"` for implementation work. Use a same-directory fork only for read-only work or when the user explicitly wants a shared checkout.

Omit `threadId` to fork the calling thread. A fork copies completed history only: the active turn is absent. Always send a fresh follow-up prompt after forking.

Fork one thread per bead. Add one thread per missing prerequisite needed for the requested set to make progress.

## Name for humans

Rename every thread with `codex_app__set_thread_title` using:

```text
<Outcome-focused phrase> · <bead-id>
```

Examples:

- `Restore Amos Cron Scheduling · workspace-rtl.1`
- `Add Blogwatcher to Radar · workspace-by1`
- `Fix Hermes Timer Health Reporting · workspace-i1q`

Lead with the desired result, use 3–7 words, and keep the bead ID last for traceability. Avoid ID-first titles, generic verbs, and copied issue titles when a clearer human phrase exists.

## Send the completion contract

Send each child a bead-specific prompt with `codex_app__send_message_to_thread`. Preserve this contract while tailoring ownership, source repos, validation, deployment, and blockers:

```text
Own bead <id>: <human title>.

Goal: fully fix the bead, not merely investigate or plan.

Start with `br show <id>`, read applicable AGENTS.md files, inspect current source and live state, and preserve unrelated changes.

Dependency contract: <ready now | blocker bead, owner thread ID, and recheck instruction>.

Execution contract:
- Claim/update the bead only when genuinely actionable.
- Work in canonical source; honor repo and infrastructure ownership boundaries.
- Follow required regression/TDD workflow for behavior bugs.
- Deploy through the documented path when acceptance requires live state.
- Verify every acceptance criterion with fresh tests, diffs, deploy output, logs, artifacts, and natural-run evidence as applicable.
- Do not manually trigger behavior whose acceptance criterion requires a natural run.
- Keep changes task-shaped. Commit and push owned changes; never overwrite another thread or force-push.
- Update/close the bead only after all acceptance criteria are proven.
- If externally blocked, leave it open with exact evidence and the smallest unblocker.
- Do not stop at a plan. Continue autonomously until complete or truly blocked.
- Final handoff: issue status, commits/branches, changed repos, tests, deployment evidence, live evidence, and remaining blocker.
```

Tell blocked workers not to duplicate their prerequisite owner's work. They may orient and wait, then continue after the blocker lands.

## Coordinate shared surfaces

Worktree isolation protects Git files, not live systems.

- Serialize deployments that target the same host or service.
- Keep profile-specific changes separate when possible.
- Let each worker own its tracker update; avoid root-thread status churn that will conflict during integration.
- Give dependent workers the exact prerequisite bead and thread IDs.
- Do not close umbrella issues until every child acceptance contract is verified.

## Verify the launch

After title and prompt calls succeed, re-read authoritative thread state with `codex_app__list_threads`.

Confirm for every requested bead:

- exactly one thread exists
- the outcome-focused title is correct
- status is active
- implementation threads have distinct worktree paths
- each blocker has an owner or an explicit external blocker

Do not claim success from mutation responses alone.

## Report

Return a compact mapping of bead ID to thread ID, note any added prerequisite threads, and state whether every thread is active. Keep implementation results separate: launching threads is complete before the child fixes are complete.
Files in this package (2)
  • SKILL.md 5 KB
  • agents/openai.yaml 1 KB

Versions

The database has no other skills named fork-bead-threads.

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

Downloads in the last 30 days: 0 · ranking

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

Similar skills

  • 100git-worktree
    Manage Git worktrees for isolated parallel development. Use when creating, switching, or cleaning up worktrees for parallel bead work.
  • 86bx
    Creates a Beads issue for a requested piece of work, completes exactly that work, and closes the issue. Use when the user invokes `/bx` or `$bx`, or asks for a bead to be created and the described work done in the same go. For creating a bead without doing the work, use the `bc` skill instead.
  • 85implement-bd
    Implement Beads issues and record verification and remaining work. Use when asked to work on a tracked issue or pick up ready Beads work.
  • 96bc
    Creates a Beads issue for a described problem or piece of work without doing the work itself. Use when the user invokes `/bc` or `$bc`, or asks to file, log, or record a bead for something. To also carry out the work, use the `bx` skill instead.
  • 90beads-jira-sync
    Syncs beads issues to the Jira DNA project with import-beads.js from the standalone beads-jira-import repo. Covers dry-run, state-file backup, live sync, initiative labels on epics, and bead/Jira key lookup. Use for the weekly beads to Jira sync, linking an epic to a DNA…
  • 95bd-to-br-migration
    Migrate docs from bd (beads) to br (beads_rust). Use when updating AGENTS.md, converting bd commands, "bd sync" → "br sync --flush-only", or beads migration.

Feedback and reports

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