Files
lcbp3/.windsurf/rules/08-development-flow.md
T
admin 5e4e0444ed
CI / CD Pipeline / build (push) Failing after 8m55s
CI / CD Pipeline / deploy (push) Has been skipped
690417:1707 Refactor Work flow ADR-021
2026-04-17 17:07:41 +07:00

2.4 KiB

trigger
trigger
always_on

Development Flow

🔴 Critical Work — DB / API / Security / Workflow Engine

MUST complete all steps:

  1. Glossary check — verify domain terms in 00-02-glossary.md
  2. Read the spec — select from Key Spec Files table
  3. Check schema — verify table/column in schema-02-tables.sql
  4. Check data dictionary — confirm field meanings + business rules
  5. Scan edge cases01-06-edge-cases-and-rules.md
  6. Check ADRs — verify decisions align (ADR-009, ADR-018, ADR-019)
  7. Write code — TypeScript strict, no any, no console.log

🟡 Normal Work — UI / Feature / Integration

  • Follow existing patterns in codebase
  • Check spec for relevant module only
  • No need to read all specs

🟢 Quick Fix — Bug Fix / Typo / Style

  • Fix directly
  • Add minimal test if logic changed
  • Check forbidden patterns before commit

Context-Aware Triggers

Request Files to Check Expected Response
"สร้าง API ใหม่" 05-02-backend-guidelines.md, schema-02-tables.sql NestJS Controller + Service + DTO + CASL Guard
"แก้ฟอร์ม frontend" 05-03-frontend-guidelines.md, 01-06-edge-cases.md RHF+Zod + TanStack Query + Thai comments
"เพิ่ม field ใหม่" ADR-009, data-dictionary.md, schema-02-tables.sql Edit SQL directly + update Data Dictionary + Entity
"ตรวจสอบ UUID" ADR-019, 05-07-hybrid-uuid-implementation-plan.md UUIDv7 MariaDB native UUID + TransformInterceptor
"สร้าง migration" ADR-009, 03-06-migration-business-scope.md Edit SQL schema directly + n8n workflow
"ตรวจสอบ permission" seed-permissions.sql, ADR-016 CASL 4-Level RBAC matrix
"deploy production" 04-08-release-management-policy.md, ADR-015 Release Gates + Blue-Green strategy
"เพิ่ม test" 05-04-testing-strategy.md Coverage goals + test patterns