← 返回 Skills 市场
zweack

Git Summary

作者 zweack · GitHub ↗ · v1.0.0
darwinlinuxwin32 ✓ 安全检测通过
3588
总下载
1
收藏
18
当前安装
1
版本数
在 OpenClaw 中安装
/install git-summary
功能描述
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
使用说明 (SKILL.md)

\r \r

Git Summary Skill\r

\r This skill provides a comprehensive overview of the current Git repository state.\r \r

Usage\r

\r When the user asks for a git summary, repository overview, or wants to understand the current state of a git project, use the terminal to run the following commands and present the results in a clear, organized format.\r \r

Instructions\r

\r

  1. Repository Status: Run git status --short --branch to get the current branch and working directory status.\r \r
  2. Recent Commits: Run git log --oneline -10 --decorate to show the last 10 commits with branch/tag decorations.\r \r
  3. Branch Overview: Run git branch -a --list to list all local and remote branches.\r \r
  4. Remote Info: Run git remote -v to show configured remotes.\r \r
  5. Uncommitted Changes Summary: \r
    • Run git diff --stat for unstaged changes\r
    • Run git diff --cached --stat for staged changes\r \r
  6. Contributors (optional, for larger context): Run git shortlog -sn --all | head -10 to show top 10 contributors.\r \r

Output Format\r

\r Present the gathered information in a structured format:\r \r

## 📊 Git Repository Summary\r
\r
### Current Branch & Status\r
- Branch: `\x3Cbranch_name>`\r
- Status: \x3Cclean/dirty with X modified, Y staged, Z untracked>\r
\r
### Recent Commits (Last 10)\r
\x3Cformatted commit list>\r
\r
### Branches\r
- Local: \x3Ccount> branches\r
- Remote: \x3Ccount> branches\r
\x3Clist notable branches>\r
\r
### Remotes\r
\x3Clist remotes with URLs>\r
\r
### Uncommitted Changes\r
\x3Csummary of staged and unstaged changes>\r
```\r
\r
## Notes\r
\r
- If not in a git repository, inform the user and suggest initializing one with `git init`.\r
- For large repositories, the contributor list may take a moment - warn the user if this is expected.\r
- Always respect that some information may be sensitive - don't expose full URLs if they contain tokens.\r
安全使用建议
This skill is coherent with its purpose, but be careful where you run it: run it only inside the repository you intend to inspect and avoid sharing raw outputs publicly. Remote URLs can embed credentials (e.g., https://user:token@host); mask or redact URLs before posting. For very large repos, `git shortlog` and diffs may be slow or produce large outputs — consider running narrower commands if you suspect secrets or very large history. If you need stricter control, preview the commands the agent will run and ask it to redact sensitive fields before presenting results.
功能分析
Type: OpenClaw Skill Name: Developer: Version: Description: OpenClaw Agent Skill The skill bundle is benign, providing a summary of a local Git repository using standard `git` commands. All commands specified in `SKILL.md` are directly related to the stated purpose and do not exhibit any signs of data exfiltration, malicious execution, persistence, or prompt injection attempts. Furthermore, the `SKILL.md` includes a positive security instruction to the agent to avoid exposing sensitive information like tokens in URLs.
能力评估
Purpose & Capability
Name/description ask for a repo summary and the skill only requires the git binary and runs git commands to collect status, commits, branches, remotes, diffs, and contributors — all directly relevant.
Instruction Scope
Instructions are limited to running git commands in the current working directory, which is appropriate. One caution: `git remote -v` will print remote URLs that can include embedded credentials (e.g., https://user:token@host) and `git diff`/logs may reveal sensitive repository content. The SKILL.md does note to avoid exposing tokens, but consumers should ensure results are masked before sharing externally.
Install Mechanism
No install spec or additional packages — instruction-only skill that expects the existing git binary. This minimizes install-time risk.
Credentials
The skill requests no environment variables or credentials. The only sensitive data risk comes from repository data the git commands return (remotes, commit messages, diffs), which is expected for this purpose.
Persistence & Privilege
Does not request always:true or modify agent/system configuration. It is user-invocable and can be run by the agent when invoked, which is appropriate for this utility.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install git-summary
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /git-summary 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release – provides a summary of the current Git repository. - Summarizes branch and status, recent commits, branches, remotes, and contributors. - Offers step-by-step instructions for each summary area. - Organizes all output for clarity and ease of use. - Alerts users if not in a Git repo and gives guidance for initialization. - Considers privacy by warning about sensitive information in remote URLs.
元数据
Slug git-summary
版本 1.0.0
许可证
累计安装 18
当前安装数 18
历史版本数 1
常见问题

Git Summary 是什么?

Get a quick summary of the current Git repository including status, recent commits, branches, and contributors. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3588 次。

如何安装 Git Summary?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install git-summary」即可一键安装,无需额外配置。

Git Summary 是免费的吗?

是的,Git Summary 完全免费(开源免费),可自由下载、安装和使用。

Git Summary 支持哪些平台?

Git Summary 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, win32)。

谁开发了 Git Summary?

由 zweack(@zweack)开发并维护,当前版本 v1.0.0。

💬 留言讨论