github-ops

github-ops is a cursor rule for Cursor from bordenet/golden-agents. It costs 182 tokens per session, scanned A, original, MIT.

Operational rules for using Git and GitHub from a cloud container. They explain authentication limits, browser separation, permitted API actions, workflow-file restrictions, and safeguards around branches and pull requests.

In plain words
What is it for?
Use them before making commits, changing branches, opening pull requests, calling GitHub APIs, or deleting repository references from a cloud environment.
Why use it?
They prevent attempts to manage a repository through the wrong browser or an unauthenticated connection. They also reduce the risk of destructive GitHub operations, such as deleting the main branch.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use them before making commits, changing branches, opening pull requests, calling GitHub APIs, or deleting repository references from a cloud environment.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bordenet/golden-agents/github-ops
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/bordenet/golden-agents

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 github-ops

README.md
[![agentmods](https://agentmods.dev/badge/rules/bordenet/golden-agents/github-ops/github.svg)](https://agentmods.dev/rules/bordenet/golden-agents/github-ops)
Your own site
<a href="https://agentmods.dev/rules/bordenet/golden-agents/github-ops"><img src="https://agentmods.dev/badge/rules/bordenet/golden-agents/github-ops/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 github-ops

Your own site · 80×15
<a href="https://agentmods.dev/rules/bordenet/golden-agents/github-ops"><img src="https://agentmods.dev/badge/rules/bordenet/golden-agents/github-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 182 This file is loaded in full into every session.
When invoked 182 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.00182 $0.00182
Opus 5.5 $0.00073 $0.00073
Sonnet 5.5 $0.00036 $0.00036
Haiku 4.5 $0.00018 $0.00018

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

Security

Grade A, and why

github-ops 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 5d 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.

.cursor/rules/github-ops.mdc · 11 lines

What it actually says

Read .ai-guidance/github-ops.md before any GitHub commit, branch change, or pull request.

The agent container is not the user's machine. gh and git push to github.com are unauthenticated there. The container browser is a different Chrome profile from the user's Safari or Mac Chrome. Do not drive it to administer the repo.

Use gh, git, or the GitHub API from an authenticated client. The GitHub connection inside the container can commit file contents. It cannot delete git refs, and workflow-file writes return 403 without the workflow scope. gh api --method DELETE from a terminal must pass --input /dev/null or it opens $EDITOR. HTTP 422 on that delete means the ref is already gone. Never delete main.

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. 5d ago First seen · 11 lines · 182 tokens per session scan A a057bfb98c0c

Subscribe to this mod's changes

github-ops is a cursor rule published in the GitHub repository bordenet/golden-agents (2 stars, last pushed 3d ago), licensed MIT. It adds 182 tokens to every session, about $0.0007 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-12.

Related

github-ops compared with cursor rules from other repositories

github-ops next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
github-opsbordenet/golden-agentsCursor rule23d agoMITA182Cursor
commitsm3au/playwright-bdd-cursor-templateCursor rule26d agoMITA0Cursor
no-ai-contributorsuwaserver/uwasCursor rule1383d agononeA177Cursor
git-workflowuseshape/ShapeCursor rule34yesterdaynoneA174Cursor
conventional-commitsssoriche/dotfilesCursor rule77d agononeA0Cursor
git-disciplinemennyg19-cmyk/MasterGenAIInstructionsCursor rule2todaynoneA656Cursor
git-commit-standardsivangrynenko/cursorrulesCursor rule881y agoMITA0Cursor