Token导航 LogoToken导航TokenDH.com
运维和基础设施敏感数据github未标认证来源可访问clear审计提醒

git-workflowGit 工作流

Agent Skill

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

总安装

329

周安装

14

GitHub Stars

2

下载量

115
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/xbklairith/kisune --skill git-workflow

简介

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

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 当前功能描述基于仓库公开信息,实际能力以源码和文档为准。

SKILL.md

Git Workflow Skill

Purpose

Manage git operations with best practices, generating meaningful commit messages, managing branches safely, creating comprehensive pull requests, and preventing common git mistakes.

Activation Triggers

Activate this skill when:

  • User says "commit my changes"
  • User mentions "create a branch"
  • User asks to "create a PR" or "pull request"
  • User says "push to remote"
  • Before any destructive git operation
  • User mentions git or version control

Core Capabilities

1. Smart Commits

Goal: Generate meaningful, consistent commit messages that explain WHY changes were made

Process:

  1. Analyze Changes — Run git status and git diff
  2. Understand Intent — What was added/modified/removed? What problem does this solve?
  3. Generate Commit Message using format: [type]: [concise description in present tense]

Commit Types:

  • feat - New feature
  • fix - Bug fix
  • refactor - Code restructuring without behavior change
  • test - Adding or updating tests
  • docs - Documentation changes
  • chore - Maintenance tasks (deps, config, etc.)
  • style - Code formatting (no logic change)
  • perf - Performance improvements

Message Guidelines:

  • Present tense, imperative mood ("Add" not "Added")
  • Focus on WHAT and WHY, not HOW
  • Under 72 characters for first line
  • No period at the end

Good examples:

feat: Add RSI indicator to market analysis
fix: Handle division by zero in position sizing
refactor: Extract strategy validation into separate function

Avoid: Vague messages ("updated files"), past tense ("Added new stuff"), or non-descriptive ("WIP", "asdfgh").

  1. Show and Confirm — Present proposed message, list of files, and ask for approval
  2. Execute and Verify — Stage files, commit, verify with git log -1 --oneline

2. Branch Management

Naming Convention: [type]/[description]

TypePurposeExample
feature/New featuresfeature/user-authentication
fix/Bug fixesfix/login-timeout-error
refactor/Code restructuringrefactor/payment-processing
experiment/Experimental workexperiment/ml-price-prediction
hotfix/Urgent production fixeshotfix/security-vulnerability

Key Operations:

  • Create: git switch -c feature/name
  • Switch: git switch feature/name
  • List: git branch -v (or -a for remote)
  • Delete (safe): git branch -d feature/old
  • Delete remote: git push origin --delete feature/old

Safety: Before pushing to main/master, warn the user and recommend creating a feature branch with a PR instead.

3. Pull Request Creation

Process:

  1. Analyze all commits: git log main..HEAD --oneline and git diff main...HEAD
  2. Review changes — overall purpose, key changes, breaking changes, testing needs
  3. Generate PR description using this template:
## Summary
[Brief overview of what this PR does and why]

## Changes
- [Key change 1]
- [Key change 2]

## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Documentation update

## Testing
- [ ] Unit tests pass
- [ ] Integration tests pass
- [ ] Manual testing completed

## Code Quality
- [ ] Follows project style guidelines
- [ ] Self-review completed
- [ ] No debug code left
- [ ] Documentation updated

## Related Issues
Closes #[issue number]
  1. Create PR: Use gh pr create --title "[Type]: Brief description" --body "..."
  2. Return PR URL with next steps (request reviewers, monitor CI, address feedback)

4. Safety Checks

Pre-Commit:

  1. No Secrets — Scan staged changes for api_key, secret, password, token. If found, warn and recommend .gitignore or environment variables. Abort by default.
  2. Tests Pass — Run test suite. Block commit if tests fail.
  3. Large Commit Warning — If 10+ files changed, suggest breaking into smaller commits.

Pre-Push:

  1. Branch Check — If on main/master, warn and recommend feature branch + PR workflow.
  2. Force Push Warning — If --force detected, issue critical warning about history rewriting, lost work, and broken PRs. Require explicit confirmation.

Pre-Merge:

  1. Check for conflicts: git merge --no-commit --no-ff [branch] then git merge --abort
  2. Verify CI status: gh pr checks
  3. Confirm approvals: gh pr view --json reviews

Workflow Example: Preventing Dangerous Operations

User: "Push my changes to main"

Response:

  • Detect current branch is main
  • Warn about risks: no code review, potential production breakage, no CI gate
  • Recommend: create feature branch, push there, create PR, get review
  • Offer alternatives: (1) Create branch + PR, (2) Run tests then push, (3) Cancel

Integration Points

  • Works with review skill for pre-commit reviews
  • Works with spec-driven skill for commit messages during execution
  • Works with systematic-testing skill to verify tests before commit

Best Practices

  1. Commit Often — Small, frequent commits over large, infrequent ones
  2. One Concern Per Commit — Each commit represents one logical change
  3. Write Good Messages — Future you will thank present you
  4. Review Before Push — Always review your own changes first
  5. Use Branches — Never work directly on main
  6. Create PRs — Always use pull requests, even for solo projects
  7. Keep History Clean — Meaningful commits, not "WIP" or "fix"

Notes

  • Always prioritize safety over convenience
  • Default to the safer option when in doubt
  • Prevent destructive operations with clear warnings
  • Make it easy to do the right thing

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

27.68%
按下载量换算32

windsurf

24.12%
按下载量换算28

trae

18.08%
按下载量换算21

OpenCode

12.79%
按下载量换算15

Codex

7.1%
按下载量换算8

Antigravity

3.14%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills