Skip to content
OpenSmartRoute
Skillv1.0.0

commit-push-pr

Commit changes, push to remote, and create a pull request. Use for completing features or fixes ready for review.

by meleantonio(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from meleantonio/awesome-econ-ai-stuff (_skills/engineering/commit-push-pr/SKILL.md). Install upstream with npx skills add meleantonio/awesome-econ-ai-stuff --skill commit-push-pr. Copyright stays with the author.

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.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/meleantonio-awesome-econ-ai-stuff-commit-push-pr/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

meleantonio-awesome-econ-ai-stuff-commit-push-pr.ocm.jsonjson
{
  "ocm": "1",
  "id": "meleantonio-awesome-econ-ai-stuff-commit-push-pr",
  "kind": "skill",
  "name": "commit-push-pr",
  "description": "Commit changes, push to remote, and create a pull request. Use for completing features or fixes ready for review.",
  "publisher": "meleantonio",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "git",
      "github",
      "pull-request",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Commit changes, push to remote, and create a pull request. Use for completing features or fixes ready for review."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/meleantonio/awesome-econ-ai-stuff",
      "path": "_skills/engineering/commit-push-pr/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/meleantonio/awesome-econ-ai-stuff/blob/HEAD/_skills/engineering/commit-push-pr/SKILL.md",
      "key": "meleantonio/awesome-econ-ai-stuff/_skills/engineering/commit-push-pr/SKILL.md"
    },
    "compatibility": "['claude-code', 'cursor', 'codex', 'gemini-cli']"
  },
  "instructions": "# Commit, Push, and Create PR\n\nAutomate the git workflow for completing a feature or fix.\n\n## Pre-computed Context\n\nBefore proceeding, gather this information:\n- Current branch: `!git branch --show-current`\n- Git status: `!git status --short`\n- Recent commits on this branch: `!git log --oneline -5`\n- Diff summary: `!git diff --stat`\n\n## Workflow\n\n1. **Review Changes**\n   - Check `git status` for all modified/added files\n   - Review the diff to understand what's being committed\n   - Ensure no sensitive files are staged (.env, credentials, etc.)\n\n2. **Run Pre-commit Checks**\n   - Format code: `r",
  "cost": {
    "context_tokens": 431
  }
}

Fetch it by URL: GET /api/v1/registry/meleantonio-awesome-econ-ai-stuff-commit-push-pr/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.