mit einem Klick
ldl-push-changes
// Run pre-commit checks, commit changes, and push to remote branch
// Run pre-commit checks, commit changes, and push to remote branch
Review code changes in current branch for adherence to team guidelines and conventions
Commit changes and create a draft pull request. Trigger on "create a pull request", "create a PR", "open a PR", "make a PR".
| name | ldl:push-changes |
| description | Run pre-commit checks, commit changes, and push to remote branch |
| disable-model-invocation | false |
| allowed-tools | Bash(git:*), Read, AskUserQuestion, Skill |
| argument-hint | [commit-message] |
Runs pre-commit validation checks, commits staged/unstaged changes, and pushes them to the remote branch. Useful for adding commits to existing PRs or preparing a branch for PR creation.
git branch --show-currentgit status --porcelaingit status --porcelain | wc -l | xargsWhen this skill is invoked:
Invoke the ldl:code-check skill and wait for its completion.
Look for the STATUS line in its output:
Do NOT proceed to Step 2 if STATUS is not PASSED. Do NOT send any acknowledgment or summary message if checks pass - just continue to Step 2.
CRITICAL: After checks pass in Step 1, you MUST complete ALL of the following in a SINGLE message with multiple tool calls.
Before executing any tool calls, analyze the context gathered above:
git checkout -b <branch-name>".d.ts, *.map, dist/*, build/*, target/*, __generated__/*.env, *.local, .DS_Store, node_modules/**.log, *.tmp, *.cacheAfter analysis, execute in ONE message:
git add . (if there are uncommitted changes)<type>: <short description> (e.g., feat: add config resolution util, fix: handle missing exports field)feat, fix, chore, refactor, test, docs, perf, ci, buildgit rev-parse --abbrev-ref @{u} 2>&1git push -u origin <branch-name>git pushgit statusYou have the capability to call multiple tools in a single response. Execute ALL of the above git operations in ONE message using parallel tool calls where possible. Do not send any intermediate messages. Do not send any text before the tool calls. Do not report progress during execution.
After ALL tool calls complete, then display the completion message:
✓ All pre-commit checks passed
✓ Changes committed
✓ Branch pushed to remote
Your changes are now on the remote branch.
If there were no uncommitted changes but the branch was pushed:
✓ All pre-commit checks passed
✓ No new changes to commit
✓ Branch pushed to remote
Your changes are now on the remote branch.
git push unless it's a new branchgit add <file>/push-changes "Fix linting errors"
→ Commits with that message and pushes to remote
/push-changes
→ Generates commit message from changes and pushes to remote
/push-changes
→ Displays "No uncommitted changes" but still pushes if branch is ahead of remote