using-git-worktrees-skill
について
このClaudeスキルは、機能開発用の分離されたGitワークツリーを作成し、ディレクトリ選択と安全性チェックを自動的に処理します。.gitignore設定を検証し、プロジェクトセットアップコマンドを実行し、テストが合格することを確認してから準備完了のワークスペースを報告します。分離が必要な新機能を開始する際や、実装計画を実行する前にご利用ください。
クイックインストール
Claude Code
推奨/plugin add https://github.com/Eibon7/roastr-aigit clone https://github.com/Eibon7/roastr-ai.git ~/.claude/skills/using-git-worktrees-skillこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
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 リポジトリ
関連スキル
algorithmic-art
メタ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.
subagent-driven-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.
executing-plans
デザイン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.
cost-optimization
その他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.
