git-authoring: Instructions file for Gemini CLI

GEMINI.md

git-authoring GEMINI.md is an instructions file for Gemini CLI from n-shadloo/git-authoring. It costs 1,656 tokens per session, scanned A, original, MIT.

Repository instructions for git-authoring, a project that defines how to prepare commits, pull requests, reviews, merges, and release notes. A pull request is a proposed change submitted for review before merging.

In plain words
What is it for?
They help inspect repository history, write commit messages and pull-request text, prepare release notes, and handle branch or merge work.
Why use it?
They keep Git contributions consistent and ensure repository actions match the user’s requested level of control.

Instructions file for Gemini CLI

Written for Gemini CLI: the file is GEMINI.md. Also seen: mentions AGENTS.md; mentions Codex.

This is n-shadloo/git-authoring's own configuration. It tells Gemini CLI how to work on git-authoring itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything git-authoring configures →

Reuse

Borrowing it

Nothing to install: this file belongs to n-shadloo/git-authoring. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/n-shadloo/git-authoring/main/GEMINI.md
Clone the repo
git clone --depth 1 https://github.com/n-shadloo/git-authoring

Made for: Gemini CLI.

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-authoring GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/n-shadloo/git-authoring/gemini-md/github.svg)](https://agentmods.dev/instructions/n-shadloo/git-authoring/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/n-shadloo/git-authoring/gemini-md"><img src="https://agentmods.dev/badge/instructions/n-shadloo/git-authoring/gemini-md/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-authoring GEMINI.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/n-shadloo/git-authoring/gemini-md"><img src="https://agentmods.dev/badge/instructions/n-shadloo/git-authoring/gemini-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,656 This file is loaded in full into every session.
When invoked 1,656 The same file — it is already loaded in full.
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.01656 $0.01656
Opus 5.5 $0.00662 $0.00662
Sonnet 5.5 $0.00331 $0.00331
Haiku 4.5 $0.00166 $0.00166

Measured 29d ago against content hash 73b61e585952, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-authoring GEMINI.md 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 29d 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.

GEMINI.md · 96 lines

How it starts

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

Git authoring conventions

This repository's commit-message and pull-request rules live in AGENTS.md at the repository root. Follow it in full and choose the mode from the user's request:

  1. For already-staged changes, present the exact quoted-heredoc commit command.
  2. When asked to choose files, present specific staging commands plus the heredoc commit command.
  3. When asked for PR content, write the title and structured Markdown description.
  4. Only when unmistakably told to do it all, stage, commit, and push autonomously — and, on a further explicit request, tag and publish a release.
  5. When asked for release notes, establish the range since the last release, read what actually landed, and write the note as a Markdown block.
  6. When asked to review an incoming pull request, read it through gh, work the decision through with the user, and write the review comment or the merge-commit message as a Markdown block for them to paste. Never approve, request changes, comment, or merge.
  7. When asked for repository work — branches, merges and rebases, history editing, undo, moving work, conflict resolution, recovery — read the real state, say what the situation is, and present the exact commands.

Modes 1–3 and 5–7 are read-only on their own. Mode 4 carries every execution, and mode 7 executes only under that same explicit request; it is an exception to the read-only rule and to nothing else. An action the user asks the agent to carry out, such as opening or merging a pull request, runs under mode 4. Never infer mode 4 from "commit this," "go ahead," or a request for commands. Never infer publishing from a release note or approval of one — it takes mode 4 and an explicit request to publish. Never use git add -A, force-push, or overwrite an existing tag or release. Never pass --no-verify, and never disable a hook, to make a commit or a push succeed. A hook that fails is a finding, and it stops the work.

Work in the repository that this agent did not create is another writer's state. Inspect it, never sweep it into a commit, and never rewrite it. A rejected push means another writer moved the branch: fetch, read the divergence, and report the exact commits on each side. Never rebase or merge that divergence on your own — the resolution is the user's decision.

Every stop hands the work back with five fields. The goal, and the exact blocked step. What you attempted, and the git output, verbatim. The causes you eliminated, and how. The one decision needed from the user. The state that remains, and whether it is safe to leave. Mode 4 claims completion only from git log -1 --format=full and git status. Run both after the push. A claim without that output is not a completion.

A pull-request action follows the user's words. "Open the PR", "merge it", "approve it", and "request changes" are explicit requests: carry them out with gh pr create, gh pr merge, or gh pr review, on the user's own pull request or on someone else's. Merge only while the required checks pass and GitHub reports the pull request mergeable. Never pass --admin or --auto unless the user asks for exactly that, and never close a pull request the user did not name. A bare "go ahead" names no action: ask which one.

When reviewing a pull request, separate what actually blocks the merge — breaks the build or an existing test, loses or corrupts data, opens a security hole, breaks a documented contract without notating it, or does not do what the PR claims — from what is only a suggestion, and calibrate the bar to the project: a small repo with no stated convention and no CI is not a large one. Never manufacture a blocker, and when nothing blocks, say so in one plain line before anything else. On a fork pull request, empty gh pr checks output means the workflows have not run, not that they passed.

For a release note, fetch tags first, base the range on the last version tag reachable from HEAD, and report any disagreement with the project's version field rather than silently picking one. If the repository has no versioning at all, say so and stop rather than creating its first tag. Match the style of prior releases over any template.

Read the full file on GitHub · 96 lines

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. 29d ago Changed · +3 lines · +58 tokens per session 73b61e585952
  2. 1mo ago Changed · -5 lines · -67 tokens per session b4263d8aa27f
  3. 1mo ago Changed · +10 lines · +148 tokens per session 9e69a25f7458
  4. 2mo ago Changed · +1 lines · +69 tokens per session ce2824617eae
  5. 2mo ago First seen · 87 lines · 1,448 tokens per session scan A 69e118640b60

Subscribe to this mod's changes

git-authoring GEMINI.md is an instructions file published in the GitHub repository n-shadloo/git-authoring (4 stars, last pushed 15d ago), licensed MIT. It adds 1,656 tokens to every session, about $0.0066 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-authoring GEMINI.md compared with instructions from other repositories

git-authoring GEMINI.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-authoring GEMINI.mdn-shadloo/git-authoringInstructions file415d agoMITA1,656Gemini CLI
skill-doctor git-workflow.instructions.mdevilstar2016/skill-doctorInstructions file169d agoMITA75GitHub Copilot
skill-doctor github-automation.instructions.mdevilstar2016/skill-doctorInstructions file169d agoMITA72GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot