All skills
asyrafhussin avatar

/git-workflow

@b02a263

Git best practices, branching strategies, commit conventions, and PR workflows. Use when reviewing git history, writing commits, setting up branching strategy, or improving git practices. Triggers on "git best practices", "commit message", "branching strategy", or "PR workflow".

Use this Skill: https://skilld.dev/gh/asyrafhussin/agent-skills/git-workflow

This session only. Nothing lands on disk.

README.md

≈598 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Git Workflow

Git best practices, commit conventions, and branching strategies for clean, maintainable repositories.

Version: 1.2.0 | Rules: 31 | License: MIT


Overview

This skill provides guidance for:

  • Commit message conventions and enforcement
  • Branch naming, management, and workflow strategies
  • Pull request workflows
  • History management and git worktree
  • Team collaboration and .gitignore

Categories

1. Commit Messages (Critical) — 8 rules

Conventional commits, atomic changes, meaningful messages, git hooks enforcement.

2. Branching Strategy (High) — 8 rules

Branch naming, feature branches, protected main, GitFlow vs GitHub Flow vs Trunk-Based, monorepo workflows.

3. Pull Requests (High) — 6 rules

Small PRs, descriptions, reviews, CI checks, squash merge, draft PRs.

4. History Management (Medium) — 5 rules

Rebase vs merge, no force push, clean history, tags, git worktree.

5. Collaboration (Medium) — 4 rules

Code reviews, conflict resolution, communication, .gitignore best practices.

Usage

Ask Claude to:

  • "Review commit message"
  • "Suggest branch name"
  • "Check PR description"
  • "Set up git workflow for new project"
  • "Which workflow strategy should I use?"
  • "How to use git worktree?"

Quick Reference

Commit Types

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation
  • refactor: Code restructure
  • test: Tests
  • chore: Maintenance
  • ci: CI/CD changes

Branch Prefixes

  • feature/: New features
  • fix/: Bug fixes
  • hotfix/: Production fixes
  • docs/: Documentation
  • refactor/: Refactoring

Workflow Strategy Guide

Strategy Best For Complexity
GitHub Flow Small teams, continuous deploy Low
GitFlow Scheduled releases, versioned apps High
Trunk-Based Large teams, multiple deploys/day Medium

Example Commits

feat(auth): add OAuth login
fix(cart): resolve total calculation
docs(api): update endpoint documentation
chore(deps): upgrade React to v19

References

Source: SKILL.md on GitHub

1 alert16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill provides a comprehensive and secure set of guidelines for managing Git workflows, including commit message standards, branching strategies, and pull request best practices. It promotes industry-standard tools and safety measures, such as protected branches and automated linting, with no malicious patterns detected.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer6mo

    19/32 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at b02a263. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 7 months ago
metadata
{
  "author": "AsyrafHussin",
  "version": "1.2.0"
}

README badge

README badge for asyrafhussin/agent-skills/git-workflow