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.
git clone --depth 1 https://github.com/cty12356541/galideWrote 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.
[](https://agentmods.dev/rules/cty12356541/galide/git-workflow)<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.
<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>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.
| Model | Per session | Once 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 |
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 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-gitAPI
触发点
- 新建项目:
project-handlers.ts:create成功后自动gitService.init()+createInitialCommit() - 保存脚本:
script-handlers.ts:write写完文件后,若偏好git.autoCommitOnSave === true,自动gitService.addAndCommit()
错误语义
- git 操作失败不抛异常,返回
Result<T, GitError> - 初始化失败不阻塞项目创建(只不回写
manifest.git.initialized字段)
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.
- 2mo ago First seen · 21 lines · 0 tokens per session scan A 51b99ad6ee3b
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.
Other cursor rules, from other repositories
iris
GitHub operations specialist — branches, pull requests, issues, releases, tags. Called by zeus after review. Never pushes or merges without explicit human approval. Integrates with VS Code GitHub Pull Requests extension.
rebase-only-merged-agents
When rebasing after a merge, only rebase the agents whose branches you just merged. Do not rebase agents that are still running.
git-workflow
Rules for git operations, commit strategy, and GitHub CLI usage.
release-checklist
What to update with each code change or version release.
branching-merging-strategy
This is a set of instructions to the AI Assistant for branching and merging strategy.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.