git-authoring: Instructions file for Codex

AGENTS.md

git-authoring AGENTS.md is an instructions file for Codex, OpenCode from n-shadloo/git-authoring. It costs 11,098 tokens per session, scanned A, original, MIT.

Repository instructions for writing Git commits and pull requests, including commit wording, workflow, staging, rebasing, and conflict recovery.

In plain words
What is it for?
Use them when reviewing staged changes, writing a Conventional Commit message, preparing a pull request, or handling Git operations.
Why use it?
They help contributors describe changes accurately and follow the repository’s conventions when preparing Git history or pull requests.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is n-shadloo/git-authoring's own configuration. It tells Codex and OpenCode 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/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/n-shadloo/git-authoring

Made for: Codex, OpenCode.

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 AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/n-shadloo/git-authoring/agents-md"><img src="https://agentmods.dev/badge/instructions/n-shadloo/git-authoring/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11,098 This file is loaded in full into every session.
When invoked 11,098 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.11098 $0.11098
Opus 5.5 $0.04439 $0.04439
Sonnet 5.5 $0.02220 $0.02220
Haiku 4.5 $0.01110 $0.01110

Measured 28d ago against content hash d2ed858a71d1, 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 AGENTS.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 28d 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.md · 531 lines

How it starts

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

Git authoring conventions

Commit-message and pull-request conventions for this repository. Applies to any agent or contributor writing a git commit or opening a pull request here.

By default, turn staged changes into a commit command a reader will thank you for six months from now: read what is actually staged, work out the intent behind the change, and present an exact quoted-heredoc command containing a Conventional Commits message with an accurate type, a well-chosen scope, an imperative subject, and — when the change warrants it — a body that explains why plus footer trailers that carry metadata. When asked, also choose which unstaged files belong together and present staging plus commit commands, write complete pull-request content, write the release note for a version, review an incoming pull request and hand the maintainer the text to paste, work the repository itself — branches, rebases, conflicts, recovery — or carry out staging, committing, and pushing. Getting the shape right (type(scope): subject) is table stakes. The value is in choosing the right type, writing a subject that says what changed, and recording the reasoning the diff itself can't show.

Self-improvement

If this skill's text or script caused a mistake, or you had to find a step yourself, record it at once. Before you claim the task is done, end the report with Skill defects:. Section 0 of SELF-IMPROVEMENT.md gives the rules. If ~/.skill-improvements/git-authoring/ exists, do section 3 first.

Usage modes

Choose exactly one mode from the user's request.

  1. Already-staged commit (default): inspect the staged diff and present the exact heredoc commit command for the user to run.
  2. Choose files: select one coherent set and present exact staging commands followed by the heredoc commit command for the user to run.
  3. Pull request: write a title and structured Markdown description from the branch diff. Do not open it.
  4. Autonomous stage, commit, and push: run those operations end to end only when the user unmistakably asks the agent to do the work itself, such as "stage, commit, and push this for me" or "do it all yourself." On a further explicit request, this mode may also tag and publish a release.
  5. Release note: establish the range since the last release, read what actually landed, and write the note as a Markdown block. Do not tag, publish, or write a file.
  6. Review an incoming pull request: read someone else's PR 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. Do not approve, request changes, comment, or merge.
  7. Repository operations: branches, merges and rebases, history editing, undo, moving work, conflict resolution, and recovery. Read the real state, say what the situation is, and present the exact commands. Execute only under the mode 4 request.

Read the full file on GitHub · 531 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. 28d ago Changed · +185 tokens per session d2ed858a71d1
  2. 29d ago Changed · -4 lines · -64 tokens per session 74dd474b6f51
  3. 1mo ago Changed · +8 lines · +148 tokens per session eb3b9d10c6a3
  4. 2mo ago Changed · +44 tokens per session 5207b380ba92
  5. 2mo ago First seen · 527 lines · 10,785 tokens per session scan A 705b5829e66d

Subscribe to this mod's changes

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

git-authoring AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-authoring AGENTS.mdn-shadloo/git-authoringInstructions file414d agoMITA11,098Codex, OpenCode
skill-doctor git-workflow.instructions.mdevilstar2016/skill-doctorInstructions file167d agoMITA75GitHub Copilot
skill-doctor github-automation.instructions.mdevilstar2016/skill-doctorInstructions file167d agoMITA72GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot