← 返回 Skills 市场
autoxj

GitCode Release Notes

作者 do_while_true · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
244
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install gitcode-release-notes
功能描述
Generate release notes for GitCode repositories from commits (by tag range or since-date), grouped as feat/fix/docs/other, output Markdown for Release pages....
使用说明 (SKILL.md)

GitCode 版本发布公告(Release Notes)

根据 GitCode API 拉取仓库在指定区间内的提交。脚本仅负责获取 commit 与简单过滤根据脚本输出的 JSON 总结、归类、润色并生成最终 release note,输出为 Markdown 格式,使阅读清晰、像人写的发布说明。

何时使用

  • 用户表达「生成 release notes」「版本发布说明」「从 v1.0 到现在的更新日志」「从某日期到现在的提交记录」等意图。
  • 必须在本次对话中提供 --repo owner/repo(必传);可选提供 --branch--from--to--since-date

认证

GITCODE_TOKEN:按以下优先级读取。

优先级 来源
1 进程环境变量 GITCODE_TOKEN
2 Windows 用户级环境变量
3 Windows 系统级环境变量
  • Linux/macOS:建议在 ~/.bashrc~/.zshrcexport GITCODE_TOKEN="..."
  • 未配置时:脚本报详细错误,提示到 GitCode 个人访问令牌 创建并设置环境变量。

路径约定

  • 技能根目录SKILL_ROOT):本 SKILL.md 所在目录。脚本通过 __file__ 定位,不依赖当前工作目录
  • 支持 Linux / macOS / Windows;执行时使用脚本绝对路径

固化流程

  1. 解析参数:从用户输入或对话中提取 --repo(必传)、--branch--from--to--since-date
  2. 调用脚本(输出 JSON)
    python \x3CSKILL_ROOT>/scripts/release_notes.py --repo owner/repo --json [--branch BRANCH] [--from TAG] [--to TAG] [--since-date YYYY-MM-DD]
    
    • 必须带 --json:脚本只做拉取与简单过滤,向 stdout 输出 JSON,不生成最终 Markdown。
    • 区间三选一:--since-date(从该日 00:00 上海时间至今)、--from(从某 tag 至今)、或 --from + --to(两 tag 之间)。
    • --branch 未传时:脚本依次尝试 master → develop → main,都不存在则报错并提示使用 --branch
  3. 读取 JSON:从 stdout 解析 JSON。若退出码非 0 或 stderr 有错误信息,向用户展示详细错误并结束。
  4. 生成最终 release note
    • 根据 JSON 中的 commits归类(新特性 / 修复 / 文档 / 其他)、总结(每条或每组用简要概括,不要直接贴 commit 原文)、润色(统一语言、合并同类、去掉无信息量项),生成干净、专业、可对外发布的 release note。
    • 「最终 release note 输出格式」「撰写原则」 写出 Markdown(标题、四小节、每条仅写简要说明;不展示 commit 信息;不展示合并条数/测试/合规等无价值信息)。
    • 交付给用户(可保存为文件或粘贴到 GitCode Release)。
  5. 禁止:不得在未得到脚本 JSON 前猜测或伪造数据;不得将 commit 列表原样当作最终 release note 交付,须经总结与润色后再交付。其余禁止事项见「禁止」一节。

脚本参数

