agent tool_use tool_instruction risk: high
Git Commit Push PR Automator
Review git changes from provided status, diff, branch, and log; create one or more conventional commits if changes exist; push commits; then open a PR to main using allowed Bash to…
- Policy sensitive
- Human review
- External action: high
PROMPT
--- allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*), Bash(git push:*), Bash(gh pr create:*) description: Commit and push everything then open a PR request to main --- ## Context - Current git status: !`git status` - Current git diff (staged and unstaged changes): !`git diff HEAD` - Current branch: !`git branch --show-current` - Recent commits: !`git log --oneline -10` ## Your task 1. Review the existing changes and then create a git commit following the conventional commit format. If you think there are more than one distinct change you can create multiple commits. If there are no outstanding changes proceed to 2. 2. Push all commits. 3. Open a PR to main following the conventional formats.
REQUIRED CONTEXT
- Current git status
- Current git diff (staged and unstaged changes)
- Current branch
- Recent commits
TOOLS REQUIRED
- Bash(git add:*)
- Bash(git status:*)
- Bash(git commit:*)
- Bash(git push:*)
- Bash(gh pr create:*
ROLES & RULES
- Review the existing changes and then create a git commit following the conventional commit format.
- If you think there are more than one distinct change you can create multiple commits.
- If there are no outstanding changes proceed to 2.
- Push all commits.
- Open a PR to main following the conventional formats.
EXPECTED OUTPUT
- Format
- plain_text
SUCCESS CRITERIA
- Review existing changes
- Create git commit(s) following conventional commit format
- Push all commits
- Open a PR to main following conventional formats
FAILURE MODES
- May not properly review changes from git status and diff
- May create non-conventional commits
- May push without staging all changes
- May open PR to wrong branch
CAVEATS
- Dependencies
-
- Current git status
- Current git diff (staged and unstaged changes)
- Current branch
- Recent commits
- Allowed tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*), Bash(git push:*), Bash(gh pr create:*)
- Missing context
-
- Definition or examples of conventional commit format.
- Guidelines for PR title and body.
- Assumptions about gh CLI setup and authentication.
- Ambiguities
-
- Does not explicitly define 'conventional commit format'.
- Unclear what 'conventional formats' means for the PR (title, body, etc.).
QUALITY
- OVERALL
- 0.85
- CLARITY
- 0.90
- SPECIFICITY
- 0.85
- REUSABILITY
- 0.90
- COMPLETENESS
- 0.80
IMPROVEMENT SUGGESTIONS
- Add a brief description or link to conventional commits spec.
- Specify PR format, e.g., 'Use the commit message as PR title and add a description summarizing changes.'
- Include instruction to verify git status before committing and handle no-changes case explicitly.
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR AGENT
- Xcode MCP Usage Guidelines for Agents agent tool_use
- Xcode MCP Usage Guidelines agent tool_use
- Xquik X/Twitter API Integration Skill agent tool_use
- Filesystem Agent Context Engineering agent tool_use
- Agent Tool Design Principles agent tool_use
- Conventional Git Commit Creator agent tool_use
- GitHub Trending Dashboard Generator agent tool_use
- Hosted Background Agent Infrastructure agent tool_use
- AudioCraft Text-to-Music Generation Guide agent tool_use
- Trello Boards Lists Cards Integrator agent tool_use
- GitHub Starred Projects Fetcher via Agent Browser agent tool_use
- 2chat Rube MCP Automation Guide agent tool_use
- Rube MCP Autom Task Automation agent tool_use
- Botbaba Automation via Rube MCP agent tool_use
- Aero Workflow Rube MCP Automation agent tool_use
- Boldsign Automation via Rube MCP agent tool_use
- API Sports Rube MCP Automation Guide agent tool_use
- Bolt IoT Rube MCP Automation Guide agent tool_use
- Booqable Automation via Rube MCP agent tool_use
- Coassemble Automation via Rube MCP agent tool_use
- D2L Brightspace Rube MCP Automation Guide agent tool_use
- Codacy Automation via Rube MCP agent tool_use
- Conversion Tools Rube MCP Automation agent tool_use
- Codereadr Automation via Rube MCP agent tool_use
- Entelligence Automation via Rube MCP agent tool_use