hoc-git-push
Conventions for `git push` itself, and for any command that changes what the remote holds. Use before every push, and before deleting a remote branch or tag…
от openreachtech★ 17 звёзд на GitHub
Установить hoc-git-push в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Git Push
A push is the moment local work stops being local. Everything before it can be rewritten, folded, split or abandoned with nobody else affected; everything after it is in someone else's clone, in a CI record, and in the parents of merge commits yet to be made. This convention is about that moment, and nothing else.
What a branch is, which branch it merges into and how, belongs to the git branch convention. What a pull request says belongs to the pull request convention. Neither is repeated here.
Every push takes permission granted in this thread
A push is not made unless it was asked for in the conversation that is running. Not implied by the work having been handed over, not carried in from a previous session, not inherited from permission granted for something else.
- One grant covers one push. "Push it" is this push. It is not the next one, and it is
not an upgrade of this one to
--force. - A force-push is not one of the pushes this section governs. No grant reaches it, because it is not run here at all — see below.
- Where there is no grant, ask in one line — naming what is pushed and to which branch — and do not proceed on the answer being obvious.
- These are all not permission: a complaint, a statement of knowledge ("I know what a force push is" says an explanation is unwanted, not that a push is wanted), silence, a reply on an adjacent topic, a statement that there is time left, or approval of something reversible ("commit that" does not contain a push).
- That the result would be harmless is not a reason to push. Whether it was asked for is the whole of the test, and recoverability is not a defence offered afterwards.
While waiting for the answer, hand over the local state instead: the branch, the commits stacked on it, the state of the working tree, and the base the pull request would take.
Preparing the material needs no permission. A pull request body, a list of commits, the command itself written out for a human to run — all of these can be produced freely. What takes permission is the operation against the remote.
A reading of the remote does not settle what happens next
Where an operation is admissible only because of something read off the remote, the reading is handed over with it and the operation is not run here. The reading is of an instant; the operation comes later. In between, a branch can be pushed, a pull request opened, a merge landed — and none of those announces itself to a check that has already passed.
- What may be run is the fetch that refreshes the reading, and nothing past it.
git fetch origin --prunebrings the remote state in and drops what the host no longer has. Report what it leaves standing. - A verdict handed over as settled is a verdict the operation gets run on. Nothing on the remote depends on this branch reads as a fact somebody established, and whoever reads it cannot see the clock attached to it. Say what the refs hold, and leave the inference where the operation is.
- The loud case is no measure of the quiet one. Measured: a base branch was detected, and was merged and its branch deleted while the body of the pull request was still being written; the create refused, naming the base. A command that checks its own preconditions reports the staleness. One that does not, does not.
A force-push is the human's to runbelow is this at its sharpest, and it arrives there by a second route besides — an author address that cannot tell two sessions apart. Either route alone is enough to keep the operation out of here.
A trunk is never force-pushed
No trunk takes git push --force, -f or --force-with-lease, and no permission unlocks
it. Which branches are trunks, and why their published history is never rewritten, belong to
/hoc-git-branch-remote.
What a push is for
A push exists to open a pull request or to update one. That is the shape of nearly every legitimate push: a sub-branch goes up so that a base branch can receive it through a review.
- A local merge into a named trunk is never pushed. A named trunk advances only by a merged
pull request — see
/hoc-git-branch-remote, which also says which branches merge locally and are pushed instead. hotfix/xxxxis the one trunk whose own commits are pushed directly. It is worked on in place rather than through sub-branches, so pushing commits onto it is the normal thing, not a violation of the rule above. What still goes through a pull request is its merge intomain.- A push onto a branch that already has an open pull request moves that pull request. The head advances, the diff changes, and review that was done against the old head no longer describes what would merge. Where the pull request carried a verification someone else signed off on — a checksum agreed by two people, an approval on a named commit — that verification is void, and the pull re
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл hoc-git-push?
Conventions for `git push` itself, and for any command that changes what the remote holds. Use before every push, and before deleting a remote branch or tag. What a branch is and where it merges belongs to the git branch convention; what a pull request says belongs to the pull request convention.
Как установить скилл hoc-git-push?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hoc-git-push запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…