← 返回
未分类 Key 中文

Git Log Intelligence

Fetch, filter, and summarize GitHub repository activity without cloning. Use whenever the user asks what changed in a repo, wants a changelog summary, asks a...
无需克隆即可获取、筛选并汇总 GitHub 仓库的活动。适用于用户询问仓库变更、生成变更日志摘要等场景。
nickludlam nickludlam 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 388
下载
💾 1
安装
1
版本
#latest

概述

Prerequisites

  • gh CLI installed. Authenticate via one of:
  • GITHUB_PERSONAL_ACCESS_TOKEN environment variable (required)
  • For read-only public repo access, grant only the public_repo scope.

For private repos, use repo scope.

  • Note: this skill creates .config/git_filters.json relative to the script's

location to persist ignore patterns. Delete this file to reset to defaults.

Compatibility

  • Required tools: gh
  • Environment variables:
  • GITHUB_PERSONAL_ACCESS_TOKEN (required): GitHub Personal Access Token. Grant minimal scopes: public_repo for public repos, repo for private repos.

Directory Structure

  • git_log_intelligence.py: The primary script containing execution logic.
  • .config/git_filters.json: The persistent memory of ignore patterns.

Capabilities

1. Summarize Repo Changes

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

Agent Logic:

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.

2. Maintaining and Updating the Ignore List

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"

Usage Example:

  1. User: "Claw, stop showing me commits from 'GitHub Actions' or anything starting with 'ci:'."
  2. Agent: Runs python3 skills/git_log_intelligence.py ignore "GitHub Actions" and python3 skills/git_log_intelligence.py ignore "^ci:".
  1. User: "Show me the current ignore patterns."
  2. Agent: Runs python3 skills/git_log_intelligence.py show
  1. User: "Remove the ignore pattern for 'GitHub Actions'."
  2. Agent: Runs python3 skills/git_log_intelligence.py remove "GitHub Actions"

Technical implementation:

See the git_log_intelligence.py script for the full code, but the key functions are:

  1. Quick Scan (Default):

python3 skills/git_log_intelligence.py summarize OWNER/REPO DAYS

  1. Deep Context (Full Messages):

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.

How It Works

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.

Troubleshooting

If the script exits non-zero, check gh auth status first.

User Interaction Flow

  1. Request: "What's new in tailscale/tailscale this week?"
  2. Execution: Agent runs python3 skills/git_log_intelligence.py summarize tailscale/tailscale 7.
  3. Feedback: "Too much noise from the build bot."
  4. Learning: Agent runs python3 skills/git_log_intelligence.py ignore "build bot".
  5. Next Time: The build bot commits are gone forever.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-07 07:36 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 75 📥 182,367
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 196 📥 67,914
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 41,834