1---2name: git-commits3description: Git Commit Rules4---567# Git Commit Rules
89When the user asks to commit, push, or save changes to git:
1011## MUST Use /commit Skill
1213**DO NOT** run `git commit` directly. Instead:
1415```
16Skill("commit")
17```
1819The `/commit` skill:
201. Removes Claude attribution from commits
212. Generates reasoning.md capturing what was tried
223. Clears build attempts for next feature
2324## Why This Matters
2526- Regular `git commit` adds "Generated with Claude Code" and Co-Author lines
27- The `/commit` skill removes these so commits appear user-authored
28- Reasoning capture preserves build history for future sessions
2930## Trigger Words
3132When you see these in user prompts, use the commit skill:
33- "commit", "push", "save changes"
34- "push to github", "push changes"
35- "commit and push"
3637## After Commit
3839The skill will prompt you to run:
40```bash
41bash "$CLAUDE_PROJECT_DIR/.claude/scripts/generate-reasoning.sh" <hash> "<message>"
42```
4344Then push if requested:
45```bash
46git push origin <branch>
47```
4849---
5051**Source:** [`parcadei/Continuous-Claude-v3`](https://github.com/parcadei/Continuous-Claude-v3) → `.claude/skills/git-commits/SKILL.md`
Run npx skillmds@latest add parcadei/git-commits 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.
Git Commit Rules It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: makes network calls. 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.
parcadei (@parcadei) published this skill. Their other Agent Skills are listed on their SkillMD profile.