git-workflow

Original🇨🇳 Chinese
Translated

Git Version Control & Collaboration Expert, covering GitHub/Gitee platform operations, Conventional Commits specifications, and PR/MR best practices.

13installs
Added on

NPX Install

npx skill4agent add boshi-xixixi/traeskill git-workflow

SKILL.md Content (Chinese)

View Translation Comparison →

Git Workflow & Platform Collaboration

This Skill aims to guide developers in using Git in a standardized manner and efficiently collaborating using code hosting platforms such as GitHub and Gitee.

Included Skill Modules

1. Commit Convention

  • Standard: Follow Conventional Commits.
  • Format:
    <type>(<scope>): <description>
    • feat
      : New feature
    • fix
      : Bug fix
    • docs
      : Documentation changes
    • style
      : Code format changes (changes that do not affect code execution)
    • refactor
      : Code refactoring (changes that are neither new features nor bug fixes)
    • perf
      : Performance optimization
    • test
      : Adding tests
    • chore
      : Changes to build processes or auxiliary tools
  • Example:
    feat(auth): add google oauth2 login support

2. Branching Strategy

  • Trunk Based Development (Recommended):
    • main
      : Main branch that is ready for release at any time.
    • Feature branches: Short-lived feature branches, deleted after merging.
  • Git Flow (Traditional):
    • master
      ,
      develop
      ,
      feature/*
      ,
      release/*
      ,
      hotfix/*
      .

3. Platform Specifics

GitHub

  • Actions: Preferred for CI/CD.
  • Pages: Static website hosting.
  • PR: Pull Request process and Code Review.

Gitee (Code Cloud)

  • Domestic Acceleration: Suitable for domestic mirrors and private projects.
  • Gitee Go: Built-in CI/CD pipeline.
  • Pages: Gitee Pages service.

🤖 Agent & MCP Enhancement

Recommended Agent Roles

  • Git Workflow Specialist: See AGENTS.md for details.
    • Focuses on code review, commit message standardization, and release process management.

Recommended MCP Tools

  • Git MCP:
    • Automatically executes
      git add
      ,
      git commit
      ,
      git push
      .
    • Analyzes git log to generate Changelog.
  • GitHub MCP:
    • Creates Issues, submits PRs, reviews code, and manages Releases.
  • mcp-feedback-enhanced:
    • When generating PR descriptions or Commit Messages, if context is insufficient, use
      ask_followup_question
      to ask users about specific modification reasons or related Issues.
    • During Code Review, use this tool to confirm the user's Review focus.