Back to Skills

gitwhat

Concise git workspace snapshot for the current directory. Use when asked to show current branch, cwd, repo root, whether the current directory is a worktree, local dirty status, or whether other worktrees have uncommitted changes.

43stars5forksUpdated 4/3/2026

Security Assessment

Safe(100/100)
Security Score100/100

About gitwhat

The 'gitwhat' skill provides a concise snapshot of the git workspace for the current directory, allowing users to quickly understand the state of their repository without sifting through verbose git outputs. It addresses the common problem of needing a fast and clear overview of branch information, repository root, worktree status, and file changes, especially when working across multiple worktrees or when managing several repositories simultaneously. By focusing on local information and avoiding network calls, it ensures that developers can obtain an accurate summary without delays or dependencies on remote servers.

Key features of 'gitwhat' include reporting the current working directory, the active branch (or detached commit SHA), the repository root, worktree status (including names for multiple worktrees), and the cleanliness of both the current directory and other sibling worktrees. The output is designed to be compact and easily readable, providing a high-level overview while still including essential details such as the number of uncommitted changes. The skill is executed via a simple script, making it accessible and easy to integrate into existing workflows.

'gitwhat' is ideal for developers, DevOps engineers, and code reviewers who frequently interact with git repositories and need a quick way to assess repository state. It is especially useful in multi-worktree setups, continuous integration environments, or when managing multiple repositories simultaneously. By delivering a clear snapshot without requiring complex commands, it streamlines workflows, aids in debugging, and helps maintain awareness of repository status across different contexts.

FAQ

How do I run gitwhat?

You can run 'gitwhat' by executing the script located at 'scripts/gitwhat.sh' from the target directory.

What happens if I run it outside a git repository?

The script will report the current working directory and exit without attempting any git operations.

Does gitwhat require internet access?

No, gitwhat relies solely on local git commands and does not perform any network calls.

Can gitwhat show the status of multiple worktrees?

Yes, it reports the cleanliness of other sibling worktrees along with the current one.

Is the output customizable?

The output is kept compact and formatted as-is. Additional detail is only shown if specifically requested.

Install gitwhat

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill