with one click
git-workflow
// Git workflow standards, including branching strategies, commit conventions, and SDD integration.
// Git workflow standards, including branching strategies, commit conventions, and SDD integration.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | git-workflow |
| version | 2.3.0 |
| description | Git workflow standards, including branching strategies, commit conventions, and SDD integration. |
| category | development-workflow |
This skill operates WITHIN the SDD framework. Before starting any technical execution:
0. Mode Check: Verify the current operational mode (.hub-mode) and apply the token-distiller skill guidelines.
STATE.md, MEMORY.md, and LEARNINGS.md?The git-workflow skill maps lifecycle stages to specialized protocols to ensure a linear and traceable history:
| Phase | Resource / Protocol | Primary Artifact | Purpose |
|---|---|---|---|
| DISCOVERY | references/branching-strategies.md | Feature Branch | Selection of the branching model (GitHub Flow recommended). |
| SPECIFY | examples/gitmessage.template | Git Config | Configuration of the mandatory commit message template. |
| IMPLEMENT | references/conventional-commits.md | Atomic Commits | Standardized commits mapped to tasks.md IDs. |
| VERIFY | examples/pull-request.md | Pull Request | Final audit, review documentation, and evidence collection. |
git pull --rebase origin main. Select branching strategy from references/branching-strategies.md.main and active feature/ branch..gitmessage template. Verify scope definitions for Conventional Commits.tasks.md.main. Open PR using examples/pull-request.md. Update STATE.md with evidence.Establish version control standards, branching strategies, and collaborative development that ensure traceability, facilitate code reviews, and maintain project history integrity, especially when operating under the SDD framework.
Execution of this skill results in the following artifacts:
| Artifact | Format | Description |
|---|---|---|
| Clean History | Git Log | Linear and readable commit history. |
| Pull Request | Markdown | Documented PR following the project template. |
| Git Config | .gitmessage | Local commit template configuration. |
Ideal for continuous deployment and small to medium-sized teams.
main is always production-ready.feature/ branches from main.main.For teams with robust CI/CD and Feature Flags.
main (or very short-lived branches).For scheduled releases and complex projects.
main (production), develop (integration).feature, release, and hotfix branches.Mandatory format: <type>(<scope>): <subject>
| Type | Usage | Example |
|---|---|---|
feat | New functionality | feat(auth): add SSO support |
fix | Bug fix | fix(api): handle connection timeout |
docs | Documentation | docs(readme): add setup steps |
refactor | Code refactoring | refactor(db): optimize query logic |
test | Tests | test(unit): add auth validation tests |
See the full guide at: references/conventional-commits.md
Integrating Git with the SDD cycle is fundamental for traceability and history integrity:
main is synchronized with the remote using git pull --rebase origin main.Atomic Branches: Each feature/fix must have its own branch.
Isolated Workspaces (Worktree): For tasks sized Medium+, instead of checkout, use git worktree add ../<branch-name> <branch-name>. This ensures a clean, isolated environment for implementation and testing without affecting the main working directory.
Commits per Task: Each completed task in tasks.md must generate at least one clear commit.
Conventional Commits: Use git commit -m "<type>(<scope>): <message>".
Language: All commit messages MUST be written in English, even if technical documentation is in Portuguese.
Atomicity: Do not mix changes from different tasks in the same commit.
git pull --rebase origin main before pushing to keep history clean and resolve conflicts early via rebase.bin/pre-push.sh -> .git/hooks/pre-push) in your project to mathematically guarantee that code failing tests, lint, or build cannot be pushed to the remote repository.validation-report.md.graph TD
A[Start Task in tasks.md] --> B[Code Implementation]
B --> C[Local Test Execution]
C --> D{Passed?}
D -- No --> B
D -- Yes --> E["git commit -m 'type: description'"]
E --> F[Update tasks.md as Completed]
F --> G{More tasks?}
G -- Yes --> B
G -- No --> H[Open Pull Request]
main.main.Follow this hierarchy to maintain Git integrity:
git status, git branch, and git log -n 5.tasks.md for task-commit mapping requirements.git-workflow/references/ for naming and commit formats..specs/codebase/GLOBAL_MANDATES.md.Rebasing is the default for local synchronization. Merge commits are reserved for integration points (PR merges).
All Git metadata (commits, branches, PR titles) MUST be in English.
rebase to maintain a clean history.main without review (except in Quick SDD mode)..env files.version: "2.3.0"
feature_id: "HUB-ALIGNMENT"
phase: "VERIFY"
status: "COMPLETED"
last_update: "2026-05-06T13:16:19.362355Z"
evidence_checksum: "8e52f6a"