git-publish

Commits, pushes, and opens a draft merge or pull request on the connected git host.

Updated May 13, 2026
One-click install
npx skills add https://github.com/andrewcodesit/skills --skill git-publish-andrewcodesit
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: git-publish
Source: https://github.com/andrewcodesit/skills/tree/main/skills/engineering/git-publish
Command: npx skills add https://github.com/andrewcodesit/skills --skill git-publish-andrewcodesit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Getting local work onto a remote and visible as a reviewable request involves repetitive, error-prone steps: staging the right files, matching commit conventions, detecting the git host, and creating a pull or merge request with the correct draft flag. This Skill automates that entire publish flow while enforcing safety rules like never pushing without authorization and never staging secrets. ## Core Features & Use Cases - Host-aware publishing: Detects GitHub, GitLab, or Azure DevOps from the git remote and uses the matching CLI (gh, glab, or az repos) and API to create the request. - Draft-first requests: Opens requests as drafts by default, handling each host's different draft mechanism (GitHub draft field, GitLab Draft: title prefix, Azure --draft flag). - Convention-matching commits: Reads git log to follow the repo's existing commit message style and refuses AI attribution trailers. - Use Case: After finishing a feature branch, say "commit and push this and open a draft MR" and the Skill stages the relevant files, commits with a conventional message, pushes the branch, and opens a draft merge request assigned to you. ## Quick Start Commit my current changes, push this branch, and open a draft pull request for review.

Frequently Asked Questions about git-publish

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I commit, push, and open a pull request in one step?▼

Authorize the publish with a phrase like "commit and push" or "open a draft PR". The Skill stages the relevant files, commits with a message matching the repo's conventions, pushes the branch, and creates the request via the host's API.

How do I create a draft pull request on GitHub, GitLab, or Azure DevOps?▼

The Skill detects the host from the git remote and applies the correct draft mechanism: GitHub uses a draft field on the pulls API, GitLab uses a "Draft: " title prefix, and Azure DevOps uses the --draft flag on az repos pr create.

Does it work with GitLab merge requests and self-hosted GitLab?▼

Yes. It detects gitlab.com and self-hosted GitLab remotes and uses the glab CLI and API to list existing merge requests and create new ones, resolving the project ID and default branch at runtime.

Will it push without asking or add AI attribution to commits?▼

No. It never pushes without explicit authorization in the current turn, and it never adds AI co-author trailers, session links, or "generated with" lines to commit messages or request descriptions.

What happens if a pull request already exists for my branch?▼

The Skill checks for an existing open request before creating one. If one exists, it skips creation entirely and the push alone updates the existing pull or merge request.