From dev-squad
Use when starting a new task and need to prepare the working environment - project detection, uncommitted changes handling, base branch selection, and feature branch creation
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-squad:start-workThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
새로운 작업을 시작하기 전 사전 준비를 수행해줘.
새로운 작업을 시작하기 전 사전 준비를 수행해줘. 아래 단계를 순서대로 진행해줘.
.claude/project-config.json 파일을 읽어서 대상 디렉토리를 확인해줘.
파일이 없으면:
| 파일 | 추정 type |
|---|---|
build.gradle + Spring 의존성 | spring-boot |
pom.xml + Spring 의존성 | spring-boot |
nuxt.config.ts 또는 nuxt.config.js | nuxt |
next.config.* | nextjs |
vite.config.* | vite |
Cargo.toml | rust |
go.mod | go |
package.json만 있음 | node |
| 기타 | unknown |
.claude/project-config.json을 생성:{
"directories": [
{ "name": "backend", "path": "backend", "type": "spring-boot" },
{ "name": "frontend", "path": "frontend", "type": "nuxt" }
],
"baseBranch": "master",
"branchPrefix": "feature/"
}
대상 디렉토리들에서 각각 git status --short를 실행해줘.
변경사항이 있는 경우:
git stash push -m "auto-stash: $(date +%Y%m%d-%H%M%S)" 실행변경사항이 없으면 "깨끗합니다" 표시 후 다음 단계로.
AskUserQuestion으로 새 브랜치의 기준이 될 base 브랜치를 물어봐:
선택 즉시 base 브랜치로 전환:
git checkout {base-branch}git pull origin {base-branch} (실패해도 진행)사용자에게 이번 작업 내용을 간단히 물어본 뒤, 그 내용을 기반으로 브랜치명을 추천해줘.
AskUserQuestion으로 브랜치명을 결정:
결정된 후:
git checkout -b {new-branch}아래 형식으로 결과를 보여줘:
작업 준비 완료!
─────────────────────────────
Base: {base-branch}
Branch: {new-branch}
─────────────────────────────
대상 디렉토리:
{name}: {branch} ready ({type})
...
─────────────────────────────
Stash: {stash 했으면 내역, 없으면 "없음"}
─────────────────────────────
npx claudepluginhub leoheo/dev-squad --plugin dev-squadCreates, tracks, switches, syncs, and cleans up Git branches with consistent naming conventions and safe working-tree handling.
Creates and switches to a new Git branch from an inline description, conversation context, or local diffs. Preserves uncommitted changes. Use for starting fresh or moving in-progress work to a named branch.
Automates git workflow: creates isolated worktrees for features with .gitignore safety checks, enables atomic commits, completes branches via merge, PR, preserve, or discard.