AgentSkillsCN

git-workflow

Git 的首选使用方式——PR、提交、分支、合并、PR 评论,以及 CI 检查。适用于任何 Git/GitHub 任务。每当用户提出需要与 Git/GitHub 交互的操作时,例如提交、推送、添加评论、创建 PR,或修复 CI 问题时,均可使用此功能。

SKILL.md
--- frontmatter
name: git-workflow
description: Preferred way to use git - PRs, commits, branches, merges, PR comments, and CI checks. Use for any git/GitHub task. any time the user asks for any action that requires interacting with git/GitHub like commit, push, comments, create PR, or fix CI.
context: fork
model : claude-haiku-4-5

spin up a dedicated sub-agent to perform git-workflow tasks requested by the user.

Git Workflow Skill

Modular git workflow management using Conventional Commits and GitHub Flow.

Available Workflows

TaskFileWhen to Use
Create PRcreate-pr.mdCreating a new pull request with proper description
Review Commentsreview-comments.mdFetching, triaging, and addressing PR feedback
Commitscommit-workflow.mdWriting conventional commits, staging, amending
Branchesbranch-management.mdCreating, naming, and cleaning up branches
Mergingmerge-workflow.mdMerge strategies, conflict resolution, cleanup
Changelogadd-changelog.mdSetting up or updating a project changelog
Address PR Commentsgh-address-comments.mdHandle PR review/issue comments with gh CLI
Fix CIgh-fix-ci.mdInspect failing PR checks and plan fixes

Usage

Based on the user's task, read the relevant sub-file for detailed instructions:

code
.ai_agents/skills/git-workflow/
├── create-pr.md          # PR creation workflow
├── review-comments.md    # Handling PR feedback
├── commit-workflow.md    # Conventional commits
├── branch-management.md  # GitHub Flow branching
├── merge-workflow.md     # Merge strategies
├── add-changelog.md      # Changelog setup and updates
├── gh-address-comments.md # Address PR review/issue comments
├── gh-fix-ci.md          # Fix failing PR checks
└── scripts/              # gh helpers
    ├── fetch_comments.py
    └── inspect_pr_checks.py

Quick Reference

Conventional Commit Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore

Branch Prefixes: feature/, fix/, hotfix/

PR Type Prefixes: [Feature], [Fix], [Refactor], [Perf], [Docs], [Test], [Build], [BREAKING]

Related Skills

  • git-work-trees - Isolated worktree setup for parallel work
  • coderabbit-review - Automated code review with CodeRabbit