Agent Skills
› instructa/agent-skills
› gitwhat
gitwhat
GitHub生成当前目录及兄弟工作树的Git状态快照,包括分支、仓库根路径、是否工作树及变更状态。
Trigger Scenarios
查看当前分支
检查仓库脏状态
确认是否为工作树
Install
npx skills add instructa/agent-skills --skill gitwhat -g -y
SKILL.md
Frontmatter
{
"name": "gitwhat",
"description": "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."
}
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.
Version History
- 11dfe69 Current 2026-08-20 11:31


