AICodingFlow: Skill for Claude Code

.agents/skills/git-branch/SKILL.md

git-branch is a skill for Claude Code, Codex from Terry-Mao/AICodingFlow. It costs 15 tokens per session (424 once invoked), scanned A, original, MIT.

A Git branch setup guide for creating repository-compliant development branches with safe naming and base-branch checks.

In plain words
What is it for?
It helps choose a branch name from an issue or task, check the current repository state, validate the name, and create the branch.
Why use it?
It prevents unclear branch names and reduces the risk of creating work from the wrong or unsafe starting point.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is Terry-Mao/AICodingFlow's own configuration. It tells Claude Code and Codex how to work on AICodingFlow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything AICodingFlow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Terry-Mao/AICodingFlow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Terry-Mao/AICodingFlow/main/.agents/skills/git-branch/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Terry-Mao/AICodingFlow

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-branch

README.md
[![agentmods](https://agentmods.dev/badge/skills/terry-mao/aicodingflow/git-branch/github.svg)](https://agentmods.dev/skills/terry-mao/aicodingflow/git-branch)
Your own site
<a href="https://agentmods.dev/skills/terry-mao/aicodingflow/git-branch"><img src="https://agentmods.dev/badge/skills/terry-mao/aicodingflow/git-branch/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-branch

Your own site · 80×15
<a href="https://agentmods.dev/skills/terry-mao/aicodingflow/git-branch"><img src="https://agentmods.dev/badge/skills/terry-mao/aicodingflow/git-branch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 424 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00015 $0.00424
Opus 5.5 $0.00006 $0.00170
Sonnet 5.5 $0.00003 $0.00085
Haiku 4.5 $0.00002 $0.00042

Measured 1mo ago against content hash 219ac68a40d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-branch 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 1mo 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.

.agents/skills/git-branch/SKILL.md · 48 lines

What it actually says

git-branch

Create a new branch without overwriting work or choosing an unsafe base.

Naming

  • Issue-backed work: <type>/<short-desc>-<issueID>.
  • Other work: <type>/<user-provided-name>; never invent an issue ID.
  • Valid types are feat, fix, refactor, docs, test, perf, and chore. Preserve a valid user type, otherwise infer one and default to chore.
  • Keep the description short, lowercase, English, hyphen-separated, and valid for Git. Remove punctuation, filler, and repeated separators.

When an issue ID is provided, use one gh issue view <issueID> --json title,body,number call for naming context. If it fails, continue only when the request is enough and report that the issue was not verified.

Create

Check the current worktree, branch, and target branch first. Stop if the worktree intent is ambiguous, the target already exists, or the current/base branch is unsafe. Validate the name with:

git check-ref-format --branch <branch-name>

Use the repository's documented base, otherwise main. In the same repository prefer origin/<base> over upstream/<base>; use upstream only for a fork or explicit guidance. Fetch or compare freshness only when it can change the choice of base. If creating from a stale local base, confirm before updating or use a freshly fetched remote base and report that the local base was unchanged.

git switch -c <branch-name> <base>
git switch --no-track -c <branch-name> origin/<base>

Verify the resulting branch. Do not switch to an existing branch, overwrite, reset, stash, delete, or force anything without explicit user intent. Do not create protected/shared base branches.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 48 lines · 15 tokens per session scan A 219ac68a40d9

Subscribe to this mod's changes

git-branch is a skill published in the GitHub repository Terry-Mao/AICodingFlow (169 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 424 once invoked, about $0.0001 per session on Opus 5.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.