git-workflow
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.zipInstalls 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.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
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:
- Copy the doc into the repo (typically
docs/test-plans/<ticket-id>.md) - 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-verifyto 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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| git-workflow (this skill) | 0 | 4mo | Review | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| openspec-onboard | 10 | 6mo | Review | Beginner |
| codex-cli-bridge | 9 | 9mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by iamcaominhtien
View all by iamcaominhtien →You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
openspec-onboard
studyzy
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
skill-sync
KyleKing
Syncs Claude Skills with other AI coding tools like Cursor, Copilot, and Codeium by creating cross-references and shared knowledge bases. Invoke when user wants to leverage skills across multiple tools or create unified AI context.
github-workflow-automation
ruvnet
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.