AgentStack
SKILL verified MIT Self-run

Commit Push Pr

skill-pigfoot-claude-code-hubs-commit-push-pr · by pigfoot

Commit changes, push to remote, and create a pull request in one step. Use when user wants to ship changes end-to-end. Handles GPG signing, branch creation if on main/master, and PR creation via gh CLI.

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-pigfoot-claude-code-hubs-commit-push-pr

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Commit Push Pr? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Commit Push PR Skill

Commits staged/unstaged changes, pushes to remote, and creates a pull request in a single workflow.

Context

  • Current git status: !git status
  • Current git diff (staged and unstaged): !git diff HEAD
  • Current branch: !git branch --show-current
  • Recent commits: !git log --oneline -10

Process

⚠️ CRITICAL: ALWAYS start with Step 1 (Environment Check) before attempting any commit

1. Environment Check (MANDATORY FIRST STEP)

Cache GPG passphrase if available:

if [ -n "$GPG_PASSPHRASE" ]; then
  gpg --batch --pinentry-mode loopback \
      --passphrase-file /dev/null 2>&1 
  • Name based on changes: feat/add-auth, fix/login-bug, docs/update-readme
  • Use a prefix matching the intended commit type

3. Analyze Changes

Use the context injected above (git status, diff, branch):

  • Prefer staged files if any exist; otherwise stage all changes with git add
  • For this skill: single commit only — if multi-concern, inform user and let them decide before proceeding

4. Create Commit

git add 
git commit --signoff --gpg-sign -m ": "

Conventional commit format: : (imperative mood, " --body "$(cat

Test plan

  • [ ] Verify

EOF )"


- PR title = commit message (same text)
- Body: bullet summary of changes + basic test checklist
- Return the PR URL to the user

---

## Commit Types

| Type | Use Case |
|------|----------|
| feat | New feature |
| fix | Bug fix |
| docs | Documentation |
| style | Formatting, styling |
| refactor | Code restructure |
| perf | Performance |
| test | Tests |
| chore | Build/tools |
| ci | CI/CD |
| security | Security fix |
| build | Build system |

---

## Critical Rules

### NEVER

- ❌ Attempt git commit before GPG cache (Step 1)
- ❌ Push directly to `main`/`master` — always branch first
- ❌ Use past tense in commit message ("added" → "add")
- ❌ Make first line >72 chars
- ❌ Bypass hooks without asking

### ALWAYS

- ✅ **FIRST: Cache GPG passphrase (Step 1)**
- ✅ Create new branch if on main/master
- ✅ Use `--signoff --gpg-sign` on commit
- ✅ Push with `-u origin HEAD`
- ✅ Return PR URL to user after creation

---

## Example Session

User: "/commit-push-pr"

Process:

  1. Cache GPG ✓
  2. Context loaded: 3 files modified in src/auth/
  3. On branch main → create feat/add-jwt-auth
  4. Commit: feat: add JWT authentication
  5. Push: git push -u origin HEAD
  6. PR created: https://github.com/org/repo/pull/42

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [pigfoot](https://github.com/pigfoot)
- **Source:** [pigfoot/claude-code-hubs](https://github.com/pigfoot/claude-code-hubs)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.