agentleFS
Ardiyanto24Ardiyanto24/modular-monolith-code-guide/.cursor/rules/git-workflow.mdc

modular-monolith-code-guide / rules

Cursor rule0 starsChanged 2 months agoMITView on GitHub

Strategi branching, format commit, tagging/versioning, dan aturan CI/CD untuk repo modular monolith. Berlaku saat membuat branch, menyusun pesan commit, membuka PR, atau mempertimbangkan tag rilis/deploy.

The file

Files
git-workflow.mdc
---
description: Strategi branching, format commit, tagging/versioning, dan aturan CI/CD untuk repo modular monolith. Berlaku saat membuat branch, menyusun pesan commit, membuka PR, atau mempertimbangkan tag rilis/deploy.
alwaysApply: false
---

# Git Strategy & CI/CD

Panduan lengkap: [`../../references/GIT_GUIDE.md`](../../references/GIT_GUIDE.md) — baca file itu sebelum membuat branch/commit/tag.

Ringkasan aturan yang wajib dipatuhi:

- Satu branch utama `main`. Feature branch: `feat/{module}-{deskripsi}`, `fix/{module}-{deskripsi}`, `chore/{module}-{deskripsi}` — prefix menyebut **module**, bukan nama service.
- **Commit granular per module dan per layer** — dilarang satu commit menyentuh lebih dari satu module sekaligus (kecuali perubahan root-level atau wiring kecil satu arah). Format: `type(scope): deskripsi`, scope menyebut module secara eksplisit.
- Tag rilis format `backend@{semver}` / `cli@{semver}` — **selalu menunggu instruksi eksplisit user**, tidak pernah dianggap diizinkan otomatis hanya karena staging stabil.
- **Aksi yang wajib menunggu instruksi eksplisit user** (jangan lakukan sendiri tanpa konfirmasi): membuat repository baru, push pertama ke remote baru, merge PR besar ke `main`, membuat git tag rilis, deploy manual ke production, mengubah workflow CI/CD yang menyentuh kredensial produksi, migrasi database massal lintas banyak database sekaligus.
- **Boleh otomatis**: `git init`, commit lokal ke feature branch, push feature branch ke remote yang sudah ada, membuka Pull Request, deploy staging otomatis dari CI.
- Sebelum melaporkan pekerjaan git "selesai", jalankan checklist di §6 `GIT_GUIDE.md`.

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.