Worktree workflow

From different-ai/the-factory · View interactive version

Worktree workflow is an AI agent skill from the GitHub repository different-ai/the-factory. Enforce a worktree-per-task workflow with regular commits and pushes. Triggers when user mentions: - "create a worktree" - "commit regularly" - "push changes

How to use this skill

Skill file

Quick Usage (Already Configured)

Start a task with a fresh worktree

.opencode/skills/worktree-workflow/scripts/start-task-worktree.sh "task-name"

Commit regularly and push

.opencode/skills/worktree-workflow/scripts/regular-commit.sh "message describing why"

Behavior

Related skills

Common Gotchas

First-Time Setup (If Not Configured)

  1. Ensure you are in a git repo with origin configured.
  2. Optional: set BASE_BRANCH or WORKTREES_DIR in your shell.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.