agentleFS
LinuxSuRenLinuxSuRen/my-dsh-skills/branching-workflow/SKILL.md

branching-workflow

Skill1 starsChanged 2 months agoMITView on GitHub

每次提交/推送代码前,必须先询问 Rick 是新建分支还是用当前分支、走 PR 还是直推;不得擅自决定分支策略。

  • Commits and pushes

The file

Files
SKILL.md

Git 分支策略确认规范

所有代码改动在提交之前,必须先向 Rick(研发本人)确认分支策略,禁止擅自决定。

执行要求

  1. 提交前必问(二选一,让 Rick 明确选择):

    • 新建分支(给出建议的分支名,如 feat/xxx、fix/xxx、docs/xxx)+ 是否创建 PR
    • 继续用当前分支(默认直推还是也要 PR,同样要确认)

    推荐话术:

    这个改动准备提交了:新建分支 feat/xxx 走 PR,还是直接提交到当前分支 master?

  2. 禁止的擅自行为:
    • 未经询问就 git checkout -b 新分支
    • 未经询问就直推 master/主干分支
    • 未经确认就 gh pr create 或合并 PR
    • 强推(--force)历史重写类操作——即使 Rick 要求过重写,执行前也要再次复述影响范围确认
  3. PR 流程(Rick 选择走 PR 时):建分支 → 按规范提交 → push → gh pr create(标题/描述完整)→ 等 Rick review 合并,不要自行 merge。
  4. 例外:连续多个小改动属于同一任务且 Rick 已明确过策略(例如"接下来的改动都走 PR"),沿用已确认的策略即可,无需每次重复询问;但任务切换或涉及主干直推时必须重新确认。
  5. 与 git-identity 技能配合:提交身份永远是 Rick 本人(Rick <linuxsuren@users.noreply.github.com>)。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.