agentleFS
TienDat-VnaTienDat-Vna/BackSpec/.claude/skills/git-workflow/SKILL.md

git-workflow

Skill1 starsChanged 45 days agoMITView on GitHub

Quản lý quy trình Git chuyên nghiệp cho Microservices (Conventional Commits, Branching Strategy theo SDD CORE/SHELL, Pull Request standards và Safe Git Rebase).

  • Commits and pushes

189 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use squad-commands, ci-cd-pipelines and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Microsoft AzureSkill

    squad-commands

    Categorized catalog of common Squad operations. Coordinator reads this file and presents it as an interactive menu when the user asks for available commands or help.

    Also in 5 projects that use this

  • harrissohail6Skill

    ci-cd-pipelines

    CI/CD pipeline design and implementation. Auto-activates when discussing deployment, automation, or pipelines.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    architectural-proposals

    How to write comprehensive architectural proposals that drive alignment before code is written

    Also in 4 projects that use this

  • GitHubSkill

    e2e-template-testing

    End-to-end validation of coordinator and agent template changes

    Also in 3 projects that use this

  • GitHubSkill

    notification-routing

    Route agent notifications to specific channels by type — prevent alert fatigue from single-channel flooding

    Also in 3 projects that use this

  • frostneySkill

    native-nostalgia-stack

    Applies the user's FreePascal toolchain and its build, formatting, hook, and test contracts while leaving project-specific mechanics local. Use when scaffolding or working in a FreePascal project that follows this toolchain.

    Also in 3 projects that use this

  • +5 more from Azure
  • +1 more from github

The file

Files
SKILL.md
<!-- GENERATED FROM registry/skills/git-workflow/SKILL.md — DO NOT EDIT DIRECTLY --><!-- GENERATED FROM .shared/skills/02-codestyle/git-workflow/SKILL.md — DO NOT EDIT DIRECTLY -->

Skill — Git Workflow & PR Standards (Microservices)

Hướng dẫn Agent và Developer thực hiện quy trình Git theo chuẩn SDD và đồng bộ code an toàn tuyệt đối với /safe-git-rebase.

1. Branching Strategy

  • Tính năng CORE (SDD Hybrid 2-Phase):
    • spec/{feature}: Tạo branch để viết và review spec trong .sdd/. Merge vào main khi approved.
    • agent/{feature}: Tạo branch từ spec approved để Agent thực thi code trong src/.
  • Tính năng SHELL:
    • feat/{feature}: Thêm tính năng nhỏ.
    • fix/{bug-name}: Sửa lỗi.
    • chore/{task}: Cập nhật dependency, config.

2. Đồng Bộ Code An Toàn (Safe Git Rebase)

Trước khi push hoặc mở Pull Request, bắt buộc chạy quy trình Rebase an toàn (Xem chi tiết tại /safe-git-rebase):

  1. Đảm bảo Working Tree sạch sẽ (git status).
  2. Tạo nhánh backup: git branch backup-feat-xyz.
  3. Fetch và Rebase: git fetch origin main && git rebase origin/main.
  4. Giải quyết xung đột (nếu có) bằng git add và git rebase --continue (tuyệt đối KHÔNG gõ git commit).
  5. Chạy test kiểm tra: ./gradlew test hoặc mvn test.
  6. Push an toàn: git push origin feat-xyz --force-with-lease.

3. Commit Format (Conventional Commits)

[type]([scope]): [mô tả ngắn gọn bằng tiếng Anh/Việt]

Types: feat | fix | docs | style | refactor | test | chore | spec | proto | event | db
Ví dụ:
  feat(order): add idempotency key check in create order endpoint
  db(migration): add outbox_events table for order saga
  spec(payment): define payment reserve contract and compensation flow

4. Pull Request Guidelines

  • Tiêu đề PR theo đúng cú pháp commit.
  • Body PR mô tả: Bối cảnh, Thay đổi chính, Kết quả test (coverage), Trích dẫn SPEC-XXX.
  • Kích thước PR <= 400 dòng thay đổi.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.