Token导航 LogoToken导航

Agent Skill · 研究检索

gitbutler(gitbutler 搜索)

gitbutler 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

gitbutler 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为可写文件;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 45,403。

总安装 849周安装 34GitHub Stars 7下载 275核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gitbutler(gitbutler 搜索)
来源仓库:https://github.com/aheritier/boost-your-ai
仓库路径:skills/gitbutler
安装命令:
npx skills add https://github.com/aheritier/boost-your-ai --skill gitbutler
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/aheritier/boost-your-ai --skill gitbutler

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。通过 npx skills add 命令从指定仓库安装使用。建议确认权限范围和维护状态,注意可能触发联网或命令执行。可结合原始 README 进一步了解具体功能和使用方法。

来源仓库内路径:skills/gitbutler

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/aheritier/boost-your-ai --skill gitbutler;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要可写文件,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

gitbutler 怎么安装?

在终端执行 npx skills add https://github.com/aheritier/boost-your-ai --skill gitbutler。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

gitbutler 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

gitbutler 需要什么权限?

权限级别是可写文件。该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

gitbutler 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

gitbutler 用的人多吗?

公开数据是累计安装 849 次,近一周安装 34 次,下载 275 次,GitHub 7 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

gitbutler 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
gitbutler

gitbutler 搜索 · 本页

8497可写文件MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

GitButler CLI Guide

GitButler (but) is a modern Git client that makes history manipulation safe and reversible.

[IMPORTANT] Detect GitButler Workspace

Before running any git commands, check if GitButler is active:

git branch --show-current

If the result is gitbutler/workspace:

  • [PREFER] but commands when equivalent exists (commit, squash, undo, amend)
  • [OK] Native git for operations but doesn't cover (cherry-pick, stash, tag, revert, blame)
  • [CAUTION] Some git commands can corrupt virtual branch state (see below)

Git Command Guidelines:

Prefer butUse git freelyUse git with caution
but commit over git commitgit cherry-pickgit reset --hard
but rub over git rebase -igit stashgit push --force
but undo over git resetgit taggit rebase
but absorb for amendinggit revertgit clean
but reword for messagesgit blame, git bisectgit checkout <file>

Why prefer but when available? GitButler manages virtual branches through its workspace:

  • but commands maintain virtual branch tracking
  • but undo and oplog provide safer recovery
  • Some raw git commands can corrupt the virtual branch state

Quick detection pattern:

# At start of git-related tasks, check:
if [[ $(git branch --show-current) == "gitbutler/workspace" ]]; then
    # Use 'but' commands instead of 'git'
fi

Key Advantages Over Git

FeatureGitGitButler
Undo operationsComplex reflogbut undo
Time travelRisky resetbut restore <sha>
Squash commitsrebase -i + editorbut rub <src> <target>
Fix old commitstash → rebase → amendbut absorb
Multiple featuresSwitch branches constantlyVirtual branches (simultaneous)

Essential Commands

Inspection (Always Start Here!)

but status              # View workspace state (branches, commits, changes)
but oplog               # View operation history (time-travel checkpoints)

Status output explained:

╭┄00 [Unassigned Changes]
┊   g0 M calculator.py [LOCKED] 8ebedce   ← File ID, status, dependency
┊
┊╭┄al [calculator-feature]                ← Branch ID
┊●   abc1234 Commit message               ← Commit
├╯
┊
┴ 6e7da9e (common base) [origin/main]
  • g0, h0: File/change IDs (use with but rub)
  • al, ut: Branch IDs
  • [LOCKED] <sha>: GitButler detected this change belongs to that commit
  • M, A, D: Modified, Added, Deleted

The rub Multi-Tool

The rub command performs different operations based on source/target types:

SourceTargetOperationExample
FileBranchAssignbut rub g0 al
FileCommitAmendbut rub g0 abc123
CommitCommitSquashbut rub abc123 def456
CommitBranchMovebut rub abc123 ut

Squash workflow:

but status                        # Get current SHAs
but rub <source-sha> <target-sha> # Squash source INTO target
but reword <new-sha> -m "Combined message"  # Update message

Smart Amending with absorb

When you modify code, GitButler detects which commit introduced those lines:

# Edit a file, then check status
but status
# Shows: g0 M file.py [LOCKED] abc123  ← Detected dependency!

# Auto-amend to the correct commit
but absorb

GitButler automatically:

  1. Analyzes which lines changed
  2. Finds the commit that introduced them
  3. Amends the change into that commit
  4. Rebases all dependent commits

Commit Editing

