Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
Skills/Git & Pull Requests
laolaoshiren avatar

Git Workflow

laolaoshiren/claude-code-skills-zh

Automates the tedious parts of Git workflow: generating Conventional Commits messages from your diffs, creating properly named feature and fix branches, and drafting PR descriptions with change summaries and file lists. It kicks in when you ask to commit code, create branches, or open PRs. The commit message generation is the real time saver here since it analyzes your staged changes and formats everything as `type(scope): description` automatically. Also handles interactive rebases and commit cleanup. If you're on a team that enforces commit conventions or you just want to stop writing the same boilerplate PR descriptions, this cuts out the busywork.

GitHub stars
328
last updated
May 13, 2026
View on GitHubSave

Install

$ npx -y skills add laolaoshiren/claude-code-skills-zh --skill git-workflow --agent claude-code

Installs into .claude/skills of the current project.

Files

Git 工作流助手

核心原则

  • 只执行用户明确要求的 Git 动作。生成提交信息不等于暂存或提交;提交不等于推送;创建 PR 不等于合并 PR、关闭 Issue 或发布 Release。
  • 把工作树中已有、未跟踪和无关的修改视为用户资产,不覆盖、不回退、不混入本轮提交。
  • 优先使用非交互命令。涉及历史重写、冲突选择或远程覆盖时降低自动化程度。

工作流程

1. 读取仓库规则与状态

先阅读适用的 AGENTS.md、CONTRIBUTING.md、README、提交规范和 CI 说明,再检查:

git status --short --branch
git diff
git diff --cached
git log --oneline -10
git remote -v
git branch -vv

同时识别未跟踪文件、当前分支、upstream、远程差异和已有失败。不得只看 staged diff。

2. 明确动作与文件范围

把用户请求拆成独立授权:

动作默认权限
分析状态、生成 commit message 或 PR 文案只读
暂存、commit仅用户要求后执行,只选本轮相关文件
创建或切换分支仅用户明确要求时执行;实现流程需要但未获授权时,先说明原因并取得同意
fetch、push、创建 PR分别确认在请求范围内,不互相推导
merge、关闭 Issue、发布 Release必须有明确授权
rebase、修改已发布历史、强制更新远程高风险,必须明确授权并满足额外条件

存在无关改动时不得使用 git add . 或 git add -A。逐个暂存目标文件,并用 git diff --cached 复核。

3. 规划原子提交

  • 根据真实 diff 判断 feat、fix、docs、refactor、test、perf 或 chore。
  • 沿用仓库近期提交的语言、scope 和格式。
  • 一个提交只表达一项可独立理解和验证的改动。
  • Closes #123 仅在对应 Issue 确实应由该提交自动关闭时使用。

提交信息遵循:

<type>(<scope>): <简短描述>

<必要时说明原因、关键实现和兼容性>

<关联 Issue 或 Breaking Change>

4. 验证后执行

提交前先检查验证脚本是否会下载依赖、访问外部服务或产生其他状态,再运行与改动相关的测试、lint、构建或文档检查,并记录实际命令和退出状态。可能产生外部副作用时先取得授权。基线已有失败时单独说明,不能把未运行的项目标为通过。

执行 commit 后检查:

git status --short --branch
git show --stat --oneline HEAD

推送前先 git fetch,确认 upstream 没有未整合的新提交;禁止 force push。

5. 创建 PR

PR 文案应帮助 reviewer 结合 diff 和验证结果快速审查,至少包含:

## 变更摘要

## 关键改动

## 验证结果

## 风险与回滚

## 关联 Issue

只勾选真实完成的检查。截图、迁移说明和回滚步骤仅在适用时加入。

Rebase 与历史整理边界

  • rebase 前要求工作树和暂存区都干净;未经授权不得自动 stash。
  • 先 fetch 并确认目标基线,必要时在用户允许下创建本地备份引用。
  • 不对公共分支或其他人依赖的已发布提交执行 rebase。
  • 禁止 git push --force。确需更新用户明确授权重写的私有分支时,只能在重新确认远程状态后使用 --force-with-lease。
  • 遇到冲突时停止并报告冲突文件与可选方案,不猜测内容归属或擅自解决。

输出

用中文简要报告:

  • 执行了哪些 Git 动作、影响哪些文件和分支。
  • 实际运行的验证及结果。
  • commit SHA、push 状态和 PR URL(若已执行)。
  • 未执行、失败或仍需用户决定的事项。
SKILL.md on GitHub

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Details

Repository
github.com/laolaoshiren/claude-code-skills-zh
Categories
Git & Pull Requests, Automation & Workflows
License
MIT
First seen
Jun 11, 2026

More from laolaoshiren/claude-code-skills-zh

All 19
  • Github Actions Gen
  • I18n Helper
  • Log Analyzer
  • Perf Profiler
  • Security Audit
  • Test Generator
  • Zh Docgen
  • Zh Code Reviewer121
  • Refactor Advisor117
  • Zh Readme111
  • Api Tester
  • Changelog Gen
  • Db Migrator
  • Dep Auditor
  • Ds Mapper
  • Env Manager
  • Error Translator
  • Eslint Fix

Recommended

More Git & Pull Requests
1laolaoshiren avatargithub-actions-genlaolaoshiren/claude-code-skills-zhGitHub Actions CI/CD 流水线生成器:根据项目技术栈自动创建 workflows0installs
2metabase avatarclojure-reviewmetabase/metabaseReview Clojure and ClojureScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull 0installs
3metabase avatardocs-reviewmetabase/metabaseReview documentation changes for compliance with the Metabase writing style guide. Use when reviewing pull requests, files, or diffs containing documentation ma0installs
4metabase avatartypescript-reviewmetabase/metabaseReview TypeScript and JavaScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull 0installs
5open-gitagent avatardocument-reviewopen-gitagent/opengapReviews financial documents (prospectuses, ADVs, marketing materials) for FINRA 2210 compliance, required disclosures, and balanced presentation. Use when revie0installs
6reactjs avatarreview-docsreactjs/react.devThis orchestrates parallel reviews of React documentation files by routing them through specialized agents based on file location and...0installs