Back to Skills

using-git-worktrees-skill

Eibon7
Updated Today
20 views
0
View on GitHub
Metageneral

About

This Claude Skill creates isolated Git worktrees for feature development, automatically handling directory selection and safety checks. It verifies .gitignore settings, runs project setup commands, and ensures tests pass before reporting the ready workspace. Use it when starting new features that need isolation or before executing implementation plans.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/Eibon7/roastr-ai
Git CloneAlternative
git clone https://github.com/Eibon7/roastr-ai.git ~/.claude/skills/using-git-worktrees-skill

Copy and paste this command in Claude Code to install this skill

Documentation


name: using-git-worktrees-skill description: Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification triggers:

  • "isolated workspace"
  • "worktree"
  • "feature isolation"
  • "new feature branch" used_by:
  • orchestrator
  • writing-plans-skill
  • executing-plans-skill steps:
  • paso1: "Check existing directories (.worktrees or worktrees)"
  • paso2: "Check CLAUDE.md for preference"
  • paso3: "Ask user if no directory found"
  • paso4: "Safety verification: Check .gitignore before creating worktree"
  • paso5: "Add to .gitignore if missing, commit change"
  • paso6: "Create worktree with new branch"
  • paso7: "Run project setup (npm install, cargo build, etc)"
  • paso8: "Verify clean baseline with tests"
  • paso9: "Report location and ready status" output: "Isolated worktree at <full-path> with tests passing" directory_selection: priority1: ".worktrees (preferred, hidden)" priority2: "worktrees (alternative)" priority3: "~/.config/superpowers/worktrees/<project>/ (global)" safety_verification:
  • "MUST verify .gitignore before creating project-local worktree"
  • "Prevents accidentally committing worktree contents"
  • "If NOT in .gitignore: Add line + commit immediately" creation_steps:
  • "Detect project name"
  • "Create worktree: git worktree add <path> -b <branch>"
  • "Run project setup (auto-detect package.json, Cargo.toml, etc)"
  • "Verify clean baseline: npm test / cargo test / etc"
  • "Report: Worktree ready at <full-path>, tests passing" common_mistakes:
  • "Skipping .gitignore verification → worktree contents tracked"
  • "Assuming directory location → violates conventions"
  • "Proceeding with failing tests → can't distinguish new from existing bugs" red_flags:
  • "Create worktree without .gitignore verification"
  • "Skip baseline test verification"
  • "Assume directory location" referencias:
  • "Fuente: superpowers-skills/using-git-worktrees"
  • "Roastr: Útil para features grandes (branch isolation)"
  • "Completa: finishing-a-development-branch-skill"

GitHub Repository

Eibon7/roastr-ai
Path: .claude/skills/using-git-worktrees-skill.md

Related Skills

subagent-driven-development

Development

This skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.

View skill

algorithmic-art

Meta

This Claude Skill creates original algorithmic art using p5.js with seeded randomness and interactive parameters. It generates .md files for algorithmic philosophies, plus .html and .js files for interactive generative art implementations. Use it when developers need to create flow fields, particle systems, or other computational art while avoiding copyright issues.

View skill

executing-plans

Design

Use the executing-plans skill when you have a complete implementation plan to execute in controlled batches with review checkpoints. It loads and critically reviews the plan, then executes tasks in small batches (default 3 tasks) while reporting progress between each batch for architect review. This ensures systematic implementation with built-in quality control checkpoints.

View skill

cost-optimization

Other

This Claude Skill helps developers optimize cloud costs through resource rightsizing, tagging strategies, and spending analysis. It provides a framework for reducing cloud expenses and implementing cost governance across AWS, Azure, and GCP. Use it when you need to analyze infrastructure costs, right-size resources, or meet budget constraints.

View skill