git
Git workflow skill dispatcher.
Critical Rules
- Never execute workflow logic here — this file only parses args and dispatches
- Step 0 always runs first — no exceptions
- Unknown verb → run
help.md— never error silently - Pass all remaining args through — workflow receives
$REMAINING_ARGSunchanged - Markdown output: soft-wrap prose, never hard-wrap — when writing markdown, write each paragraph as one continuous line; do not insert manual newlines to wrap prose at a fixed column width. Newlines still separate paragraphs, list items, headings, and code fences.
Step 0: Parse Arguments
The raw invocation args (filled by Claude Code / OpenCode slash commands): $ARGUMENTS. If this line is not filled in, read the verb and remaining args from the user's current message.
VERB="[first non-flag argument, or empty]"
REMAINING_ARGS="[everything after VERB, preserving order and flags]"
case "$VERB" in
"") VERB="help" ;;
esac
Step 1: Dispatch to Workflow
Read and execute references/workflows/{VERB}.md, passing $REMAINING_ARGS as the argument string.
If references/workflows/{VERB}.md does not exist, fall back to references/workflows/help.md and note the unknown verb.
Workflow Index
- commit (
references/workflows/commit.md) — create a conventional commit with optional CI monitoring - exclude (
references/workflows/exclude.md) — hide files/dirs from git via.git/info/exclude(no.gitignorechange) - hooks (
references/workflows/hooks.md) — install/manage the commit-msg hook that strips agent self-attribution - help (
references/workflows/help.md) — print command reference - rebase (
references/workflows/rebase.md) — interactive rebase helper - worktree (
references/workflows/worktree.md) — create/switch a branch and/or create a worktree (shared routine reused by spec)