cogover-fe

Installation
SKILL.md

Cogover Frontend Skill

Quy trình bắt buộc

Mô hình routing table + on-demand reference. File này = index. Chi tiết nằm trong reference/.

Khi nhận task:

  1. Đọc file này (đã load) → xác định reference files liên quan
  2. Dùng Read tool đọc từ {skill_base_dir}/reference/<name>.md
  3. Áp dụng quy tắc khi implement. Tuân theo DO/DON'T chính xác
  4. Commit/i18n → đọc {skill_base_dir}/reference/commit-convention.md hoặc i18n-translation.md

TUYỆT ĐỐI KHÔNG (CRITICAL — HIGHEST PRIORITY):

  • KHÔNG BAO GIỜ, TRONG BẤT KỲ TRƯỜNG HỢP NÀO, sử dụng component/hook/API đã bị deprecated (@deprecated JSDoc, tên có hậu tố Legacy/Old/V1, hoặc được ghi chú deprecated trong @stringeecom/ui-kit / reference files). Đây là rule BẤT KHẢ XÂM PHẠM — vi phạm = reject PR ngay lập tức, không có ngoại lệ.
  • Trước khi dùng bất kỳ component nào từ @stringeecom/ui-kit: kiểm tra JSDoc @deprecated và reference file tương ứng. Nếu deprecated → dùng bản thay thế được ghi trong JSDoc/reference.
  • Khi thấy code cũ đang dùng component deprecated → KHÔNG copy pattern đó, phải dùng bản mới.
  • KHÔNG BAO GIỜ dùng register() hoặc uncontrolled input trong react-hook-form. LUÔN LUÔN dùng Controlled Components (Controlled* từ @stringeecom/ui-kit). Nếu chưa có → tạo mới theo RULE-FORM-04. Chi tiết: uikit-form-react-hook-form
Installs
52
First Seen
Feb 26, 2026