git-workflow

git-workflow is a skill for Codex from kreek/consult. It costs 24 tokens per session (907 once invoked), scanned A, original, MIT.

A set of rules for safely handling Git branches and project history, including rebases, conflicts, recovery, and force-push decisions.

In plain words
What is it for?
Use it when rebasing, resolving merge conflicts, investigating past changes with bisect or reflog, cleaning up branches, repairing pull-request history, or deciding whether to force-push.
Why use it?
It helps prevent lost work and accidental changes to shared history. It also requires checking the repository and preserving a recovery point before risky operations.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when rebasing, resolving merge conflicts, investigating past changes with bisect or reflog, cleaning up branches, repairing pull-request history, or deciding whether to force-push.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kreek/consult/git-workflow
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.

Any agent
npx skills add kreek/consult --skill git-workflow
Clone the repo
git clone --depth 1 https://github.com/kreek/consult

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/kreek/consult/git-workflow/github.svg)](https://agentmods.dev/skills/kreek/consult/git-workflow)
Your own site
<a href="https://agentmods.dev/skills/kreek/consult/git-workflow"><img src="https://agentmods.dev/badge/skills/kreek/consult/git-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/kreek/consult/git-workflow"><img src="https://agentmods.dev/badge/skills/kreek/consult/git-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 907 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00024 $0.00907
Opus 5.5 $0.00010 $0.00363
Sonnet 5.5 $0.00005 $0.00181
Haiku 4.5 $0.00002 $0.00091

Measured 2mo ago against content hash f5cc71482386, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

agents/.agents/skills/git-workflow/SKILL.md · 73 lines

How it starts

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

Git Workflow

Iron Law

NEVER REWRITE SHARED HISTORY OR SKIP RECOVERY.

The host owns git mechanics and access permission. This skill owns the gates: recoverability and approval of published text.

When to Use

  • Rebases, merge conflicts, bisects, reflog recovery, branch cleanup, PR history repair, force-push decisions, or any GitHub access.

When NOT to Use

  • Staging, splitting, or committing reviewed work; use commit.
  • Issue hierarchy, sizing, and tracker fields; use issue-tracking.
  • Reviewing correctness; use code-review. Refactor planning; use refactoring. CI failure triage; use debugging.

Rules

  1. Branch without ceremony. Starting new work on the default branch, create a topic branch first. On an existing topic branch, keep going unless the new work is clearly unrelated; then branch off main and say which branch received the work. Do not ask which branch to use.
  2. The host's permission system owns GitHub access. Hosts already gate network calls and gh under the user's account, so do not add a second chat-level ask on top of an approval the host granted. Reserve your own questions for writes that publish user-owned text and for destructive operations. Identify the surface first (gh CLI, GitHub MCP, or host tools); gh is absent from some sandboxes, which does not mean GitHub is out of reach.
  3. Humans approve PR and issue text before it is published. Draft the title and body locally, show them, and get approval of that exact text. Never let a tool open an editor or send unreviewed text.
  4. Inspect tree, branch, and upstream state before any history operation, and stop on unexpected state. Name a recovery point (tag, branch, or reflog entry) and whether the branch is local, solo, or shared before rewriting, deleting, or force-pushing. Shared history is rewritten only with explicit approval; force pushes use --force-with-lease --force-if-includes.
  5. Resolve conflicts by preserving intent from both sides, then run the relevant checks. Verify with range-diff or log inspection that intended commits remain.
  6. Test hook policy, not hook wrappers. A hook that only execs a repo script needs no test; the script that selects commands, blocks branches, or routes files does.
  7. This skill never bypasses the host's sandbox or approval gates.

Read the full file on GitHub · 73 lines

Files

What ships with it

1 file 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. 2mo ago Changed · +2 lines f5cc71482386
  2. 3mo ago Changed · -49 lines fb2948bf748d
  3. 3mo ago First seen · 120 lines · 24 tokens per session scan A 780121c847d7

Subscribe to this mod's changes

git-workflow is a skill published in the GitHub repository kreek/consult (1 stars, last pushed 2mo ago), licensed MIT. It adds 24 tokens to every session and 907 once invoked, about $0.0001 per session on Opus 5.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-31.

Related

git-workflow compared with skills from other repositories

git-workflow next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-workflowkreek/consultSkill12mo agoMITA24Codex
dockerized-service-release-deployment-workflowgaelic-ghost/socketSkill123mo agoApache-2.0A49Claude Code
coordinate-worktrees-and-threadsgaelic-ghost/socketSkill123mo agoApache-2.0A44Claude Code, Codex
gh-stackknitli/toolshedSkill16d agoMITA65Claude Code, Codex
pr-watchSethGammon/CitadelSkill943todayMITA46Claude Code
releaseoliver-kriska/claude-elixir-phoenixSkill5803d agoMITA60Claude Code
watch-proliver-kriska/claude-elixir-phoenixSkill5803d agoMITA50Claude Code