but
하는 일
이 스킬은 에이전트가 GitButler 명령줄을 사용해 코드 변경을 저장하고, 공유하고, 검토하도록 합니다. GitButler를 버전 관리 도구로 쓰는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓선택한 변경 사항을 새 브랜치나 기존 브랜치의 커밋으로 저장하고 싶을 때.
- ✓차이를 검토하거나, 브랜치를 확인하거나, 최근 단계를 되돌려야 할 때.
- ✓GitButler로 푸시, 풀, 동기화를 하거나 풀 리퀘스트를 열고 싶을 때.
스킬 링크
https://github.com/gitbutlerapp/gitbutler/blob/master/crates/but/skill/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“로그인 파일의 변경 사항만 골라서 login-fix라는 새 브랜치에 커밋해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 선택한 변경 사항처럼 필요한 가장 좁은 보기를 먼저 확인한 다음, 맞는 GitButler 명령을 실행합니다. 결과에 이미 필요한 정보가 나오면 추가 상태 확인은 건너뜁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
GitButler CLI Skill
Use GitButler CLI (but) as the default version-control interface.
Start Here
Choose the narrowest first command by task; avoid ritual status checks:
# Selected dirty files/hunks:
but diff
# Commit order, branch/stack placement, conflict overview:
but status
# File IDs, per-commit files, amend details:
but status -fv
# What one applied branch or commit changed, for review:
but diff <branch-or-commit>
# Details for one known branch or commit:
but show <id>
Do not run plain but status and then but status -fv unless the compact output lacks file details needed for the task.
For "commit just/only/specific changes on a new branch", use the fast path:
but diff
but commit -b <branch> -m "<msg>" <id> <id>
but commit -b <branch> ... creates the branch when it does not exist and prints the created commit. Do not run a separate but branch new, status command, or verification diff unless the task needs workspace information that the result does not provide.
In a linked worktree, such as .claude/worktrees/*, omit -b so the commit goes on the branch the worktree has checked out. Use that branch as the new branch; do not stack another one on it. A worktree with a detached HEAD has no branch yet. There, but commit -b <new-name> -m "<msg>" creates the branch at HEAD, checks it out in that worktree, and commits to it.
IDs
The first token on each but diff / but status line is that line's ID. When a command needs an ID, copy it exactly from the current output; never hardcode or invent one. ID lifetimes differ by entity:
- Changes and sources are positional, space-separated IDs (
but commit -b feat -m "msg" uvw:2e4 uvw:e2c). An uncommitted hunk ID is written<file-id>:<hunk-id>(e.g.uvw:2e4, copied from barebut diff) — the part after the colon is the hunk's ID, not a line range (uvw:16-40is invalid). Do not invent flags like--changes/--hunk/--ids, pass a line range, or comma-separate IDs —uvw,qyois parsed as one ID and fails. but diffis the exception: it accepts at most one target. Barebut diffshows all uncommitted files; inspect committed files or other entities one target at a time — neverbut diff <id> <id>.- A committed file is
<commit-id>:<file-id>(e.g.mzm:uvw, shown under each commit). A committed hunk is<commit-id>:<file-id>:<hunk-id>and is shown bybut diff <commit-id>.@means the uncommitted area. - Commit IDs are stable change IDs that survive history edits (
amend,squash,move,uncommit,reword). Commits without a change ID (e.g. upstream-only) lead with a sha prefix instead, and#N-suffixed refs disambiguate duplicates — both go stale after history edits, and a stale sha can silently resolve to the wrong commit. The(sha …)on verbose commit lines is informational — do not pass it to commands. - Branch short IDs are snapshot-local selectors. Use full branch names for branch-targeting mutations; short IDs are safe only for immediate read-only inspection.
- File/hunk IDs copied from one diff read generally remain usable across chained commits. If one stops resolving, re-read
but diffand retry.
Chaining: mutation output is concise by default, so you may chain mutations with && off one inspection read. Do not chain branch short IDs through mutations; use full branch names. Add --status-after only when the next step needs workspace IDs or details that the mutation result does not provide. Chained but commit calls stack in the order written — the first is oldest, each later one goes on top. History edits may run in sequence when every commit ref involved is a change-ID ref; run them one at a time with --status-after when a ref is sha-based or #N-suffixed, or when the next command needs freshly issued IDs. Chaining but uncommit <id> && but diff is safe because bare diff needs no ID from the uncommit output. Never pipe a mutation through tail or head: the pipeline then exits with their status, so the next && runs even when the mutation failed.
Non-Negotiable Rules
- Use
butfor all write operations. Never rungit add,git commit,git push,git fetch,git pull,git checkout,git merge,git rebase,git stash, orgit cherry-pick;but pull --checkfetches. The only exceptions are selecting a side of a conflicted submodule in resolution mode (see Resolve conflicted commits) and creating a missing target branch (see No
자주 묻는 질문
Git 명령을 알아야 하나요?
이 작업들에는 필요하지 않습니다. 스킬은 GitButler 자체 명령줄을 사용합니다.
일부 파일만 커밋할 수 있나요?
네. 차이 보기에 나온 ID를 사용해 선택한 파일이나 파일 일부를 커밋할 수 있습니다.
연결된 worktree에서는 어떻게 되나요?
그 worktree에 체크아웃된 브랜치에 커밋하며, 그 위에 새 브랜치를 쌓지 않습니다.
상세 정보
작성자의 원본 설명
Commit, push, branch, and manage version control with GitButler. Use for commits, selective dirty-file or hunk commits, branches, diffs, PRs, history edits, squashes, amends, undo, merge, fetching, pulling and syncing a branch with its remote, apply, unapply, and linked worktrees. For selected dirty files or hunks, inspect with `but diff`; use compact `but status` for commit order, branch/stack placement, or conflict overview; use `but status -fv` when file IDs or per-commit file details matter. Replaces git write commands, including fetch and pull. Applies in every checkout of the repository,
repo: gitbutlerapp/gitbutler
인기도
- GitHub 스타
- 22k
- 순위
- #10176
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …