360 Secure SkillHub
360 安全技能中心

release-digest

读取本地 git 仓库在指定时间或标签区间内的提交历史,按作者和主题分组,统计提交数、作者数与文件改动,输出纯 Markdown 发布摘要;相同输入窗口下结果确定且可复现,不调用任何第三方 API,也不推送或发布任何内容。

terrycarter1985
terrycarter1985
热度 7.65
最近更新 2026-09-16 04:46:29
分类:开发依赖:代码执行 / 读写文件应用场景:DevOps / 报告撰写 / 摘要总结 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add release-digest
Metadata
name
release-digest
description
Generate a concise, reproducible release digest from a local git repository — grouped commits, subject/file stats, and a Markdown changelog — without any third-party API.
metadata
{"openclaw":{"emoji":"🗞️","os":["darwin","linux"],"requires":{"bins":["git"]}}}

release-digest

Produce a plain-Markdown release digest for a git repo. The digest is deterministic given the same --since/--until window, so the same inputs always yield the same document (making outputs easy to review and diff).

When to use it

  • A user asks "what changed between v1.2.0 and v1.3.0" or "draft release notes".
  • You need a changelog section for a PR, release issue, or weekly digest.

When NOT to use it

  • You need to publish to a hosted release system (GitHub Releases, npm publish...). This skill only writes a Markdown digest — it never pushes or publishes anything.
  • The repository has no git history (e.g. a freshly initialized repo with no commits in the requested window).

Prerequisites

  • git available on PATH.
  • Run from inside the target repository (or pass --repo <path>).

Steps

  1. Resolve the window. If --since is omitted, default to the latest tag reachable from HEAD, or 14 days ago if no tags exist.
  2. Run the bundled script to emit a Markdown digest:
    bash scripts/release-digest.sh --repo . --since <ref-or-date> --until HEAD
    
  3. Hand the printed Markdown back to the caller. Never paste secrets, tokens, or private filenames that the commit log may surface — redact before replying.

Output

A Markdown document with: window, commit count, author count, grouped commit list, and a one-line stat --summary of files changed.