git-workflow

A set of procedures for assembling Git commits, which are saved snapshots of code changes. It covers choosing the right files, branch, working directory, commit size, and starting point for comparison.

In plain words
What is it for?
Use it when preparing commits, working across Git worktrees, deciding whether to amend a commit, or checking the scope of a change before submission.
Why use it?
It helps prevent unrelated files from entering a commit or changes being made on the wrong branch or worktree. This makes reviews and later fixes easier to follow.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lee-w/maigo/git-workflow
Any agent
npx skills add Lee-W/maigo --skill git-workflow
Clone the repo
git clone --depth 1 https://github.com/Lee-W/maigo

Made for: Claude Code, Codex.

Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,398 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00096 $0.03398
Opus 5 $0.00048 $0.01699
Sonnet 5 $0.00019 $0.00680
Haiku 4.5 $0.00010 $0.00340

Measured 2d ago against content hash e24be4d517ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/git-workflow/SKILL.md · 261 lines

How it starts

The opening of the file, as written. The whole thing — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Workflow

Consumers: commit-assembly step of /maigo:go, /maigo:quick, /maigo:team, /maigo:address-comments; the orchestrator generally whenever it runs git commands or briefs an agent that will.

Why this skill exists

Committing a scoped change and running git commands correctly across worktrees are mechanical steps that are easy to get subtly wrong: staging too broadly, mutating shell state with cd, fixing a CI failure on the wrong branch, or reasoning about diff size against the wrong baseline. None of these mistakes fail loudly at the time — they surface later as unrelated noise in a PR, a confusing force-push, or a wrong claim in a summary. This skill collects the conventions that keep git operations scoped to exactly what was intended.

Scoping and staging

Default to one commit per logical concern, and branch before the first commit the user will actually test — don't land straight on main. See references/commit-hygiene.md.

Stage explicit files, never git add -A

When committing a scoped change, stage the specific files by path. Do not use git add -A / git add . — the working tree often carries regenerated or drift files (lockfiles, generated dependency manifests, build caches) that a blanket add will sweep into the commit as unrelated noise.

How to apply: run git status first and read it. Stage only the intended paths: git add <file1> <file2>. Be especially careful after a rebase, a package-manager sync/install step, or after a delegated subagent ran — those can leave unexpected generated changes in the working tree.

Treat drift as drift, not just "don't stage it" — revert it. A package-manager install/codegen step (backend or frontend) can silently rewrite a lockfile's security-relevant sections (e.g. deleting a version overrides:/pin block) or scaffold a placeholder config file, in addition to ordinary dependency-drift noise. After any such step, run git diff HEAD --stat and scan for lockfiles, workspace-config files, and other generated artifacts; git checkout HEAD -- <file> (or delete a scaffold file) anything not intentional. Leaving it unstaged still risks a later blanket add or a teammate sweeping it in — and a dropped security pin is a real regression, not just noise.

Read the full file on GitHub · 261 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 261 lines · 96 tokens per session scan A e24be4d517ad

Subscribe to this mod's changes

git-workflow is a skill published in the GitHub repository Lee-W/maigo (14 stars, last pushed 8d ago), licensed MIT. It adds 96 tokens to every session and 3,398 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens