Analyze current changes and create well-organized commits.
Instructions
Review recent commit history
Check the last 10 git commits to understand the project's commit message style and conventions
Follow the same format, tone, and structure for consistency
Analyze current changes
Run git status and git diff to understand all staged and unstaged changes
Group related changes by their purpose (e.g., feature work, bug fixes, documentation, refactoring)
Split commits by purpose
Do NOT create a single commit for unrelated changes
Create separate commits for each logical unit of work
Each commit should be atomic and represent a single purpose
Commit message format
Use a conventional commit prefix:
feat: - new features
fix: - bug fixes
docs: - documentation changes
chore: - maintenance tasks, dependency updates
refactor: - code refactoring without behavior change
style: - formatting, whitespace changes
test: - adding or updating tests
i18n: - internationalization changes
Write concise, descriptive messages focusing on "why" rather than "what"
Keep the subject line under 72 characters
Push to remote
After all commits are created, push to the remote repository
Use English
All commit messages MUST be written in English
Use clear, professional technical English
Follow standard English grammar and sentence structure
Use imperative mood (e.g., "Add feature" not "Added feature")
Examples:
feat: add user profile page
fix: resolve timeout error during login
docs: add installation guide to README
refactor: extract authentication logic into separate module
1---2name: commit-and-push3description: Commit4---56Analyze current changes and create well-organized commits.78## Instructions9101. **Review recent commit history**11 - Check the last 10 git commits to understand the project's commit message style and conventions12 - Follow the same format, tone, and structure for consistency13142. **Analyze current changes**15 - Run `git status` and `git diff` to understand all staged and unstaged changes16 - Group related changes by their purpose (e.g., feature work, bug fixes, documentation, refactoring)17183. **Split commits by purpose**19 - Do NOT create a single commit for unrelated changes20 - Create separate commits for each logical unit of work21 - Each commit should be atomic and represent a single purpose22234. **Commit message format**24 - Use a conventional commit prefix:25 - `feat:` - new features26 - `fix:` - bug fixes27 - `docs:` - documentation changes28 - `chore:` - maintenance tasks, dependency updates29 - `refactor:` - code refactoring without behavior change30 - `style:` - formatting, whitespace changes31 - `test:` - adding or updating tests32 - `i18n:` - internationalization changes33 - Write concise, descriptive messages focusing on "why" rather than "what"34 - Keep the subject line under 72 characters35365. **Push to remote**37 - After all commits are created, push to the remote repository38396. **Use English**40 - All commit messages MUST be written in English41 - Use clear, professional technical English42 - Follow standard English grammar and sentence structure43 - Use imperative mood (e.g., "Add feature" not "Added feature")44 - Examples:45 - `feat: add user profile page`46 - `fix: resolve timeout error during login`47 - `docs: add installation guide to README`48 - `refactor: extract authentication logic into separate module`
Run npx skillmds@latest add winetree94/commit-and-push in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Commit It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
winetree94 (@winetree94) published this skill. Their other Agent Skills are listed on their SkillMD profile.