openspec-git-branch

仓库创建 2026年7月26日最近提交 4 天前SkillHot 收录 3 天前
这个 Skill 做什么

在开始新 OpenSpec 变更之前做门禁检查:确认仓库在 main 且工作区干净,然后创建统一格式的 feature 分支(如 prefix/变更名)。会在你要新建、提案或快速合并变更时触发,确保不会在错误分支或脏工作区上开工。好处是强制标准化分支命名并避免误操作,保证后续流程顺畅。

▸ 展开 SKILL.md 英文原文

MANDATORY skill that activates whenever a new OpenSpec change is started. Triggers: /opsx:new, /opsx:propose, or /opsx:ff runs; openspec-new-change, openspec-propose, or openspec-ff-change is referenced or active; `openspec new change` is about to be invoked; or the user asks to start, create, scaffold, or propose a new OpenSpec change. Runs BEFORE any change files are created: verifies the repo is on the main branch and clean, then creates the feature branch <prefix>/<change-name>.

0
Stars
0
Forks
3
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/sh1ny/openspec-git-flow/main/skills/openspec-git-branch/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/sh1ny/openspec-git-flow/main/skills/openspec-git-branch/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# OpenSpec Git Branch

## Mission

Run as a gate before any new OpenSpec change is scaffolded. Before `openspec new change` (or the equivalent vanilla `openspec-new-change` / `openspec-propose` / `openspec-ff-change` workflow) creates a single file, this skill:

1. Confirms the working tree is a git repo and is on the main branch.
2. Confirms the main branch is clean.
3. Derives `<prefix>/<change-name>` from the change name.
4. Creates and checks out the feature branch.

The vanilla change-creation workflows still own proposal/spec/design/tasks authoring and the `openspec` CLI calls — this skill only inserts the git-branch gate in front of them. All change artifacts are then written on the f
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有