Git Summary
by @zweack
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
clawhub install git-summaryπ About This Skill
name: git-summary description: Get a quick summary of the current Git repository including status, recent commits, branches, and contributors. user-invocable: true metadata: {"openclaw": {"emoji": "π", "requires": {"bins": ["git"]}, "os": ["darwin", "linux", "win32"]}}
Git Summary Skill
This skill provides a comprehensive overview of the current Git repository state.
Usage
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.
Instructions
1. Repository Status: Run git status --short --branch to get the current branch and working directory status.
2. Recent Commits: Run git log --oneline -10 --decorate to show the last 10 commits with branch/tag decorations.
3. Branch Overview: Run git branch -a --list to list all local and remote branches.
4. Remote Info: Run git remote -v to show configured remotes.
5. Uncommitted Changes Summary:
- Run git diff --stat for unstaged changes
- Run git diff --cached --stat for staged changes
6. Contributors (optional, for larger context): Run git shortlog -sn --all | head -10 to show top 10 contributors.
Output Format
Present the gathered information in a structured format:
## π Git Repository SummaryCurrent Branch & Status
Branch:
Status: Recent Commits (Last 10)
Branches
Local: branches
Remote: branches
Remotes
Uncommitted Changes
Notes
git init.π‘ Examples
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.
π Tips & Best Practices
git init.