gitwhat

Generate a concise git workspace snapshot with branch, repo root, and worktree state.

131|13|Updated Dec 29, 2025
One-click install
npx skills add https://github.com/regenrek/agent-skills --skill gitwhat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitwhat
Source: https://github.com/regenrek/agent-skills/tree/main/skills/gitwhat
Command: npx skills add https://github.com/regenrek/agent-skills --skill gitwhat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Provide a concise git workspace snapshot for the current directory, enabling quick visibility into branch, repo root, and worktree status.

Core Features & Use Cases

  • Concise status snapshot: shows current branch, repo root, and worktree state.
  • Multi-worktree awareness: detects and reports on additional worktrees.
  • Use Case: during development or debugging, quickly assess repository state.

Quick Start

Run scripts/gitwhat.sh from the target directory to print the snapshot.

Frequently Asked Questions about gitwhat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my git workspace status and active branch?

To check your git workspace status, you can generate a concise snapshot that displays the current branch, repo root, and worktree state. This provides immediate visibility into your repository configuration during development or debugging.

What is a git worktree and how do I see if I have multiple worktrees?

A git worktree allows multiple working directories connected to the same repository. You can detect multiple worktrees by generating a workspace snapshot that identifies and reports on any additional worktrees linked to your current repository.

How do I get a quick git status snapshot from the command line?

You can get a git status snapshot by running a shell script from your target directory. This generates a concise, deterministic output showing the repo root, active branch, and overall worktree state.

Does git workspace detection work in a detached HEAD state?

Yes, git workspace detection supports identifying a detached HEAD state. The generated snapshot will explicitly report when the current directory is in a detached HEAD instead of showing an active branch name.

What happens if I run a git status check in a non-repo directory?

Running a git status check in a non-repo directory is handled gracefully. The snapshot script will detect the absence of a git repository and return a clean response without throwing unhandled errors.