Back to list
saavy1

git-workflow

by saavy1

1🍴 0📅 Jan 16, 2026

SKILL.md


name: git-workflow description: Git workflow guidelines for AI agents working on this repository

Git Workflow

IMPORTANT: Never commit directly to main.

Branch Strategy

Always create a feature branch before making changes:

# Check current branch
git branch --show-current

# If on main, create and switch to a feature branch
git checkout -b feat/your-feature-name

# Or for fixes
git checkout -b fix/issue-description

Branch Naming

Use conventional prefixes:

  • feat/ - New features
  • fix/ - Bug fixes
  • refactor/ - Code refactoring
  • docs/ - Documentation changes
  • chore/ - Maintenance tasks

Examples:

  • feat/app-launcher
  • fix/api-caching-headers
  • refactor/system-info-service

Workflow

  1. Before starting work:

    git checkout main
    git pull origin main
    git checkout -b feat/your-feature
    
  2. Make commits on your branch:

    git add -A
    git commit -m "feat: description of change"
    
  3. When ready for review:

    git push -u origin feat/your-feature
    # Then create PR via GitHub
    
  4. Never force push to main or shared branches

Commit Messages

Follow conventional commits:

  • feat: - New feature
  • fix: - Bug fix
  • refactor: - Code change that neither fixes a bug nor adds a feature
  • docs: - Documentation only
  • chore: - Maintenance

If You Accidentally Commit to Main

# Create a branch from current state
git branch feat/accidental-changes

# Reset main to origin
git reset --hard origin/main

# Switch to your new branch
git checkout feat/accidental-changes

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon