gitwhat

GitHub

提供当前工作目录及兄弟工作树的Git状态快照,包括分支、根路径、工作树信息及变更状态。

skills/git/gitwhat/SKILL.md instructa/agent-skills

触发场景

查看当前Git分支和仓库状态 检查工作区是否有未提交的更改

安装

npx skills add instructa/agent-skills --skill gitwhat -g -y
更多选项

非标准路径

npx skills add https://github.com/instructa/agent-skills/tree/main/skills/git/gitwhat -g -y

不安装直接使用

npx skills use instructa/agent-skills@gitwhat

指定 Agent (Claude Code)

npx skills add instructa/agent-skills --skill gitwhat -a claude-code -g -y

安装 repo 全部 skill

npx skills add instructa/agent-skills --all -g -y

预览 repo 内 skill

npx skills add instructa/agent-skills --list

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.sh from 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.

版本历史

  • 11dfe69 当前 2026-08-20 11:31

同 Skill 集合

skills/delegation/delegate-fable/SKILL.md
skills/delegation/delegate-grok/SKILL.md
skills/delegation/delegate-sol/SKILL.md
skills/design/redesign-my-landingpage/SKILL.md
skills/electron/electron-live-test/SKILL.md
skills/engineering/architecture-ownership/SKILL.md
skills/engineering/clarify/SKILL.md
skills/engineering/consolidate-test-suites/SKILL.md
skills/engineering/find-duplicate-ownership/SKILL.md
skills/engineering/hard-cut/SKILL.md
skills/engineering/root-cause-finder/SKILL.md
skills/engineering/search-context/SKILL.md
skills/go/go-local-health/SKILL.md
skills/release/homebrew-publish/SKILL.md
skills/security/package-security-check/SKILL.md
skills/security/secleak-check/SKILL.md
skills/shell/shellck/SKILL.md
skills/specs/app-spec-packager/SKILL.md

元信息

文件数
0
版本
7e90526
Hash
074658e6
收录时间
2026-08-20 11:31

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 16:01
浙ICP备14020137号-1 $访客地图$