360 Secure SkillHub
360 安全技能中心

weekly-gitlog

读取指定 git 仓库最近一段时间(默认 7 天)的提交历史,按作者和日期分组,输出由单行提交摘要组成的纯文本变更日志,也可输出 JSON;仅读取历史,默认跳过合并提交,适用于站会、周报和发布说明草稿。

terrycarter1985
terrycarter1985
热度 13.82
最近更新 2026-09-01 20:03:11
分类:效率依赖:代码执行 / 读写文件应用场景:摘要总结 / 报告撰写 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add weekly-gitlog
Metadata
name
weekly-gitlog
description
Generate a compact weekly changelog from a git repository, grouped by author and day, without any dependencies. Use when you need a one-page summary of the last 7 days (or custom window) of commits for a report, standup, or release notes.
metadata
{"openclaw":{"emoji":"🗓️","requires":{"bins":["git"]}}}

weekly-gitlog

Produce a compact weekly changelog from the current git repository. The output is plain text: one section per author, commits grouped by day, each commit on one line with short hash and subject.

When to use

  • Standup / weekly report prep
  • Release-note drafting
  • Quickly seeing "what did everyone touch in the last week"

When NOT to use

  • You need full diffs — use git log -p directly
  • The repo has no commits in the window (script exits non-zero with a clear message)

Prerequisites

  • git on PATH
  • Run from inside a git work tree (or pass --repo <path>)

Steps

# last 7 days, grouped by author then day
node scripts/weekly-gitlog.mjs

# custom window (e.g. last 14 days) and repo path
node scripts/weekly-gitlog.mjs --days 14 --repo /path/to/repo

# machine-readable JSON instead of formatted text
node scripts/weekly-gitlog.mjs --json

Output shape (text)

## alice@example.com
### 2026-08-28
  abc1234 fix: off-by-one in retry loop
### 2026-08-26
  def5678 feat: add weekly changelog script

## bob@example.com
### 2026-08-27
  9c0ffee docs: update README

Notes

  • The script only reads history; it never writes to the repository.
  • Merge commits are skipped by default to keep the summary clean.