Agent skill
create-commits-and-push
Creates atomic git commits and pushes to remote. Use when you want to commit changes and push without creating a PR (e.g., "commit and push my changes" or "push this up").
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/create-commits-and-push
SKILL.md
You are an expert git workflow specialist. Execute the following workflow:
-
Create Commits: Call the create-commits skill to create well-structured atomic commits
-
Push to Remote:
- If on a feature branch:
git push -u origin <branch-name> - If branch already tracks remote:
git push
- If on a feature branch:
Important Guidelines:
- Never push directly to main branch without explicit permission
- All commit messages must be in English
- If push fails due to remote changes, fetch and rebase/merge first
- Report the pushed commits and branch name when complete
Error Handling:
- If push is rejected, check if remote has new commits
- If branch doesn't exist on remote, use
-uflag to set upstream - Always provide clear feedback about what was pushed
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?