git-push-secondary-merge-primary

git-push-secondary-merge-primary is a skill for Claude Code, Codex from YangsonHung/awesome-agent-skills. It costs 29 tokens per session (1,085 once invoked), scanned A, original, MIT.

A release workflow for pushing a work branch, merging it into the primary branch such as `main`, pushing both branches, and returning to the work branch.

In plain words
What is it for?
Use it when finished work must move from a development or integration branch into the release branch. It is not for force-pushing, rebasing, or single-branch pushes.
Why use it?
It standardizes a two-branch handoff and preserves a clear merge on the primary branch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when finished work must move from a development or integration branch into the release branch. It is not for force-pushing, rebasing, or single-branch pushes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yangsonhung/awesome-agent-skills/git-push-secondary-merge-primary
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add YangsonHung/awesome-agent-skills --skill git-push-secondary-merge-primary
Clone the repo
git clone --depth 1 https://github.com/YangsonHung/awesome-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-push-secondary-merge-primary

README.md
[![agentmods](https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/git-push-secondary-merge-primary/github.svg)](https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/git-push-secondary-merge-primary)
Your own site
<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/git-push-secondary-merge-primary"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/git-push-secondary-merge-primary/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-push-secondary-merge-primary

Your own site · 80×15
<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/git-push-secondary-merge-primary"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/git-push-secondary-merge-primary.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,085 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01085
Opus 5 $0.00015 $0.00543
Sonnet 5 $0.00006 $0.00217
Haiku 4.5 $0.00003 $0.00109

Measured 11d ago against content hash be9361b5362c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

git-push-secondary-merge-primary scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/en/git-push-secondary-merge-primary/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Push Secondary Merge Primary

Overview

Execute the standard two-branch handoff: finish work on the secondary branch, push it, merge it into the primary branch, push the primary branch, then return to the secondary branch.

Use "secondary branch" for the branch that contains the current work, such as dev, develop, or another integration branch. Use "primary branch" for the protected/release branch, such as main or master.

This workflow is for safe release-sync handoffs where both branches need to be pushed and the primary branch should preserve a clear merge result.

When to Use

Use this skill when the user asks for:

  • Pushing the work branch and then merging into the release branch
  • A two-branch release-sync workflow such as devmain or developmaster
  • Finishing a feature on a secondary branch and propagating it to the primary branch
  • Keeping a clean merge commit on the primary branch while preserving the secondary branch history

Do Not Use

Do not use this skill for:

  • Single-branch commit/push (use a normal commit + push flow)
  • Force-pushing, history rewriting, or rebasing operations
  • Generating reports from git history (use git-weekly-report instead)
  • Reviewing code changes (use code-reviewer or frontend-code-review instead)

Instructions

Follow the branch detection rules first, then execute the workflow in order. Stop and report the blocker instead of guessing when branch names, merge conflicts, dirty worktrees, or rejected pushes cannot be handled safely.

Branch Detection

  1. Prefer explicit branch names from the user.
  2. If the user says dev or main but the repository uses develop or master, inspect actual branches before choosing.
  3. Detect the primary branch with git symbolic-ref refs/remotes/origin/HEAD when available.
  4. If remote HEAD is unavailable, prefer an existing main, then master.
  5. Detect the secondary branch from the current branch when it is not the primary branch.
  6. If currently on the primary branch and no secondary branch was specified, prefer an existing dev, then develop.
  7. If the branches still cannot be determined safely, ask the user for the primary and secondary branch names.

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 92 lines · 29 tokens per session scan A be9361b5362c

Subscribe to this mod's changes

git-push-secondary-merge-primary is a skill published in the GitHub repository YangsonHung/awesome-agent-skills (18 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 1,085 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

app-release

Automates the release process for Skill Lake app, including version bumping, building, packaging, and publishing to GitHub and Homebrew.

emlog/skill-lake · 31 tokens

release-skills

A release workflow for preparing and publishing a new version of a software project. A release is a named version that may include updated version files, release notes, tags, or a GitHub Release.

JimLiu/baoyu-skills · 87 tokens

version-release

Choose and apply the correct semantic version bump for this repository. Use for every user-visible release, before merge when a change set should ship as patch, minor, or major, and whenever package/plugin/desktop version metadata must stay synchronized.

hoangsonww/Claude-Code-Agent-Monitor · 50 tokens

changelog-gen

A changelog generator that turns Git history into a version-by-version record of project changes. A changelog is a readable summary of new features, fixes, breaking changes, documentation, and other updates.

laolaoshiren/claude-code-skills-zh · 19 tokens

publish

Publish oh-my-opencode to npm by triggering the GitHub Actions publish workflow and verifying its artifacts. Ship-only: never runs pre-publish-review or re-reviews merged code unless the user explicitly asks. Argument: . Triggers: publish, release, deploy, npm publish.

code-yeongyu/oh-my-openagent · 68 tokens

pre-publish-review

Nuclear-grade 12-agent pre-publish release gate. Runs /get-unpublished-changes to detect all changes since last npm release, spawns up to 10 ultrabrain agents for deep per-change analysis, invokes /review-work (orchestrator manual QA plus one gate reviewer) for holistic review, and 1 oracle for overall release…

code-yeongyu/oh-my-openagent · 161 tokens