원클릭으로
workspace-add-repo
Add a repository to a workspace (clones if needed, creates worktree)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Add a repository to a workspace (clones if needed, creates worktree)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | workspace-add-repo |
| description | Add a repository to a workspace (clones if needed, creates worktree) |
This skill adds a repository to an existing workspace. It handles:
Use case: When you need to add a new repository to a workspace that was already initialized with /workspace-init.
Paths: Use relative paths from project root (see CLAUDE.md for details).
Required parameters:
feature-user-auth-20260131)github.com/org/repo)Optional parameters:
github.com/org/repo:dev)If workspace or repository is not specified, abort with message:
Please specify a workspace and repository. Example:
/workspace-add-repo feature-user-auth-20260131 github.com/org/repo
Check that the workspace directory exists:
workspace/{workspace-name}/README.mdIf workspace does not exist, abort with message:
Workspace not found:
{workspace-name}. Use/workspace-initto create a new workspace first.
Execute the repository setup script:
./.claude/scripts/setup-repository.sh <workspace-name> <org/repo-path>
Examples:
# Basic usage
./.claude/scripts/setup-repository.sh feature-user-auth-20260131 github.com/org/repo
# Override base branch
BASE_BRANCH=develop ./.claude/scripts/setup-repository.sh feature-user-auth-20260131 github.com/org/repo
# With alias (for multiple worktrees from same repo)
./.claude/scripts/setup-repository.sh feature-user-auth-20260131 github.com/org/repo:dev
After the repository is added, update the ## Repositories section in README.md to include the new repository:
## Repositories
- **existing-repo**: `github.com/org/existing-repo` (base: `main`)
- **new-repo**: `github.com/org/new-repo` (base: `main`) ← Add this
Summarize the results to the user:
User: /workspace-add-repo feature-user-auth-20260131 github.com/org/api
Assistant:
1. [Validates workspace exists]
2. [Runs setup-repository.sh] → Creates worktree
3. [Updates README.md Repositories section]
4. Done!
User: /workspace-add-repo feature-user-auth-20260131 github.com/org/api with base branch develop
Assistant:
1. [Validates workspace exists]
2. [Runs BASE_BRANCH=develop setup-repository.sh]
3. [Updates README.md]
4. Done!
User: /workspace-add-repo feature-config-20260201 github.com/org/infra:prod
Assistant:
1. [Validates workspace exists]
2. [Runs setup-repository.sh with alias] → Creates worktree at github.com/org/infra___prod/
3. [Updates README.md with alias entry]
4. Done!
.claude/scripts/setup-repository.sh is shared with /workspace-initrepo:alias to create multiple worktrees from the same repository/workspace-update-todo after addingDetect and suggest blocked tool commands from recent sessions
Use when the user wants to start working on a task, ticket, or feature. Triggered by: ticket URLs (Jira, GitHub Issues, Linear, etc.), task descriptions, or requests like 'work on this', 'implement X', 'fix X', 'これをすすめて', 'これやって'. IMPORTANT: Before creating a new workspace, ALWAYS run /workspace-list first to check if a workspace already exists for the same ticket/task. If one exists, use /workspace-execute or /workspace-show-status instead. Creates workspace with README, clones repos, and plans TODO items via agents.
Add, remove, or modify TODO items
Review code changes and generate review reports
Create or update pull requests for all repositories (draft by default)
Continue working on an existing workspace by executing TODO items. Implements code, runs tests, makes commits. Use when the user wants to resume or continue work on a previously initialized workspace, or after /workspace-init completes.