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.

rulescommit-conventional-format.md

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

Conventional Commit Format

Use the Conventional Commits specification for standardized, machine-readable commit messages.

Bad Example

# Vague, non-standard format
git commit -m "fixed stuff"

# No type prefix
git commit -m "add user authentication"

# Mixed formats in the same repo
git commit -m "[FEATURE] login page"
git commit -m "BUG: fix crash"
git commit -m "updated tests"

Good Example

# Standard conventional commit format
git commit -m "feat: add user authentication module"

# With scope for more context
git commit -m "fix(auth): resolve token refresh race condition"

# With body for detailed explanation
git commit -m "feat(api): add rate limiting to endpoints

Implement token bucket algorithm for rate limiting.
Default limit is 100 requests per minute per user.

Closes #234"

# Breaking change indicator
git commit -m "feat(api)!: change response format to JSON:API spec"

Why

Conventional Commits provide several benefits:

  1. Automated Changelog Generation: Tools can automatically generate changelogs from commit history
  2. Semantic Versioning: Commits directly map to version bumps (feat = minor, fix = patch, breaking = major)
  3. Clear Communication: Team members instantly understand the nature of changes
  4. Searchable History: Easy to filter commits by type (e.g., find all fixes)
  5. CI/CD Integration: Automate releases based on commit types

Common types include:

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation changes
  • style: Code style changes (formatting, semicolons)
  • refactor: Code changes that neither fix bugs nor add features
  • perf: Performance improvements
  • test: Adding or updating tests
  • chore: Maintenance tasks (dependencies, build scripts)
  • ci: CI/CD configuration changes

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