参数 必填 说明
--repo 仓库,格式 owner/repo
--json 必带(本技能调用时) 脚本输出 JSON(仅拉取+简单过滤),由你总结并生成最终 release note
--branch 分支;未传时自动尝试 master → develop → main
--since-date 从该日期 00:00(Asia/Shanghai)至今的提交
--from 起始 tag(到当前 HEAD 或到 --to
--to 结束 tag,与 --from 一起表示区间
--max-per-category 仅在不使用 --json 时生效,每类最多展示条数,默认 10
  • 区间约定:仅用 --since-date、或仅用 --from、或 --from + --to。若同时传多种,脚本按 --since-date > --from/--to 优先级处理。
  • 本技能流程下须带 --json(以获取 JSON 供你总结);不带 --json 时脚本会直接输出 Markdown,不经过本技能总结步骤。

脚本 --json 输出与你的职责

  • 脚本:仅获取 commit 与简单过滤(排除空 message、纯 merge),向 stdout 输出 JSON;不做归类、不写总结。
  • :从 stdout 解析 JSON,根据 commitsstats 做归类、简要概括、润色,按「最终 release note 输出格式」与「撰写原则」写出 Markdown;不得原样罗列 commit。

最终 release note 输出格式(须统一遵守)

生成 Markdown 时必须按以下格式;每条条目的简要说明根据 commit 进行归纳。

  1. 标题# owner/repo Release Notes(版本区间),或使用 JSON 中的 title_line 作为二级标题(如 ## v1.1.0 (YYYY-MM-DD))时,一级标题可为 # owner/repo Release Notes
  2. 小节顺序与标题(有内容的才输出,顺序不可调换):
    • ### 🚀 新特性
    • ### 🐛 修复
    • ### 📚 文档
    • ### 🔧 其他更改
  3. 每条条目格式- 简要说明。简要说明由你根据该 commit 归纳;不展示 commit 哈希或链接
  4. 其他更改:仅保留对用户/使用方有感知的架构或能力类变更;不展示「合并与依赖更新(共 N 条)」;若无实质内容可省略该小节或仅 1~2 条。
  5. 每类条数:新特性、修复、文档、其他更改每类最多 10 条;优先保留对用户价值最高、最易理解的条目,超出时合并同类或略去次要项。
  6. 语言:小节标题与条目说明统一用中文;专有名词、仓库名可保留英文。

撰写原则(保证输出质量)

面向非核心研发(测试、产品、运维等)可快速抓取重点,避免信息过载与内部黑话。

  • 精简粒度:按能力/模块合并同类项,单条不堆砌多个无关功能;新特性可按「硬件与拓扑 / 调度 / 设备与插件 / 高可用 / 推理与运维」等维度归纳;修复中不同问题应拆条或按类合并,避免一条里混杂多个无关 bug。
  • 术语统一:同一概念全文统一表述(同一术语不混用不同拼写);专业缩写首次出现时可加括号简要说明;避免仅内部使用的缩写直接出现在对外 release note 中。
  • 不展示无价值信息:不展示「合并与依赖更新(共 N 条)」;不体现测试用例、用例补充;不体现合规;不体现内部细节(如 cleancode、codecheck、DT、若干内部 bug 修复)。
  • 聚焦价值:只保留对用户/使用方有意义的变更;模糊表述(如仅写「逻辑优化」)应并入具体能力描述或略去;长句适当缩短,条目分行清晰。
  • 每条简短可扫读:每条尽量一句话、一个要点,避免用分号/顿号在一句里堆砌多个功能或修复;可参考成熟开源社区(如 Kubernetes、VS Code)的 release note 风格——简短、易扫读,读者几秒内能抓重点。

输出示例(Markdown)

# owner/repo Release Notes(v1.0.0 → v1.1.0)

### 🚀 新特性
- 新增 XXX 支持,兼容 A 与 B 场景。
- 支持从配置文件加载集群拓扑。

### 🐛 修复
- 修复 namespace 与任务名相同时的匹配错误。
- 修复日志打印重复与级别丢失问题。
- 修复包含 init 容器时的配置生成问题。

### 📚 文档
- 更新依赖源说明。

### 🔧 其他更改
- 设备 ID 体系与资源管理实现与重构。
- 故障码与知识库、路径诊断等能力补充与优化。

禁止

  • 禁止在未得到脚本输出(JSON)前猜测或伪造数据。
  • 禁止在未配置 --repo 时执行脚本(必须提示用户提供 --repo)。
  • 禁止将脚本 JSON 中的 commit 列表原样当作最终 release note 交付(须经你总结、归类、润色后输出 Markdown)。
  • 禁止直接复制 commit 原文,必须重新总结、改写。
  • 禁止出现任何 commit 链接、commit ID、git 地址。
  • 禁止罗列零散 fix,同类问题必须合并成一条。
  • 只保留对用户/使用方有意义的内容,去掉内部调试、分支合并、过于细碎的文档改动等无关信息。
  • 禁止展示「合并与依赖更新(共 N 条)」;禁止体现测试用例、出海与合规、cleancode/codecheck/DT/内部 bug 等内部细节。

示例

用户意图 命令(须带 --json)
从 v1.0.0 到当前 python \x3CS> --repo owner/repo --json --from v1.0.0
从 v1.0.0 到 v1.1.0 python \x3CS> --repo owner/repo --json --from v1.0.0 --to v1.1.0
从 2026-01-08 至今(上海时间) python \x3CS> --repo owner/repo --json --since-date 2026-01-08
指定分支 python \x3CS> --repo owner/repo --json --since-date 2026-01-08 --branch main

其中 \x3CS>\x3CSKILL_ROOT>/scripts/release_notes.py 的绝对路径。不带 --json 时脚本会直接输出 Markdown,不经过本技能总结步骤。

历史版本

v1.0.0 (2026-03-11)

  • 🎉 初始版本发布
  • 📖 支持按 tag/日期生成 Release Notes Markdown
安全使用建议
This skill appears coherent and implements what it claims. Before installing: (1) ensure the GITCODE_TOKEN you provide has only the minimal read scopes required (read_api/read_repository); avoid using a token with write/admin scopes. (2) Review or run the included scripts in a safe environment if you have concerns—there is a subprocess call used only to read Windows environment variables via PowerShell. (3) The script communicates only with api.gitcode.com; if your environment restricts outbound network access, allow only that host. (4) When using the skill, verify the produced Markdown before publishing to avoid leaking internal commit IDs or sensitive internal details (the SKILL.md already instructs to remove commit hashes/links).
功能分析
Type: OpenClaw Skill Name: gitcode-release-notes Version: 1.0.0 The skill bundle is a legitimate tool for generating release notes from GitCode repositories. The Python script (scripts/release_notes.py) uses the standard library to interact with the GitCode API, and the instructions in SKILL.md correctly guide the AI agent to process the resulting data without any signs of malicious intent, data exfiltration, or prompt injection attacks.
能力评估
Purpose & Capability
Name/description: generate release notes from GitCode commits. Declared requirement: GITCODE_TOKEN. Script code calls api.gitcode.com endpoints, lists branches/tags/commits and processes commit messages. The requested credential and network targets are appropriate and proportional to the stated purpose.
Instruction Scope
SKILL.md precisely instructs: run the included Python script with --json, parse stdout JSON, then summarize and produce Markdown. Instructions explicitly forbid fabricating data or leaking commit IDs/links. The script’s behavior (pull commits, basic filtering) aligns with those instructions and does not ask for unrelated files, system state, or external endpoints beyond GitCode.
Install Mechanism
No install spec — instruction-only with an included Python script that uses only the standard library. No downloads or archive extraction. This is low-risk and proportionate for a script-based skill.
Credentials
Only GITCODE_TOKEN is required (declared as primaryEnv). The script reads the token from process env or, on Windows, via a PowerShell call to read user/system environment variables; that use of subprocess is limited to credential retrieval and is reasonable for cross-platform support. No other secrets or unrelated env vars are requested.
Persistence & Privilege
always is false; skill is user-invocable and can be autonomously invoked per platform defaults (not flagged alone). The skill does not request permanent system-wide changes or access to other skills' configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gitcode-release-notes
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gitcode-release-notes 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 初始版本发布 - 支持通过 GitCode API 按 tag 区间或日期范围获取 commit 列表 - 自动检测分支(master → develop → main),并支持自定义分支参数 - 从脚本 JSON 输出自动归类(feat/fix/docs/other)、生成规范 Release Notes Markdown
元数据
Slug gitcode-release-notes
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

GitCode Release Notes 是什么?

Generate release notes for GitCode repositories from commits (by tag range or since-date), grouped as feat/fix/docs/other, output Markdown for Release pages.... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 244 次。

如何安装 GitCode Release Notes?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gitcode-release-notes」即可一键安装,无需额外配置。

GitCode Release Notes 是免费的吗?

是的,GitCode Release Notes 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

GitCode Release Notes 支持哪些平台?

GitCode Release Notes 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 GitCode Release Notes?

由 do_while_true(@autoxj)开发并维护,当前版本 v1.0.0。

💬 留言讨论