en un clic
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.
Implements the Spec-Driven Development lifecycle (Intent, Requirements, Design, Tasks, Build) for structured feature development. Use when the user wants to scaffold a new feature spec, generate EARS requirements, create a technical design, break work into tasks, or check spec status. Trigger on keywords: sdd, spec-driven, ears requirements, feature spec.
Find and fix technical debt including duplicated code, dead code, outdated patterns, and code smells. Run at the end of sessions to clean up.
Run IV, DiD, and RDD analyses in R with proper diagnostics
Build and solve Walrasian general equilibrium models with theory derivations and Julia computation
Panel data analysis with Python using linearmodels and pandas.
| name | commit-push-pr |
| description | Commit changes, push to remote, and create a pull request. Use for completing features or fixes ready for review. |
| workflow_stage | engineering |
| compatibility | ["claude-code","cursor","codex","gemini-cli"] |
| author | Awesome Econ AI Community |
| version | 1.0.0 |
| disable-model-invocation | true |
| tags | ["git","github","pull-request"] |
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.