Skip to content
Development
Skill

/common-git-collaboration

Enforce version control best practices for commits, branching, pull requests, and repository security. Use when writing commits, creating branches, merging, or opening pull requests.

From plugin
agent-skills-standard
583200 skills21 agents33 commands1 MCP

Claude Code

$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill common-git-collaboration --agent claude-code

SKILL.md

common-git-collaboration.SKILL.md
name: common-git-collaboration
description: Enforce version control best practices for commits, branching, pull requests, and repository security. Use when writing commits, creating branches, merging, or opening pull requests.
metadata:
  triggers:
    keywords:
    - commit
    - branch
    - merge
    - pull-request
    - git

Git & Collaboration

**Priority: P0 (CRITICAL)**

1. Write Conventional Commits

  • Format: `<type>(<scope>): <description>` (e.g., `feat(auth): add login validation`).
  • Types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `chore`.
  • Use imperative mood: "add feature" not "added feature".
  • One commit = one logical change — no mega-commits.

See [implementation examples](references/implementation.md) for conventional commit examples.

2. Manage Branches

  • Name with prefixes: `feat/`, `fix/`, `hotfix/`, `refactor/`, `docs/`.
  • Create new branch for every task to keep main stable and deployable.
  • Never push directly to `main` or `develop` — use Pull Requests.
  • Pull before you push to resolve conflicts locally.
  • Prefer `git rebase` over merge for linear history on feature branches.
  • Use `git rebase -i` to squash messy commits before pushing.

3. Submit Quality Pull Requests

  • Limit to < 300 lines of code for effective review.
  • State what changed, why, and how to test. Link issues (`Closes #123`).
  • Self-review for obvious errors before requesting peers.
  • PRs must pass all CI checks (lint, test, build) before merging.

4. Protect Secrets and Metadata

  • Never commit `.env`, keys, or certificates — use `.gitignore` strictly.
  • Use `husky` or `lefthook` for local Git Hooks enforcement.
  • Tag releases with SemVer (`vX.Y.Z`) and update `CHANGELOG.md`.

Anti-Patterns

  • **No direct push to main**: All changes via PR, no exceptions.
  • **No mega-commits**: One commit = one logical change. Split large ones.
  • **No secrets in history**: Use `git filter-repo` to purge; rotate secret.

References

  • [Clean Linear History & Rebase Examples](references/CLEAN_HISTORY.md)
Read more
@hoangnguyen0403
Ships withagent-skills-standard

The portable standards layer for AI coding agents. Sync once, then work in your own runtime.

583200 skills21 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
583
Star history of hoangnguyen0403/agent-skills-standard on GitHub, a chart by star-history.com

Other skills on agent-skills-standard.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about common-git-collaboration.

Which coding agents can use common-git-collaboration?
common-git-collaboration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.