Agent skill
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.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/gitwhat
SKILL.md
Gitwhat
Overview
Provide a short, formatted git status snapshot for the current working directory and any sibling worktrees.
Quick start
- Run
scripts/gitwhat.shfrom the target directory. - If not inside a git repo, report the cwd and exit.
Output fields
- CWD
- Branch (or detached@)
- Repo root
- Worktree (yes/no + name or main)
- Status (clean/dirty with counts)
- Other worktrees (clean/dirty per worktree)
Notes
- Keep output compact and use the script output as-is unless the user asks for more detail.
- Do not use network calls; rely on local git commands.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?