Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

git-integrationgit 集成

Agent Skill

git-integration 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

306

周安装

13

GitHub Stars

公开资料未说明

下载量

107
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add 5dlabs/cto --skill "git-integration"

简介

发现并安装 AI 代理技能,扩展工具链能力边界。

  • 适用于探索新技能和集成第三方服务到现有工作流。
  • 通过标准化接口调用实现技能注册与管理功能。git-integration 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 需验证技能来源可信度,防止恶意代码注入风险。
  • 建议在安装前审查技能文档,确认其适用场景和限制条件。

SKILL.md

Git and GitHub Integration

Patterns for Git workflows, conflict resolution, and GitHub automation.

Core Specialization

  • Git Operations: Branching, merging, rebasing, conflict resolution
  • GitHub Features: PRs, Issues, Actions, Releases
  • Workflow Automation: GitHub Actions, webhooks
  • Release Management: Semantic versioning, changelogs
  • Repository Management: Branch protection, CODEOWNERS

Execution Rules

  1. Clean history. Meaningful commits, squash when appropriate
  2. Conventional commits. feat:, fix:, chore:, etc.
  3. PR best practices. Clear description, linked issues
  4. Conflict resolution. Prefer rebase over merge for feature branches
  5. Automation. Automate repetitive tasks with Actions

Branch Management

Create Feature Branch

# From latest main
git fetch origin main
git checkout -b feature/task-123 origin/main

Rebase Before PR

git fetch origin main
git rebase origin/main
git push --force-with-lease

Interactive Rebase

# Clean up last 3 commits
git rebase -i HEAD~3

Conflict Resolution

During Rebase

git status                    # See conflicted files
# Edit files to resolve conflicts
git add <resolved-files>
git rebase --continue

# Abort if needed
git rebase --abort

Resolution Strategy

  1. Understand both sides of the conflict
  2. Preserve intent of all changes where possible
  3. Run tests after resolving
  4. Document non-obvious resolution decisions
  5. Escalate if resolution risks breaking functionality

GitHub CLI

# Create PR
gh pr create --title "feat: description" --body "Closes #123"

# List PRs
gh pr list --state open

# Merge PR (squash)
gh pr merge --squash --auto

# Create release
gh release create v1.0.0 --generate-notes

# View PR checks
gh pr checks

GitHub Actions Patterns

Basic CI Workflow

name: CI
on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Build
        run: make build
      - name: Test
        run: make test

Auto-merge for Dependabot

name: Dependabot auto-merge
on: pull_request

permissions:
  contents: write
  pull-requests: write

jobs:
  auto-merge:
    runs-on: ubuntu-latest
    if: github.actor == 'dependabot[bot]'
    steps:
      - name: Auto-merge
        run: gh pr merge --auto --squash "$PR_URL"
        env:
          PR_URL: ${{ github.event.pull_request.html_url }}
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Conventional Commits

PrefixPurposeExample
feat:New featurefeat: add user authentication
fix:Bug fixfix: resolve login timeout
docs:Documentationdocs: update API reference
style:Formattingstyle: fix indentation
refactor:Code refactoringrefactor: extract auth service
test:Adding teststest: add auth unit tests
chore:Maintenancechore: update dependencies

Release Management

Semantic Versioning

  • MAJOR (1.x.x): Breaking changes
  • MINOR (x.1.x): New features, backward compatible
  • PATCH (x.x.1): Bug fixes

Release Process

# Tag release
git tag -a v1.2.0 -m "Release v1.2.0"
git push origin v1.2.0

# Create GitHub release
gh release create v1.2.0 --generate-notes

Guidelines

  • Understand both sides of a conflict before resolving
  • Preserve intent of all changes where possible
  • Run tests after resolving conflicts
  • Document non-obvious resolution decisions
  • Escalate if resolution risks breaking functionality

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Claude Code

26.36%
按下载量换算28

windsurf

22.56%
按下载量换算24

trae

18.69%
按下载量换算20

OpenCode

11.86%
按下载量换算13

Codex

6.99%
按下载量换算7

Antigravity

3.01%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills