PR Submission Skill
This skill automatically triggers the /submit-pr command to handle the complete pull request lifecycle autonomously.
When to use this skill
Use this skill when the user:
- •Says "create a PR" or "submit a PR"
- •Says "open a pull request" or "make a pull request"
- •Says "merge this" or "merge my changes"
- •Says "ready for review" or "get this reviewed"
- •Mentions wanting to push changes upstream
- •Asks about submitting code for review
- •Has completed work and wants to submit it
What this skill does
When activated, this skill invokes the /submit-pr command, which:
- •Automatically creates a feature branch (if on main/master)
- •Commits any uncommitted changes with smart commit messages
- •Ensures documentation compliance by discovering and following repository standards
- •Pushes changes to remote
- •Creates the pull request with proper title and description
- •Enables GitHub auto-merge immediately
- •Continuously monitors CI/CD checks and review status (every 30 seconds)
- •Autonomously fixes issues if CI fails or changes are requested (up to 3 attempts)
- •Waits for GitHub to auto-merge when approved and checks pass
- •Cleans up local branches automatically
Instructions
When the user requests creating or submitting a PR:
- •
Trigger the command immediately:
code/git:submit-pr
- •
Do NOT ask for confirmation - the command is fully autonomous and handles everything
- •
Inform the user that the process has started:
codeStarting fully autonomous PR submission workflow... This will handle everything from commit to merge automatically.
- •
Let the command run - it will:
- •Show progress updates automatically
- •Handle any issues that arise
- •Merge when ready
- •Report completion
Examples
User: "Create a PR for these changes"
Action: Immediately run /git:submit-pr
User: "Let's merge this"
Action: Immediately run /git:submit-pr
User: "Submit this for review"
Action: Immediately run /git:submit-pr
User: "I'm done, can you open a pull request?"
Action: Immediately run /git:submit-pr
User: "Ready to push this upstream"
Action: Immediately run /git:submit-pr
Important notes
- •Fully autonomous: No user interaction needed once triggered
- •Zero confirmations: The command handles everything automatically
- •Handles failures: Automatically fixes CI failures and addresses review feedback
- •Complete lifecycle: From uncommitted changes to merged PR
- •Project directory aware: Uses PROJECT_DIR environment variable if set
What NOT to do
- •❌ Don't ask "Would you like me to create a PR?"
- •❌ Don't ask for confirmation before running the command
- •❌ Don't try to manually do the git operations yourself
- •❌ Don't suggest running git commands separately
✅ Just trigger /git:submit-pr immediately
Fallback
If the /git:submit-pr command fails or is not available:
- •Inform the user about the error
- •Guide them to check that the git plugin is properly installed
- •Provide the manual steps only if the command is unavailable