Git Workflow Skill

SkillCommunication

Lets your agent handle git tasks like creating branches, committing changes, pushing, and preparing pull requests.

Use Git Workflow Skill in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Git Workflow Skill and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Git Workflow Skill skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Git Workflow SkillStart free
About this skill

Use this skill for any git work such as creating branches, staging changes, writing commit messages, pushing branches, or preparing pull requests. Delegates git execution to the git-specialist agent.

What this skill tells your AI

The instructions your AI receives, as published by fmflurry/settings-opencode in skills/git-workflow/SKILL.md and read by ahel’s review.

Use this skill whenever the task involves git.

When to Activate

  • Creating or renaming branches
  • Staging changes
  • Writing commit messages
  • Creating commits
  • Pushing branches
  • Preparing pull requests
  • Reviewing branch names or commit message format

Required Delegation

When git work is needed, delegate to the dedicated git-specialist subagent via the /git command.

  • Do not handle substantive git workflow directly in the main agent when /git can handle it.
  • Use the git-specialist agent for branch naming, commit message drafting, staging, commits, and pushes.
  • Keep non-git implementation work in the main agent, then switch to /git for repository operations.
  • If you are already the git-specialist agent, execute the git task directly and do not re-delegate it.

Commit Convention

Every commit message must follow this format:

<type>(<scope>): <short summary>

[optional body]

[optional footer(s)]

When scope is not useful or not clear, this no-scope form is also valid:

<type>: <short summary>

Allowed Types

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect behavior, such as formatting
  • refactor: Code changes that neither fix a bug nor add a feature
  • test: Adding or correcting tests
  • chore: Maintenance tasks such as tooling or build updates

Commit Rules

  • English only: subject and body MUST be English, even when the diff or conversation is French.
  • Prefer including a meaningful scope when the affected area is clear
  • Omit scope instead of inventing one when it is not clear
  • Use a concise present-tense summary
  • Keep the summary focused on intent, not a file-by-file changelog
  • Match the type to the actual purpose of the change

Examples

  • feat(api): add user authentication endpoint
  • fix(auth): prevent empty login submission
  • chore(settings): sync opencode configuration

Branch Convention

Every branch name must follow this format:

<type>/<scope>-<short-description>

Branch Rules

  • Reuse the same allowed type values as commits
  • scope is required for branches
  • scope must be a single lowercase token with letters and numbers only
  • The first - after / separates scope from short-description
  • Use a short kebab-case description
  • Keep the branch name specific to the actual change
  • If branch scope is ambiguous, ask one short question before creating the branch

Examples

  • feat/auth-login-form
  • fix/api-token-refresh
  • chore/settings-git-workflow

Git Specialist Expectations

The git-specialist agent must:

  • inspect repository status before acting
  • draft compliant branch names and commit messages
  • stage only relevant changes
  • avoid destructive git commands unless explicitly requested
  • push only when requested or clearly part of the delegated git task
  • detect the host from git remote get-url origin and use the matching CLI for PR work: gh for GitHub, az repos pr for Azure DevOps
  • preserve repository history hygiene

Pull Request Rules

When the task includes PR creation or inspection:

  • detect the host from git remote get-url origin:
    • github.com → use gh
    • dev.azure.com / visualstudio.com → use az repos pr (Azure CLI + azure-devops extension)
    • otherwise → stop and report an unsupported host
  • push the current branch with upstream tracking first if needed
  • if a PR already exists for the current branch, return that URL instead of creating a duplicate
  • choose the base branch from the repository default branch when available, otherwise prefer main, then master
  • use a concise PR title aligned with the branch purpose and commit intent (conventional commit format)
  • include a short ## Summary section in the PR body
  • Azure DevOps defaults: reviewers = group PIXELS; --draft is not supported by az repos pr (ignore the flag for Azure)

Output Expectations

For git tasks, return:

  • the branch name used or proposed
  • the commit message used or proposed
  • whether the branch was pushed
  • the pull request URL when a PR exists or was created
  • any blockers, such as ambiguous scope or unstaged unrelated changes

Signals

GitHub stars
171
Forks
9
Last commit
Oct 2026
Advanced
Item type
skill
Key
git-workflow-fmflurry
Source
github.com/fmflurry/settings-opencode