Back to list
antoniolg

worktree-helper

by antoniolg

A collection of skills for AI agents

5🍴 0📅 Jan 21, 2026

SKILL.md


name: worktree-helper description: Guide for creating and working in Git worktrees with a consistent workflow. Use when a user wants to run a task in a separate worktree, create or clean up worktrees, migrate a repo into a main/worktrees layout, or implement work based on an issue ID using GitHub/GitLab tooling.

Worktree Helper

Overview

Use this skill to set up a clean worktree workflow, create new worktrees, and guide issue-based or task-based work. Keep the user in control for any destructive or structural change.

Workflow Decision Tree

  1. Is the request issue-based?
  • Yes → Use references/hosting.md to fetch issue details (MCP → gh → glab → manual).
  • No → Continue with the task description.
  1. Is the repo layout already main/ + worktrees/?
  • Yes → Work from main/.
  • No → Recommend migration and offer to run scripts/migrate_to_main_layout.sh.
  1. Create a worktree using the naming rules in references/workflow.md.

  2. Implement the task in the worktree, then review with the user.

  3. Finish: merge or open a PR/MR, then clean up worktrees and branches.

Required Checks

  • Confirm the user wants to migrate before running any migration command.
  • Confirm before deleting branches or removing worktrees.
  • If tooling is missing for issue intake, ask the user to paste issue details.

Core References

  • references/workflow.md — step-by-step commands, naming, create/remove worktrees.
  • references/hosting.md — MCP/CLI/manual issue intake and tooling detection.
  • references/troubleshooting.md — common worktree errors and fixes.

Bundled Scripts

  • scripts/migrate_to_main_layout.sh — migrate a repo root into a main/ + worktrees/ layout. Use only with explicit user confirmation.

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon