/git-teacher:git-teacher-savefrom git-teacher
Saves (commits) work for non-developers with plain-language explanations. Scans for secrets and large files, auto-generates .gitignore, resolves merge conflicts step-by-step, then commits and explains what was saved.
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에서 두 단계 위 폴더)로 바꿔 읽는다.변경된 파일을 Commit (저장)한다. 비밀값·큰 파일 검사 → git commit 순서로 실행하고, 사후에 무엇을 했는지 설명한다.
다음 명령을 병렬로 실행한다:
git rev-parse --is-inside-work-tree # .git 존재 확인
git symbolic-ref --short HEAD # 현재 branch
git status --porcelain # 변경 파일 목록
git diff --stat # 변경 통계
ls .gitignore 2>/dev/null # .gitignore 존재 여부
.git 없음: "여기는 Git 프로젝트 폴더가 아니에요. '깃 시작해줘'로 먼저 설정하세요." → 중단git switch -c "rescue/$(date +%Y%m%d-%H%M%S)" # 지금 위치 보존 (커밋이 고아가 되지 않게)
git switch main 2>/dev/null || git switch master
구조용 브랜치 이름을 알려주고 "필요 없으면 나중에 지워도 돼요"라고 안내한다. 보존 없이 바로 main으로 이동하지 않는다.UU, AA 등): 충돌 파일 목록을 보여주고, 덩어리 단위로 합친다 — ${CLAUDE_PLUGIN_ROOT}/skills/git-teacher-help/references/conflict-resolution.md 절차를 Read로 읽고 그대로 따른다.
.gitignore가 없으면 프로젝트 타입을 감지하여 기본 .gitignore를 생성한다:
package.json 존재) → node_modules/, .env, dist/ 등requirements.txt 또는 pyproject.toml 존재) → __pycache__/, .env, venv/ 등.env, .DS_Store, *.log, thumbs.db 등생성 후 안내: "보안을 위해 .gitignore 파일을 만들었어요. 비밀번호나 임시 파일은 자동으로 제외됩니다."
변경된 파일 목록을 보여준 뒤 커밋 메시지를 물어본다.
EXECUTE: 아래 JSON으로 AskUserQuestion 도구를 즉시 호출한다 (변경 파일 목록을 question에 포함):
{
"questions": [{
"question": "변경된 파일 N개:\n - file1 (수정됨)\n - file2 (새 파일)\n\n뭘 바꿨는지 한 줄로 적어주세요.",
"header": "커밋 메시지",
"options": [
{"label": "직접 입력", "description": "Other에 커밋 메시지를 입력해주세요 (예: '로고 변경', '메인 페이지 수정')"},
{"label": "자동 생성", "description": "변경 내용을 분석해서 메시지를 자동으로 만들어요"}
],
"multiSelect": false
}]
}
question 안의 파일 목록은
git status --porcelain결과를 기반으로 동적 생성한다.
사용자가 빈 값이나 애매한 답을 주면: 변경 내용을 분석하여 자연어 메시지를 자동 생성한다.
.gitignore가 있어도 매번 실행한다. .gitignore는 이미 추적 중인 파일이나 이름이 다른 비밀 파일을 막지 못한다.
git add -A
bash "${CLAUDE_PLUGIN_ROOT}/scripts/safety_scan.sh" --staged
CLEAN이면 Step 5로 진행.SECRET_NAME / SECRET_CONTENT: 해당 파일을 git restore --staged {파일}로 빼고, "비밀번호나 열쇠 같은 값이 들어 있을 수 있어서 저장에서 뺐어요"라고 설명한다. .gitignore에 추가할지 AskUserQuestion으로 묻는다. 값 자체는 절대 화면에 보여주지 않는다.LARGE(50MB 초과): 해당 파일을 빼고 "GitHub는 100MB부터 거절하고, 50MB만 넘어도 느려져요"라고 설명한 뒤 .gitignore 추가 여부를 묻는다.git add 한다.git commit -m "사용자가 입력한 메시지" # Step 4.5에서 검사를 통과한 파일만 스테이징된 상태
커밋 메시지 규칙:
실행 후 결과를 알려준다:
저장 완료! 파일 3개를 포장해서 '로고 변경'이라고 기록했어요.
아직 내 컴퓨터에만 있어요.
GitHub 클라우드에도 올리려면 "올려줘"라고 하세요.
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-reviewAutomated review request workflow — handles branch creation, commit, push, and PR creation as one step. Hides Git branch jargon from users and presents it as "a safe workspace to show your teammates." Korean triggers: "PR 만들어줘", "검토 요청", "리뷰 요청", "수정 제안", "팀원한테 보여주고 싶어", "확인 요청". English triggers: "create PR", "pull request", "request review", "show teammates"./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