← 返回 Skills 市场
44
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install commit-diff-analyzer
功能描述
Analyzes code changes between two git commits. Use when user provides two commit IDs and wants to understand what changed between them, including file modifi...
使用说明 (SKILL.md)
Commit Diff Analyzer
Usage Pattern
When user provides two commit IDs (in any order or format), analyze the changes between them:
- Validate commits exist: Run
git cat-file -t \x3Ccommit>for each commit ID - Get commit info: Run
git log -1 --format=fuller \x3Ccommit>for both commits - Show diff: Run
git diff \x3Colder-commit>..\x3Cnewer-commit>(chronological order) - Show stats: Run
git diff --stat \x3Colder-commit>..\x3Cnewer-commit>
Output Organization
Present the analysis with:
- Commit metadata - Author, date, commit message for both commits
- Change summary - Files changed, insertions, deletions
- Detailed diff - Line-by-line changes with context
- File breakdown - Group by: Modified, Added, Deleted files
Key Commands
# Validate commits exist
git cat-file -t \x3Ccommit-id>
# Get full commit info
git log -1 --format="Hash: %H%nAuthor: %an%nDate: %ad%nMessage: %s%n" \x3Ccommit-id>
# Chronological diff (older..newer)
git diff \x3Colder-commit>..\x3Cnewer-commit>
# Diff stat
git diff --stat \x3Colder-commit>..\x3Cnewer-commit>
# Show files changed
git diff --name-only \x3Colder-commit>..\x3Cnewer-commit>
Handling Edge Cases
- Invalid commit IDs: Report error and suggest running
git logto see recent commits - Same commit: Notify user both IDs point to the same commit
- Non-git directory: Error - skill only works in git repositories
- Reverse order: Detect which commit is older and adjust command accordingly
Commit ID Formats
Accept various formats:
- Full SHA:
abc123def456... - Short SHA:
abc123d(at least 7 chars) - Branch names (if they point to commits)
- HEAD references like
HEAD~5
Example Output Structure
=== Commit A ===
Hash: abc123...
Author: John Doe
Date: 2024-01-15 10:30:00
Message: feat: add user login
=== Commit B ===
Hash: def456...
Author: Jane Smith
Date: 2024-01-20 14:45:00
Message: fix: resolve auth bug
=== Changes Summary ===
5 files changed, 120 insertions(+), 35 deletions(-)
=== File Breakdown ===
Modified: src/auth.js, src/login.html
Added: src/auth-utils.ts
Deleted: src/old-auth.php
=== Diff ===
... (detailed diff output)
安全使用建议
This appears safe for normal use as a git diff helper. Before installing, remember that it may show code and commit history from the current repository in the chat, so use it only where you are comfortable exposing that diff content to your agent session.
功能分析
Type: OpenClaw Skill
Name: commit-diff-analyzer
Version: 1.0.0
The commit-diff-analyzer skill is a standard utility designed to help an AI agent analyze changes between two git commits. It uses legitimate git commands (git log, git diff, git cat-file) to retrieve metadata and file differences, with clear instructions for handling edge cases and formatting output. No malicious patterns, data exfiltration, or suspicious execution logic were found in SKILL.md or _meta.json.
能力评估
Purpose & Capability
The requested behavior is coherent with the stated purpose: analyzing differences between two git commits.
Instruction Scope
The skill instructs the agent to run git commands using user-provided commit IDs or refs; this is expected for the purpose, but users should ensure it runs only in the intended repository.
Install Mechanism
There is no install spec and no executable code files; the skill is instruction-only.
Credentials
The commands are limited to local git inspection and diff output, which is proportionate for a commit comparison skill.
Persistence & Privilege
No persistence, credential use, background behavior, privilege escalation, or account access is described.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install commit-diff-analyzer - 安装完成后,直接呼叫该 Skill 的名称或使用
/commit-diff-analyzer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
Commit Diff Analyzer 是什么?
Analyzes code changes between two git commits. Use when user provides two commit IDs and wants to understand what changed between them, including file modifi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 44 次。
如何安装 Commit Diff Analyzer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install commit-diff-analyzer」即可一键安装,无需额外配置。
Commit Diff Analyzer 是免费的吗?
是的,Commit Diff Analyzer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Commit Diff Analyzer 支持哪些平台?
Commit Diff Analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Commit Diff Analyzer?
由 afine907(@afine907)开发并维护,当前版本 v1.0.0。
推荐 Skills