but reword <sha> -m "new message"  # Edit commit message (auto-rebases)
but absorb                            # Auto-amend changes to correct commits
but absorb <file-id>                  # Absorb specific file only

Undo & Recovery (Time Travel)

but undo                      # Undo last operation (one step back)
but oplog snapshot -m "checkpoint"  # Create named checkpoint
but restore <sha> --force     # Restore to any oplog snapshot

The oplog is your time machine:

but oplog                     # See all operations
# Output:
# 7f8e652 [SQUASH] SquashCommit
# abc1234 [CREATE] CreateCommit
# def5678 [MOVE_HUNK] MoveHunk

but restore 7f8e652 --force   # Go back to that point

Even undos are tracked! You can undo an undo.


Virtual Branches (Work on Multiple Features)

Create and manage branches:

but branch new <name>         # Create virtual branch
but branch list               # List all branches
but branch unapply <id>       # Hide branch temporarily
but branch apply <id>         # Show branch again

Work on multiple features simultaneously:

# Edit files for different features
vim feature-a.py
vim feature-b.py

# Check status - assign to different branches
but status
# g0 M feature-a.py
# h0 M feature-b.py

but rub g0 al                 # Assign to branch 'al'
but rub h0 ut                 # Assign to branch 'ut'

# Commit to each branch
but commit al -m "Feature A" --only
but commit ut -m "Feature B" --only

No context switching! Both branches are active simultaneously.


Committing

but commit <branch> -m "message"        # Commit ALL uncommitted changes
but commit <branch> -m "message" --only # Commit ONLY assigned changes
but commit -c -m "message"              # Create new branch and commit

[CAUTION] Important: Without --only, but commit includes ALL uncommitted changes!


Quick Reference: Git → But

Git CommandBut Command
git statusbut status
git reflogbut oplog
git checkout -bbut branch new
git addbut rub <file> <branch>
git commitbut commit <branch> -m
git commit --amendbut rub <file> <commit> or but absorb
git rebase -i (squash)but rub <commit> <commit>
git rebase -i (reword)but reword <sha> -m
git reset --hardbut restore <sha> --force
N/Abut undo
N/Abut oplog snapshot
N/Abut absorb

Common Workflows

Fix typo in old commit message

but status                           # Find the commit SHA
but reword <sha> -m "Fixed message"

Squash multiple commits

but status                           # Get SHAs
but rub <source> <target>            # Squash
but reword <new-sha> -m "Combined" # Update message

Amend change to old commit

# Edit the file, then:
but status                           # Check for [LOCKED] dependency
but absorb                           # Auto-amend

Recover from mistake

but undo                             # Quick: undo last operation
# OR
but oplog                            # Find the right snapshot
but restore <sha> --force            # Go back in time

Error Handling

Common Errors and Recovery

ErrorCauseRecovery
but status failsGitButler not initializedRun but to initialize, or check .git/gitbutler directory
"Branch not found"Virtual branch deleted/renamedRun but status to list available branches
"Conflict detected"Merge conflict during operationResolve conflicts in files, then but commit
"Uncommitted changes"Operation blocked by dirty stateCommit or stash changes first
Command hangsLarge repo or network issueWait, or Ctrl+C and retry

Recovery Commands

but undo                    # Undo last operation (safe, always works)
but oplog                   # View all operations for recovery points
but restore <sha> --force   # Restore to any previous state
but oplog snapshot list           # List named checkpoints

When to Use undo vs restore

  • but undo: Quick single-step rollback. Use when the last operation went wrong.
  • but restore: Time-travel to any point. Use when you need to go back multiple operations or to a named checkpoint.

[INFO] The oplog tracks everything, including undos. You can always recover!


Claude Code Hooks Integration

GitButler integrates with Claude Code through hooks (but claude pre-tool, but claude post-tool, but claude stop) that automatically manage commits during AI-assisted development sessions.

Key benefits:

  • Auto-assigns changes to appropriate branches
  • Generates commit messages from user prompts
  • Eliminates manual but commit during sessions

For detailed configuration and setup instructions, see references/hooks.md.


Reference Files

For detailed documentation, see:

  • references/cheatsheet.md - Quick command reference with git → but mappings
  • references/tutorial.md - Comprehensive step-by-step workflows
  • references/hooks.md - Claude Code hooks setup guide

平台分布

Claude Code

27.8%
按下载量换算76

OpenCode

23.01%
按下载量换算63

Cursor

17.47%
按下载量换算48

Antigravity

14.42%
按下载量换算40

windsurf

9.14%
按下载量换算25

Codex

3.77%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills