agentleFS
JustLookAtNowJustLookAtNow/pt_mate/.agents/skills/release/SKILL.md

release

Skill512 starsChanged 5 months agoMITView on GitHub

自动化项目的版本发布流程,包括版本号自增、ChangeLog 提取与汇总、代码提交、打标签以及推送到远程仓库。

  • Commits and pushes
Files
SKILL.md

Release Skill

此 Skill 旨在提供一个标准化的发布流程。它通过脚本自动处理繁琐的操作,并利用 AI 总结用户可感知的改动。

目录结构

  • scripts/bump_version.py: 自动更新 pubspec.yaml 版本号。
  • scripts/get_commits.py: 提取用于发布日志的 Git 提交记录。发布 beta 时从上一次发布开始提取;发布非 beta 正式版时从上一个正式版开始提取,并自动过滤中间的 # release: 提交。
  • scripts/format_release.py: 格式化发布日志模板。

使用流程

  1. 准备阶段
    • 检查当前分支是否为发布分支(通常是 master/main)。
    • 确认工作区是干净的(没有未提交的改动)。
  2. 版本号更新
    • 运行 python3 scripts/bump_version.py 或者带上目标版本 python3 scripts/bump_version.py 2.20.2-beta。
    • 如果用户提供了版本号,则使用用户指定的版本号,并且自动保留并增加构建号(例如从 +513 变为 +514)。
    • 如果未提供版本号,脚本会自动在当前版本号的基础上增加一个小版本号(patch),并同样增加构建号,且保留原有的 -beta 等预发布后缀。
  3. 生成发布日志
    • 运行 python3 scripts/get_commits.py 获取原始提交记录(也可显式传入版本:python3 scripts/get_commits.py 2.20.2)。
    • 提交范围规则:
      • 如果目标版本包含 beta,则从最近一次发布(# release:)到 HEAD。
      • 如果目标版本不包含 beta,则从上一个正式版(不含 beta)到 HEAD,确保正式版汇总覆盖期间所有 beta 阶段改动。
  • 将记录提供给 AI,根据 scripts/format_release.py 的定义,总结出用户可感知的改动。
  • 改动分类应包括:🎉Highlights、✨新增功能、🐛修复问题、🔧性能优化、📋其它。架构优化和技术细节无需列入用户日志。
  • **非常重要:**AltStore/AltSource 源信息更新、源地址变更、源元数据同步这类分发侧维护内容,不属于用户可感知改动,不要写入发布日志的任何分类。
  • **非常重要:**如果某个分类下没有相关改动,必须直接省略该分类,绝对不要写“暂无”或“无”。
  • **非常重要:**生成的发布日志必须经过用户确认后,再进行 Commit 操作。
  1. 提交与标注
    • 注意:在 Git 提交信息和打标签时,版本号必须省略 + 及其后面的构建号(例如:版本号 2.19.4+510 对应 2.19.4,版本号 2.20.2-beta+514 对应 2.20.2-beta)。pubspec.yaml 中则保留完整版本号。
    • 提交改动:# release: {基础版本号}\n\n{发布日志内容}。
    • 打标签:v{基础版本号}。
  2. 推送
    • 将代码和标签推送到远程仓库:git push origin {branch} --tags。

注意事项

  • 提交消息必须使用真实的换行,而不是 \n 字符串。
  • 提交消息中如果包含反引号(例如 `3.42.0`),不要直接放进双引号命令参数里,避免被 shell 当作命令替换导致内容丢失。
  • 推荐做法:先把完整提交信息写入临时文件,再用 git commit -F <file>;或使用单引号/安全转义,确保正文按原文写入。
  • 确认发布日志内容后,再进行 Commit 操作。

Download now (ZIP)

  • Other versions194 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 194

    1. paperclipai/paperclip★ 110ksame name
    2. modelcontextprotocol/servers★ 92ksame name
    3. remotion-dev/remotion★ 70ksame name
    4. traefik/traefik★ 65ksame name
    5. usememos/memos★ 64ksame name
    6. tw93/Pake★ 63ksame name
    7. Yeachan-Heo/oh-my-claude-sisyphus★ 40ksame name
    8. Yeachan-Heo/oh-my-claudecode★ 40ksame name
    9. tobi/qmd★ 30ksame name
    10. jlowin/fastmcp★ 28ksame name

    184 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Used alongsideProjects with it also use create-agent-adapter, changelog-style and 10 more.

    Other files people use alongside this one.

    Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
    • MicrosoftSkill

      create-agent-adapter

      Technical guide for creating a new Paperclip agent adapter. Use when building a new adapter package, adding support for a new AI coding tool (e.g. a new CLI agent, API-based agent, or custom process), or when modifying the adapter system. Covers the required interfaces, module structure, registration points, and conventions derived from the existing claude-local and codex-local adapters.

      Also in 5 projects that use this

    • GrinvSkill

      changelog-style

      Turn a commit range into CHANGELOG.md entries following common-changelog style. Use when finishing a PR (adding to the [Unreleased] section) or cutting a release (moving [Unreleased] under a new version heading).

      Also in 4 projects that use this

    • GrinvSkill

      docs-consistency-check

      Check README/manifest.json/server.json/CHANGELOG.md/AGENTS.md and docs/*.md for drift against the actual registered tools and source. Use after adding, renaming, or removing a tool, or as part of a live-audit pass.

      Also in 4 projects that use this

    • MicrosoftSkill

      pr-report

      Review a pull request or contribution deeply, explain it tutorial-style for a maintainer, and produce a polished report artifact such as HTML or Markdown. Use when asked to analyze a PR, explain a contributor's design decisions, compare it with similar systems, or prepare a merge recommendation.

      Also in 5 projects that use this

    • Microsoft AzureSkill

      documentation-consistency

      Keeps GPT-RAG MCP service and umbrella documentation aligned with shipped behavior. Use for capabilities, configuration keys, deployment steps, endpoints, defaults, operations, or breaking changes.

      Also in 6 projects that use this

    • parcadeiSkill

      agent-context-isolation

      Agent Context Isolation

      Also in 3 projects that use this

    • +3 more from Grinv
  • In this repository5 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.