mcpField
C
commit-push-pr

commit-push-pr

github.com/meleantonioDevelopment66755 installsUpdated 10w ago
Repository

About commit-push-pr

A development skill that guides a Git workflow from reviewing changes through committing, pushing, and opening a pull request. It includes checks for Python changes and accepts an optional commit message.

Key features

  1. 01Review diffs and check sensitive files
  2. 02Run Python formatting, lint, and tests
  3. 03Stage and commit with Conventional Commits
  4. 04Push branch and create GitHub pull request

Use cases

  1. 01Prepare a feature or fix for review
  2. 02Check changes before creating a commit
  3. 03Publish a branch and open its pull request

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/meleantonio/awesome-econ-ai-stuff --skill commit-push-pr

After installing, type/commit-push-prin Claude Code to confirm it loaded.

Bundled filesindex.md

Details

From the project README

Commit, Push, and Create PR

Automate the git workflow for completing a feature or fix.

Pre-computed Context

Before proceeding, gather this information:

  • Current branch: !git branch --show-current
  • Git status: !git status --short
  • Recent commits on this branch: !git log --oneline -5
  • Diff summary: !git diff --stat

Workflow

  1. Review Changes

    • Check git status for all modified/added files
    • Review the diff to understand what's being committed
    • Ensure no sensitive files are staged (.env, credentials, etc.)
  2. Run Pre-commit Checks

    • Format code: ruff format . (if Python files changed)
    • Lint code: ruff check . (if Python files changed)
    • Run tests: pytest (if tests exist)
  3. Stage and Commit

    • Stage relevant files: git add <files>
    • Create a commit with Conventional Commits format:
      • feat: for new features
      • fix: for bug fixes
      • docs: for documentation
      • refactor: for refactoring
      • test: for tests
      • chore: for maintenance
    • Write a clear, concise commit message focusing on "why"
  4. Push to Remote

    • Push the branch: git push -u origin HEAD
    • If branch doesn't exist on remote, create it
  5. Create Pull Request

    • Use GitHub CLI: gh pr create
    • Include:
      • Clear title summarizing the change
      • Description with summary and context
      • Reference any related issues
    • Add appropriate labels if applicable

Arguments

Pass a commit message or leave empty for auto-generated message based on changes.

Usage: /commit-push-pr [optional commit message]

Example: /commit-push-pr feat: add user authentication

Output

Return the PR URL when complete.

Comments

Markdown supported