Defines the standard Git workflow: branching, conventional commit messages, and PR handling.

Install

mkdir -p .claude/skills/git-workflow-iamcaominhtien && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15095" && unzip -o skill.zip -d .claude/skills/git-workflow-iamcaominhtien && rm skill.zip

Installs to .claude/skills/git-workflow-iamcaominhtien

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Step-by-step git workflow for this project. Use when starting a ticket, creating commits, opening PRs, handling review feedback, or cleaning up after a merge.
158 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Create new feature, fix, or chore branches from `main`
  • Manage multiple active branches using `git worktree`
  • Format commit messages using Conventional Commits standards
  • Create pull requests targeting `main` with GitHub CLI
  • Incorporate QC test plans into the repository before merging
  • Clean up local branches and worktrees after merging

How it works

The skill outlines a step-by-step git workflow from branch creation to merge, including guidelines for committing, opening pull requests, handling feedback, and cleanup, adhering to specific project conventions.

Inputs & outputs

You give it
Ticket ID, branch name, commit message, pull request title and body, test plan documents
You get back
New git branch, formatted commit, GitHub pull request, updated repository with test plans, deleted local branch and worktree

When to use git-workflow

  • Creating a new feature branch
  • Opening a GitHub pull request
  • Managing multiple active branches

About this skill

This skill covers the full lifecycle of a feature from branch creation to merge. The source of truth for git conventions is copilot-instructions.md — this skill adds the operational how-to.

Starting a Ticket

Always branch off main. Never work directly on main.

git checkout main && git pull origin main
git checkout -b feature/<ticket_id>   # or fix/ or chore/

Single machine, multiple active branches? Use git worktree instead of switching:

git worktree add ../<project-name>-<ticket_id> feature/<ticket_id>
cd ../<project-name>-<ticket_id>

Each worktree is an independent folder on its own branch, sharing the same .git. No repo duplication. Safe to run in parallel.

Committing

Use Conventional Commits: type(scope): short description — subject under 72 chars.

Types: feat fix refactor style chore test docs
Scope: component or folder changed — e.g. ui, server, modal, kanban

Opening a PR

git push origin <branch>

# Create the PR via GitHub CLI (preferred):
gh pr create \
  --base main \
  --title "<ticket title>" \
  --body "Closes <ticket_id>

## Summary
<what was changed and why>

## Test steps
<manual steps to verify, if any>"

PR must target main. Title = ticket title. Body must reference the ticket ID.

Notify the PM that the PR is ready for review.

QC Test Docs

QC writes test plans and results as markdown files (e.g. docs/test-plans/), but QC does not commit or push code directly.

Developer responsibility: after QC hands over a test plan doc, the developer must:

  1. Copy the doc into the repo (typically docs/test-plans/<ticket-id>.md)
  2. Include it in the PR before merging

This keeps test artifacts tracked in git alongside the code they cover.

Handling Review Feedback

Apply fixes on the same branch, push — the PR updates automatically. Notify PM when ready for re-review.

After Approval — Merge & Cleanup

Squash merge on GitHub (preferred for clean history). Then locally:

git worktree remove ../<project-name>-<ticket_id>   # if worktree was used
git branch -d feature/<ticket_id>
git remote prune origin

Rules

  • Never commit directly to main
  • Never force-push or amend published commits
  • Never bypass hooks with --no-verify
  • Always delete the remote branch after merging

Rules

  • Never commit directly to main
  • Never force-push or amend published commits
  • Never use --no-verify to bypass hooks
  • Always delete the remote branch after merging

When not to use it

  • When committing directly to `main`
  • When force-pushing or amending published commits
  • When bypassing hooks with `--no-verify`

Limitations

  • Prohibits committing directly to `main`
  • Prohibits force-pushing or amending published commits
  • Prohibits bypassing hooks with `--no-verify`

How it compares

This skill provides a project-specific, opinionated git workflow with explicit rules and commands for each stage, offering a standardized process compared to general git usage.

Compared to similar skills

git-workflow side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
git-workflow (this skill)04moReviewBeginner
resolve-conflicts818moReviewIntermediate
openspec-onboard106moReviewBeginner
codex-cli-bridge99moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry