This skill allows you to quickly create a new git worktree for the current project. The worktree is created in the same parent directory as the current project's root, following the naming convention PROJECT-NAME-T-BRANCH-NAME.
Crucially, if the user does not respond to a question or provides no alternative, proceed immediately using your suggested values instead of repeating the question. The goal is to minimize friction while allowing for customization.
User: "Create a worktree for this repo." Gemini: "I'll create a new worktree for you. I'll use the branch name feat-wyattskills-260221 based on the current branch main. Is that okay, or would you like a different name?" User: "That's fine." Gemini: [Runs the script and confirms the path /Users/huwentao/proj/wyattskills-T-feat-wyattskills-260221]
Создайте рабочее дерево git для текущего репозитория на том же уровне каталога, что и корень проекта. Этот навык автоматизирует создание ветвей, именование каталогов в соответствии с форматом проект-Т-ветвь и первоначальную настройку проекта (например, установку зависимостей). Используйте это, когда пользователь хочет поработать над новой функцией или исправить ее, не переключая свое текущее рабочее пространство. Источник: hu-wentao/wyatt_skills.