360 Secure SkillHub
360 安全技能中心

Git Tool

该 Skill 通过 Python 脚本封装常用 Git 命令,提供仓库初始化、工作区状态、分支查看与创建、提交、历史查看、暂存和差异查看等本地仓库管理能力,适合用统一命令行入口执行常见 Git 操作。

dinghaibin
dinghaibin
热度 32.46
最近更新 2026-05-11 17:46:25
分类:开发依赖:代码执行 / 读写文件应用场景:DevOps / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add git-tool
Metadata
name
git-tool
description
Useful Git commands for repository management. Use when user needs to manage git repositories, create branches, view history, stash changes, or automate git workflows.

Git Tool

Useful Git commands for repository management.

Quick Start

# Initialize repo
python scripts/git.py init

# View status
python scripts/git.py status

Usage

python scripts/git.py COMMAND [OPTIONS]

Commands:
  init          Initialize repository
  status        Show working tree status
  branch        List branches
  commit        Create commit
  log           View commit history
  stash         Stash changes
  diff          Show changes

Examples

# Initialize
python scripts/git.py init

# Status
python scripts/git.py status

# View log
python scripts/git.py log --oneline

# Create branch
python scripts/git.py branch new-feature

# Stash changes
python scripts/git.py stash save "work in progress"

# Commit
python scripts/git.py commit -m "Update files"

Features

  • Repository initialization
  • Branch management
  • Commit creation
  • History viewing
  • Stash operations
  • Diff viewing