create-branch

create-branch is a skill for Claude Code from ZTE-AICloud/Co-OmniSpec. It costs 69 tokens per session (4,555 once invoked), scanned A, original, MIT.

A setup step for starting feature work in Git, a tool that tracks code changes. It creates or reuses a branch and a matching changes/ folder with a spec.md file.

In plain words
What is it for?
Use it when starting a feature, fixing a bug, creating or switching branches, or changing to an existing feature context.
Why use it?
It prevents feature work from starting in the wrong branch or without a clear working folder and specification.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the omni-dsdd plugin — 40 skills, 16 agents, 1 hook shipped together

Good fit Use it when starting a feature, fixing a bug, creating or switching branches, or changing to an existing feature context.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ZTE-AICloud/Co-OmniSpec
Claude Code
/plugin install omni-dsdd

Made for: Claude Code.

Or install omni-dsdd, the plugin that ships this one along with the rest of its 40 skills, 16 agents, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/zte-aicloud/co-omnispec/create-branch/github.svg)](https://agentmods.dev/skills/zte-aicloud/co-omnispec/create-branch)
Your own site
<a href="https://agentmods.dev/skills/zte-aicloud/co-omnispec/create-branch"><img src="https://agentmods.dev/badge/skills/zte-aicloud/co-omnispec/create-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 create-branch

Your own site · 80×15
<a href="https://agentmods.dev/skills/zte-aicloud/co-omnispec/create-branch"><img src="https://agentmods.dev/badge/skills/zte-aicloud/co-omnispec/create-branch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,555 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.00069 $0.04555
Opus 5 $0.00034 $0.02278
Sonnet 5 $0.00014 $0.00911
Haiku 4.5 $0.00007 $0.00456

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

Security

Grade A, and why

create-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 10d ago.

The scan reads SKILL.md. This mod also ships 13 executable files (scripts/bash/create-branch-allocate.sh, scripts/bash/create-branch-common.sh, scripts/bash/create-branch-record.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

omni-dsdd/skills/create-branch/SKILL.md · 322 lines

How it starts

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

create-branch

适用场景

当需要为功能规格创建或复用工作上下文时使用本技能。目标是确定并返回:

  • BRANCH_NAME
  • FEATURE_DIR
  • SPEC_FILE

本技能处理两类问题:

  • 是否需要创建、切换或复用 Git 分支
  • 是否需要创建、复用或推导 changes/... 功能目录

输入

从用户指令与上下文中解析两个驱动量;未出现则视为未指定

输入 含义 视为已指定
BRANCH_NAME Git 分支名 显式给出;或「在 xxx 分支」「使用当前分支」等可解析为单一分支名
FEATURE_DIR 功能目录,位于 ${CLAUDE_WORKING_DIR}/changes/ 显式路径 changes/foo、仅目录名 foo(补全为 changes/foo)、或等价表述

若两者都未指定,可根据 description 推导 short_core(英文动-名词核心),编号与最终 BRANCH_NAME 必须由 Harness 分配,不得由 Agent 臆造 001/002

上游 specify 步骤 1 预解析:若用户通过 CLI 或 export 指定了 FEATURE_DIR / BRANCH_NAME(或二者之一并由预解析补全),specify 步骤 2 调用本技能时会显式透传二者,禁止 allocate;目录已存在则 resolve + checkout,不存在则 create-new-feature 显式创建。同一变量 CLI 与 export 同时存在时,以 CLI 参数为准。本技能返回值是后续 skill 的唯一真值源


环境初始化

本技能所有路径拼接与脚本调用,均依赖以下两个变量。后续步骤不得绕过它们自行推断路径。

变量 含义 用途
CLAUDE_PLUGIN_ROOT Omni 插件安装根目录(含 skills/scripts/.claude-plugin/ 定位本技能及插件内脚本
CLAUDE_WORKING_DIR 用户当前工作区/目标工程根目录 定位 changes/、Git 操作、Harness 落盘

Step 0.1 检查变量是否已存在

test -n "${CLAUDE_PLUGIN_ROOT:-}" && test -d "${CLAUDE_PLUGIN_ROOT}"
test -n "${CLAUDE_WORKING_DIR:-}" && test -d "${CLAUDE_WORKING_DIR}"

两项均通过 → 进入「执行顺序」Step 1。
任一项失败 → 执行 Step 0.2。

Step 0.2 补全缺失变量(仅 Agent 层执行一次)

CLAUDE_PLUGIN_ROOT(插件路径)

  1. 若 Claude Code 已注入且目录存在:沿用。
  2. 若仍缺失,按顺序降级(每项须验证 ${路径}/skills/create-branch/SKILL.md 存在):
    • 使用 Skill 加载上下文中的插件安装根目录;
    • 在已知的 ${CLAUDE_WORKING_DIR} 或其上级查找含 .claude-plugin/plugin.json 的目录,取该目录为插件根(开发态内嵌插件);
  3. export CLAUDE_PLUGIN_ROOT="<解析到的绝对路径>"
  4. 仍无法解析 → 终止,提示用户安装/启用 omni 插件或手动 export CLAUDE_PLUGIN_ROOT=...

CLAUDE_WORKING_DIR(工作区路径)

  1. 若已注入且目录存在:沿用。
  2. 若缺失:
    • 无论 Git/非 Git:export CLAUDE_WORKING_DIR="$(pwd)"
  3. 仍无法解析 → 终止,提示切换到目标工程目录后重试。

Step 0.3 校验(必须通过)

test -f "${CLAUDE_PLUGIN_ROOT}/skills/create-branch/scripts/python/create_branch_harness.py"
test -f "${CLAUDE_PLUGIN_ROOT}/skills/create-branch/scripts/bash/create-new-feature.sh"
test -f "${CLAUDE_PLUGIN_ROOT}/skills/create-branch/scripts/bash/create-branch-allocate.sh"
test -d "${CLAUDE_WORKING_DIR}"
mkdir -p "${CLAUDE_WORKING_DIR}/changes"

Read the full file on GitHub · 322 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. 10d ago First seen · 322 lines · 69 tokens per session scan A 54aa7c3ef8f2

Subscribe to this mod's changes

create-branch is a skill published in the GitHub repository ZTE-AICloud/Co-OmniSpec (54 stars, last pushed 1mo ago), licensed MIT. It adds 69 tokens to every session and 4,555 once invoked, about $0.0003 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

prowler-commit

Creates professional git commits following conventional-commits format. Trigger: When creating commits, after completing code changes, when user asks to commit.

prowler-cloud/prowler · 33 tokens

gh-auth-isolation

Safely manage multiple GitHub identities (EMU + personal) in agent workflows.

github/gh-aw · 20 tokens

comet-github

A routing guide for Comet-related GitHub work. It directs requests about pull requests, issues, CI failures, ideas, and fixes to the appropriate review or implementation process.

rpamis/comet · 72 tokens

github-skill

Work with GitHub via the gh CLI — clone repositories, create/list/merge pull requests, create/list issues, and run any other gh command (API calls, workflow runs, releases, repo administration). List operations return parsed JSON.

zeenie-ai/OpenCompany · 51 tokens

re0-merge

Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…

LilMGenius/paperthin · 70 tokens

nvca-chart-release

Release NVCA Operator chart changes from the native monorepo source to the vendored Helm chart. Use when updating the vendored NVCA Operator chart, changing NVCA image refs, publishing helm-nvca-operator, or validating the chart against a self-managed control plane.

NVIDIA/nvcf · 61 tokens