git-workflow

git-workflow is a cursor rule for Cursor from fmflurry/settings-opencode. It costs 1,428 tokens per session, scanned B, original, MIT.

A set of rules for Git work, including English Conventional Commit messages, pull-request text, and how to group changes. Conventional Commits use labels such as `feat`, `fix`, and `docs` to describe a change.

In plain words
What is it for?
It guides writing commit messages, translating change descriptions into English, choosing change types, and deciding when changes belong together.
Why use it?
It prevents inconsistent or non-English commit and pull-request messages and helps keep each commit focused on one coherent change.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: reads .claude/ paths.

Good fit It guides writing commit messages, translating change descriptions into English, choosing change types, and deciding when changes belong together.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/fmflurry/settings-opencode/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.

Clone the repo
git clone --depth 1 https://github.com/fmflurry/settings-opencode

Made for: Cursor.

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/rules/fmflurry/settings-opencode/git-workflow/github.svg)](https://agentmods.dev/rules/fmflurry/settings-opencode/git-workflow)
Your own site
<a href="https://agentmods.dev/rules/fmflurry/settings-opencode/git-workflow"><img src="https://agentmods.dev/badge/rules/fmflurry/settings-opencode/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/rules/fmflurry/settings-opencode/git-workflow"><img src="https://agentmods.dev/badge/rules/fmflurry/settings-opencode/git-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,428 This file is loaded in full into every session.
When invoked 1,428 The same file — it is already loaded in full.
Security scan B 1 finding. 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.01428 $0.01428
Opus 5.5 $0.00571 $0.00571
Sonnet 5.5 $0.00286 $0.00286
Haiku 4.5 $0.00143 $0.00143

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

Security

Grade B, and why

git-workflow scanned grade B 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 8d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Note: Attribution disabled globally via ~/.claude/settings.json.
plugins/fmflurry-harness/rules/git-workflow.mdc · 132 lines

How it starts

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

Git Workflow

Commit Message Format

<type>: <description>

<optional body>

Types: feat, fix, refactor, docs, test, chore, perf, ci

Note: Attribution disabled globally via ~/.claude/settings.json.

Language (mandatory)

Every commit message MUST be written in English — subject, body, and footers — regardless of the user's language, the orchestrator's language, or the conversation language. French (or any other non-English) commit messages are a hard violation; do not commit until rewritten. When the user describes a change in French, translate the intent into an English summary — never quote or transliterate the French. Conventional Commits format and the type/scope/length rules above are unchanged. The same English requirement applies to PR titles and PR bodies.

Precedence (mandatory)

This is the canonical spec — git-specialist operates against these exact rules. Do not restate the full spec elsewhere; reference this section instead.

Logical cohesion is the hard rule; commit size is a signal, never a blocker. A commit is one coherent logical set of changes. Size never justifies breaking a coherent set apart. When cohesion and a size number conflict, cohesion wins.

Counting Scope

The size signal below counts only review-weight changes: application source code and application configuration.

Exempt from the count: test fixtures and test data (Bruno .bru, .http, seed files, test JSON/CSV/XML), snapshots, documentation and markdown, generated migrations, generated/scaffolded code, lock files (package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lock), binaries/assets, pure renames detected as R100.

Commit Size Signal (non-blocking)

More than ~15 counted files or ~400 counted lines in a commit → look for a legal split (see Legal-Split Test below) and report the observed counted numbers. This is a signal to check for a natural split — never a reason to refuse, block, unstage, or delay a commit.

A split is legal only if every resulting commit has:

Read the full file on GitHub · 132 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. 8d ago First seen · 132 lines · 1,428 tokens per session scan B 8a645e004976

Subscribe to this mod's changes

git-workflow is a cursor rule published in the GitHub repository fmflurry/settings-opencode (171 stars, last pushed yesterday), licensed MIT. It adds 1,428 tokens to every session, about $0.0057 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-08.