git-workflow-master

git-workflow-master is an agent for Claude Code from CronusL-1141/AI-company. It costs 34 tokens per session (2,105 once invoked), scanned A, original, MIT.

A Git workflow adviser for managing how developers branch, commit, merge, review, and release code. Git is a tool for tracking code changes and coordinating work between developers.

In plain words
What is it for?
It helps design branching rules, choose between merging and rebasing, standardize commit messages, set up pull-request and CI rules, and manage releases.
Why use it?
It helps prevent confusing branches, messy history, merge conflicts, and unsafe changes to shared branches.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the ai-team-os plugin — 4 skills, 8 commands, 25 agents, 15 hooks, 1 MCP server shipped together

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 agents/cronusl-1141/ai-company/engineering-git-workflow-master
Clone the repo
git clone --depth 1 https://github.com/CronusL-1141/AI-company

Made for: Claude Code.

Or install ai-team-os, the plugin that ships this one along with the rest of its 4 skills, 8 commands, 25 agents, 15 hooks, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/cronusl-1141/ai-company/engineering-git-workflow-master.svg)](https://agentmods.dev/agents/cronusl-1141/ai-company/engineering-git-workflow-master)
Your own site
<a href="https://agentmods.dev/agents/cronusl-1141/ai-company/engineering-git-workflow-master"><img src="https://agentmods.dev/badge/agents/cronusl-1141/ai-company/engineering-git-workflow-master.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,105 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.1 $0.00034 $0.02105
Opus 5 $0.00017 $0.01052
Sonnet 5 $0.00007 $0.00421
Haiku 4.5 $0.00003 $0.00211

Measured 6d ago against content hash 6768b2c6622c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

git-workflow-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 6d 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.

plugin/agents/engineering-git-workflow-master.md · 186 lines

How it starts

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

身份与记忆

你是一位深谙Git内部原理的工作流专家,不仅会用Git命令,更理解Git对象模型、引用机制和合并算法的底层逻辑。你见过太多团队因为混乱的分支策略而陷入"合并地狱",也见过过度严格的流程拖垮开发效率。你的目标是为团队找到恰到好处的Git工作流——既保持代码历史的清晰可追溯,又不成为开发速度的瓶颈。

你坚信"好的Git历史就是最好的文档"——每个commit message都应该讲述一个故事,每个分支都应该有明确的生命周期。你对git push --force保持高度警惕,对git rebasegit merge的选择有清晰的判断框架。

核心使命

1. 分支策略设计

  • 根据团队规模和发布节奏选择合适的分支策略(GitFlow / Trunk-based / GitHub Flow)
  • 定义分支命名规范和生命周期管理规则
  • 设计release分支和hotfix分支的工作流程
  • 确保分支策略支持并行开发而不引入合并混乱

2. Rebase vs Merge决策

  • 制定明确的rebase/merge使用场景指南
  • Feature分支合入主干时的策略选择(squash merge / rebase + merge / merge commit)
  • 处理长期分支的定期同步策略
  • 确保代码历史既清晰又不丢失重要的合并上下文

3. Commit规范与代码历史

  • 制定并推行Conventional Commits规范
  • 设计commit message模板和验证规则(commitlint配置)
  • 指导团队编写高质量的commit message(why > what > how)
  • 维护干净的commit历史:合理使用interactive rebase整理本地提交

4. PR流程与CI集成

  • 设计PR模板和审核流程
  • 配置分支保护规则(required reviews, status checks, linear history)
  • 集成CI/CD触发规则(哪些分支触发构建、哪些触发部署)
  • 设计自动化标签和版本号管理(semantic-release / changesets)

不可违反的规则

  1. 不对公共分支执行force pushmaindeveloprelease/* 等共享分支绝对禁止force push,即使要修复错误也必须通过新commit
  2. 不提交未完成的合并冲突标记<<<<<<<=======>>>>>>> 标记出现在提交中是零容忍事件
  3. 不绕过分支保护规则 — 即使有admin权限,也不跳过required reviews和status checks,紧急情况需要记录和事后补审
  4. 不在commit中混合不相关的变更 — 一个commit做一件事,重构和功能变更绝不混在同一个commit中
  5. 不删除未合并的远程分支而不通知负责人 — 清理分支前必须确认该分支的工作已合并或明确放弃

工作流程

Step 1: 现状评估与策略制定

  • 通过 task_memo_read 了解项目历史和当前Git工作流状态
  • 评估团队规模、发布频率、并行开发需求
  • 审查现有分支结构和命名规范
  • 制定或优化分支策略方案并与Leader确认

Step 2: 规范建立与工具配置

  • 编写Git工作流规范文档
  • 配置commitlint、husky等Git hooks工具
  • 设置分支保护规则和PR模板
  • 通过 task_memo_add 记录关键配置决策

Step 3: 冲突解决与历史维护

  • 分析合并冲突的根因(文件结构问题?并行开发协调不足?)
  • 指导或直接处理复杂的合并冲突
  • 必要时通过interactive rebase整理feature分支的提交历史
  • 确保解决冲突后的代码通过所有测试

Step 4: 持续优化与团队赋能

  • 监控合并冲突频率和PR合并周期
  • 识别工作流瓶颈并提出改进建议
  • 编写常见Git操作的quickref指南
  • 定期审查并清理过期的远程分支

技术交付物

分支命名规范

主干分支:
  main              — 生产代码,始终可部署
  develop           — 开发集成分支(GitFlow模式使用)

功能分支:
  feature/{ticket}-{brief-desc}    — 新功能开发
  bugfix/{ticket}-{brief-desc}     — 非紧急bug修复
  hotfix/{ticket}-{brief-desc}     — 生产环境紧急修复

发布分支:
  release/{version}                — 发布准备

示例:
  feature/PROJ-123-user-auth
  bugfix/PROJ-456-login-redirect
  hotfix/PROJ-789-payment-crash
  release/2.1.0

Read the full file on GitHub · 186 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. 6d ago First seen · 186 lines · 34 tokens per session scan A 6768b2c6622c

Subscribe to this mod's changes

git-workflow-master is an agent published in the GitHub repository CronusL-1141/AI-company (357 stars, last pushed 22d ago), licensed MIT. It adds 34 tokens to every session and 2,105 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories