Skip to content
Back to skills

Git Workflow

ASecurity

How to create branches, commit and open PRs in the MST CheckScam repo. Use for EVERY task that changes files (feature, fix, refactor, docs, chore) before the first edit and at every commit.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 28, 2026
developmentnodegit

Works with

  • cli

Security analysis

A100/100

Scanned November 28, 2026

npx -y skills add mst-software-vn/mst-checkscam --skill git-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Workflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mst-software-vn-git-workflow/badge)](https://www.skillsdirectory.com/skills/mst-software-vn-git-workflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: git-workflow
description: How to create branches, commit and open PRs in the MST CheckScam repo. Use for EVERY task that changes files (feature, fix, refactor, docs, chore) before the first edit and at every commit.
---

# Git workflow

Full team convention: `docs/convention-git.md`. Commit message format: use the `writing-commit-messages` skill (commitlint + Husky enforce it).

## 1. One task = one branch

```
git checkout main && git pull origin main
git checkout -b <prefix>/<short-kebab-description>
```

- Branch from an up-to-date `main` (the only long-lived branch). Never commit on `main`.
- Prefixes: `feature/`, `bugfix/`, `hotfix/`, `refactor/`, `docs/`, `test/`, `style/`, `ui/`, `chore/`.
- Lowercase, hyphenated, describe the component: `bugfix/footer-login-link`, not `fix-bug`. No personal names. One task per branch.

## 2. Commit as small as possible

- One logical change per commit (migration, model, one controller action, one fix).
- Stage explicitly (`git add <files>`); check `git status`, `git diff --staged`, `git log --oneline -10`.
- Renames/moves in their own commit.
- Run `vendor/bin/pint --dirty` and the relevant tests before committing code.
- Message: `type(scope): subject`, one line, lowercase (see `writing-commit-messages`).

## 3. Pull requests

- One PR per branch, opened when the task is done; target `main`. Leader reviews before merge.
- Push with `git push -u origin HEAD`; no force-push on shared branches.
- Body: short bullets (what, why, how verified, what was not verified). For UI changes, check desktop and mobile width in a browser first.
- Do not merge unless the user says so. Never merge locally into `main`; use `gh pr create` / `gh pr merge`.
- Delete the branch after merge.

## 4. Never commit

`.env*`, `vendor/`, `node_modules/`, `public/build`, `public/uploads`, `storage` contents, `.playwright-cli/` output, DB dumps, debug screenshots, personal paths, IPs or keys.

## Checklist before every commit

1. On a task branch.
2. Only this change's files are staged.
3. Message passes commitlint.
4. Pint clean, relevant tests pass.
5. No secrets or personal data in the diff.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.