This repository has been archived on 2026-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
Gishen-Admin/.cursor/rules/update-master-spec-before-push.mdc
kirukib 40771434d1 Add cross-app Gishen master spec and pre-push refresh tooling.
Establish the shared Admin/Mob/Ecom/B2B contract in-repo and wire Cursor rules, reminder scripts, and a soft pre-push hook so pushes keep the master (and Admin sheet pointers) current.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 16:27:01 +03:00

21 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
description: Refresh GISHEN-MASTER-SPEC (and admin-backend-spec) before git push
alwaysApply: true
---
# Update master spec before push
Before any **`git push`** (or when the user asks to push / open a PR that pushes):
1. Update [`docs/GISHEN-MASTER-SPEC.md`](docs/GISHEN-MASTER-SPEC.md):
- Append a **Changelog** row (today’s date + why).
- Refresh sections touched by this branch (auth, orgs, doctors, orders/guest, Rx dosing, catalogue/UOM/PDP, stock, loyalty).
- Re-skim sibling folders under `/Users/kirukib/Desktop/Yaltopia Project/` when present: `Gishen-Mob`, `Gishen-Ecom`, `Gishen-B2B` (and Dispatch Bot if dispatch changed). Note missing folders under **Sources not found**.
- Bump **Last reconciled** + Sources stamp checklist dates.
2. If Admin modules, mocks, or endpoints changed, also update [`docs/admin-backend-spec.md`](docs/admin-backend-spec.md) changelog + relevant sections.
3. Do **not** invent APIs — mark **TBD** when siblings lack a contract.
4. Prefer running `bash scripts/sync-master-spec-reminder.sh` and including refreshed docs in the commit set before push.
5. Never skip this for “docs-only is fine later” when `src/` or backend sheets changed.
Do not push unless the user explicitly asked to push.