gh CLI installed. Authenticate via one of:GITHUB_PERSONAL_ACCESS_TOKEN environment variable (required)public_repo scope. For private repos, use repo scope.
.config/git_filters.json relative to the script'slocation to persist ignore patterns. Delete this file to reset to defaults.
ghGITHUB_PERSONAL_ACCESS_TOKEN (required): GitHub Personal Access Token. Grant minimal scopes: public_repo for public repos, repo for private repos.git_log_intelligence.py: The primary script containing execution logic..config/git_filters.json: The persistent memory of ignore patterns.Fetches the last N days of commits and filters them against the "Ignore List."
Command: python3 skills/git_log_intelligence.py summarize OWNER/REPO DAYS
Call the script with the repo name and timeframe.
Receive a filtered list of "Important" commits.
Present a natural language summary to the user, noting how many noisy commits were hidden.
The agent can add new patterns to the ignore list based on user feedback.
Command: python3 skills/git_log_intelligence.py ignore "PATTERN"
The agent can also show the current ignore patterns or remove specific ones.
Command: python3 skills/git_log_intelligence.py show
The agent can remove a pattern with:
Command: python3 skills/git_log_intelligence.py remove "PATTERN"
See the git_log_intelligence.py script for the full code, but the key functions are:
python3 skills/git_log_intelligence.py summarize OWNER/REPO DAYS
python3 skills/git_log_intelligence.py summarize OWNER/REPO DAYS --full
Note to Agent:
Use --full when the user asks for a "detailed summary," "technical breakdown," or "why" things were changed. Use the default mode for a "quick list" or "recent activity check."
You can also ask the user if they want the full context after showing the quick summary.
The script uses gh api to fetch commits via the GitHub REST API
(/repos/{owner}/{repo}/commits), filters them client-side against
.config/git_filters.json, and outputs structured text for the agent
to summarize.
If the script exits non-zero, check gh auth status first.
python3 skills/git_log_intelligence.py summarize tailscale/tailscale 7.python3 skills/git_log_intelligence.py ignore "build bot".共 1 个版本