publish
Skill42 starsChanged 2 months agoMITView on GitHub
Publish the octop-browser Python package: cut a release branch from develop, bump version, update CHANGELOG / README, open a PR to main; after merge, Actions tag on main (PyPI + GitHub Release) and sync main into develop. Use when the user asks to publish, release, bump version, cut a release, or run /publish.
- Installs packages
- Commits and pushes
73 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- mphaxise/gstack-port-for-codextheir own version, first seen Nov 29, 2026
- vericontext/vibeframetheir own version, first seen Nov 29, 2026
- sxbconsulting/video-agent-skillstheir own version, first seen Nov 29, 2026
- Thoven-CORP/agent-skillstheir own version, first seen Nov 29, 2026
- code-yeongyu/oh-my-openagenttheir own version, first seen Nov 29, 2026
- agent-tower/coretheir own version, first seen Nov 26, 2026
Used with
Projects with it also use clips, outliers 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.
MelvynxSkillclips
Turns one long video (YouTube link, podcast, webinar, livestream, or a local file) into finished vertical shorts. Use when the user says long to short, repurpose, long video to shorts, clips from my video, podcast clips, cut my YouTube video into shorts, or gives a long video link. Finds clips that stand alone (one idea, 20 to 60 seconds), scores them, cuts them and edits each one with short-editing (split-screen paper look, captions, cuts, hook, boards, 1080x1920), and writes new scripts in the studio-script format from the ideas too spread out to clip. Reads YouTube captions and chapters with yt-dlp, or transcribes a local file with the short-editing engine (whisper.cpp, free, offline).
Also in 4 projects that use this
criscatalystSkilloutliers
YouTube outlier detection. Given a topic, finds the highest-performing recent videos on that topic — ranked by views ÷ channel median (so a 10x outlier means the video did 10 times the channel's normal performance). Reads each video's transcript and generates 3 personalized title variants per outlier, adapted to the user's niche and voice from their ~/CLAUDE.md. Trigger when the user says "find outliers", "/outliers", "show me viral videos in <topic>", or asks what's working on YouTube right now for a topic.
Also in 4 projects that use this
khadinakbarlabsSkillkeywords
Research and prioritize SEO keywords, search intent, topic clusters, competitor keyword gaps and keyword-to-page mappings. Use when asked what to rank for, keyword opportunities, long-tail keywords, a content calendar, or a keyword plan. Uses owned Apify keyword/SERP Actors with approved budgets, or supplied exports offline. Does not invent volume or organic difficulty.
Also in 3 projects that use this
MicrosoftSkillcreate
Also in 4 projects that use this
justinseger015-ctrlSkilledit
Edit a video using the video-editing orchestrator. Detects format, routes to correct editing skill, and executes the full process. Use when user says: /edit, edit video, edit clip, edit this, make it polished, finish editing, polish this video.
Also in 3 projects that use this
LangChainSkillrender
Turn an SVG design into a PNG and look at it. Use after you write or change a design, but only if execute is one of your tools.
Also in 3 projects that use this
Other versions73 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- TencentCloud/Octop★ 13k63% same
- TencentCloud/octop-memory★ 13990% same
Wrote their own version · 71
- code-yeongyu/oh-my-opencode★ 71ksame name
- code-yeongyu/oh-my-openagent★ 71ksame name
- garrytan/gbrain★ 34ksame name
- harbor-framework/harbor★ 7.6ksame name
- laude-institute/harbor★ 7.5ksame name
- Q00/ouroboros★ 6.4ksame name
- paean-ai/deeptide★ 1.1ksame name
- ZimoLiao/scholaraio★ 589same name
- ai-search-guru/getcito-worlds-first-open-source-aio-aeo-or-geo-tool★ 432same name
- agent-tower/core★ 395same name
61 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.
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- octop-browserSkill
- octop-browser-zhSkill
The file
Files
Publish
自动化 octop-browser(PyPI: octop-browser)的完整发布流程。
开始时宣告: "正在使用 publish 技能发布版本 {VERSION}。"
配置项
以下配置有默认值,可在项目的 .cursor/skills/publish/SKILL.md 或 .codebuddy/skills/publish/SKILL.md 中覆盖。
| 配置项 | 默认值 | 说明 |
CHANGELOG_FILE | CHANGELOG.md | 相对于仓库根目录的路径,文件不存在则跳过 |
VERSION_FILE | pyproject.toml | 包含版本号的文件 |
VERSION_PATTERN | ^\s*version\s*=\s*"[^"]+" | 匹配版本行的正则表达式 |
README_FILE | README.md | 发版时同步检查/更新的 README(见步骤 4b) |
README_CN_FILE | README_CN.md | 若存在则同样同步;缺失则跳过 |
INIT_VERSION_FILE | (none — package metadata) | 含硬编码 __version__ 时同步;本包通常由 importlib.metadata 读取,缺失/元数据驱动则跳过 |
TAG_PREFIX | v | Git tag 前缀;工作流监听 v* |
REMOTE | origin | Git 远程仓库名(推送 release 分支与创建 PR) |
INTEGRATION_BRANCH | develop | 日常集成分支;release 必须从最新 tip 切出 |
TARGET_BRANCH | main | 合并请求的目标分支(生产真源) |
RELEASE_BRANCH_PREFIX | release/ | release 分支名前缀 |
PYPI_PACKAGE | octop-browser | PyPI 包名(仅用于提示文案) |
调用方式
/publish 0.1.14目标版本号是唯一必填参数,其余均从配置或自动检测获取。
发布流程
顺序硬约束: 先 PR 合入
main,再在 main tip 打并推送v*tag。
禁止在 release 分支未合入main前推送生产 tag。
禁止在本地直接twine upload/make publish— 公开发布由 GitHub Action 负责。
禁止将develop直接 push / merge 进main。
步骤 1 — 读取配置并确认版本
- 获取仓库根目录:
git rev-parse --show-toplevel - 记录当前分支为
{original_branch}。 git fetch {REMOTE} {INTEGRATION_BRANCH} {TARGET_BRANCH}- 从
VERSION_FILE读取当前版本(在即将基于的 integration tip 上):git show {REMOTE}/{INTEGRATION_BRANCH}:pyproject.toml | grep -E '^\s*version\s*=\s*"[^"]+"' - 检查未提交的更改:
若工作树不干净:中止并要求用户先提交或 stash。发布不得夹带无关脏文件。git status --short - 查找最近的 git tag:
如果没有 tag,视为首次发布(在步骤 3 中使用从仓库初始到 HEAD 的所有提交)。git tag --sort=-creatordate | head -1 - 展示确认信息:
当前版本 (pyproject.toml @ develop): X.Y.Z
目标版本: A.B.C
上次发布 tag: vX.Y.Z (YYYY-MM-DD)
Release 分支: release/A.B.C
集成起点: develop
合入目标: main
Tag 时机: main 合并之后(不会在 release 上先打 tag)
PyPI 包: octop-browser
确认发布 X.Y.Z → A.B.C?[y/N]如果用户未输入 y 确认,立即中止。
步骤 2 — 从 develop 创建 release 分支
git checkout -B {RELEASE_BRANCH_PREFIX}{version} {REMOTE}/{INTEGRATION_BRANCH}如果本地或远程已存在同名 release 分支,中止:
✗ 分支 {RELEASE_BRANCH_PREFIX}{version} 已存在。
请手动删除后再运行 /publish。步骤 3 — 分析变更并生成 CHANGELOG 草稿
- 获取上次 tag 以来的提交(相对当前 release HEAD,即 develop tip):
git log {last_tag}..HEAD --oneline # 首次发布时: git log --oneline - 如果没有找到提交:
用户未确认则中止。⚠ 自上次发布 tag ({last_tag}) 以来没有新提交。 是否继续?[y/N] 按提交前缀分类,生成 Keep a Changelog 格式的条目。
CHANGELOG 内容必须用中文书写。 将每个提交总结为简洁的中文要点 — 不要逐字翻译提交信息。适当合并相关提交。
分类规则:
- 以
feat:或feat(开头 → 新增 - 以
fix:或fix(开头 → 修复 - 以
refactor:或perf:开头 → 变更 - 包含
!:或提交正文含BREAKING CHANGE:→ 变更,加**Breaking:**前缀 - 以
docs:开头 → 变更 - 以
chore:、test:、ci:开头 → 忽略(基础设施噪音) - 其他所有提交 → 变更
- 移除的功能 → 移除
- 安全修复 → 安全
输出格式:
## [A.B.C] - YYYY-MM-DD ### 新增 - 中文描述新增功能 ### 修复 - 中文描述修复内容 ### 变更 - 中文描述行为变更 ### 移除 - 中文描述移除内容 ### 安全 - 中文描述安全修复省略空的分类。日期使用 ISO 8601 格式(当天日期)。日期行与第一个分类之间、各分类之间保留空行。
- 以
- 向用户展示草稿并请求确认:
CHANGELOG 草稿: {draft} 添加到 CHANGELOG.md?[y/N/edit]y→ 继续n→ 中止edit或其他反馈 → 询问用户:"需要什么修改?" — 等待回复后重新生成,再次展示确认。循环直到y或n。
- 如果
CHANGELOG_FILE不存在,跳过此步骤(无需警告)。
步骤 4 — 更新文件、提交并推送 release 分支
按顺序执行:
4a. 更新 CHANGELOG:
在 CHANGELOG_FILE 中找到 ## [Unreleased] 标题,在其后插入新版本条目(保持 [Unreleased] 为空):
## [Unreleased]
## [A.B.C] - YYYY-MM-DD
### 新增
- ...如果 ## [Unreleased] 标题不存在,在 # Changelog 标题行之后插入新条目(若无标题则插入到文件顶部)。
4b. 升级版本号并同步 README:
发布版本号必须保持多文件一致。依次处理:
VERSION_FILE(pyproject.toml)— wheel / PyPI 的唯一版本源:grep -n '^\s*version\s*=\s*"[^"]+"' pyproject.toml # 用 Edit 工具将该行的 "X.Y.Z" 替换为 "A.B.C"README_FILE/README_CN_FILE(若存在):- 若存在静态 shields 徽标
version-X.Y.Z-orange(或同类),升级为version-A.B.C-orange。 - 若仅使用动态
shields.io/pypi/v/octop-browser徽标,无需改徽标(PyPI 发布后自动更新),但仍须检查 README 中是否有硬编码安装示例版本(如pip install octop-browser==X.Y.Z)并同步。 - 用户可见的发版说明若写在 README,按需补一行指向
CHANGELOG.md对应版本。 - 文件不存在则跳过并提示(不中止)。
- 若存在静态 shields 徽标
INIT_VERSION_FILE— 仅当文件内存在硬编码__version__ = "..."时升级;若通过importlib.metadata/_version.py读包元数据则跳过。
4c. 提交:
git status --short- 如果有更改:暂存并提交:
git add -A git commit -m "chore: release {version}" - 如果工作树已干净:无需提交,跳过。
4d. 推送 release 分支:
git push -u {REMOTE} {RELEASE_BRANCH_PREFIX}{version}推送失败则中止。
步骤 5 — 创建合入 main 的 Pull Request(先合,后自动 tag)
使用 gh CLI(--repo 指向 GitHub 上的本仓):
gh pr create \
--repo TencentCloud/octop-browser \
--base {TARGET_BRANCH} \
--head {RELEASE_BRANCH_PREFIX}{version} \
--title "chore: release {version}" \
--body "$(cat <<'EOF'
{步骤 3 生成的 CHANGELOG 条目}
## Release checklist
- [ ] CI green
- [ ] Merge this PR into main with a **merge commit** (not squash)
- [ ] After merge, GitHub Action auto-pushes v{version} tag on main tip
- [ ] Release workflow publishes octop-browser to PyPI and syncs main → develop
EOF
)"- 成功时展示 PR URL,并明确告知:
- 合并前不要手动打 tag;
- 合并请用 merge commit;
- 合并后会自动发版(自动打 tag → PyPI → sync develop)。
- 若
gh失败:中止(此时尚未发版),提示手动创建 PR:{RELEASE_BRANCH_PREFIX}{version}→{TARGET_BRANCH}
步骤 6 — 等待合入后,由 Action 在 main tip 打 tag
- 询问用户 PR 是否已合并,或轮询:
未合并则等待;无需本地执行打 tag。gh pr view {pr_url} --json state,mergedAt - 合并后:
auto-tag-on-release.yml会读取合并后main的pyproject.toml版本并推送{TAG_PREFIX}{version}。- 随后 dispatch
release.yml:构建 → PyPI → GitHub Release →sync-main-to-develop.yml。 - 若 tag 已存在,Action 会跳过并输出日志。
- 提示用户到 Actions 确认:
Auto Tag On Release Merge成功;Release随v*tag / dispatch 通过;Sync Main Into Develop在 GitHub Release 发布后把main同步回develop。
步骤 7 — 删除 release 分支;develop 由 Action 同步
- 删除远程与本地 release 分支:
删除失败则警告(非致命),提示手动删除。git push {REMOTE} --delete {RELEASE_BRANCH_PREFIX}{version} git branch -D {RELEASE_BRANCH_PREFIX}{version} - develop 同步:GitHub Release 发布成功后,
sync-main-to-develop.yml会自动把main合入develop(保护/冲突时开chore/sync-develop-after-*PR,尽量 merge auto-merge)。- 若已快进无差异,Action 会跳过。
- 技能侧无需再手动创建 sync PR(除非 Action 失败)。
步骤 8 — 切回原分支
git checkout {original_branch}确保流程结束后用户不会停留在 release / 临时检出上。
错误处理参考
| 场景 | 行为 |
VERSION_FILE 未找到 | 中止:"找不到 VERSION_FILE:{path}" |
| 文件中未匹配到版本号 | 中止:"在 {VERSION_FILE} 中找不到匹配 {VERSION_PATTERN} 的版本行" |
| 工作树不干净 | 中止:先清理再发布 |
| 没有 git tag(首次发布) | 使用完整历史;提示"首次发布" |
| 上次 tag 以来无提交 | 警告并询问是否继续 |
| Release 分支已存在 | 中止并给出删除指令 |
| 步骤 4 推送失败 | 中止:文件已在本地更新但未推送 |
| 步骤 5 PR 创建失败 | 中止(尚未打 tag / 未发版) |
| 步骤 6 在未合入时手动打 tag | 禁止 — 硬红线 |
| 步骤 6 tag 已存在 | Action 跳过;提示检查是否已发布 |
| 步骤 6 tag 推送成功但 Action 失败 | 非致命:提示到 Actions Re-run |
| 步骤 7 删分支或 sync 失败 | 警告并给出手动命令 |
红线规则
绝不:
- 在 release / feature 分支上、于合入
main之前推送生产v*tag - 在推送 tag 前直接上传 PyPI(发布由 GitHub Action 负责)
- 将
develop直接 push / merge 进main(必须走release/*PR) - 直接 push 到受保护的
main/develop - 跳过步骤 1 的用户确认
- 跳过步骤 3 的 CHANGELOG 确认
- 在任何步骤失败后继续执行(步骤 7 的清理/同步警告除外)
- 流程结束后让用户留在 release 分支
- 保留已发完的
release/*作为长期分支
始终:
- 从最新
{REMOTE}/{INTEGRATION_BRANCH}切 release - 先合入
{TARGET_BRANCH},再由 Action 在 main tip 打 tag - 发版时同步更新 CHANGELOG,并检查/更新 README(及 README_CN)
- 发版后删除
release/*;main → develop由sync-main-to-develop.yml自动同步(失败时再手动补) - 中止前展示完整错误输出
- 插入新版本条目后保持
[Unreleased]为空 - 推送 tag 后提示用户关注 GitHub Actions 的发布结果
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
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.

