AgentSkillsCN

git

Git版本控制操作。用于创建分支、提交、推送代码和创建拉取请求。在实现功能、修复Bug或准备代码进行审查时使用。

SKILL.md
--- frontmatter
name: git
description: Git version control operations. Use for creating branches, making commits, pushing code, and creating pull requests. Use when implementing features, fixing bugs, or preparing code for review.
allowed-tools: Bash, github:create_pull_request, github:get_pull_request, github:update_pull_request

Git Operations

Configuration

  • Repository: arttttt/CMIDCABot

When to Use

  • Creating feature/fix/refactor branches
  • Making commits with conventional commit messages
  • Pushing branches to remote
  • Creating pull requests

Quick Reference

Create Branch

bash
git checkout -b <type>/<short-description>

Types: feature/, fix/, refactor/

Commit

bash
git commit -m "<type>(<scope>): <description>"

Push

bash
git push -u origin <branch-name>

Create PR

Use MCP tool create_pull_request with:

  • owner: from Configuration
  • repo: from Configuration
  • title: descriptive title
  • body: include Closes #<issue-number> if applicable
  • head: current branch name
  • base: main

Detailed References

  • See references/branching.md for branch naming conventions
  • See references/commits.md for commit message format