Git Log Intelligence — Git 记录 Intelligence
v1.0.2Fetch, 过滤器, and summarize GitHub 仓库 activity without cloning. Use whenever the user asks what changed in a repo, wants a change记录 summary, asks about recent commits or PRs, or wants to 调优 out noisy commit patterns. MAIntAIns a persistent ignore 列出 to hide 机器人/CI/chore noise automatically.
运行时依赖
版本
Fetches the last N days of commits and 过滤器s them agAInst the "Ignore 列出." Command: python3 技能s/git_记录_intelligence.py summarize OWNER/REPO DAYS
安装命令
点击复制技能文档
Prerequisites gh 命令行工具 安装ed. 认证 via one of: GITHUB_PERSONAL_访问_令牌 环境 variable (required) For read-only public repo 访问, grant only the public_repo scope. For private repos, use repo scope. Note: this 技能 创建s .config/git_过滤器s.json relative to the script's location to persist ignore patterns. 删除 this file to re设置 to defaults. Compatibility Required 工具s: gh 环境 variables: GITHUB_PERSONAL_访问_令牌 (required): GitHub Personal 访问 令牌. Grant minimal scopes: public_repo for public repos, repo for private repos. Directory Structure git_记录_intelligence.py: The primary script contAIning execution 记录ic. .config/git_过滤器s.json: The persistent memory of ignore patterns. Capabilities
- Summarize Repo Changes
Fetches the last N days of commits and 过滤器s them agAInst the "Ignore 列出." Command: python3 技能s/git_记录_intelligence.py summarize OWNER/REPO DAYS
代理 记录ic:
Call the script with the repo name and timeframe. 接收 a 过滤器ed 列出 of "导入ant" commits. Present a natural language summary to the user, noting how many noisy commits were hidden.
- MAIntAIning and Updating the Ignore 列出
The 代理 can 添加 new patterns to the ignore 列出 based on user feedback. Command: python3 技能s/git_记录_intelligence.py ignore "PATTERN"
The 代理 can also show the current ignore patterns or 移除 specific ones. Command: python3 技能s/git_记录_intelligence.py show
The 代理 can 移除 a pattern with: Command: python3 技能s/git_记录_intelligence.py 移除 "PATTERN"
Usage Example:
User: "Claw, 停止 showing me commits from 'GitHub Actions' or anything 启动ing with 'ci:'."
代理: 运行s python3 技能s/git_记录_intelligence.py ignore "GitHub Actions" and python3 技能s/git_记录_intelligence.py ignore "^ci:".
User: "Show me the current ignore patterns."
代理: 运行s python3 技能s/git_记录_intelligence.py show
User: "移除 the ignore pattern for 'GitHub Actions'."
代理: 运行s python3 技能s/git_记录_intelligence.py 移除 "GitHub Actions"
Technical implementation:
See the git_记录_intelligence.py script for the full code, but the key functions are:
Quick 扫描 (Default): python3 技能s/git_记录_intelligence.py summarize OWNER/REPO DAYS
Deep 上下文 (Full Messages): python3 技能s/git_记录_intelligence.py summarize OWNER/REPO DAYS --full
Note to 代理:
Use --full when the user asks for a "detAIled summary," "technical breakdown," or "why" things were changed. Use the default mode for a "quick 列出" or "recent activity 检查." You can also ask the user if they want the full 上下文 after showing the quick summary.
How It Works
The script uses gh API to fetch commits via the GitHub REST API (/repos/{owner}/{repo}/commits), 过滤器s them 命令行工具ent-side agAInst .config/git_过滤器s.json, and 输出s structured text for the 代理 to summarize.
Troubleshooting
If the script exits non-zero, 检查 gh auth 状态 first.
User Interaction Flow 请求: "What's new in tAIl扩展/tAIl扩展 this week?" Execution: 代理 运行s python3 技能s/git_记录_intelligence.py summarize tAIl扩展/tAIl扩展 7. Feedback: "Too much noise from the build 机器人." Learning: 代理 运行s python3 技能s/git_记录_intelligence.py ignore "build 机器人". Next Time: The build 机器人 commits are gone forever.