Basic git conventions

From duranserkan/DRN-Project · View interactive version

Basic git conventions is an AI agent skill from the GitHub repository duranserkan/DRN-Project. Use when preparing authorized branches, commits, pull requests, release tags, or release notes.

How to use this skill

Skill file

Git Conventions & Branching

Branching model, commit messages, PR workflow, and release tagging. Apply repository-profile branch and release rules when present.

Branch names, tag patterns, package scopes, and release automation below are portable defaults or examples unless the repository profile declares stricter rules.

When to Apply


Branching Model

| Branch | Purpose | Merges Into |

|--------|---------|-------------|

| <release-branch> | Release-ready code | Tagged for release |

| <integration-branch> | Integration branch | <release-branch> |

| feature/* | New functionality | <integration-branch> |

| fix/* | Bug fixes | <integration-branch> |

| chore/* | Maintenance, refactoring | <integration-branch> |

| docs/* | Documentation only | <integration-branch> |

Rules


Commit Message Format

Use structured, descriptive messages:

<type>(<scope>): <description>

[optional body]
[optional footer]

Types

| Type | When to Use |

|------|------------|

| feat | New feature or capability |

| fix | Bug fix |

| refactor | Code restructuring without behavior change |

| test | Adding or updating tests |

| docs | Documentation changes |

| chore | Build, CI, dependency updates |

| perf | Performance improvement (with proof) |

| security | Security fix or improvement |

Scope

Use the affected package or area from the repository profile, package metadata, or changed paths:

Examples

feat(App): add user profile management page
fix(Persistence): resolve connection pool exhaustion under load
refactor(Core): simplify attribute scanning with cached reflection
test(Integration): add concurrency test for repository queries
chore(ci): upgrade actions/checkout to v6
security(Web): strengthen CSP for font-src directive
docs(skills): add security development checklist

Rules


Pull Request Workflow

Lifecycle

Draft PR → Self-Review → Ready for Review → Review → Squash Merge

PR Checklist

PR Title

Follow the commit message format:

feat(Networking): add cancellation token propagation to HttpClientFactory

Merge Strategy


Release Tagging

Resolve tag formats, the release commit, and the publishing remote from the repository profile or release automation before substituting the placeholders below. Tag creation and pushing require explicit authorization.

Stable Releases

git tag <release-tag> <release-commit>
git push <publishing-remote> <release-tag>
# Triggers: repository-defined release automation

Preview Releases

git tag <preview-tag> <release-commit>
git push <publishing-remote> <preview-tag>
# Triggers: repository-defined preview release automation

Versioning Rules


Release Notes

Use the module/package release-note owner declared by the repository profile or package metadata.

When To Update

Apply the profile and documentation triggers. Update affected modules only. Record "not required" when no trigger applies.

Format

Follow the local prefix, headings, sections, and footer. Without a local template, use a version heading and applicable Breaking Changes, New Features, Changed, or Bug Fixes sections.


Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.