agentleFS
sergvsssergvss/agents-best-teams/skills/finish-branch/SKILL.md

finish-branch

Skill2 starsChanged 19 days agoMITView on GitHub

Use when work on a branch is done and has to be integrated - merged, sent as a pull request or kept - or when the user asks what to do with the branch.

  • Commits and pushes

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Завершение работы в ветке

Влить работу решает пользователь, выбором в меню. Зелёные тесты — условие слияния, а не разрешение на него.

  1. Полный набор тестов проекта зелёный — весь, не один свой файл. Красный — покажи падения и остановись.
  2. Ревью пройдено, если его требует Tier. Включён шлюз ревью — коммит кода без одобрения code-reviewer откроет окно.
  3. Незакоммиченное — покажи git status --short и спроси, коммитить ли.
  4. Меню одним сообщением:

    1. Слить в <основная> локально
    2. Отправить ветку и открыть pull request
    3. Оставить ветку как есть

    Ты субагент — верни меню в отчёте, спросит главный диалог.

  5. Слить: git switch <основная> → есть удалённый репозиторий — git pull --ff-only → git merge --no-ff <ветка> → полный набор тестов. Красный — стоп, ветку не удаляй. Зелёный — git branch -d <ветка> (не -D) и уборка своего worktree.
  6. Pull request: git push -u origin <ветка> → gh pr create или средства платформы → ссылка. Ветку и worktree оставь.
  7. Оставить — назови ветку и где worktree.

Запреты. Удалить неслитую работу — только если пользователь сам написал «удалить»: на git branch -D и git worktree remove --force хук откроет окно. Никогда --force по своей инициативе: отклонённый push значит, что удалённая ветка ушла вперёд, — разберись, а не перезаписывай. Чужие worktree не трогай.

Полный текст: ${CLAUDE_PLUGIN_ROOT}/checklists/branch-workflow.md

Если методология установлена копированием — файл лежит в checklists/branch-workflow.md репозитория.

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.