release-ops
Skill4 starsChanged 13 days agoApache-2.0View on GitHub
Handle release promotion requests that inspect commits on `uat`, find changes missing from `release` or `master`, cherry-pick them in source order, create SemVer tags, and push. Use for prompts about “哪些提交没上 release/master”, “上生产”, “发版”, “推上去”, “发到release”, “cherry-pick 到 release”, feature-based backporting, or release-tag publishing, including inspect-only prompts.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- AnonymXXX/codex-harness-engineeringword for word, first seen Nov 20, 2026
- mariomile/builder-ostheir own version, first seen Oct 9, 2026
Other versions2 projects use a version of this.
Word for word · 1
- AnonymXXX/codex-harness-engineering★ 4100% same
Edited · 0
None found.
Wrote their own version · 1
- mariomile/builder-os★ 2same name
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 repository11 other files it gives its agents.
- .codex/AGENTS.mdAGENTS.md
- codebase-designSkill
- develop-uniapp-miniappSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- frontend-designSkill
- git-auto-commitSkill
- github-cli-opsSkill
- harness-engineeringSkill
- tddSkill
- wechat-miniprogram-ci-uploadSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
35 rules. About 0 are common, 14 are distinctive, and 21 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
21
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill for git release promotion tasks that follow a repeatable backport workflow.
- Very specific: line 12
Default source branch: uat
- Very specific: line 13
If default uat does not exist, stop and ask the user to specify the source branch.
- Very specific: line 16
Default author name: current repo git config user.name.
- Very specific: line 27
Use scripts/release_ops.py for deterministic execution.
- Very specific: line 34
Do not use the legacy ~/.codex/skills/release-ops/...
- Very specific: line 40
Run execute only when the user has authorized this release scope (including its branch/tag publication) and the script reports no blockers.
- Very specific: line 42
Use --sync-target with execute mode when the local target branch may be behind origin/<target>.
- Distinctive: line 43
After execute mode finishes, the script restores the branch that was checked out before execution when possible.
- Very specific: line 44
When one repository contains multiple requested features or disconnected file clusters, inspect them separately if needed, then execute …
- Distinctive: line 87
Do not rely on bare action words alone.
- Distinctive: line 117
If the prompt omits the author, use the current repo git config user.name.
- Distinctive: line 119
If the prompt gives a feature keyword but no time range:
- Distinctive: line 121
search the last 1 week,
- Distinctive: line 130
Treat the current user release request as the batch boundary.
- Very specific: line 132
Use repeated --commit selectors when a single feature selector cannot safely express the whole confirmed set.
- Distinctive: line 133
Do not split one repository into sequential tagged releases merely to satisfy feature-cluster matching.
- Very specific: line 134
If pending commits after filtering are 0, report no action needed.
- Very specific: line 135
If pending commits are 1-5 in execute mode, execute directly.
- Very specific: line 136
If pending commits are >5, apply Batch Confirmation.
- Distinctive: line 143
After execution, switch back to the branch that was active before the run when restoration is possible.
- Very specific: line 150
When that authorization exists and all other checks pass, use repeated --commit <full-sha> selectors for the confirmed list and …
- Very specific: line 151
If the list or publication scope was not confirmed, prepare the concrete list and ask once.
- Distinctive: line 152
If inspection finds additional candidates, a different target, or newly uncovered side effects outside the approved scope, pause only that …
- Very specific: line 156
If the user explicitly says major, minor, or patch, follow SemVer exactly.
- Very specific: line 157
If the prompt implies execution but omits the bump type, infer it using references/matching-rules.md.
- Distinctive: line 159
Use the latest SemVer tag reachable from the target branch only.
- Very specific: line 160
If the latest reachable tag is not vX.Y.Z, stop and report the problem.
- Very specific: line 161
Before creating the tag, clearly state: current reachable tag -> target tag, plus the package.json version change when the script reports …
- Distinctive: line 165
Stop and ask before continuing when any of these happen:
- Very specific: line 168
default source branch uat is absent
- Distinctive: line 183
if other-author related commits exist, call that out separately
- Very specific: line 192
create the chore: release vX.Y.Z release commit when a package.json version exists, then the annotated tag
- Distinctive: line 196
Use Production Release Completion as the completion boundary: stop after successful publication and remote-ref verification by default.
- Very specific: line 204
Default config template: assets/defaults.json
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Release Ops
Use this skill for git release promotion tasks that follow a repeatable backport workflow.
Defaults
- Default source branch:
uat - If default
uatdoes not exist, stop and ask the user to specify the source branch. - Target production branch: prefer
release, otherwisemaster - Timezone for relative dates:
Asia/Shanghai - Default author name: current repo
git config user.name; fall back toassets/defaults.json - Author matching: git
author name - Author scope: only process the current author by default; include another author only when the user explicitly names that author or asks to process that other author's commits.
- Missing-on-target rule: patch-equivalent, not raw commit hash
- Preflight checks:
git fetch --all --prune --tagsand cleangit status - Tag style: annotated, message
chore: release vX.Y.Z - Release commit: when the target branch has a root
package.jsonwith aversionfield, set it (and the root version inpackage-lock.json) to the new tag without thev, commit aschore: release vX.Y.Z, and tag that commit. The tag version is authoritative; do not keep a separate hand-maintainedpackage.jsonversion. Backendpom.xml/build.gradleand uni-appmanifest.jsonversions are not touched. Repositories without such apackage.jsonget only the annotated tag on the last cherry-picked commit. The release commit stays on the target branch and is not pushed back to the source branch. - Release batching invariant: one user release request plus one repository produces at most one new tag. Collect every confirmed commit for that repository first, cherry-pick them in source order, then tag and push once.
Script
Use scripts/release_ops.py for deterministic execution.
Resolve script paths relative to this skill directory. The installed path is:
~/.agents/skills/release-ops/scripts/release_ops.pyDo not use the legacy ~/.codex/skills/release-ops/... path; this skill is installed under ~/.agents/skills.
Typical flow:
- Run
inspectfirst. - Review blockers, warnings, pending commits, target branch, proposed tag, and
package_version_change. - Run
executeonly when the user has authorized this release scope (including its branch/tag publication) and the script reports no blockers. Inspect-only requests remain read-only; reuse an already confirmed commit list only within the same release request (see Execution Rules). - Apply Batch Confirmation when the pending-count threshold is exceeded. Reuse explicit authorization from the same release request for the same exact commit list and target; pass
--confirm-allwith repeated--commit <sha>selectors instead of asking again. - Use
--sync-targetwith execute mode when the local target branch may be behindorigin/<target>; it only fast-forwards when there are no local-only target commits. - After execute mode finishes, the script restores the branch that was checked out before execution when possible.
- When one repository contains multiple requested features or disconnected file clusters, inspect them separately if needed, then execute once with repeated
--commitselectors. Never runexecuterepeatedly for the same repository in one user release request.
Examples:
uv run ~/.agents/skills/release-ops/scripts/release_ops.py inspect \
--repo "$PWD" \
--since 2026-04-14 \
--until 2026-04-14T23:59:59+08:00uv run ~/.agents/skills/release-ops/scripts/release_ops.py execute \
--repo "$PWD" \
--feature "结算统计页面" \
--bump auto \
--sync-targetBatch exact commits from one repository under one tag:
uv run ~/.agents/skills/release-ops/scripts/release_ops.py execute \
--repo "$PWD" \
--commit 17247b5b9540 \
--commit 260d04e3b83b \
--commit 43813af5e7e0 \
--bump auto \
--sync-targetShort natural-language prompts should usually omit the target branch and bump type:
帮我查找今天提交但还没有合并到生产分支的提交,cherry-pick过去并推送帮我查找 Anonym 提交到 uat 的合同筛选功能,但还没上生产分支的,cherry-pick 并推送
Stable shorthand prompts:
今天没上生产的提交,推上去今天没上生产的提交,发版合同筛选功能没上生产的提交,发到release合同筛选功能没上生产的提交,上生产
Do not rely on bare action words alone. For stability, shorthand execute prompts still need a selector such as:
- a time scope like
今天,昨天,一周内 - a feature scope like
合同筛选功能
Mode Detection
Interpret the prompt as execute mode when it contains action intent such as:
cherry-pick合并到打 tag推送上生产发版推上去发到release
Otherwise treat it as inspect-only mode.
Commit Selection
Support these selectors:
- author + relative time
- author + absolute time range
- author + feature keyword
- author + feature keyword + time range
- author + one or more exact commits
If the prompt omits the author, use the current repo git config user.name; if unavailable, use the configured default author. Do not include commits by other authors unless the user explicitly names that author or explicitly asks to process that other author's commits.
If the prompt gives a feature keyword but no time range:
- search the last 1 week,
- then expand by 1 week at a time,
- stop after 1 month,
- report no match if still empty.
Feature matching details live in references/matching-rules.md.
Execution Rules
- Treat the current user release request as the batch boundary. For each repository, finish selection before execution and create exactly one final tag, even when commits belong to multiple features or file clusters.
- A release request authorizes only the repositories or components the user named and the commits listed or selected when the user made it. A later bug report, fix, feature, or feedback round in the same conversation is a new release request even when the target and tag line are unchanged: run
inspectagain and wait for an explicit release request beforeexecute. Never cite an earlier release ("沿用刚才的发布范围") as scope for new commits. - Use repeated
--commitselectors when a single feature selector cannot safely express the whole confirmed set. Explicit commits must be reachable from the source branch, match the selected author, and are reordered into source-branch order automatically. - Do not split one repository into sequential tagged releases merely to satisfy feature-cluster matching. If the exact set is still uncertain, stop and ask instead of producing multiple tags.
- If pending commits after filtering are
0, report no action needed. - If pending commits are
1-5in execute mode, execute directly. - If pending commits are
>5, apply Batch Confirmation; the count alone does not require repeating an existing exact-scope authorization. inspectalways fetches first and analyzes against the latest remote target ref such asorigin/release.- In execute mode, use
--sync-targetto fast-forward the local target branch to the remote target before cherry-picking when it is safely behind. --sync-targetmust not resolve local-only commits or diverged target branches; stop and report those cases for manual handling.- Cherry-pick multiple commits in original source-branch chronological order.
- Attempt conflict resolution before stopping.
- The script currently aborts failed cherry-picks and reports the conflict files; if needed, resolve manually after the script stops.
- After execution, switch back to the branch that was active before the run when restoration is possible.
Batch Confirmation
The pending-count threshold protects unconfirmed release scope; it does not invalidate authorization already given in the current task. Before executing more than five pending commits:
- Inspect the exact pending commit list, repository, source, target, and proposed tag/production effects. Reuse an explicit approval, given within the same release request, of that same complete list and publication scope, including an earlier
全部执行tied to the displayed list. Do not ask again solely because the count exceeds five. - When that authorization exists and all other checks pass, use repeated
--commit <full-sha>selectors for the confirmed list and--confirm-all. The flag records the existing approval; it does not grant permission or bypass other blockers. - If the list or publication scope was not confirmed, prepare the concrete list and ask once. Allow confirming all, narrowing the scope, or cancelling; do not force an all-or-nothing choice. A generic
发版or an inspect-only request is not batch approval. - If inspection finds additional candidates, a different target, or newly uncovered side effects outside the approved scope, pause only that release operation for the changed scope. Never silently include new commits or use
--confirm-allto bypass unresolved scope.
Tag Rules
- If the user explicitly says
major,minor, orpatch, follow SemVer exactly. - If the prompt implies execution but omits the bump type, infer it using
references/matching-rules.md. - For the bump decision, ask only when inference is not confident enough. Other release authorization and risk stops still apply.
- Use the latest SemVer tag reachable from the target branch only.
- If the latest reachable tag is not
vX.Y.Z, stop and report the problem. - Before creating the tag, clearly state: current reachable tag -> target tag, plus the
package.jsonversion change when the script reports one.
Risk Stops
Stop and ask before continuing when any of these happen:
- the prompt has only an execute alias such as
上生产or发版but no selector - default source branch
uatis absent releaseandmasterare both absent- feature keyword is too vague, such as only
优化,修改, or调整 - fuzzy feature matching finds multiple unrelated clusters and the current release request has not confirmed an exact commit set; an already confirmed SHA list follows Batch Confirmation
- related commits from other authors are detected
- bump inference is low confidence
- conflict resolution is not reliable
- pending commits exceed the confirmation threshold and the exact batch/publication scope lacks confirmation in the current release request under Batch Confirmation
- pending commits were created after the release request that would authorize this run, or the latest user message asks for a fix or feature rather than a release
Output Shape
Inspect-only mode:
- list only
commit sha + subject - if other-author related commits exist, call that out separately
- include a coarse bump suggestion
Execute mode:
- summarize the matched pending commits and quote the user message that authorizes this release
- report the target branch
- report the tag plan
- cherry-pick
- create the
chore: release vX.Y.Zrelease commit when apackage.jsonversion exists, then the annotated tag - push branch and tag
- verify remote refs
Use Production Release Completion as the completion boundary: stop after successful publication and remote-ref verification by default. Do not query or wait for production CI/build/deployment unless the user explicitly requests it; report those results as unchecked.
This boundary covers waiting for CI, not deployment steps that a tag push does not perform. When an installed project deploy skill says the request's wording (for example 上线 / 发布上线 / 上生产 for a service that only changes in production after a manual k8s apply) asks for that deployment, continue with that skill after remote-ref verification instead of ending the turn; that skill owns waiting for the tag pipeline and its own confirmation step.
Resources
- Deterministic CLI:
scripts/release_ops.py - Matching and bump heuristics:
references/matching-rules.md - Default config template:
assets/defaults.json
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.

