.claude/skills/add-worktree/SKILL.md
Create a new worktree for an Issue.
npx skillsauth add drillan/mixseek-plus add-worktreeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create a new worktree for an Issue.
/add-worktree <issue-number>
| Argument | Type | Required | Description |
|----------|------|----------|-------------|
| issue-number | integer | Yes | GitHub Issue number |
When the user invokes /add-worktree <number>, follow these steps:
gh issue view <number> --json number,title,body,labels,state
Verify the issue exists and is open.
Same logic as /start-issue:
feat/Branch name:
<prefix>/<issue-number>-<normalized-title>
Worktree directory:
../<project-name>-<branch-name-with-slashes-as-hyphens>
Example:
feat/200-add-feature../my-project-feat-200-add-featureCheck if worktree or branch already exists:
git worktree list
git branch --list <branch-name>
If exists, report error and show existing path.
git worktree add -b <branch-name> <worktree-path>
This creates:
If .hachimoku/ directory exists in the repository root, copy it to the new worktree.
If .hachimoku/ is already present in the worktree (git-tracked), skip the copy. Otherwise copy from the repository root:
if [ ! -d <worktree-path>/.hachimoku ]; then
cp -r .hachimoku/ <worktree-path>/.hachimoku/
fi
Then remove any stale JSONL files if reviews/ exists:
find <worktree-path>/.hachimoku/reviews -name "*.jsonl" -delete 2>/dev/null || true
This preserves project-specific hachimoku agent customizations (agent configs, review settings).
If .hachimoku/ does not exist in the repository root, skip this step silently.
Note: We copy (not 8moku init) to preserve customized agent configurations.
Note: When executed via scripts/add-worktree.sh, this step is handled by the script itself (Claude CLI --allowedTools does not include cp).
Worktree created successfully
Issue: #200 - [Issue title]
Branch: feat/200-add-feature
Directory: ../my-project-feat-200-add-feature
To start working:
cd ../my-project-feat-200-add-feature
Worktree created successfully
Issue: #<number> - <title>
Branch: <branch-name>
Directory: <worktree-path>
To start working:
cd <worktree-path>
Worktree already exists
Issue: #<number> - <title>
Existing path: <existing-path>
To continue working in the existing worktree:
cd <existing-path>
| Error | Action | |-------|--------| | Issue not found | Display error message | | Branch exists (no worktree) | Suggest creating worktree with existing branch | | Worktree exists | Show existing path | | Directory creation failed | Show cause (permissions, path, etc.) | | Git not in repo | Notify user they're outside a repository |
# List all worktrees
git worktree list
# Remove a worktree
git worktree remove ../my-project-feat-200-add-feature
# Prune stale worktree info
git worktree prune
tools
MixSeekワークスペースを初期化し、設定ファイル用ディレクトリ構造を作成します。「ワークスペースを初期化」「mixseekのセットアップ」「設定ディレクトリを作成」「新しいプロジェクトを始める」といった依頼で使用してください。
development
MixSeekのチーム設定ファイル(team.toml)を生成します。「チームを作成」「エージェント設定を生成」「Web検索チームを作って」「分析チームを設定」といった依頼で使用してください。Leader AgentとMember Agentの構成を定義します。
development
MixSeekのプロンプトビルダー設定ファイル(prompt_builder.toml)を生成します。「プロンプトを設定」「プロンプトビルダーを作成」「ラウンド別プロンプト」といった依頼で使用してください。
data-ai
MixSeekのオーケストレーター設定ファイル(orchestrator.toml)を生成します。「オーケストレーターを設定」「チーム競合設定」「複数チームで競わせる」「マルチチーム実行設定」といった依頼で使用してください。複数チームを並列実行して最良の結果を選択する設定を定義します。