AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Git Flow

skill-bacsystem-skills-git-flow · by bacsystem

Use when changes are ready to ship and you need to go from working tree to pull request — staging, reviewing, conventional commit, version bump, and PR. Triggers include "commit and open a PR", "ship this", "create the PR", finishing a feature/fix, or preparing a release.

No reviews yet
0 installs
27 views
0.0% view→install

Install

$ agentstack add skill-bacsystem-skills-git-flow

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-bacsystem-skills-git-flow)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Git Flow? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

git-flow

Overview

A guided workflow that takes changes from the working tree to a pull request, following consistent conventions: branch naming, code review, Conventional Commits, automatic SemVer, and a PR template. Guided, not blind — confirm with the user at the review, doc-update, and PR steps.

When to Use

  • Changes are done and ready to be committed and shared.
  • User says "ship this", "commit and open a PR", "create the PR".
  • A feature or fix is finished and needs a branch + commit + PR.

Skip when: the user only wants a quick local commit with no review/PR.

Conventions

| Aspect | Rule | |---|---| | Branch | type/description, kebab-case (e.g. feat/login-form) | | Commit | Conventional Commits, in English | | Types | feat, fix, docs, style, refactor, perf, test, build, ci, chore | | SemVer (≥ 1.0) | feat → minor · fix → patch · BREAKING CHANGE (or !) → major | | Other types | docs/style/refactor/perf/test/build/ci/chore → patch | | SemVer (0.x) | BREAKING → minor (0.y0.(y+1), resets patch) · everything else → patch | | Tag | Created after the PR merges to main, not on the branch | | PR | Via gh, ask before creating |

Rules & tie-breakers

  • One authoritative type. Classify the change ONCE (step 2). That type drives

the branch name, the commit, and the SemVer bump. They must agree.

  • Mixed changes: pick the highest-impact type for the version

(BREAKING > feat > fix > everything else). If the diff contains clearly separate logical changes, make separate commits; otherwise one commit.

  • Pre-1.0 (0.x.y): SemVer is still unstable, so the normal table does NOT

apply. A BREAKING CHANGE/! bumps the minor (0.2.30.3.0); feat, fix, and every other type bump the patch (0.2.30.2.4). Use the ≥ 1.0 rules only once the project actually reaches 1.0.0.

  • Branch description: kebab-case derived from the commit subject, ≤ 5 words

(e.g. subject "add token refresh on 401" → feat/token-refresh).

  • Version source precedence: package.jsonVERSION → latest git tag

CHANGELOG.md. Strip a leading v. If two sources disagree, use the highest. If no source records a version, start from 0.1.0 and create CHANGELOG.md.

  • Staging: only stage the reviewed files plus the docs you updated. Never

git add -A / git add . blindly.

  • Remote: never hardcode origin. Resolve the push remote from

git remote -v — prefer the current branch's upstream if one is set, else the sole remote, else ask which to use. Some repos push through an SSH-alias remote (e.g. git@host-alias:org/repo.git) whose name is not origin. Use the resolved remote name for the push (step 9) and the post-merge tag (step 10).

  • Changes = tracked modifications (staged or unstaged) and/or new files.

Whitespace-only or no changes → stop.

Workflow

Run in order. Stop and report if a precondition fails.

  1. Detect contextgit status / git diff; stop if no changes. Detect

version files (package.json, VERSION, CHANGELOG.md, README.md). Resolve the push remote (git remote -v; see the Remote rule). Check gh auth status.

  1. Classify — pick the one Conventional Commit type and the SemVer bump

(see Conventions + tie-breakers).

  1. Create branch — if on main/master, git switch -c type/description.

If already on a work branch, keep it.

  1. Code review — review the diff for bugs, convention issues, and

simplifications. Show findings; continue after the user's OK.

  1. Verify — detect the project's test/lint command and run it (see

references/verify-commands.md for the per-ecosystem mapping). Prefer a command the repo already defines (scripts, Makefile targets, CI) over a generic guess. Stop and report if it fails; continue once green. If the project has no test/lint setup, say so and move on — don't fabricate a command.

  1. Compute version — read current version per precedence, then apply the

bump with scripts/next-version.sh (the canonical, tested implementation of the SemVer table, including the 0.x rule). The Conventions table stays the human-readable reference.

  1. Validate & update docs — list the files to update and **show the user

before staging**:

  • CHANGELOG.md: add ## [X.Y.Z] - YYYY-MM-DD with the right section

(Added/Changed/Fixed/etc.); replace an [Unreleased] block if present.

  • Version in package.json / VERSION if they exist.
  • README.md only if the change affects documented behavior.

Apply after confirmation.

  1. Stage & commitgit add the relevant files; Conventional Commit message

in English. Scope optional (derive from path only if obvious).

  1. Push & PR (ask first)git push -u (the remote

resolved in step 1). Build the PR body from references/pr-template.md (if missing, use a minimal Summary/Changes/Version body). PR base main, title = commit subject. Show the body and ask before creating. On confirmation: gh pr create. If gh is unavailable, output the body and the compare URL instead.

  1. Tag after merge — once the PR is merged to main:

git tag -a vX.Y.Z -m "vX.Y.Z" and git push vX.Y.Z. Skip if the tag already exists.

Common Mistakes

  • Tagging on the feature branch — the tag goes on main after merge (step 10).
  • Committing on main — branch first (step 3) unless already on a work branch.
  • Assuming package.json — follow the version-source precedence; detect first.
  • Hardcoding origin — resolve the real remote (step 1); some repos use an SSH-alias remote.
  • Over-bumping a 0.x project — pre-1.0, feat is a patch and a breaking change is a minor.
  • Skipping tests — run the project's test/lint command (step 5) before committing.
  • git add -A — stage only reviewed + updated files.
  • Spanish commit/PR text — commits and PR are English; only the chat is Spanish.
  • Staging before showing doc updates — show changes in step 7 before git add.

PR Template

See references/pr-template.md.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.