Agent Skills: git-version-control

Always use this skill when using git!

UncategorizedID: cardoso-neto/personal-ai-infra/git-version-control

Install this agent skill to your local

pnpm dlx add-skill https://github.com/cardoso-neto/personal-ai-infra/tree/HEAD/skills/git-version-control

Skill Files

Browse the full folder contents for git-version-control.

Download Skill

Loading file tree…

skills/git-version-control/SKILL.md

Skill Metadata

Name
git-version-control
Description
Always use this skill when using git!

git-version-control

  • Never use git add -A or git add . or checking to make sure only your changes are going to be included.
    • Always prefer running git add <filename> <filename2>.
  • Commit message titles should be imperative, start capitalized, limited to 50 chars, and finish with no punctuation.
    • Bulletpoint lists and other markdown syntaxes are encouraged inside commit message descriptions.
  • Do not create branches or commits unless explicitly told to do so.
  • When updating from the remote, always use git pull --rebase to avoid unnecessary merge commits.
  • Fix merge/rebase artifacts on the source branch, not the merge target.
    • When a merge or rebase introduces a problem (duplicate imports, bad conflict resolution, etc.), trace it back to the feature branch that owns the change and fix it there.
    • Amend the commit on the feature branch, force-push it, then redo the merge cleanly.
    • Never patch these on master/main directly as it'd dirty up the commit history.