but-agentlog
하는 일
이 스킬은 코드 브랜치나 리뷰에 연결된 이전 AI 에이전트 세션을 살펴봅니다. 작업을 넘겨받아 이미 무엇을 시도했는지 알아야 하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓브랜치를 넘겨받아 이전에 무엇이 되었는지 알고 싶을 때.
- ✓누군가 브랜치, 리뷰, 변경 사항에 대해 최신 상황을 요청할 때.
- ✓이전 에이전트 세션에서 맥락을 되찾아야 할 때.
스킬 링크
https://github.com/gitbutlerapp/gitbutler/blob/master/crates/but-agentlog/skill/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“변경하기 전에 이 브랜치에서 무슨 일이 있었는지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 GitButler agentlog 명령을 사용해 관련 세션을 짧은 개요로 나열합니다. 개요로 충분하지 않을 때만 한 세션의 자세한 내용을 엽니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
GitButler Agentlog Skill
Use but agentlog to skim prior agent work from captured sessions.
Trigger this skill for plain prompts like "get context for branch", "branch context", "catch up on this branch", "recover context", "what happened on this branch", or "what prior agent work happened here".
If both the general GitButler CLI skill and this skill seem relevant, use this skill for agentlog discovery. Use the general GitButler skill only for version control operations like commit, push, branch, or diff.
Core Workflow
Do not search for or read local SKILL.md files. If this skill is active, use
these instructions directly. Do not inspect the general GitButler skill first.
Start with but agentlog skim.
Start with skim when prior work could affect your next action. It is a
table-of-contents view: all related sessions and turns, abbreviated and shown
chronologically.
but agentlog skim
but agentlog skim branch <branch-name-or-ref>
but agentlog skim review <review-id-or-pull-request-key>
but agentlog skim change <change-id-or-key>
Use show only when skim is too thin, ambiguous, or you need exact evidence:
but agentlog show <session-key> --limit 20
but agentlog show <session-key> --turn <turn-key> --limit 20
For normal current-branch recovery, run skim without target arguments first.
It discovers the applied GitButler branch itself. Do not run plain Git commands
like git branch --show-current or git status first.
but agentlog skim
Pass an explicit target only when the user gives one.
Use JSON only when you need exact handles for drill-down:
but --json agentlog skim
- Start with
skimfor a clean orientation. - Treat
skimlike compacted turn history: all related sessions and turns are present, but each turn is abbreviated. It is not the full transcript. - If
skimis enough for a lightweight status answer, summarize it and stop. - Drill down only when
skimis ambiguous, misses the rationale, or you need exact evidence. - To drill down, rerun
skimwith--jsonto get the relevantsession_keyandturn_key, then useshow. - Use
show <session-key>for turn-level context. - Use
show <session-key> --turn <turn-key>only for turns that need exact detail.
Target Discovery
When the user says "current branch" or gives no explicit target, run:
but agentlog skim
skim performs GitButler branch discovery automatically. If target discovery
fails, then inspect GitButler state:
but status
Do not use plain Git's gitbutler/workspace branch as an agentlog target.
Rules
- Prefer orientation before payload.
- Prefer
skimfor turn-history recovery. - Treat
skimas complete but abbreviated. It includes every related session and every turn in those sessions, not every record or the full transcript. - Prefer human
skimoutput first. Use--jsononly for drill-down handles or exact evidence. - Run
showwhenskimis thin, ambiguous, missing the why, or when the user is asking you to make or verify a consequential claim. - Do not dump records for every candidate session.
- Do not dump full records or transcripts. If session detail is needed, start
with
show <session-key> --limit 20and summarize previews. - Treat matches as related evidence, not ownership.
- Keep
session_keyandturn_keyvalues internal unless the user asks for evidence handles or they are needed for a follow-up command. - Use record snippets only when they justify the next action.
- Say "session related to branch X via turn Y", not "session for branch X".
Reading skim
Use skim to answer "what has already been discussed, planned, attempted, or
changed in this work?"
Human output is intentionally compact but includes every related session and
every turn in chronological order. JSON output keeps
full session_key and turn_key values so you can drill into show without
printing those handles to the user.
The skim is a compressed table of contents. It abbreviates each turn but does not omit related sessions or turns.
Useful fields:
target_kindandtarget_key: target used for discovery.sessions: related sessions in chronological order, with counts and previews.coverage: shown sessions, shown turns, and direct related turn count.sessions[].turns: every turn in order, with labels and previews.
If skim has enough context for a lightweight answer, summarize from it and
stop. If it
자주 묻는 질문
GitButler 앱이 필요한가요?
네. GitButler와 함께 제공되는 agentlog 명령을 사용합니다.
커밋이나 푸시도 처리하나요?
아니요. 이 스킬은 이전 세션을 읽는 용도입니다. 버전 관리 작업은 다른 GitButler 스킬이 맡습니다.
한 세션을 자세히 볼 수 있나요?
네. 개요가 부족하면 키로 한 세션을 열 수 있습니다.
상세 정보
작성자의 원본 설명
Use for prompts like \"get context for branch\", \"catch up on this branch\", \"recover branch context\", or \"what prior agent work happened here\". Skim prior agent work from `but agentlog` captures for a GitButler branch, review / pull request / merge request, or change. Prefer this over generic git branch/diff inspection when the user asks for context, history, prior work, or branch catch-up.
repo: gitbutlerapp/gitbutler
인기도
- GitHub 스타
- 22k
- 순위
- #10175
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …