Git Workflow

Instructions for carrying out Git commits and pushes with a project-provided script and SSH commit signing. Git is a system for tracking code changes, while a commit records a set of changes and a push sends them to a shared repository.

In plain words
What is it for?
Use them when an approved task requires staging, committing, pushing, or verifying repository changes through the provided workflow script.
Why use it?
They reduce the risk of unsigned commits, interactive prompts, or incorrect Git commands causing a workflow to hang. They also define when committing and pushing are allowed.

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/matbanik/agentic-genomics/git-workflow
Any agent
npx skills add matbanik/agentic-genomics --skill git-workflow
Clone the repo
git clone --depth 1 https://github.com/matbanik/agentic-genomics

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,435 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00026 $0.01435
Opus 5 $0.00013 $0.00718
Sonnet 5 $0.00005 $0.00287
Haiku 4.5 $0.00003 $0.00144

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

Security

Grade C, and why

Git Workflow scanned grade C with 1 finding 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/agent-commit.ps1), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

ssh-keygen -t ed25519 -C "[email protected]" -f "$HOME/.ssh/id_ed25519_signing" -N ""
.agent/skills/git-workflow/SKILL.md · 162 lines

How it starts

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

Git Workflow Skill

Commit Policy

Do NOT git commit or git push unless (a) the user explicitly directs it, or (b) it is a defined step in the approved plan/task. Never auto-commit at the end of a correction cycle or verification pass.

The One Rule

Run the script. Don't improvise git commands.

# // turbo
pwsh -File .agent/skills/git-workflow/scripts/agent-commit.ps1 -Message "feat: description"

The script validates signing config, stages, commits, pushes, and verifies — all in one command. If you skip the script, you WILL cause a hang.

Agent invocation rules:

  • Set WaitMsBeforeAsync to 30000 (push can take 10-20s on large changesets)
  • If the command goes to background anyway, do NOT poll command_status — run git log --oneline -1 directly to verify
  • Never issue more than one command_status check; if it shows no output, the command finished and output was lost — verify the result instead

Script Usage

# Basic commit + push to main
# // turbo
pwsh -File .agent/skills/git-workflow/scripts/agent-commit.ps1 -Message "feat: add new feature"

# With body text
# // turbo
pwsh -File .agent/skills/git-workflow/scripts/agent-commit.ps1 -Message "feat: add feature" -Body "Detailed description here"

# Push to a different branch
# // turbo
pwsh -File .agent/skills/git-workflow/scripts/agent-commit.ps1 -Message "fix: correct bug" -Branch "dev"

# Commit without pushing
# // turbo
pwsh -File .agent/skills/git-workflow/scripts/agent-commit.ps1 -Message "wip: save progress" -Push $false

What the Script Does (Do NOT Do These Manually)

  1. ✅ Validates SSH signing config (fails fast if GPG would hang)
  2. ✅ Checks remote URL format (warns on HTTPS)
  3. ✅ Stages all changes (git add -A)
  4. ✅ Commits with -m flag (never opens editor)
  5. ✅ Pushes to origin (unless -Push $false)
  6. ✅ Verifies with git log --oneline -1

[!WARNING] --no-verify is a last resort. It skips ALL pre-commit hooks — not just gitleaks, but also JSON/YAML validation, private-key detection, and whitespace fixes. Use only when:

  1. Commits hang due to gitleaks scanning large binary files
  2. You have verified the staged files don't contain secrets

After a --no-verify commit, manually run pre-commit run --all-files to catch anything skipped.

Read the full file on GitHub · 162 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. 2d ago First seen · 162 lines · 26 tokens per session scan C 6593b5a08709

Subscribe to this mod's changes

Git Workflow is a skill published in the GitHub repository matbanik/agentic-genomics (2 stars, last pushed 3mo ago), licensed MIT. It adds 26 tokens to every session and 1,435 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

design-mcp-server

Design the tool surface, resources, and service layer for a new MCP server. Use when starting a new server, planning a major feature expansion, or when the user describes a domain/API they want to expose via MCP. Produces a design doc at docs/design.md that drives implementation.

cyanheads/gnomad-genetics-mcp-server · 62 tokens

add-tool

Scaffold a new MCP tool definition. Use when the user asks to add a tool, create a new tool, or implement a new capability for the server.

cyanheads/gnomad-genetics-mcp-server · 35 tokens

api-linter

MCP definition linter rules reference. Use when bun run lint:mcp or bun run devcheck reports a lint error or warning (format-parity, schema-is-object, name-format, server-json-, etc.) and you need to understand the rule, its severity, and how to fix it. Every rule ID the linter emits has an entry in this doc.

cyanheads/gnomad-genetics-mcp-server · 86 tokens

api-context

Canonical reference for the unified Context object passed to every tool and resource handler in @cyanheads/mcp-ts-core. Covers the full interface, its RequestContext base, all sub-APIs (ctx.log, ctx.state, ctx.requestInput, ctx.inputs, ctx.enrich, ctx.content), and when to use each.

cyanheads/gnomad-genetics-mcp-server · 79 tokens

api-canvas

DataCanvas primitive reference — a Tier 3 SQL/analytical workspace for tabular MCP servers, backed by DuckDB. Use when registering tables from upstream APIs, running ad-hoc SQL across them, and exporting results. Covers the acquire → register → query → export flow, per-table TTL, the token-sharing pattern for…

cyanheads/gnomad-genetics-mcp-server · 85 tokens

api-errors

McpError constructor, JsonRpcErrorCode reference, and error handling patterns for @cyanheads/mcp-ts-core. Use when looking up error codes, understanding where errors should be thrown vs. caught, or using ErrorHandler.tryCatch in services.

cyanheads/gnomad-genetics-mcp-server · 54 tokens