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.
/plugin marketplace add ZTE-AICloud/Co-OmniSpec/plugin install omni-dsddWrote 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.
[](https://agentmods.dev/skills/zte-aicloud/co-omnispec/create-branch)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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_NAMEFEATURE_DIRSPEC_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(插件路径)
- 若 Claude Code 已注入且目录存在:沿用。
- 若仍缺失,按顺序降级(每项须验证
${路径}/skills/create-branch/SKILL.md存在):- 使用 Skill 加载上下文中的插件安装根目录;
- 在已知的
${CLAUDE_WORKING_DIR}或其上级查找含.claude-plugin/plugin.json的目录,取该目录为插件根(开发态内嵌插件);
export CLAUDE_PLUGIN_ROOT="<解析到的绝对路径>"- 仍无法解析 → 终止,提示用户安装/启用 omni 插件或手动
export CLAUDE_PLUGIN_ROOT=...
CLAUDE_WORKING_DIR(工作区路径)
- 若已注入且目录存在:沿用。
- 若缺失:
- 无论 Git/非 Git:
export CLAUDE_WORKING_DIR="$(pwd)"
- 无论 Git/非 Git:
- 仍无法解析 → 终止,提示切换到目标工程目录后重试。
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"
What ships with it
13 files 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.
- scripts/bash/create-branch-allocate.sh 1.0 KB runs code
- scripts/bash/create-branch-common.sh 2.0 KB runs code
- scripts/bash/create-branch-record.sh 1016 B runs code
- scripts/bash/create-feature-dir.sh 2.3 KB runs code
- scripts/bash/create-new-feature.sh 4.4 KB runs code
- scripts/bash/ensure-git-branch.sh 2.3 KB runs code
- scripts/powershell/create-branch-allocate.ps1 1.6 KB runs code
- scripts/powershell/create-branch-record.ps1 1.6 KB runs code
- scripts/powershell/Create-BranchCommon.ps1 2.5 KB runs code
- scripts/powershell/Create-FeatureDir.ps1 3.4 KB runs code
- scripts/powershell/create-new-feature.ps1 4.6 KB runs code
- scripts/powershell/Ensure-GitBranch.ps1 3.1 KB runs code
- scripts/python/create_branch_harness.py 17 KB runs code
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.
- 10d ago First seen · 322 lines · 69 tokens per session scan A 54aa7c3ef8f2
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.
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.
gh-auth-isolation
Safely manage multiple GitHub identities (EMU + personal) in agent workflows.
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.
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.
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…
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.