git-search
npx machina-cli add skill IvanCampos/agents/git-search --openclawFiles (1)
SKILL.md
673 B
Git Search
Overview
Discover git repositories under ~/Code and list recent commits for each one.
Quick Start
scripts/list_commits.sh --count 10
Tasks
List recent commits across repos
- Run
scripts/list_commits.sh --count <N>. - Excludes
.buildcheckouts. - Prints a per-repo header and the last N commits.
Resources
scripts/
list_commits.sh: Finds repos under~/Codeand prints recent commits.
Source
git clone https://github.com/IvanCampos/agents/blob/main/skills/git-search/SKILL.mdView on GitHub Overview
Git Search discovers git repositories under ~/Code and lists recent commits for each one. It helps you quickly gauge activity across multiple projects by showing the latest changes in a single view. It excludes .build checkouts to keep results focused.
How This Skill Works
A shell script scans ~/Code for repos, then runs git commands to fetch the last N commits for each repository. It prints a per-repo header followed by the commits, skipping any .build checkouts.
When to Use It
- When you want the last commits across all projects in ~/Code
- When you need a quick recent history for multiple repos
- During code reviews spanning several repositories in ~/Code
- To monitor activity across your codebase without opening every repo
- When preparing a summary of recent changes for teammates
Quick Start
- Step 1: Open a terminal
- Step 2: Run scripts/list_commits.sh --count 10
- Step 3: Review the per-repo commit lists
Best Practices
- Use --count to limit output and keep results readable
- Ensure you're scanning the correct path ~/Code and that .build checkouts are excluded
- Run periodically to track activity trends
- Combine with grep or filtering to focus on specific authors or messages
- Verify results by inspecting the actual repos for deeper details
Example Use Cases
- scripts/list_commits.sh --count 10
- Run with --count 25 to surface more history
- View latest changes across all repos in ~/Code
- Exclude .build checkouts to avoid noise
- Output shows per-repo sections with commits
Frequently Asked Questions
Add this skill to your agents