git-workflow-engineering
/git-workflow-engineering
Engineering practice: Git workflow — Work in short-lived branches with small, well-described commits, so history explains itself and any change can be reviewed, bisected or reverted. Use in any language or framework whenever this practice applies, and when reviewing work that should follow it.
- Author
- anandartin ↗
- Repository
- celestial-skills ↗
- Licence
- Apache-2.0
- Last repository change
- 02.11.2026
Assessment and security
- Files in this package
- 4
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 3
No signals detected. Repository changed on 02.11.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Engineering practice: Git workflow — Work in short-lived branches with small, well-described commits, so history explains itself and any change can be reviewed, bisected or reverted. Use in any language or framework whenever this practice applies, and when reviewing work that should follow it.
Original author description
Engineering practice: Git workflow — Work in short-lived branches with small, well-described commits, so history explains itself and any change can be reviewed, bisected or reverted. Use in any language or framework whenever this practice applies, and when reviewing work that should follow it.
How it works
- How to do it
- Checklist
- Rules
- Do
- Don't
- Quality gates
- Workflow
- Examples
- Further reading
SKILL.md preview
--- name: git-workflow-engineering description: "Engineering practice: Git workflow — Work in short-lived branches with small, well-described commits, so history explains itself and any change can be reviewed, bisected or reverted. Use in any language or framework whenever this practice applies, and when reviewing work that should follow it." type: engineering stack: practice core: "1.0" checked: 2026-10-26 --- # Git workflow Work in short-lived branches with small, well-described commits, so history explains itself and any change can be reviewed, bisected or reverted. Use this for every change to a shared repository, by people or coding agents. It keeps main deployable and history readable, and prevents painful merges, unreviewable pull requests and commits nobody can explain later. ## How to do it 1. **Start from fresh main** — Pull the latest main and create a branch named type/short-description, for example fix/login-timeout. One branch per issue. 2. **Commit in small, working steps** — Each commit makes one logical change and leaves the build passing. Stage selectively so unrelated edits go in separate commits. 3. **Write a clear message** — Use a short imperative subject under about 70 characters with a type prefix, a blank line, then a body explaining why the change was needed when it is not obvious. 4. **Stay close to main** — Rebase on or merge main at least daily. Resolve conflicts in your branch, re-run tests, and keep branches alive for days, not weeks. 5. **Tidy before review** — Squash fixup commits and reorder so the branch tells a clear story. Never rewrite history that others have already pulled. 6. **Open a focused pull request** — Keep it under about 400 changed lines, link the issue, describe what and why, and note how to test. Wait for CI to pass before requesting review. 7. **Merge and delete** — Squash-merge or rebase-merge once approved, delete the branch, and confirm main is still green. ## Checklist - [ ] Branch is named by type and topic and is based on recent main - [ ] Every commit builds and has a message saying what and why - [ ] No secrets, build output or local config are committed - [ ] Branch is up to date with main and CI is green - [ ] Pull request is focused, linked to its issue and under the size limit - [ ] Branch was deleted after merge ## Rules - Keep secrets and environment files out of the repository with ignore rules and a pre-commit secret scan. _(Anything committed stays in history even after deletion.)_ - Never force-push to main or to a branch someone else is working on. _(Rewriting shared history destroys other people's work.)_ - Protect main: require a pull request, passing CI and one approval. _(Main stays deployable only if nothing reaches it unchecked.)_ - Revert a bad merge on main first, then fix forward on a branch. _(Restoring a working main matters more than a quick patch.)_ ## Do - Use a type prefix such as feat, fix, docs, refactor or chore in commit subjects - Use interactive staging to split mixed edits into separate commits - Tag releases with semantic version numbers ## Don't - Do not commit with messages like 'wip', 'fix' or 'changes' - Do not let a feature branch live for more than a few days without merging main - Do not commit generated files, dependencies or editor settings ## Quality gates | Gate | Tool | Threshold | When | |---|---|---|---| | Commit message format | Commit-message linter in CI | All commits follow the agreed type: subject format | Every pull request | ## Workflow **Review** - Check commits are logical units with clear messages, not just the final diff **Definition of done** - Merged to main through a reviewed pull request with CI green and the branch deleted ## Examples ### Commit message example (`COMMIT_EDITMSG`) ```text fix(auth): refresh the session before it expires Users were signed out mid-form because the token was only refreshed on navigation. Refresh it 60 seconds before expiry on a timer and retry the original request once after a 401. Closes #482 ``` ## Further reading - [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) — A lightweight commit-message convention that tools can parse. - [Git documentation](https://git-scm.com/doc) — Official reference for branching, rebasing and history editing. - [obra/superpowers](https://github.com/obra/superpowers) — Includes agent skills for working in branches and worktrees and finishing a branch cleanly. _Written for Celestial; the sources above inspired it._
Files in this package (4)
- AGENTS.md 3 KB
- README.md 2 KB
- SKILL.md 4 KB
- rules/git-workflow-engineering.mdc 3 KB
Versions
The database has no other skills named git-workflow-engineering.
Database snapshot: 13.11.2026 · package version e2192c416281 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100technical-documentation-engineering
Engineering practice: Technical documentation — Keep a working README, short decision records and docs that change in the same pull request as the code, so people and agents can trust what they read. Use in any language or framework whenever this practice applies, and when… - 100task-breakdown-engineering
Engineering practice: Task breakdown — Turn a spec into small, ordered tasks that each have acceptance criteria and a check that proves them done, so work can be reviewed, handed to an agent and finished one piece at a time. Use in any language or framework whenever this… - 100git-practices
Git conventions for branches, commits, and pull requests. Load this skill whenever creating branches, writing commit messages, or opening PRs. Trigger on any git workflow operation — commits, branches, pull requests, or merge operations. - 100git-workflow
Git workflow patterns for atomic commits, branch management, and history operations. Use when committing changes, managing branches, or searching git history. - 95git-workflow
Git best practices, branching strategies, commit conventions, and PR workflows. Use when reviewing git history, writing commits, setting up branching strategy, or improving git practices. Triggers on "git best practices", "commit message", "branching strategy", or "PR workflow". - 100git-workflow
IdeaVim git workflow conventions covering commits, branches, PRs, and CI. Use when creating commits, managing branches, creating pull requests, reviewing git history, or any git-related activity in the IdeaVim project.