Skip to content
Agentmart
Submit a tool

release-branch-policy

Skill by haitaopanhq

IndexedApache-2.0★ 1
Write a review

Chalk Labs

Need help deploying release-branch-policy?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/haitaopanhq-release-branch-policy

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The publisher has not written a description yet.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
release-branch-policy
Description
None
License
Apache-2.0
Instructions
117 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • missing YAML frontmatter
  • name: missing
  • description: missing
  • body: contains an absolute path from the author's machine

Files (5)

  • SKILL.md
  • ruleset.release-branches.json · references/
  • apply_ruleset.sh · scripts/
  • generate_release_manifest.sh · scripts/
  • sync_skill_to_sibling_repos.sh · scripts/

SKILL.md (first lines)

# Skill: release-branch-policy

## Purpose

Standardize release branch policy across Cloud-Neutral Toolkit repos:

- `main` is the **preview** branch (fast iteration, integrates frequently).
- `release/*` branches are **production release lines** and must be protected.
- Updates to `release/*` happen via **local cherry-pick** by release managers (process gate).

This skill includes:
- A policy doc (this file)
- A ruleset JSON template (GitHub Rulesets API)
- A `gh` script to apply the ruleset to one or many repos
- A sync script to copy this skill into all local sibling repos
- A script to generate a cross-repo release manifest (for tag association)

Non-goals:
- This skill does NOT create/push `release/v0.1` or tags automatically.

## Policy

### Branch Roles

- `main`: preview
  - Accepts PRs and merges normally.
  - May be ahead of production at any time.
- `release/*`: production
  - No force-push.
  - Require linear history.
  - Prefer "cherry-pick into release branch" as the only change mechanism (process).
  - Restrict who can update release branches to release managers (enforced via GitHub Rulesets/Branch protection UI).

### “Cherry-Pick Only” Clarification

GitHub branch rules cannot reliably guarantee "only cherry-pick" as a technical constraint.
We treat it as a **process rule**:

1. A change lands in `main`.
2. Release manager cherry-picks specific commits onto `release/<version>`.
3. Release manager pushes the updated release branch.

### “No PR / No Push” Clarification

If you literally forbid both:
- PR merges to `release/*`, and
- any push to `release/*`

then the branch becomes non-updatable.

What we implement is:
- No force-push, no deletion, linear history (enforceable).
- Only release managers can update `release/*` (enforceable via "restrict updates" / bypass actors).
- "Cherry-pick only" (process rule).

### Tags

For milestone releases like `v0.1`:
- Use an annotated tag named `v0.1` (per-repo).
- Prefer tags on `release/<version>` tip.

If you need SemVer tags, follow governance: `<repo>-vX.Y.Z`.

### Cross-Repo Tag Association

Git tags are per-repo; GitHub does not provide a first-class "one tag links all repos" concept.

We represent "release v0.1 across repos" by committing a **release manifest** file in the control repo, generated from local git state:
- repo name
- release branch tip SHA
- tag tip SHA

Use: `skills/release-branch-policy/scripts/generate_release_manifest.sh v0.1`

## Ruleset Requirements (release/*)

Enforce at minimum:
- block deletion
- block force-push (non-fast-forward)
- require linear history

Optional (recommended if you have stable CI):
- require status checks
- require signed commits

## Tools

### 1) Apply Ruleset (GitHub Rulesets)

Script: `skills/release-branch-policy/scripts/apply_ruleset.sh`

- Applies (create/update) a repo ruleset targeting `refs/heads/release/*`
- Uses `gh api` and a JSON payload
- Does not modify branches/tags

### 2) Sync Skill Into All Local Sibling Repos

Script: `skills/release-branch-policy/scripts/sync_skill_to_sibling_repos.sh`

- Copies this skill folder into each local repo under `/Users/shenlan/workspaces/cloud-neutral-toolkit/*`
- Skips repos without `.git`
- Keeps existing files unless overwritten explicitly

### 3) Generate Release Manifest (Cross-Repo Association)

Script: `skills/release-branch-policy/scripts/generate_release_manifest.sh`

- Generates `releases/<version>.yaml` in the current working directory (default)
- Does not push or create refs

## Operator Checklist

- Confirm `main` is treated as preview across repos (docs + CI naming).
- Apply ruleset to every repo that has production releases.
- Document "cherry-pick only" in release runbooks.
- Verify bypass actors (release managers) in GitHub UI if needed.

From haitaopanhq/.github, Apache-2.0.

More from haitaopanhq/.github

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Mar 31, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from haitaopanhq

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get release-branch-policy running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying release-branch-policy?

CallGet help
Cite this page

release-branch-policy skill. Agent Mart. https://agentmart.dev/skills/haitaopanhq-release-branch-policy (last updated 2026-10-24)