Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计通过

git-workflowGit 工作流

Agent Skill

git-workflow 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

14,345

周安装

586

GitHub Stars

750

下载量

4,594
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:git-workflow(Git 工作流)
来源仓库:https://github.com/jezweb/claude-skills
仓库路径:skills/git-workflow
安装命令:
npx skills add https://github.com/jezweb/claude-skills --skill git-workflow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jezweb/claude-skills --skill git-workflow

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合围绕仓库状态、代码变更或协作事项进行整理。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态,以及是否会触发联网或文件读写。
  • git-workflow 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Git Workflow

Guided workflows for common git operations that benefit from structured steps.

PR Preparation

When preparing a pull request:

  1. Gather context

- git log main..HEAD --oneline — list all commits on the branch - git diff main...HEAD --stat — see all changed files - git status — check for uncommitted work

  1. Draft PR content

- Title: under 70 chars, describes the change (not the branch name) - Body: summarise the "why", list key changes, add test plan - Use the commit history to write the summary — don't rely on memory

  1. Push and create git push -u origin HEAD gh pr create --title "..." --body "$(cat <<'EOF' ## Summary -... ## Test plan - []... 🤖 Generated with [Claude Code](https://claude.com/claude-code) EOF)"
  2. Verifygh pr view --web to open in browser

Branch Cleanup

Clean up merged branches safely:

  1. Switch to main and pull latest git checkout main && git pull
  2. List merged branches (excludes main/master/develop) git branch --merged main | grep -vE '^\*|main|master|develop'
  3. Delete local merged branches git branch --merged main | grep -vE '^\*|main|master|develop' | xargs -r git branch -d
  4. Prune remote tracking refs git fetch --prune
  5. List remote branches with no local tracking (optional) git branch -r --merged origin/main | grep -vE 'main|master|develop|HEAD'

Merge Conflict Resolution

When a PR has conflicts:

  1. Assess the conflict scope git fetch origin git merge origin/main --no-commit --no-ff git diff --name-only --diff-filter=U # List conflicted files
  2. For each conflicted file, read the file and resolve:

- Keep both changes if they're in different areas - If architecturally incompatible, prefer the main branch's approach and re-apply the PR's intent on top

  1. If rebase is cleaner (few commits, no shared history): git rebase origin/main # Resolve conflicts per commit, then: git rebase --continue
  2. If rebase is messy (many conflicts, architectural divergence):

- Abort: git rebase --abort or git merge --abort - Extract useful code: git show origin/branch:path/to/file > /tmp/extracted.txt - Apply changes manually to main - Close original PR with explanation

  1. Verify — run tests, check the diff looks right

Monorepo Release Tags

In monorepos, scope tags to the package:

# ❌ Ambiguous in monorepos
git tag v2.1.0

# ✅ Scoped to package
git tag contextbricks-v2.1.0
git push origin contextbricks-v2.1.0

Pattern: {package-name}-v{semver}

.gitignore-First Init

When creating a new repo, always create .gitignore BEFORE the first git add:

cat > .gitignore << 'EOF'
node_modules/
.wrangler/
dist/
.dev.vars
*.log
.DS_Store
.env
.env.local
EOF

git init && git add . && git commit -m "Initial commit"

If node_modules is already tracked:

git rm -r --cached node_modules/
git commit -m "Remove node_modules from tracking"

Private Repo License Audit

Before publishing or sharing a private repo:

gh repo view --json visibility -q '.visibility'

If PRIVATE, ensure:

  • LICENSE contains proprietary notice (not MIT/Apache)
  • package.json has "license": "UNLICENSED" and "private": true
  • No CONTRIBUTING.md or "contributions welcome" in README

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.26%
按下载量换算1,758

Claude

30.45%
按下载量换算1,399

Cursor

20.22%
按下载量换算929

Gemini CLI

8.49%
按下载量换算390

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills