ultimate-git

GitHub & Git operations specialist with opinionated workflows. Use when the user asks to create, review, or merge PRs, manage branches, create releases or tags, work with issues, configure GitHub Actions, manage repo settings, scaffold new repositories, or perform any gh CLI operation. Triggers on requests involving pull requests, branch strategy, releases, GitHub workflows, repo configuration, conventional commits, pushing code, committing changes, creating tags, reviewing PRs, stashing changes, git blame, git log, or git bisect. Also triggers on Spanish equivalents: commitear, pushear, subir cambios, crear PR, hacer merge, crear tag, crear repo, revisar PR, ramas, guardar cambios, ver historial.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ultimate-git" with this command: npx skills add ezeqviel/skills/ezeqviel-skills-ultimate-git

Ultimate Git

Opinionated Git & GitHub workflow skill built on the gh CLI. Provides branch strategy, PR conventions, repo scaffolding, and common workflows.

Operating Rules

  1. Confirm repo context before any operation: gh repo view --json nameWithOwner -q .nameWithOwner
  2. JSON output: Use --json fields for programmatic output
  3. Heredoc for bodies: Always use heredoc for PR/issue bodies to preserve formatting
  4. Non-destructive: Never force-push to main/develop. Confirm before any destructive operation
  5. Pull before branching: Never create a branch without pulling latest from parent first
  6. Conventional Commits: All commits and PR titles follow the spec. See references/conventional-commits.md for the full type table and examples

Branch Strategy

Two modes — auto-detect before any branching or PR operation:

git branch -r | grep -q 'origin/develop' && echo "Gitflow" || echo "GitHub Flow"

GitHub Flow (no develop branch):

main ← production (protected, PR only)
  feat/*  ← from main, PR to main
  fix/*   ← from main, PR to main

Gitflow (develop branch exists):

main         ← releases + tags (protected, PR only)
  develop    ← stable dev (protected, PR only)
    feat/*   ← from develop, PR to develop
    fix/*    ← from develop, PR to develop
    hotfix/* ← from main, PR to main + develop

For detailed workflows per strategy (feature, release, hotfix), see references/branch-strategies.md.

Merging a PR

Before merging, review commit history: git log --oneline BASE..HEAD

Use AskUserQuestion to let the user choose the merge strategy. Always explain the reasoning behind each option:

header: "Merge strategy"
question: "How to merge PR #NUM? (X commits: [summarize commit quality])"
options:
- { label: "--merge (Recommended)", description: "Preserves the full commit history — useful for traceability and understanding what happened" }
- { label: "--squash", description: "Condenses all commits into one clean commit — useful when the intermediate history (wip, fix typo, etc.) doesn't add value" }

Default recommendation is --merge. Only suggest --squash first when commits are clearly messy (wip, wip2, fix typo, aaa, etc.).

Then run: gh pr merge PR_NUM --[strategy] --delete-branch

Repo Init

  1. Ask: Language? Test command? Install command? Public or private? GitHub Flow or Gitflow?
  2. Init: git init && git checkout -b main (+ git checkout -b develop if Gitflow)
  3. Generate: .gitignore (language-appropriate) + .github/workflows/ci.yml (see references/ci-templates.md)
  4. Commit: git add -A && git commit -m "chore: initial project scaffold"
  5. Remote: gh repo create NAME --source=. --push --public|--private
  6. Default branch: if Gitflow, gh api repos/{owner}/{repo} --method PATCH -f default_branch=develop
  7. Protection: Apply rules for main (and develop if Gitflow). See references/branch-protection.md

Common Workflows

For issues, PR review, stash, and investigation (log/blame/bisect), see references/workflows.md.

Error Resolution

ErrorFirst Action
403 ForbiddenCheck token scopes: gh auth status
Merge conflictsResolve locally: git pull origin BASE && git merge --no-ff
Status checks failinggh pr checks PR_NUM — wait or investigate CI
Branch protectedCreate PR instead of direct push
Not foundVerify repo: gh repo view and branch exists

Diagnose systematically: auth → repo context → branch state → permissions.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

ultimate-tdd

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

Repository SourceNeeds Review
94.2K159.5K
anthropics
Coding

remotion-best-practices

Use this skills whenever you are dealing with Remotion code to obtain the domain-specific knowledge.

Repository SourceNeeds Review
2.1K147.4K
remotion-dev