From omni
Manages Git branches and feature directories based on requirement IDs. Creates or reuses branches and directories, validates requirement IDs, and sets output variables for downstream tools.
How this skill is triggered — by the user, by Claude, or both
Slash command
/omni:branch-managementThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- **职责**:统一管理基于“需求编号”的分支与特性目录创建/复用流程:
reverse-on-demand(按需反构阶段1)REQUIREMENT_ID:需求编号BRANCH_MATCHES_REQUIREMENT:布尔值,当前分支是否匹配需求编号BRANCH_NAME:最终选定/创建的特性分支名称FEATURE_DIR:特性目录绝对路径(例如 <REPO_ROOT>/changes/<short-name>/)TARGET_FILE:目标文件绝对路径(可选;本流程下允许为空)REPO_ROOT:仓库根目录(在调用本 Skill 前由调用方提供或通过前置步骤获取)本 Skill 将分支与特性目录管理流程封装为可复用 Skill,可被 reverse-on-demand 等命令/Skill 调用。
$ARGUMENTS 中的内容),其中需要有“需求编号”信息;REPO_ROOT。REPO_ROOT,且后续步骤需要使用绝对路径;REPO_ROOT,可以跳过。bash scripts/bash/check-prerequisites.sh --paths-only --jsonpwsh scripts/powershell/check-prerequisites.ps1 --paths-only --jsonREPO_ROOT(必须为绝对路径)。## 需求编号 + 下一行 ID(如 TCF-123456)需求编号: TCF-123456、MR: TCF-123456、Requirement ID: BUG-123456、PR: TCF-123456 等。REQUIREMENT_ID 不为 null,不为空字符串,去除首尾空白后非空;<REQUIREMENT_ID>- 为前缀(不区分大小写)视为匹配;TCF-123456-feature-name、tcf-123456-fix-bug 等。BRANCH_MATCHES_REQUIREMENT = true/falseBRANCH_MATCHES_REQUIREMENT == falseuser-auth、fix-payment-bug);<REQUIREMENT_ID>-<short-name>(如 TCF-123456-user-auth)。<short-name>(如 rdma-sharepf-extend)。BRANCH_MATCHES_REQUIREMENT == true:复用当前分支,查找匹配目录;NNN- 或需求编号前缀的目录并选择合适的一个。scripts/bash/create-new-feature.sh --json --branch-name "<REQUIREMENT_ID>-<short-name>" --feature-dir "changes/<short-name>"scripts/powershell/create-new-feature.ps1 --json --branch-name "<REQUIREMENT_ID>-<short-name>" --feature-dir "changes/<short-name>"BRANCH_NAMETARGET_FILE(可为空;不再要求由本流程创建 spec.md)FEATURE_DIR(特性目录绝对路径)FEATURE_DIR 以脚本返回值为准;不得依赖 TARGET_FILE 反推目录路径。FEATURE_DIR 必须匹配 <REPO_ROOT>/changes/<short-name>/;若不匹配,立即报错并终止流程。REQUIREMENT_IDBRANCH_MATCHES_REQUIREMENTBRANCH_NAMEFEATURE_DIRTARGET_FILE(若适用)REPO_ROOT(若在步骤0中获取)本 Skill 的详细逻辑已整合于上文步骤中;脚本参数、JSON 输出格式等以 create-new-feature 与 check-prerequisites 脚本的文档为准。执行本 Skill 时,AI Agent 应按上述步骤完成解析、校验与分支/目录创建或复用。
npx claudepluginhub zte-aicloud/co-omnispec --plugin omniCreates or reuses Git branches and feature directories (changes/...). Parses input to decide branch/directory actions, outputs BRANCH_NAME, FEATURE_DIR, SPEC_FILE.
Creates Git feature branches with short auto-incremented names and type prefixes (feat/fix/refactor/chore/docs). Generates from manual descriptions, uncommitted changes, or Arkhe SDLC specs.
Implements git branching strategies like Git Flow with naming conventions, prefixes, and best practices for clear development narratives and parallel workflows.