ai-tooling/skills/git-workflow/SKILL.md
A skill that outlines best practices for using Git in a collaborative development environment, including branching strategies, commit conventions, and pull request workflows.
npx skillsauth add nicholasgriffintn/machine-setup git-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill should only use read-only commands and avoid modifying files.
Copy this checklist and use it to track your progress through the Git workflow process:
Git Workflow Checklist
- [ ] Create a feature branch from the main branch.
- [ ] Make changes and commit frequently with clear, descriptive messages, using atomic commits.
- [ ] Rebase your feature branch onto the latest main branch to keep it up to date.
- [ ] Run tests and ensure all checks pass before pushing changes.
- [ ] Push your feature branch to the remote repository.
- [ ] Open a pull request (PR) against the main branch with a clear description of changes.
- [ ] Request reviews from team members and address any feedback.
- [ ] Once approved, merge the PR using a squash merge to maintain a clean commit history.
- [ ] Delete the feature branch after merging.
Adopt the following branching strategy for effective collaboration:
feature/user-authentication).Here's a visual representation of the branching strategy:
main
|
-----------------
| | |
feature1 feature2 hotfix1
Follow these the Conventional Commits specification for commit messages:
<type>(<scope>): <description>feat: A new featurefix: A bug fixdocs: Documentation changesstyle: Code style changes (formatting, missing semicolons, etc.)refactor: Code changes that neither fix a bug nor add a featuretest: Adding or updating testschore: Maintenance tasks (build process, dependencies, etc.)feat(auth): add user login functionalityWhen creating and managing pull requests, follow these best practices:
Use the following conventions for naming branches:
feature/<descriptive-name>bugfix/<descriptive-name>hotfix/<descriptive-name>release/<version-number>feature/user-authentication, bugfix/login-error, hotfix/payment-issue, release/1.2.0git checkout -b feature/your-feature-name
git add .
git commit -m "feat(scope): descriptive message"
git fetch origin
git rebase origin/main
git push origin feature/your-feature-name
git checkout main
git pull origin main
git merge --squash feature/your-feature-name
git commit -m "Merge feature/your-feature-name"
git push origin main
git branch -d feature/your-feature-name
git push origin --delete feature/your-feature-name
tools
Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices.
tools
Audits web performance using Chrome DevTools MCP. Measures Core Web Vitals, finds render-blocking resources, dependency chains, layout shifts, caching issues, and accessibility gaps. Use for audits, profiling, debugging, or optimising page load performance and Lighthouse scores.
development
Drives changes through a strict red-green-refactor loop using behaviour tests at the public interface. Use when the user asks for TDD, test-first development, integration tests, regression coverage, or a feature built one vertical slice at a time.
testing
A specialist skill for security reviews, threat modeling, and remediation guidance. Use for auth/permissions changes, secrets or PII handling, public endpoints, or dependency upgrades.