Git Workflow

SkillAI & models

Git workflow conventions. Standard processes for managing branches, commits, and PRs. Triggered when the user sends /git or performs version control operations.

Then ask your AI: use the Git Workflow skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add it as a step in a pipeline you build on Ahel, or connect Ahel to Claude, ChatGPT, Cursor, Claude Code or Codex and ask your AI to use it.

What this skill tells your AI

The instructions your AI receives, as published by hyperlist/feishu-multi-agent in examples/coder-agent/skills/git-workflow/SKILL.md and read by Ahel’s review.

触发

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

分支规范

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

Commit 规范

feat: 新功能描述
fix: 修复描述
refactor: 重构描述
docs: 文档更新
test: 测试相关
chore: 构建/工具链
  • 一个功能点一个 commit
  • 未 push 时善用 git commit --amend
  • commit message 用英文,简洁明确

/git status 输出

# 执行这些命令,汇总成简报
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 流程

git add -A
git diff --cached --stat  # 确认改动
git commit -m "feat: 自动生成的描述"
  • 根据 diff 内容自动生成 commit message
  • 不自动 push(需用户明确要求)

PR 流程

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 前)

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

Signals

GitHub stars
273
Forks
26
Last commit
Mar 2026
Advanced
Item type
skill
Key
git-workflow-hyperlist
Source
github.com/hyperlist/feishu-multi-agent