← Back to Skills Marketplace
kenneychen

每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描

by KenneyChen · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
121
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install git-daily-skill
Description
今日 Git 提交日报助手 —— 自动扫描当天(含次日凌晨6点前)所有仓库的 commit 记录,生成结构化日报。
README (SKILL.md)

⚡ GitPulse · 生成日报助手

版本 / Version: 1.0.0
定位: 每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描、跨午夜统计(截止次日 06:00)。


⚡ 快捷触发 / Quick Triggers

当用户消息匹配以下任意关键词时,自动激活此技能

触发词 说明
今日提交 / 今天提交 查今天的 git 记录
git日报 / gitpulse 直接激活
提交记录 / commit记录 查提交历史
今天写了什么 / 今天干了啥 口语化触发

示例提示词(用户只需输入)

  • 今日提交记录
  • 帮我看看今天写了什么代码
  • gitpulse
  • 生成今天的git日报

🤖 AI 执行流程 / Execution Workflow

当技能被触发时,按以下顺序执行:

  1. 运行扫描脚本: 执行 scripts/gitpulse.py,脚本自动:
    • 检测用户指定或默认的仓库根目录
    • 扫描所有 .git 子目录(支持多仓库)
    • 过滤当日 06:00 ~ 次日 06:00 时间窗口内的 commit
  2. 解析脚本输出: 读取 JSON 格式的结构化结果
  3. 生成中文日报: 综合输出,包含:
    • 📦 各仓库提交数量汇总
    • 📝 每条 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,兄弟今天属于标准暴肝,好好休息!
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install git-daily-skill
  3. After installation, invoke the skill by name or use /git-daily-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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).
Metadata
Slug git-daily-skill
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描?

今日 Git 提交日报助手 —— 自动扫描当天(含次日凌晨6点前)所有仓库的 commit 记录,生成结构化日报。 It is an AI Agent Skill for Claude Code / OpenClaw, with 121 downloads so far.

How do I install 每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描?

Run "/install git-daily-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描 free?

Yes, 每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描 support?

每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 每天工作结束后,一键生成当日所有 Git 仓库的提交日报,支持多仓库扫描?

It is built and maintained by KenneyChen (@kenneychen); the current version is v1.0.0.

💬 Comments