commit-push-pr

Stage changes, create conventional commits, push to origin, and open a PR via gh CLI.

835|58|Updated Jul 9, 2025
One-click install
npx skills add https://github.com/llama-farm/llamafarm --skill commit-push-pr-llama-farm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-push-pr
Source: https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/commit-push-pr
Command: npx skills add https://github.com/llama-farm/llamafarm --skill commit-push-pr-llama-farm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the end-to-end git workflow: committing changes, pushing to a repository, and opening a pull request, with built-in quality checks to enforce conventions and prevent mistakes.

Core Features & Use Cases

  • Automated commit messaging following Conventional Commits.
  • Safe push with upstream handling and PR creation when needed.
  • Guardrails: pre-commit hooks enforced; option to skip only via a flag; handles edge cases like no changes or no upstream.

Quick Start

Stage changes, create a conventional commit, push to origin, and open a PR using the gh CLI. This workflow applies to feature work, bug fixes, and documentation updates across any Git repository, and enforces pre-commit hooks and conventional commits.

Frequently Asked Questions about commit-push-pr

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

FAQPage Schema
How do I automate git commit, push, and pull request creation in one workflow?

To automate your git workflow, you can stage changes, generate conventional commits, push to origin, and open a pull request using the gh CLI. This process handles feature work, bug fixes, and documentation updates while enforcing pre-commit hooks.

What is the conventional commit format and how is it enforced during git commits?

Conventional commits provide a standardized format for commit messages. This automation enforces conventional commit formats during the staging and committing process, ensuring consistent git history across your repository without requiring manual message formatting.

Can I skip pre-commit hooks when pushing changes to a remote git repository?

Pre-commit hooks are strictly enforced during the commit process to maintain code quality. You can only skip pre-commit hooks by explicitly passing a designated flag, preventing accidental bypasses of your repository's configured quality checks.

Does this git workflow handle edge cases like no changes or no upstream branch?

Yes, the git workflow explicitly handles edge cases like having no changes to commit or missing an upstream branch. It safely manages upstream tracking during the push operation and aborts gracefully when there are no staged modifications.

How do I open a pull request from the command line after pushing a git branch?

After pushing your branch to origin, the workflow uses the gh CLI to safely create a pull request. This automated PR creation occurs directly after the push step, linking your newly pushed branch to the target repository.

What is the best way to manage git workflows for bug fixes and feature work?

The best way to manage git workflows for bug fixes and feature work is automating the end-to-end sequence. Staging changes, applying conventional commits, enforcing pre-commit hooks, and opening PRs reduces manual errors and standardizes repository contributions.