← 返回 Skills 市场
nickludlam

Git Log Intelligence

作者 Nick Ludlam · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
110
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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:".

  3. User: "Show me the current ignore patterns."

  4. Agent: Runs python3 skills/git_log_intelligence.py show

  5. User: "Remove the ignore pattern for 'GitHub Actions'."

  6. 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

  2. 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.
安全使用建议
This skill appears coherent, but consider: (1) it requires a GitHub personal access token—grant the minimal scope (public_repo for public repos) and treat the token like a secret; (2) ensure you have the gh CLI installed and that you trust where the skill files are stored—the script will create/modify .config/git_filters.json next to the script (if the skill is installed in a shared or system-owned directory, that file will be written there); (3) review the included python file yourself if you want to be sure no additional behavior is present; (4) if you stop using the skill, delete or rotate the PAT and remove the .config/git_filters.json file to clear persisted ignore patterns; (5) the agent will call the script to interact with GitHub (normal behavior) — there are no hidden external endpoints in the code.
功能分析
Type: OpenClaw Skill Name: git-log-intelligence Version: 1.0.2 The skill is a legitimate utility for summarizing GitHub repository activity using the `gh` CLI. It manages a local ignore list in `.config/git_filters.json` and uses the `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable for authentication as intended. The Python script (`git_log_intelligence.py`) uses safe `subprocess.run` calls with argument lists to prevent shell injection and contains no evidence of data exfiltration or malicious behavior.
能力标签
requires-oauth-token
能力评估
Purpose & Capability
Name/description match what the package actually does: it queries the GitHub API via the gh CLI and summarizes/filter commits. Required binary (gh) and the GITHUB_PERSONAL_ACCESS_TOKEN env var are appropriate and expected.
Instruction Scope
Runtime instructions tell the agent to run the included python script which uses gh api and reads/writes a local .config/git_filters.json ignore list. The script only accesses the GitHub API (via gh) and the declared env var; it does not reference other system paths or external endpoints. Note: it persists ignore patterns to disk (script-directory/.config/git_filters.json).
Install Mechanism
Instruction-only skill with a bundled script; there is no install spec, no remote downloads, and nothing is written to disk except the script's own .config file when the skill runs.
Credentials
Only requires a single GitHub PAT (GITHUB_PERSONAL_ACCESS_TOKEN) which is translated to GH_TOKEN for gh; SKILL.md correctly recommends minimal scopes (public_repo or repo). No unrelated credentials are requested.
Persistence & Privilege
always:false (normal). The only persistent effect is the ignore-list file saved under .config/git_filters.json relative to the script location; the skill does not modify other skills or system-wide settings. Autonomous invocation is allowed (platform default), so the agent may run the script when invoked by the user.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install git-log-intelligence
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /git-log-intelligence 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Added explicit metadata for required tools and environment variables. - Updated authentication instructions: only GITHUB_PERSONAL_ACCESS_TOKEN is now required. - Clarified required environment variable and tool setup for compatibility. - Minor edits for conciseness and consistency in documentation.
v1.0.1
- Added detailed prerequisites and authentication instructions for using the `gh` CLI with GitHub tokens. - Clarified how environment variables (`GH_TOKEN` and `GITHUB_PERSONAL_ACCESS_TOKEN`) determine authentication precedence. - Added compatibility notes, including required tools and usage for public/private repos. - Provided troubleshooting steps if authentication fails. - Expanded on how ignore patterns are persisted and reset. - No file or code changes; this update is documentation only.
v1.0.0
Initial release of git-log-intelligence. - Fetches and summarizes recent GitHub repo changes without cloning. - Filters out noisy commits (e.g., bots, chores, docs) using a persistent JSON-based ignore list. - Easily add, show, or remove ignore patterns with simple commands. - Supports both quick summaries and in-depth (full context) reports of commit history. - Learns from user feedback for continuous improvement of summaries.
元数据
Slug git-log-intelligence
版本 1.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 110 次。

如何安装 Git Log Intelligence?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install git-log-intelligence」即可一键安装,无需额外配置。

Git Log Intelligence 是免费的吗?

是的,Git Log Intelligence 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Git Log Intelligence 支持哪些平台?

Git Log Intelligence 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Git Log Intelligence?

由 Nick Ludlam(@nickludlam)开发并维护,当前版本 v1.0.2。

💬 留言讨论