Back to list
Castrozan

worktrees

by Castrozan

Declarative dotfiles with Nix flakes. Supports NixOS full system and home-manager standalone for non-NixOs systems.

2🍴 0📅 Jan 24, 2026

SKILL.md


name: worktrees 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

Git worktrees create isolated workspaces sharing the same repository. Create worktrees in .worktree/<branch> inside the project directory using git worktree add .worktree/<branch> -b <branch>. For ~/.dotfiles repo use ./bin/git-worktree-crypt <branch> instead (creates at .worktrees/<branch>, uses git-crypt). Avoid branch names with / as they create nested directories.

After worktree creation, implement changes following project rules and commit frequently at every major change. Test before proceeding: use /rebuild for ~/.dotfiles, appropriate test commands for other projects. Push to remote and create PR/MR with clear description and test results. Run PR commands from main repo directory (not worktree) to avoid git detection issues: cd /path/to/repo && gh pr create --head <branch> --title "..." --body "...". Monitor CI with gh pr checks <number> or glab ci status. Share the PR/MR link and continue with /pr-iteration for code review handling.

Maintain worktree isolation throughout the session. If worktree breaks due to deleted CWD or git-crypt issues, recreate rather than falling back to main. After PR merged or pending review, return to main workspace and rebuild from main branch so system returns to stable state. Keep worktree locally for follow-up work.

<red_flags> Never skip tests before declaring ready. Never commit to main when worktree isolation was requested. In ~/.dotfiles, never use plain git worktree add. </red_flags>

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

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

+20
LICENSE

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

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

+5
タグ

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

0/5

Reviews

💬

Reviews coming soon