← 返回 Skills 市场
核心脚本 (
每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描
作者
KenneyChen
· GitHub ↗
· v1.0.0
· MIT-0
121
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install git-daily-skill
功能描述
今日 Git 提交日报助手 —— 自动扫描当天(含次日凌晨6点前)所有仓库的 commit 记录,生成结构化日报。
使用说明 (SKILL.md)
⚡ GitPulse · 生成日报助手
版本 / Version: 1.0.0
定位: 每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描、跨午夜统计(截止次日 06:00)。
⚡ 快捷触发 / Quick Triggers
当用户消息匹配以下任意关键词时,自动激活此技能:
| 触发词 | 说明 |
|---|---|
今日提交 / 今天提交 |
查今天的 git 记录 |
git日报 / gitpulse |
直接激活 |
提交记录 / commit记录 |
查提交历史 |
今天写了什么 / 今天干了啥 |
口语化触发 |
示例提示词(用户只需输入):
今日提交记录帮我看看今天写了什么代码gitpulse生成今天的git日报
🤖 AI 执行流程 / Execution Workflow
当技能被触发时,按以下顺序执行:
- 运行扫描脚本: 执行
scripts/gitpulse.py,脚本自动:- 检测用户指定或默认的仓库根目录
- 扫描所有
.git子目录(支持多仓库) - 过滤当日 06:00 ~ 次日 06:00 时间窗口内的 commit
- 解析脚本输出: 读取 JSON 格式的结构化结果
- 生成中文日报: 综合输出,包含:
- 📦 各仓库提交数量汇总
- 📝 每条 commit 的详情(hash、时间、作者、message)
- 📊 今日编码活跃度统计(总 commit 数、涉及仓库数)
- 💬 AI 一句话点评(今天是摸鱼之日还是暴肝之夜?)
🛠️ 工具说明 / Tools Included
核心脚本 (scripts/gitpulse.py)
- 自动发现多个 Git 仓库(深度优先,最多3层)
- 时间窗口:
今日 06:00:00~明日 05:59:59(跨午夜时开发适配) - 支持通过命令行参数
--root指定扫描根目录 - 支持
--date参数手动指定"哪一天"(格式YYYY-MM-DD) - 输出格式:JSON + 人类可读两种模式(
--format=json/--format=text)
用法 / Usage:
// turbo
python e:\py\.agent\skills\gitpulse\scripts\gitpulse.py --root e:\py
// turbo
# 指定日期(查昨天)
python e:\py\.agent\skills\gitpulse\scripts\gitpulse.py --root e:\py --date 2026-04-09
// turbo
# 输出 JSON 格式(供 AI 解析)
python e:\py\.agent\skills\gitpulse\scripts\gitpulse.py --root e:\py --format json
📦 依赖 / Dependencies
- Python 3.8+
- 标准库only:
subprocess,datetime,argparse,json,os,pathlib(零额外依赖)
📋 输出示例 / Output Example
╔══════════════════════════════════════════════╗
║ ⚡ GitPulse · 今日提交日报 ║
║ 统计日期: 2026-04-10 ║
║ 时间窗口: 06:00 ~ 次日 05:59 ║
╚══════════════════════════════════════════════╝
📦 仓库: e:\py (共 3 条提交)
├─ [14:23] abc1234 feat: 实现 OTA 价格爬虫并发控制
├─ [16:45] def5678 fix: 修复 Django migration 冲突
└─ [23:10] ghi9012 chore: 更新 start.sh 启动脚本
📊 今日统计:
· 扫描仓库数: 1
· 有效提交数: 3
· 活跃时段: 14:00 ~ 23:10
💬 AI 点评: 晚上11点还在 chore,兄弟今天属于标准暴肝,好好休息!
安全使用建议
This skill appears to be what it claims (a local Git commit summarizer), but take these precautions before enabling it: 1) Confirm you have the git binary available on the agent host — the script calls 'git' but the skill metadata does not declare that dependency. 2) Be aware it will recursively scan directories under the chosen --root (default: current working directory) up to 3 levels and read your git config (including global user.name) to filter commits — run it on a safe directory if you want to test. 3) Review the full scripts/gitpulse.py for any unexpected subprocess or network calls (the visible code only calls 'git'). 4) If you want stricter behavior, run the script manually from a shell first and inspect its JSON output (use --format json) before letting the agent invoke it automatically. If you need higher assurance, ask the author to declare 'git' as a required binary in the metadata and provide the full, untruncated script for a complete review.
功能分析
Type: OpenClaw Skill
Name: git-daily-skill
Version: 1.0.0
The GitPulse skill is a local utility designed to aggregate and summarize Git commit history for daily reporting. The core script (scripts/gitpulse.py) uses safe subprocess calls (passing arguments as lists) to execute local git commands and has no external dependencies or network activity. The instructions in SKILL.md and the logic in the Python script are transparent, well-documented, and strictly limited to the stated purpose of generating commit summaries.
能力评估
Purpose & Capability
The skill's name/description align with its behavior (scanning local .git folders and summarizing commits). However, the runtime script invokes the external 'git' command repeatedly but the skill metadata declares no required binary; the absence of a declared dependency on git is an inconsistency that could lead to runtime errors or surprise behavior if git isn't present.
Instruction Scope
SKILL.md instructs the agent to run scripts/gitpulse.py which recursively scans the filesystem under a root path (default cwd or user-supplied) up to 3 levels for .git directories, reads git logs and git config. This is coherent with the stated purpose, but it does entail broad local filesystem access within the chosen root and reads the user's git config (global) to determine the current user for filtering commits.
Install Mechanism
No install spec is provided (instruction-only with included script files). That lowers install risk because nothing is downloaded or written during installation. The presence of a local Python script is expected for an instruction-only skill.
Credentials
The skill requests no environment variables or external credentials, which matches its purpose. It does read git config (including --global) to get the git user.name — reasonable for filtering commits but worth noting because it accesses the user's global git configuration file (~/.gitconfig) implicitly.
Persistence & Privilege
The skill is not forced-always and is user-invocable. It does not request persistent elevated privileges, nor does it modify other skills or system-wide agent settings in the provided materials.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install git-daily-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/git-daily-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
gitpulse 1.0.0 – Generate daily Git commit reports across all repositories.
- Scans all Git repositories under a specified root, aggregating commits from 06:00 today to 06:00 the next day.
- Supports natural language triggers (e.g. "今日提交", "git日报") for fast, one-command activation.
- Summarizes per-repo commit counts, commit details, activity statistics and provides an AI-generated daily comment.
- Core script (gitpulse.py) requires only Python standard library, no third-party dependencies.
- Flexible usage with command-line options for root directory, date selection, and output format (text/JSON).
元数据
常见问题
每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描 是什么?
今日 Git 提交日报助手 —— 自动扫描当天(含次日凌晨6点前)所有仓库的 commit 记录,生成结构化日报。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 121 次。
如何安装 每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install git-daily-skill」即可一键安装,无需额外配置。
每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描 是免费的吗?
是的,每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描 支持哪些平台?
每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描?
由 KenneyChen(@kenneychen)开发并维护,当前版本 v1.0.0。
推荐 Skills