git-workflow

Git 工作流规范。管理分支、commit、PR 的标准流程。 用户发送 /git 或涉及版本控制操作时触发。

227 stars

Best use case

git-workflow is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Git 工作流规范。管理分支、commit、PR 的标准流程。 用户发送 /git 或涉及版本控制操作时触发。

Teams using git-workflow should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/git-workflow/SKILL.md --create-dirs "https://raw.githubusercontent.com/hyperlist/feishu-multi-agent/main/examples/coder-agent/skills/git-workflow/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/git-workflow/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How git-workflow Compares

Feature / Agentgit-workflowStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Git 工作流规范。管理分支、commit、PR 的标准流程。 用户发送 /git 或涉及版本控制操作时触发。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Git Workflow

## 触发

- `/git status` — 项目 git 状态摘要
- `/git save` — 自动 add + commit 当前改动
- 涉及 git 操作的自然语言请求

## 分支规范

```
main/master     ← 生产分支,禁止直推
feat/xxx        ← 功能开发
fix/xxx         ← Bug 修复
refactor/xxx    ← 重构
```

## Commit 规范

```bash
feat: 新功能描述
fix: 修复描述
refactor: 重构描述
docs: 文档更新
test: 测试相关
chore: 构建/工具链
```

- 一个功能点一个 commit
- 未 push 时善用 `git commit --amend`
- commit message 用英文,简洁明确

## /git status 输出

```bash
# 执行这些命令,汇总成简报
git branch --show-current
git log --oneline -5
git status --short
git stash list
```

输出格式:
```
📊 Git Status: {项目名}
分支: feat/xxx
最近提交:
  1. abc1234 feat: ...
  2. def5678 fix: ...
未提交改动: 3 files (2M, 1D)
```

## /git save 流程

```bash
git add -A
git diff --cached --stat  # 确认改动
git commit -m "feat: 自动生成的描述"
```

- 根据 diff 内容自动生成 commit message
- 不自动 push(需用户明确要求)

## PR 流程

```bash
git checkout -b feat/描述
# ... 开发 ...
git fetch origin main && git rebase origin/main   # push 前必须 rebase
git push origin feat/描述
gh pr create --title "feat: 描述" --body "..."
# 等用户确认后 merge
```

## 安全检查(push 前)

```bash
# 检查是否包含敏感信息
git diff --cached | grep -i "password\|secret\|api_key\|token" || echo "✅ 无敏感信息"
```

Related Skills

Maintenance Skill

227
from hyperlist/feishu-multi-agent

飞书多 Agent 项目维护指南 - 仅供维护 feishu-multi-agent 项目时使用。

feishu-doc-writer

227
from hyperlist/feishu-multi-agent

Feishu document writing skill. Handles known API pitfalls (block ordering, unsupported formats). Activate when writing content into Feishu docs or creating structured documents.

feishu-chat

227
from hyperlist/feishu-multi-agent

飞书群聊管理:创建群、添加/移除成员、修改群信息。需要 exec 权限执行 curl 命令。

delegate-agent

227
from hyperlist/feishu-multi-agent

Delegate tasks to agents asynchronously. Triggers on "让XX做", "delegate to", "assign to", "派发", "布置任务".

Config Update Skill

227
from hyperlist/feishu-multi-agent

OpenClaw 配置安全更新指南。

agent-comm

227
from hyperlist/feishu-multi-agent

跨 Agent 通信。当用户说"问XX"、"让XX做"、"发给XX"、"check agent status"时使用。

project-switcher

227
from hyperlist/feishu-multi-agent

多项目管理和目录切换。用户发送 /repo 时列出项目,选择后切换工作目录。 适用于 coder agent 同时维护多个代码仓库的场景。

code-review

227
from hyperlist/feishu-multi-agent

代码审查技能。用户发送 /review 或要求 review 时触发。 自动检查代码质量、安全问题、架构建议。

feishu-multi-agent

227
from hyperlist/feishu-multi-agent

飞书多 Agent 系统搭建指南。当用户要求创建新的功能 Agent、配置飞书群聊绑定、 搭建多 Agent 协作系统时激活此 skill。 触发词:创建 agent、新建 agent、添加 agent、create agent、多 agent、飞书绑定。

git-workflow

144923
from affaan-m/everything-claude-code

Git workflow patterns including branching strategies, commit conventions, merge vs rebase, conflict resolution, and collaborative development best practices for teams of all sizes.

DevelopmentClaude

tdd-workflow

144923
from affaan-m/everything-claude-code

Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.

DevelopmentClaude

dmux-workflows

144923
from affaan-m/everything-claude-code

Multi-agent orchestration using dmux (tmux pane manager for AI agents). Patterns for parallel agent workflows across Claude Code, Codex, OpenCode, and other harnesses. Use when running multiple agent sessions in parallel or coordinating multi-agent development workflows.

Orchestration & WorkflowClaudeCodexOpenCode