AgentSkillsCN

git-workflow

完整的Git工作流程,从常规提交到完成前验证。用于所有Git操作,包括提交、分支和发布。

SKILL.md
--- frontmatter
name: git-workflow
description: Complete Git workflow from conventional commits to pre-completion verification. Use for all Git operations including commits, branches, and releases.
allowed-tools: Read, Glob, Grep, Edit, Write, Bash
license: MIT
metadata:
  author: antigravity-team
  version: "2.0"

Git Workflow

커밋부터 완료 검증까지의 Git 워크플로우 통합 스킬입니다.

Conventional Commits

Format

code
<type>(<scope>): <description>

[optional body]

[optional footer]

Types

Type설명예시
feat새 기능feat(auth): add JWT login
fix버그 수정fix(api): handle null response
refactor리팩토링refactor(utils): simplify parser
docs문서docs: update README
test테스트test(auth): add login tests
chore기타chore: update deps

Breaking Changes

code
feat(api)!: change response format

BREAKING CHANGE: response.data is now response.result

Pre-Completion Verification

완료 선언 전 필수 체크

bash
# 1. 테스트 통과
npm test

# 2. 린트 통과
npm run lint

# 3. 타입 체크 (TypeScript)
npx tsc --noEmit

# 4. 빌드 성공
npm run build

Verification Checklist

  • 모든 테스트 통과
  • 린트 에러 없음
  • 타입 에러 없음
  • 빌드 성공
  • 변경사항 커밋됨
  • 불필요한 console.log 제거

Branch Strategy

code
main ─────────────────────────────
  │
  └─ feature/auth ───○───○───○─┐
                               │
                               └─ merge

Naming

code
feature/<description>
fix/<issue-number>-<description>
refactor/<description>

Commit Workflow

bash
# 1. 변경사항 스테이징
git add <files>

# 2. 커밋 (규격 준수)
git commit -m "feat(scope): description"

# 3. 푸시 전 검증
npm test && npm run lint

# 4. 푸시
git push

Checklist

  • 커밋 메시지 규격 준수
  • 테스트 통과
  • 린트 통과
  • 빌드 성공