AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Git

skill-xiaobei930-cc-best-git · by xiaobei930

Git version control best practices: branching, commits, merging, conflict resolution, PR workflows. Use when managing branches, creating commits, merging code, or resolving conflicts.

No reviews yet
0 installs
33 views
0.0% view→install

Install

$ agentstack add skill-xiaobei930-cc-best-git

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-xiaobei930-cc-best-git)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Git? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Git 工作流技能

本技能提供 Git 版本控制的最佳实践。

快速参考

  • 推荐分支模型: GitHub Flow(main + feature 分支 + PR)
  • 提交规范: Conventional Commits(():
  • 合并策略: 功能分支 → Squash Merge,同步主分支 → Rebase,长期分支 → Merge

触发条件

git, commit, branch, merge, rebase, PR, pull request, conflict, stash

工作流程

  1. 检查状态: git status && git branch -a && git log --oneline -5
  2. 选择操作:

| 场景 | 执行流程 | | ------------ | --------------------------------------------------------- | | 创建功能分支 | git checkout -b feature/xxx → 开发 → 提交 | | 提交代码 | git addgit commit → 验证 | | 合并代码 | git checkout maingit merge → 推送 | | 解决冲突 | 查看冲突 → 手动解决 → git addgit rebase --continue | | 创建 PR | 推送分支 → gh pr create → 等待审查 |

  1. 执行后验证: git status, git log --oneline -3

分支命名规范

feature/add-user-auth     # 功能分支
fix/login-validation      # Bug 修复
hotfix/security-patch     # 热修复
release/v1.2.0            # 发布
refactor/database-layer   # 重构

提交类型

| 类型 | 说明 | 示例 | | -------- | --------- | --------------------------- | | feat | 新功能 | feat(auth): 添加 OAuth 登录 | | fix | Bug 修复 | fix(cart): 修复价格计算错误 | | docs | 文档更新 | docs(readme): 更新安装说明 | | refactor | 重构 | refactor(api): 重构用户服务 | | test | 测试 | test(user): 添加注册测试 | | chore | 构建/工具 | chore(deps): 更新依赖 | | perf | 性能优化 | perf(query): 优化搜索查询 |

合并策略选择

| 场景 | 推荐策略 | | --------------- | ------------ | | 功能分支 → main | Squash Merge | | main → 功能分支 | Rebase | | 长期分支同步 | Merge |

最佳实践

  1. 小而频繁的提交,每个做一件事
  2. 有意义的提交信息,说明为什么
  3. 经常从主分支同步
  4. PR 前自检(lint、test、review)
  5. 不提交敏感信息
  6. 合并后删除功能分支

子文件索引

| 文件 | 内容 | | ---------------------------------------------- | ----------------- | | [commands-reference.md](commands-reference.md) | 常用 Git 命令参考 | | [pr-workflow.md](pr-workflow.md) | Pull Request 流程 | | [hooks-guide.md](hooks-guide.md) | Git Hooks 指南 | | [delegation.md](delegation.md) | 委派到专业 Agent |


> 记住: Git 是协作的基石——清晰的分支策略和提交规范让团队协作事半功倍。

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.