git-master

A rule set for Git work, including clean commits, pull-request preparation, and conflict resolution. Git is the version-control system used to track code changes and collaborate safely.

In plain words
What is it for?
Use it to inspect changes, create conventional commit messages, prepare pull-request summaries, check test status, or identify and resolve merge conflicts.
Why use it?
It helps keep commits focused, prevents secrets or unrelated files from being included, and makes changes easier to review.

Cursor rule

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 rules/jkudjo/oh-my-cursor/git-master
Clone the repo
git clone --depth 1 https://github.com/Jkudjo/oh-my-cursor
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 489 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00014 $0.00489
Opus 5 $0.00007 $0.00244
Sonnet 5 $0.00003 $0.00098
Haiku 4.5 $0.00001 $0.00049

Measured yesterday against content hash 33de1f112f27, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

rules/git-master.mdc · 62 lines

What it actually says

@git-master

Trigger: Any git workflow operation.

Operations

@git-master clean-commit

  1. Review staged/unstaged changes — remove debug code, console.logs, commented-out code.
  2. Stage only relevant files. Never stage: .env, secrets, unrelated changes.
  3. Write commit message in conventional format:
    • feat(scope): short description — new capability
    • fix(scope): short description — bug fix
    • refactor(scope): short description — no behavior change
    • test(scope): short description — tests only
    • docs(scope): short description — docs only
    • chore(scope): short description — tooling, deps
  4. Body (if needed): explain WHY, not what. The diff shows what.
  5. Run: git commit -m "$(cat <<'EOF' ... EOF)"

@git-master prep-pr

  1. git log base..HEAD — list all commits in this branch.
  2. git diff base...HEAD — full diff.
  3. Write PR description:
    ## What
    [1-3 bullet points]
    
    ## Why
    [motivation / linked issue]
    
    ## How
    [approach, key decisions]
    
    ## Test plan
    - [ ] item
    
  4. Verify checklist: no secrets, no debug code, tests pass, no unintended files.

@git-master resolve-conflicts

  1. List conflicted files: git diff --name-only --diff-filter=U
  2. For each conflict: read both sides carefully before choosing.
  3. Merge intent of both when possible. Flag any that need human judgment.
  4. After resolving: run tests to verify.

@git-master summarize

  1. git log --oneline base..HEAD
  2. Group changes: Features | Fixes | Refactors | Breaking changes
  3. Write a clean changelog section.

Rules

  • Never force-push to main/master.
  • Never commit secrets, tokens, or credentials.
  • Conventional commits format — always.
  • PR is not "ready" until tests pass and checklist is clean.
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 · 62 lines · 14 tokens per session scan A 33de1f112f27

Subscribe to this mod's changes

git-master is a cursor rule published in the GitHub repository Jkudjo/oh-my-cursor (1 stars, last pushed 5mo ago), licensed MIT. It adds 14 tokens to every session and 489 once invoked, about $0.0001 per session on Opus 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

Other cursor rules, from other repositories

code-optimization

Guidelines for optimizing duplicate and poorly structured code.

leshchenko1979/fast-mcp-telegram · 0 tokens

implementation-workflow

Required plan-first workflow for any implementation request (steps 1–5).

leshchenko1979/fast-mcp-telegram · 1,721 tokens

memory-bank

You are an expert software engineer with a unique characteristic: your memory resets completely between sessions. This isn't a limitation - it's what drives you to maintain perfect documentation. At the beginning of each dialogue, you rely ENTIRELY on your Memory Bank to understand the project and continue work…

leshchenko1979/fast-mcp-telegram · 1,623 tokens

general

You are running in Cursor IDE. The tools of the MCP server that you are developing are connected to this IDE. When you've modified the code and want to use updated functionality, you must prompt the user to reload the server first.

leshchenko1979/fast-mcp-telegram · 228 tokens

create-rule-agent

This rule is responsible for creating and updating Cursor rules. Cursor rules govern the structure, hierarchy, style and organization of code in a project. This rule should be invoked in Agent mode when: 1. a user wants to create a new cursor rule, 2. a user wants to update or change an existing rule, 3. user wants…

usrrname/cursorrules · 3,429 tokens

security-scan-agent

This rule provides comprehensive security scanning for dependencies, complementing the dependency analysis rule with deep security insights including CVE analysis, license compliance, and supply chain risk assessment.

usrrname/cursorrules · 0 tokens