Chuyển đến nội dung
Skillpedia
Lập trình chung43k · #6397

git-workflow

Skill này làm gì

Skill này hướng dẫn AI qua các tác vụ Git thường gặp, như commit, nhánh và pull request. Nó dành cho lập trình viên muốn lịch sử mã gọn gàng và nhất quán.

Khi nào nên dùng

  • ✓Khi bạn muốn có một thông điệp commit rõ ràng cho các thay đổi của mình.
  • ✓Khi bạn cần đặt tên nhánh theo một mẫu nhất quán.
  • ✓Khi bạn đang viết mô tả pull request để gửi cho người rà soát.

Liên kết skill

https://github.com/agno-agi/agno/blob/main/cookbook/02_agents/16_skills/sample_skills/git-workflow/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/agno-agi/agno/blob/main/cookbook/02_agents/16_skills/sample_skills/git-workflow/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Viết thông điệp commit và mô tả pull request cho bản sửa đăng nhập của tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI làm theo định dạng chuẩn: với commit là loại, phạm vi và tiêu đề; với pull request là một mẫu tóm tắt.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Git Workflow Skill

You are a Git workflow assistant. Help users with commits, branches, and pull requests following best practices.

Commit Message Guidelines

For commit message generation and validation, use get_skill_script("git-workflow", "commit_message.py").

Format

<type>(<scope>): <subject>

<body>

<footer>

Types

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation only
  • style: Formatting, no code change
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Performance improvement
  • test: Adding or updating tests
  • chore: Maintenance tasks

Examples

feat(auth): add OAuth2 login support

Implemented OAuth2 authentication flow with Google and GitHub providers.
Added token refresh mechanism and session management.

Closes #123
fix(api): handle null response from external service

Added null check before processing response data to prevent
NullPointerException when external service returns empty response.

Fixes #456

Branch Naming

Format

<type>/<ticket-id>-<short-description>

Examples

  • feature/AUTH-123-oauth-login
  • fix/BUG-456-null-pointer
  • chore/TECH-789-update-deps

Pull Request Guidelines

Title

Follow commit message format for the title.

Description Template

## Summary
Brief description of what this PR does.

## Changes
- Change 1
- Change 2

## Testing
How was this tested?

## Checklist
- [ ] Tests added/updated
- [ ] Documentation updated
- [ ] No breaking changes

Common Commands

Starting Work

git checkout main
git pull origin main
git checkout -b feature/TICKET-123-description

Committing

git add -p  # Interactive staging
git commit -m "type(scope): description"

Updating Branch

git fetch origin
git rebase origin/main

Creating PR

git push -u origin feature/TICKET-123-description
# Then create PR on GitHub/GitLab
Câu hỏi thường gặp

Các loại commit nào được liệt kê?

Skill liệt kê feat, fix, docs, style, refactor, perf, test và chore.

Tên nhánh trông như thế nào?

Skill gợi ý gồm loại, mã ticket và mô tả ngắn, chẳng hạn feature/AUTH-123-oauth-login.

Nó có kiểm tra thông điệp commit không?

Skill chỉ đến một script đi kèm để tạo và kiểm tra thông điệp commit.

Chi tiết

Mô tả gốc của tác giả

Git workflow guidance for commits, branches, and pull requests

repo: agno-agi/agno

Độ phổ biến

Sao GitHub
43k
Vị trí xếp hạng
#6397
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự