Gh Publish

Internal executor for commit-and-push terminal commands after repository checks pass.

gustavo-gardusi Updated

File contents

Publish (internal)

Internal executor for the public @gh-push boundary.

Responsibility

  • Own runnable terminal commands for status, commit, and push.
  • Respect publish safety rules (especially main restrictions).
  • Do not create or edit PR metadata.

Command runbook

1) Validate branch safety

BRANCH=$(git branch --show-current)
  • If BRANCH is main, require explicit user confirmation before push.

2) Inspect working tree

git status --short
  • If dirty, stage and commit with an appropriate message.

3) Commit when needed

git add -A
git commit -m "<message>"

4) Push branch

Use tracking push when needed:

git push -u origin HEAD

Otherwise:

git push

5) Verify

git status --short

Report pushed branch and stop.

gustavo-gardusi/cursor-skills/tree/main/skills/internal/gh/publish commit a914c544e1

Frequently asked questions

npx skillmds@latest add gustavo-gardusi/gh-publish