git-commit-push-pr

Commits changes, pushes to remote, and creates or updates GitHub pull requests.

Updated Jul 23, 2026
One-click install
npx skills add https://github.com/generic-automation-and-it/smooth-ai-stockanalysis --skill git-commit-push-pr-generic-automation-and-it
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: git-commit-push-pr
Source: https://github.com/generic-automation-and-it/smooth-ai-stockanalysis/tree/main/.agents/skills/git-commit-push-pr
Command: npx skills add https://github.com/generic-automation-and-it/smooth-ai-stockanalysis --skill git-commit-push-pr-generic-automation-and-it

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Manually committing changes, pushing branches, and drafting pull requests with consistent titles and template-compliant descriptions is repetitive and error-prone. This Skill automates the entire flow from staged changes to a verified GitHub pull request. ## Core Features & Use Cases - End-to-End PR Automation: Delegates committing and pushing to a sub-skill, then creates or fully updates a pull request via the GitHub CLI. - Conventional Title Enforcement: Derives <type>[{ticket}]: <description> PR titles from the branch name using a metadata script, so squash-merge commits stay consistent. - Template-Compliant Bodies: Always fills the repository's pull request template, appends Closes #<issue> links, and verifies the result with gh pr view. - Use Case: After finishing a feature on branch feat/42-add-auth, invoke the Skill to commit, push, and open a draft PR titled feat[42]: add auth that auto-closes issue 42 on merge. ## Quick Start Ask the agent to commit the current changes, push the branch, and open a draft pull request using the repository's PR template.

Frequently Asked Questions about git-commit-push-pr

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

FAQPage Schema
How do I create a GitHub pull request from the command line?▼

Use the GitHub CLI with `gh pr create --title "<title>" --body "<body>" --base main`. This Skill wraps that flow, filling the repository's pull request template and verifying the result with `gh pr view`.

How do I create a draft pull request on GitHub?▼

Pass the `--draft` flag to `gh pr create`, or omit `--ready` when invoking this Skill since draft is the default. An existing draft PR can later be marked ready with `gh pr ready <pr-number>`.

How does GitHub auto-close issues when a PR merges?▼

Adding `Closes #<issue>` to the PR description makes GitHub close the linked issue on merge. This Skill appends that line by default, resolving the issue number from the branch name or an explicit `--issue` argument.

What happens if my branch name has no ticket number?▼

The metadata script returns an empty issue for ticketless branches like `refactor/cleanup-dead-code`, and the Skill skips the `Closes #` link gracefully. It never guesses or invents a ticket number.

Can I update an existing pull request instead of creating a new one?▼

Yes. The Skill detects an existing PR for the current branch via `gh pr list`, then performs a full template-based replacement of the description while preserving the AI Review Notes section and existing title.