git-workflow

git-workflow is a cursor rule for Cursor from cty12356541/galide. It costs 0 tokens per session (265 once invoked), scanned A, original, MIT.

A set of rules for using Git, the version-control system developers use to track code changes, based on two project convention files.

In plain words
What is it for?
Use it to guide Git-based development work in projects that follow these conventions.
Why use it?
It gives contributors a shared process for managing changes in the codebase.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to guide Git-based development work in projects that follow these conventions.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/cty12356541/galide/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/cty12356541/galide

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/cty12356541/galide/git-workflow/github.svg)](https://agentmods.dev/rules/cty12356541/galide/git-workflow)
Your own site
<a href="https://agentmods.dev/rules/cty12356541/galide/git-workflow"><img src="https://agentmods.dev/badge/rules/cty12356541/galide/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/cty12356541/galide/git-workflow"><img src="https://agentmods.dev/badge/rules/cty12356541/galide/git-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00000 $0.00265
Opus 5.5 $0.00000 $0.00106
Sonnet 5.5 $0.00000 $0.00053
Haiku 4.5 $0.00000 $0.00026

Measured 2mo ago against content hash 51b99ad6ee3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-workflow scanned grade A 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 2mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- 禁止 `child_process.exec('git ...')`,全部走 `simple-git` API
.cursor/rules/git-workflow.mdc · 21 lines

What it actually says

Git 工作流规约

实现位置

  • 所有 git 操作经 src/main/git/git-service.ts
  • IPC handler src/main/ipc/git-handlers.ts 仅为薄壳,转发到 gitService
  • 禁止 child_process.exec('git ...'),全部走 simple-git API

触发点

  • 新建项目: project-handlers.ts:create 成功后自动 gitService.init() + createInitialCommit()
  • 保存脚本: script-handlers.ts:write 写完文件后,若偏好 git.autoCommitOnSave === true,自动 gitService.addAndCommit()

错误语义

  • git 操作失败不抛异常,返回 Result<T, GitError>
  • 初始化失败不阻塞项目创建(只不回写 manifest.git.initialized 字段)
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. 2mo ago First seen · 21 lines · 0 tokens per session scan A 51b99ad6ee3b

Subscribe to this mod's changes

git-workflow is a cursor rule published in the GitHub repository cty12356541/galide (2 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 265 tokens. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.