Token导航 LogoToken导航TokenDH.com
运维和基础设施只读github未标认证来源可访问clear审计通过

gitGit 版本控制

Agent Skill

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

总安装

367

周安装

15

GitHub Stars

9

下载量

119
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/tao3k/omni-dev-fusion --skill git

简介

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

  • 适合围绕仓库状态、代码变更或协作事项进行整理和分析。
  • 通过 GitHub API 或相关接口获取协作数据,支持进一步核验具体用法。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网或命令执行操作。
  • git 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Git Skill (Smart Commit Workflow)

Code is Mechanism, Prompt is Policy

Smart Commit Workflow (Primary Query Anchor)

smart commit is the canonical query phrase for this skill. Use git.smart_commit to run the full smart commit workflow (stage -> scan -> approve -> commit).

Architecture

This skill keeps its runnable command functions in scripts/*.py. Commands are exposed through the retained tool runtime as git.command_name.

Available Commands

CommandDescription
git.statusShow working tree status
git.stage_allStage all changes (with security scan)
git.commitCommit staged changes
git.smart_commitSmart Commit workflow (stage → scan → approve → commit)
git.pushPush to remote
git.logShow commit logs

Smart Commit Workflow

Use git.smart_commit for secure, human-in-the-loop commits:

# Step 1: Start workflow
git.smart_commit(action="start")
# Returns workflow_id and diff preview

# Step 2: After LLM analysis and user approval
git.smart_commit(action="approve", workflow_id="xxx", message="feat: description")

Flow: stage_and_scanroute_prepareformat_reviewre_stageinterruptcommit

Linked Notes

Staged Files Feature

Stage and Scan Workflow

The stage_and_scan function provides automatic staging with security validation:

Stage All Files → Security Scan → Lefthook Pre-commit → Finalize

Key Features

  1. Automatic Staging stage_and_scan(project_root=".") # Returns: {staged_files, diff, security_issues, lefthook_error}
  2. Security Scanning

- Detects sensitive files (.env*, *.pem, *.key, *.secret, etc.) - Automatically un-stages detected files - Returns list of security issues

  1. Lefthook Integration

- Runs pre-commit hooks after staging - Re-stages files modified by lefthook formatters - Returns lefthook output for review

Staged Files Commands

CommandDescription
git.stage_all()Stage all changes with security scan
git.status()Show staged files and working tree status
git.diff()Show staged diff

Security Patterns Detected

.env*, *.env*, *.pem, *.key, *.secret, *.credentials*
id_rsa*, id_ed25519*, *.priv
secrets.yml, secrets.yaml, credentials.yml

Usage Guidelines

Read Operations (Safe - Use Claude-native bash)

git status
git diff --cached
git diff
git log --oneline

Write Operations (Use Tool Runtime Calls)

OperationTool
Stage allgit.stage_all() (scans for secrets)
Commitgit.commit(message="...")
Pushgit.push()
Smart Commitgit.smart_commit(action="start")

Key Principle

Read = Claude-native bash. Write = tool runtime calls.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

26.68%
按下载量换算32

windsurf

25.41%
按下载量换算30

trae

17.24%
按下载量换算21

OpenCode

11.8%
按下载量换算14

Codex

9%
按下载量换算11

Antigravity

3.8%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills