ワンクリックで
commit-push-pr
// Commit changes, push to remote, and create a pull request. Use for completing features or fixes ready for review.
// Commit changes, push to remote, and create a pull request. Use for completing features or fixes ready for review.
Simplify and clean up code after changes are complete. Reduces complexity, improves readability, and ensures consistency.
Find and fix technical debt including duplicated code, dead code, outdated patterns, and code smells. Run at the end of sessions to clean up.
Python code style and formatting standards using Ruff. Use when writing or reviewing Python code.
Git workflow and commit conventions. Use when committing code, creating branches, or making pull requests.
LLM and ML development best practices with LangChain and transformers. Use when building AI/ML applications.
Testing conventions using pytest. Use when writing tests, creating fixtures, or running test suites.
| name | commit-push-pr |
| description | Commit changes, push to remote, and create a pull request. Use for completing features or fixes ready for review. |
| disable-model-invocation | true |
Automate the git workflow for completing a feature or fix.
Before proceeding, gather this information:
!git branch --show-current!git status --short!git log --oneline -5!git diff --statReview Changes
git status for all modified/added filesRun Pre-commit Checks
ruff format . (if Python files changed)ruff check . (if Python files changed)pytest (if tests exist)Stage and Commit
git add <files>feat: for new featuresfix: for bug fixesdocs: for documentationrefactor: for refactoringtest: for testschore: for maintenancePush to Remote
git push -u origin HEADCreate Pull Request
gh pr createPass 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
Return the PR URL when complete.