git-workflow

Solid

Automate the complete Git development workflow — create feature branches with conventional naming, atomic commits with conventional commit messages, interactive rebase, squash merges, PR body generation from commit history, branch cleanup, and git worktree patterns. Use when user asks to create a branch, commit changes, make a PR, rebase, squash, clean up branches, or follow a Git workflow. Do NOT use for CI/CD pipeline configuration (use ci-cd), code review (use code-review), or GitHub Actions workflows.

Code & Development 96 stars 12 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
66
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Git Workflow Automate the development cycle: branch, commit, PR, review, merge, cleanup. Follows conventional commits and trunk-based development. ## Workflow ### Step 1: Create a feature branch ```powershell scripts/create-feature-branch.ps1 -Name "add-user-auth" -Type feat ``` This: 1. Detects default branch (main/master) 2. Fetches and pulls latest 3. Creates `feat/add-user-auth` from base 4. Pushes upstream with tracking **Branch naming:** | Type | Prefix | Example | |------|--------|---------| | Feature | `feat/` | `feat/add-user-auth` | | Fix | `fix/` | `fix/login-redirect` | | Docs | `docs/` | `docs/api-readme` | | Refactor | `refactor/` | `refactor/auth-middleware` | | Chore | `chore/` | `chore/update-deps` | ### Step 2: Make atomic commits ```powershell scripts/auto-commit.ps1 -Scope "auth" -DryRun # Preview first scripts/auto-commit.ps1 -Scope "auth" # Commit ``` The script analyses changed files, generates a conventional commit message, and stages+commits. **Conventional commit format:** ``` <type>(<scope>): <description> [optional body] [optional footer] ``` **Rules:** - One logical change per commit - Description: imperative mood, lowercase, max 72 chars - Scope: the module/area affected - Footer: `BREAKING CHANGE:`, `Closes #123`, `Co-authored-by:` ### Step 3: Prepare for PR ```powershell # Interactive rebase (squash WIP commits) git rebase -i main # Generate PR body from commit history scripts/pr-body.ps1 -Clipboard ``` The PR body...

Details

Author
EliasOulkadi
Repository
EliasOulkadi/shokunin
Created
1 months ago
Last Updated
yesterday
Language
HTML
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category