worktree-context

Detect, create, and generate context for git worktrees via shell commands.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/Sjdjdiejdrirhdkjej/Claude-code-conductor --skill worktree-context-sjdjdiejdrirhdkjej
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktree-context
Source: https://github.com/Sjdjdiejdrirhdkjej/Claude-code-conductor/tree/main/.claude/skills/worktree-context
Command: npx skills add https://github.com/Sjdjdiejdrirhdkjej/Claude-code-conductor --skill worktree-context-sjdjdiejdrirhdkjej

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, yq.

What problem does it solve?

Git worktrees enable parallel development by allowing multiple branches to be checked out simultaneously. This skill provides a single source of truth for worktree detection, creation, and context generation, reducing scattered logic across commands.

Core Features & Use Cases

  • Centralized worktree detection, creation, and context generation to standardize workflows across commands.
  • Use Case: Automate worktree setup for a new feature branch and generate a Task() agent context block based on the worktree path.

Quick Start

Use the worktree-context skill to check if you are in a worktree, create one when needed, and generate a Task() context block for your path.

Frequently Asked Questions about worktree-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate git worktree creation for a new feature branch?

Automate git worktree creation by using a centralized shell interface to check prerequisites and generate a new worktree path. This standardizes multi-branch development workflows by outputting JSON results for seamless integration.

How do I generate a Task() agent context block from a git worktree path?

Generate a Task() agent context block by triggering the context endpoint within the worktree management interface. It utilizes the active worktree path to produce standardized JSON outputs tailored for parallel feature development.

How can I check if I am currently inside a git worktree from bash?

Verify if you are inside a git worktree by querying the in-worktree detection endpoint exposed by the shell interface. It evaluates your current bash environment and returns a JSON output confirming your worktree status.

Do I need yq installed to manage git worktrees with a centralized script?

Yes, you need both git and yq installed as required dependencies. The centralized worktree management interface relies on these tools to execute shell commands and process the configurations needed for standardizing parallel branch workflows.

What is the best way to standardize multi-branch development workflows using git worktrees?

Standardize multi-branch workflows by centralizing git worktree handling into a single source of truth. This reduces scattered logic across bash commands by providing uniform detection, creation, and context generation endpoints with JSON outputs.