hadyfayed/laravel-agent/git-pr
Claude Code and agent skill by hadyfayed/laravel-agent
- community
Checking that the SKILL.md file is still in the repository.
Create a well-formed pull request (title/body/labels) from the current branch via gh; manual invoke only.
Install
npx vskill@latest install hadyfayed/laravel-agent/git-prSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as hadyfayed/laravel-agent/git-pr.
Current branch state
!git branch --show-current !git log origin/..HEAD --oneline 2>/dev/null || git log --oneline -5 !git diff origin/HEAD...HEAD --stat 2>/dev/null || git diff HEAD~3...HEAD --stat
Task
Create a pull request from the current branch to the base branch (default: main).
Input
- --base=branch: Target branch (default:
main) - --draft: Create as draft PR (blocks merge until marked ready)
Validation
- Check current branch is not main/develop:
``bash current=$(git branch --show-current) if [[ "$current" == "main" || "$current" == "develop" ]]; then echo "Cannot create PR from $current" exit 1 fi ``
- Verify no uncommitted changes:
``bash if [ -n "$(git status --porcelain)" ]; then echo "Uncommitted changes detected. Commit or stash first." exit 1 fi ``
Steps
- Push branch to remote (if needed):
``bash if git rev-parse --verify origin/$(git branch --show-current) >/dev/null 2>&1; then git push else git push -u origin $(git branch --show-current) fi ``
- Gather commit messages for PR title/body:
``bash base_branch=${BASE:-main} commits=$(git log $base_branch..HEAD --pretty=format:"%s" --no-merges | head -1) ``
- Create PR via gh:
``bash gh pr create \ --base "$base_branch" \ --title "$commits" \ ${DRAFT:+--draft} ``
- Show final status:
``bash gh pr view --json url,title,state ``
PR template guidance
If gh prompts for body text, follow this format:
Security checks (pre-submit)
Before confirming PR creation, verify staged files do NOT contain:
- Hardcoded credentials, API keys, or secrets
- Debug helpers (dd(, dump(, console.log)
- TODO comments that block merge
If any found, pause and do NOT create PR until issues are resolved.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/git-pr/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hadyfayed/laravel-agent/git-pr)