运行时依赖
版本
运行 git diff --缓存d --stat for staged changes
安装命令
点击复制技能文档
Git Summary 技能
This 技能 provides a comprehensive overview of the current Git 仓库 状态.
Usage
When the user asks for a git summary, 仓库 overview, or wants to understand the current 状态 of a git project, use the terminal to 运行 the following commands and present the 结果s in a clear, organized 格式化.
Instructions
仓库 状态: 运行 git 状态 --short --branch to 获取 the current branch and working directory 状态.
Recent Commits: 运行 git 记录 --oneline -10 --decorate to show the last 10 commits with branch/tag decorations.
Branch Overview: 运行 git branch -a --列出 to 列出 all local and remote branches.
Remote 信息: 运行 git remote -v to show 配置d remotes.
Uncommitted Changes Summary:
运行 git diff --stat for unstaged changes 运行 git diff --缓存d --stat for staged changes
Contributors (optional, for larger 上下文): 运行 git short记录 -sn --all | head -10 to show top 10 contributors.
输出 格式化
Present the gathered in格式化ion in a structured 格式化:
📊 Git 仓库 Summary
Current Branch & 状态
- Branch:
- 状态: <清理/dirty with X modified, Y staged, Z un追踪ed>
Recent Commits (Last 10)
<格式化ted commit 列出>Branches
- Local: branches
- Remote: branches
Remotes
<列出 remotes with URLs>Uncommitted Changes
Notes If not in a git 仓库, 信息rm the user and suggest initializing one with git init. For large repositories, the contributor 列出 may take a moment - warn the user if this is expected. Always respect that some in格式化ion may be sensitive - don't expose full URLs if they contAIn 令牌s.