Chuyển đến nội dung
Skillpedia
Lập trình chung22k · #10175

but-agentlog

Skill này làm gì

Skill này xem các phiên agent AI trước đây được liên kết với một nhánh mã hoặc một lần review. Skill dành cho lập trình viên tiếp nhận công việc và cần biết điều gì đã được thử.

Khi nào nên dùng

  • ✓Khi bạn tiếp nhận một nhánh và muốn biết việc gì đã được làm trước đó.
  • ✓Khi ai đó yêu cầu cập nhật về một nhánh, lần review hoặc thay đổi.
  • ✓Khi bạn cần khôi phục bối cảnh từ các phiên agent trước đó.

Liên kết skill

https://github.com/gitbutlerapp/gitbutler/blob/master/crates/but-agentlog/skill/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/gitbutlerapp/gitbutler/blob/master/crates/but-agentlog/skill/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Cập nhật cho tôi những gì đã xảy ra trên nhánh này trước khi tôi thay đổi bất cứ thứ gì.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent dùng lệnh agentlog của GitButler để liệt kê các phiên liên quan trong một bản tổng quan ngắn. Nó chỉ mở chi tiết một phiên khi bản tổng quan chưa đủ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
  1. Start with skim for a clean orientation.
  2. Treat skim like compacted turn history: all related sessions and turns are present, but each turn is abbreviated. It is not the full transcript.
  3. If skim is enough for a lightweight status answer, summarize it and stop.
  4. Drill down only when skim is ambiguous, misses the rationale, or you need exact evidence.
  5. To drill down, rerun skim with --json to get the relevant session_key and turn_key, then use show.
  6. Use show <session-key> for turn-level context.
  7. 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 skim for turn-history recovery.
  • Treat skim as complete but abbreviated. It includes every related session and every turn in those sessions, not every record or the full transcript.
  • Prefer human skim output first. Use --json only for drill-down handles or exact evidence.
  • Run show when skim is 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 20 and summarize previews.
  • Treat matches as related evidence, not ownership.
  • Keep session_key and turn_key values 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_kind and target_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

Câu hỏi thường gặp

Nó có cần ứng dụng GitButler không?

Có. Nó dùng lệnh agentlog đi kèm với GitButler.

Nó có xử lý commit hoặc push không?

Không. Skill này dùng để đọc các phiên trước đó. Các thao tác quản lý phiên bản thuộc về một skill GitButler khác.

Tôi có thể xem chi tiết một phiên không?

Có. Bạn có thể mở một phiên bằng khóa của nó khi bản tổng quan quá sơ sài.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
22k
Vị trí xếp hạng
#10175
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự