Skip to content

IvanCampos/agents / skills/git-search

git-search

Verified

List recent git commits across all repos under ~/Code (excluding .build checkouts). Use when the user asks to show last commits, recent history, or commits across all projects in ~/Code.

FileKindSize
SKILL.mdskill md673 B
agents/openai.yamlconfig172 B
scripts/list_commits.shexecutablescript982 B

scripts/list_commits.sh

View on GitHub
#!/usr/bin/env bash
set -euo pipefail

usage() {
  cat <<'USAGE'
Usage:
  list_commits.sh --count <N> [--path <root>]

Options:
  --count  Number of commits per repo (required)
  --path   Root directory to scan (default: $HOME/Code)
USAGE
}

count=""
root="$HOME/Code"

while [[ $# -gt 0 ]]; do
  case "$1" in
    --count) count="${2:-}"; shift 2 ;;
    --path) root="${2:-}"; shift 2 ;;
    -h|--help) usage; exit 0 ;;
    *) echo "Unknown arg: $1" >&2; usage; exit 2 ;;
  esac
done

if [[ -z "$count" ]]; then
  echo "Missing --count." >&2
  usage
  exit 2
fi

if ! [[ "$count" =~ ^[0-9]+$ ]] || [[ "$count" -le 0 ]]; then
  echo "Invalid --count: $count" >&2
  exit 2
fi

if [[ ! -d "$root" ]]; then
  echo "Root not found: $root" >&2
  exit 2
fi

find "$root" -type d -name .git -prune \
  | sed 's|/.git$||' \
  | grep -v '/.build/' \
  | sort \
  | while IFS= read -r repo; do
      echo "==> $repo"
      git -C "$repo" --no-pager log -"$count" --oneline
      echo
    done
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall