git-workflow

SkillDev tools

Lets your agent apply git branching, commit, and merge best practices via this git Claude skill reference.

Available today. Use it from your connected AI after setup.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the git-workflow skill

About this skill

Git workflow best practices. Use when asked about git branching, commits, or merge strategy. [Sections: branching, commits, merging, hotfix]

What this skill tells your AI

The instructions your AI receives, as published by npc-worldwide/npcsh in skills/git-workflow/SKILL.md and read by ahel’s review.

Git workflow best practices. Use when asked about git branching, commits, or merge strategy. [Sections: branching, commits, merging, hotfix]

Branching

Use feature branches off main/develop: git checkout -b feature/my-feature develop Name branches descriptively: feature/ — new functionality fix/ — bug fixes chore/ — maintenance, deps, config Keep branches short-lived. Rebase onto target before merging.

Commits

Write clear commit messages: Line 1: imperative summary under 72 chars Line 3+: explain WHY, not what (the diff shows what) One logical change per commit. Don't mix refactors with features. Use conventional commits if the project uses them: feat: add user search fix: handle null avatar URL chore: bump eslint to v9

Merging

Prefer squash merges for feature branches (clean history). Use merge commits for long-lived branches (preserves context). Always pull/rebase before merging to avoid unnecessary merge commits. Delete branches after merging. Run CI before merging — never merge a red build.

Hotfix

For urgent production fixes:

  1. Branch off main: git checkout -b hotfix/fix-name main
  2. Make the minimal fix
  3. Test thoroughly
  4. Merge to main AND develop/release
  5. Tag the release Keep hotfix scope minimal — fix only the immediate issue.

Signals

GitHub stars
482
Forks
32
Last commit
Sep 2026
Advanced
Item type
skill
Key
git-workflow-npc-worldwide
Source
github.com/npc-worldwide/npcsh