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:
- Đọc file này (đã load) → xác định reference files liên quan
- Dùng Read tool đọc từ
{skill_base_dir}/reference/<name>.md - Áp dụng quy tắc khi implement. Tuân theo DO/DON'T chính xác
- Commit/i18n → đọc
{skill_base_dir}/reference/commit-convention.mdhoặci18n-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 (
@deprecatedJSDoc, 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@deprecatedvà 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 trongreact-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