git

git is a skill for Codex from code-yeongyu/lazycodex. It costs 109 tokens per session (1,633 once invoked), scanned A, original, MIT.

A guide for local Git, the version-control system that records code changes and lets developers work on separate lines of development. It covers commits, branches, worktrees, syncing, history searches, and rewriting local history.

In plain words
What is it for?
Use it to inspect repository state, commit or push approved work, create worktrees, rebase or squash commits, sync with a base branch, and find when a change entered history.
Why use it?
It helps avoid accidental commits, pushes, resets, or history changes when the user only asked for investigation. It also keeps local repository operations separate from GitHub pull requests and merges.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to inspect repository state, commit or push approved work, create worktrees, rebase or squash commits, sync with a base branch, and find when a change entered history.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/code-yeongyu/lazycodex/git
About the project

LazyCodex is an agent harness for working on complex codebases, combining project memory, planning, execution, and completion checks inside Codex. It is for developers who want structured, repeatable assistance when handling substantial software projects. The catalogue contains the skills, hook, and MCP integration that provide its workflow inside Codex.

code-yeongyu/lazycodex · 3,960 stars · on GitHub · lazycodex.ai

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 code-yeongyu/lazycodex --skill git
Clone the repo
git clone --depth 1 https://github.com/code-yeongyu/lazycodex

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/code-yeongyu/lazycodex/git/github.svg)](https://agentmods.dev/skills/code-yeongyu/lazycodex/git)
Your own site
<a href="https://agentmods.dev/skills/code-yeongyu/lazycodex/git"><img src="https://agentmods.dev/badge/skills/code-yeongyu/lazycodex/git/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/code-yeongyu/lazycodex/git"><img src="https://agentmods.dev/badge/skills/code-yeongyu/lazycodex/git.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,633 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.00109 $0.01633
Opus 5.5 $0.00044 $0.00653
Sonnet 5.5 $0.00022 $0.00327
Haiku 4.5 $0.00011 $0.00163

Measured yesterday against content hash c661bc35ac40, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git 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 yesterday.

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.

plugins/omo/skills/git/SKILL.md · 63 lines

How it starts

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

Git

Load this skill with the read tool, tool.read({ path }) inside a cell, or load_skills, because those paths apply the user's git settings and the bare prelude read(path) does not.

Local git: state, commits, worktrees, base sync, history rewrite, push, history questions. Anything on GitHub itself (pull requests, checks, issues, merging) is the github skill; hand it the head SHA you pushed.

Commit, push, rebase, reset, stash or delete only when the user asked for it or a workflow they started requires it (ulw-loop commits each verified unit; a PR workflow pushes its branch). An investigative ask ends with findings.

Running git from an eval cell

git stays the CLI you already know. The cell adds what a shell line lacks: a failure that stops the cell, reads that run together, and values that reach the next call. On a harness without a js cell the same rules hold for plain shell lines: git -C <repo> on every call, set -e or && between dependent steps.

const git = (repo, ...args) => Bun.$`git -C ${repo} ${args}`.quiet().text() // repo is an absolute path; a non-zero exit throws
const [state, head] = await Promise.all([git(R, "status", "--short", "--branch"), git(R, "rev-parse", "HEAD")])
  • One cell answers one question. Every read it needs goes into one Promise.all, and the results stay in variables for the step that uses them. Never spend a turn per git status.
  • A failed step must stop what depends on it. git() throws. In a tool.bash script that is set -e or &&; ; is for independent reads, because after a failed fetch or checkout it runs the rest on the wrong commit and the cell still looks green.
  • tool.bash is for shell syntax (pipes, globs, loops) and for a command that can run for minutes, such as a clone or a push whose hooks run tests. Give it the repo too: git -C <abs-path> or cwd; a cd does not carry to the next call.
  • A ref is usable only after this clone has it. Fetch the exact ref (git fetch origin <branch>, refs/pull/<n>/head), then git rev-parse --verify '<ref>^{commit}' before it is checked out, diffed or merged. A SHA from a message or another machine is not here until fetched.
  • Two git commands that write to one worktree never run at the same time: the second dies on index.lock.
  • Keep output small: --stat or --name-only first, then the one file.

Read the full file on GitHub · 63 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. yesterday First seen · 63 lines · 109 tokens per session scan A c661bc35ac40

Subscribe to this mod's changes

git is a skill published in the GitHub repository code-yeongyu/lazycodex (3,960 stars, last pushed yesterday), licensed MIT. It adds 109 tokens to every session and 1,633 once invoked, about $0.0004 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-11-29.

Related

git compared with skills from other repositories

git next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gitcode-yeongyu/lazycodexSkill4.0kyesterdayMITA109Codex
autofix-prQwenLM/qwen-codeSkill31ktodayApache-2.0A142Claude Code
cw-landHmbown/CodewhaleSkill41k1mo agoMITA44Claude Code, Codex
git-commitUfoMiao/zcfSkill6.1k9d agoMITA41Claude Code
atmos-gitcloudposse/atmosSkill1.4ktodayApache-2.0A82Claude Code
git-workflowericrisco/rsc-harnessSkill6824d agoMITA127Claude Code, Codex
commit-prZaxbyHub/opencode-swarmSkill549todayMITA100Codex