[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K2GYVHQM2TQ330CV6JDK86":3,"skill-same:01M6K2GYVHQM2TQ330CV6JDK86":101},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M6K2GYVHQM2TQ330CV6JDK86","minipower-frontend-architecture-react",null,"Kiến trúc frontend React theo kit @platform\u002Fcore — cây feature module (pages · components · hooks · services · validation · types · routes · menu · permission · localization), file đặt ở folder nào, folder nào được import folder nào, barrel public API, lát cắt dọc khi thêm feature mới, luật ESLint R1–R7 chặn import sai chiều + M1 chặn merge khi page còn gọi mock. Dùng khi thêm feature\u002Fmàn hình\u002Fmodule mới, phân vân đặt code ở đâu, hoặc dựng lint kiến trúc cho repo frontend.","hoangnh2412\u002Fminipower","hoangnh2412","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9604921?v=4","01M6K2685NFX1C55B4TR54NT7S","Hoàng Nguyễn","01M6K268AEV8J57BMZJEKCJNZE",7,"MIT","https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Ffrontend\u002Fskills\u002Fminipower-frontend-architecture-react\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"react","minipower frontend architecture react","frontend architecture","architecture","frontend","page","repo","hooks","frontend react","platform","feature","pages","module","import","mock","public api","types","kit","khi","core","2026-11-10 10:12:30",false,"---\nname: minipower-frontend-architecture-react\ndescription: Kiến trúc frontend React theo kit @platform\u002Fcore — cây feature module (pages · components · hooks · services · validation · types · routes · menu · permission · localization), file đặt ở folder nào, folder nào được import folder nào, barrel public API, lát cắt dọc khi thêm feature mới, luật ESLint R1–R7 chặn import sai chiều + M1 chặn merge khi page còn gọi mock. Dùng khi thêm feature\u002Fmàn hình\u002Fmodule mới, phân vân đặt code ở đâu, hoặc dựng lint kiến trúc cho repo frontend.\nmetadata:\n  workflow: github\n---\n\n# Kiến trúc frontend React (@platform\u002Fcore) — Orchestrator\n\nSkill cắt ngang mọi skill `minipower-frontend-*-react`: code sinh ra hoặc sửa đổi phải nằm **đúng folder** và **đúng hướng import**.\n\nRanh giới với [minipower-frontend-convention-react](..\u002Fminipower-frontend-convention-react\u002FSKILL.md):\n\n| Skill | Trả lời câu hỏi | Cổng cứng |\n|---|---|---|\n| **architecture** (skill này) | **File nằm ở đâu? Import thế nào?** | `npm run lint` — luật R1–R7 + M1 |\n| **convention** | **Code trong file viết thế nào?** | `npm run typecheck` + `npm run lint` |\n\n## Khi nào dùng workflow nào\n\n| Tình huống | Workflow |\n|---|---|\n| Thêm feature mới (màn hình + API) — chạm nhiều folder | **[workflows\u002Fadd-feature.md](workflows\u002Fadd-feature.md)** |\n| Repo chưa có lint kiến trúc | [workflows\u002Fadd-arch-lint.md](workflows\u002Fadd-arch-lint.md) |\n\n## Ba tầng — mũi tên đọc là \"được phép import\"\n\n```text\nApp host            src\u002Fmain.tsx · App.tsx · src\u002Fapp\u002F*     ghép route · menu · NavigateBridge · cấu hình HTTP\n  ↑\nFeature module      src\u002Ffeatures\u002F{feature}\u002F                pages · components · hooks · services · …\n  ↑\n@platform\u002Fcore      entry \"@platform\u002Fcore\"                 primitive PrimeReact · common · AdminLayout · lib\n```\n\nFeature **không** biết host (không import `react-router`, không đọc `useParams`); host **không** đâm vào ruột feature (chỉ qua barrel). Ngược chiều mũi tên là vi phạm — lint bắt.\n\n## Ba nơi đặt feature\n\n| Nơi | Đường dẫn | Import phần dùng chung |\n|---|---|---|\n| App host | `src\u002Ffeatures\u002F{feature}\u002F` | `@platform\u002Fcore` |\n| Module package (gói chức năng, app khác import) | `src\u002Ffeatures\u002F{feature}\u002F` của package; entry package export barrel `src\u002Ffeatures` | `@platform\u002Fcore` |\n| Bên trong kit | `src\u002Ffeatures\u002F{feature}\u002F` của kit | Tương đối: `..\u002F..\u002F..\u002F..\u002Flib\u002FhandleAction`, `..\u002F..\u002F..\u002F..\u002Fcommon\u002FToaster`… — kit không tự import `@platform\u002Fcore` |\n\nCấu trúc feature **giống hệt** ở cả ba nơi. Template viết cho hai nơi đầu; viết trong kit thì đổi dòng import `@platform\u002Fcore` sang đường tương đối, và thêm export vào danh sách named của entry kit.\n\n## Cây feature chuẩn\n\n[templates\u002Ffeature-tree.txt](templates\u002Ffeature-tree.txt) — cây đầy đủ từ app host xuống feature, kèm vai từng file. **Folder nào chưa cần thì không tạo**; thêm folder đặc thù (vd. `styles\u002F`) chỉ khi feature có CSS riêng.\n\n## Đặt file ở đâu\n\n| Tạo tác | Folder | Tên |\n|---|---|---|\n| Màn mount vào `\u003CRoute>` | `pages\u002F{Name}\u002F` | `{Name}Page.tsx` + `index.ts` |\n| UI nội bộ feature (bảng, form, shell) | `components\u002F{Name}\u002F` | `{Name}.tsx` + `index.ts` |\n| Class Tailwind dùng chung trong feature | `components\u002F` | `fieldStyles.ts` (nội bộ) |\n| Hook form \u002F state | `hooks\u002F` | `use{Name}.ts` |\n| Gọi API | `services\u002F` | `req.ts` · `{domain}.ts` (`call*`) |\n| Zod schema + giá trị mặc định + map entity → form | `validation\u002F` | `{entity}.ts` |\n| DTO · payload · list params · hằng enum `as const` | `types\u002F` | `index.ts` |\n| Hằng số của feature | `constants\u002F` | `index.ts` |\n| Mock tạm — **chỉ nhánh tuỳ chọn** [api › add-mock](..\u002Fminipower-frontend-api-react\u002Fworkflows\u002Fadd-mock.md) (DOC-12 có, backend chưa chạy) | `mocks\u002F` · `constants\u002F` · `services\u002F` | `get-{feature}-list.json` · `fake{Entities}.ts` · `{feature}Mock.ts` |\n| Path + điều hướng | `routes\u002F` | `paths.ts` · `navigation.ts` |\n| Mục menu | `menu\u002F` | `items.ts` |\n| Khoá quyền + hàm kiểm | `permission\u002F` | `keys.ts` · `hasPermission.ts` |\n| Text UI vi \u002F en | `localization\u002F` | `vi.ts` · `en.ts` · `index.ts` |\n| Helper slot, unwrap response | `utils\u002F` | `resolveContent.ts` · `apiData.ts` (nội bộ) |\n| Public API của feature | gốc feature | `index.ts` — [templates\u002Findex.ts](templates\u002Findex.ts) |\n| Barrel tầng module | `src\u002Ffeatures\u002F` | `index.ts` — [templates\u002Ffeatures-index.ts](templates\u002Ffeatures-index.ts) |\n| Route, wrapper `useParams`, bridge, menu chính | host `src\u002Fapp\u002F` | `routes\u002F{feature}.tsx` · `NavigateBridge.tsx` · `navigation.ts` |\n\n## Tầng bên trong một feature\n\n| Tầng | Folder | Vai |\n|---|---|---|\n| Trình bày | `pages\u002F` | Điều phối: state, gọi API qua `handleAction`, ghép component, toast |\n| | `components\u002F` | Thuần: props vào, callback ra — **không** gọi API |\n| Ứng dụng | `hooks\u002F` · `routes\u002Fnavigation.ts` · `utils\u002FresolveContent.ts` | Form state, điều hướng tiêm từ host, slot |\n| Tích hợp | `services\u002F` | I\u002FO thuần qua `platformHttp` |\n| Lá | `types\u002F` · `validation\u002F` · `constants\u002F` · `mocks\u002F` · `routes\u002Fpaths.ts` · `menu\u002F` · `permission\u002F` · `localization\u002F` · `theme\u002F` · `utils\u002F` | Không import tầng trên |\n\n## Hai tầng luật — đừng lẫn\n\n| Tầng | Nội dung | Ai gác |\n|---|---|---|\n| **Cứng** — `npm run lint` FAIL | R1 feature không import `react-router` · R2 không import `axios` · R3 không deep-import kit · R4 không đâm ruột feature khác (host cũng vậy) · R5 `services\u002F` không import React\u002FUI\u002F`pages`·`components`·`hooks` · R6 `components\u002F` không gọi `services\u002F`, `hooks\u002F` không import `components\u002F` · R7 tầng lá không import tầng trên · **M1** `pages\u002F` import `mock*` — cảnh báo trên máy dev, **lỗi khi `CI=true`** (chặn merge) | [templates\u002Feslint.architecture.js](templates\u002Feslint.architecture.js) — [workflows\u002Fadd-arch-lint.md](workflows\u002Fadd-arch-lint.md) |\n| **Mềm** — advisory, người quyết | Page điều phối \u002F component trình bày · barrel export có chủ đích · kiểu API ở `types\u002F`, kiểu form là `z.infer` ở `validation\u002F` · không tạo folder rỗng · dùng chung giữa feature qua barrel | Agent nhắc khi viết · [review-react](..\u002Fminipower-frontend-review-react\u002FSKILL.md) khi review |\n\nRule máy kiểm được thì **đừng nhắc bằng lời** — để lint báo. Rule máy không kiểm được thì **đừng viết \"bắt buộc\"** — nêu lý do, người quyết.\n\n## Quy tắc cốt lõi (mềm)\n\n- **Page điều phối, component trình bày.** Component nhận dữ liệu + handler; thiếu handler thì ẩn thao tác (không tự gọi API để \"bù\").\n- **Barrel có chủ đích.** Export page + `*Props`\u002F`*ContentContext`, component dùng lại, `call*`, schema, hook, routes, menu, permission, `get*Messages`. **Không** export `apiData`, `fieldStyles`, `mock*`, `FAKE_*` — nội bộ, đổi tự do.\n- **Tên export có tiền tố feature** (`{Feature}…`, `{FEATURE}_…`, `{feature}…`) — barrel module dùng `export *`, hai feature trùng tên là `tsc` đỏ.\n- **Kiểu API ≠ kiểu form.** DTO\u002Fpayload ở `types\u002F` (khớp DOC-12); dữ liệu form là `z.infer` ở `validation\u002F`; map hai chiều tường minh (`to{Feature}FormValues`, map payload trong `defaultSubmit`).\n- **Feature dùng feature khác qua barrel**; phần thực sự dùng chung nhiều feature (UI, hạ tầng) → đề xuất đưa lên kit, không copy ruột feature này sang feature kia.\n\n## Placeholder trong template\n\nMọi `templates\u002F` của module `frontend` dùng chung bộ placeholder — thay trong **cả tên file lẫn nội dung**:\n\n| Placeholder | Ví dụ | Dùng ở |\n|---|---|---|\n| `{Feature}` | `Employee` | Type, component, hàm: `{Feature}ListPage`, `use{Feature}Form`, `callGet{Feature}List` |\n| `{feature}` | `employee` | Thư mục feature, biến: `{feature}MenuItems`, khoá quyền `{feature}.view` |\n| `{FEATURE}` | `EMPLOYEE` | Hằng: `{FEATURE}_ROUTES`, `{FEATURE}_PERMISSIONS` |\n| `{features}` | `employees` | Đoạn URL route: `\u002F{features}\u002F:id` |\n| `{apiPath}` | `v1\u002Fhrm\u002Femployees` | Path API tương đối, không `\u002F` đầu — lấy từ DOC-12 |\n| `{Label}` · `{label}` | `Nhân viên` · `nhân viên` | Text tiếng Việt |\n| `{LabelEn}` · `{labelEn}` | `Employee` · `employee` | Text tiếng Anh |\n| `{app}` · `{AppTitle}` · `{kitSpec}` | `acme-web` · `Acme` · `^0.1.0` | Chỉ ở scaffold |\n\nTên nhiều từ: `CraftPdf` · `craftPdf` · `CRAFT_PDF` · `craft-pdf`.\n\n## Output bắt buộc\n\n- File mới nằm đúng folder theo bảng *Đặt file ở đâu*; feature được export qua barrel `src\u002Ffeatures\u002Findex.ts`\n- `npm run typecheck` xanh — gồm cả trùng tên export giữa feature\n- `npm run lint` xanh — gồm R1–R7; khi merge `CI=true npm run lint` xanh — gồm M1 (không page nào còn gọi `mock*`)\n- Code theo [minipower-frontend-convention-react](..\u002Fminipower-frontend-convention-react\u002FSKILL.md)\n\n## Liên quan\n\n- Dựng app host (nơi lint kiến trúc được đặt vào repo mới): [minipower-frontend-scaffold-react](..\u002Fminipower-frontend-scaffold-react\u002FREADME.md)\n- Quy ước viết code: [minipower-frontend-convention-react](..\u002Fminipower-frontend-convention-react\u002FREADME.md)\n- Review PR: [minipower-frontend-review-react](..\u002Fminipower-frontend-review-react\u002FREADME.md)\n","# Kiến trúc frontend React (@platform\u002Fcore) — Orchestrator\n\nSkill cắt ngang mọi skill `minipower-frontend-*-react`: code sinh ra hoặc sửa đổi phải nằm **đúng folder** và **đúng hướng import**.\n\nRanh giới với [minipower-frontend-convention-react](..\u002Fminipower-frontend-convention-react\u002FSKILL.md):\n\n| Skill | Trả lời câu hỏi | Cổng cứng |\n|---|---|---|\n| **architecture** (skill này) | **File nằm ở đâu? Import thế nào?** | `npm run lint` — luật R1–R7 + M1 |\n| **convention** | **Code trong file viết thế nào?** | `npm run typecheck` + `npm run lint` |\n\n## Khi nào dùng workflow nào\n\n| Tình huống | Workflow |\n|---|---|\n| Thêm feature mới (màn hình + API) — chạm nhiều folder | **[workflows\u002Fadd-feature.md](workflows\u002Fadd-feature.md)** |\n| Repo chưa có lint kiến trúc | [workflows\u002Fadd-arch-lint.md](workflows\u002Fadd-arch-lint.md) |\n\n## Ba tầng — mũi tên đọc là \"được phép import\"\n\n```text\nApp host            src\u002Fmain.tsx · App.tsx · src\u002Fapp\u002F*     ghép route · menu · NavigateBridge · cấu hình HTTP\n  ↑\nFeature module      src\u002Ffeatures\u002F{feature}\u002F                pages · components · hooks · services · …\n  ↑\n@platform\u002Fcore      entry \"@platform\u002Fcore\"                 primitive PrimeReact · common · AdminLayout · lib\n```\n\nFeature **không** biết host (không import `react-router`, không đọc `useParams`); host **không** đâm vào ruột feature (chỉ qua barrel). Ngược chiều mũi tên là vi phạm — lint bắt.\n\n## Ba nơi đặt feature\n\n| Nơi | Đường dẫn | Import phần dùng chung |\n|---|---|---|\n| App host | `src\u002Ffeatures\u002F{feature}\u002F` | `@platform\u002Fcore` |\n| Module package (gói chức năng, app khác import) | `src\u002Ffeatures\u002F{feature}\u002F` của package; entry package export barrel `src\u002Ffeatures` | `@platform\u002Fcore` |\n| Bên trong kit | `src\u002Ffeatures\u002F{feature}\u002F` của kit | Tương đối: `..\u002F..\u002F..\u002F..\u002Flib\u002FhandleAction`, `..\u002F..\u002F..\u002F..\u002Fcommon\u002FToaster`… — kit không tự import `@platform\u002Fcore` |\n\nCấu trúc feature **giống hệt** ở cả ba nơi. Template viết cho hai nơi đầu; viết trong kit thì đổi dòng import `@platform\u002Fcore` sang đường tương đối, và thêm export vào danh sách named của entry kit.\n\n## Cây feature chuẩn\n\n[templates\u002Ffeature-tree.txt](templates\u002Ffeature-tree.txt) — cây đầy đủ từ app host xuống feature, kèm vai từng file. **Folder nào chưa cần thì không tạo**; thêm folder đặc thù (vd. `styles\u002F`) chỉ khi feature có CSS riêng.\n\n## Đặt file ở đâu\n\n| Tạo tác | Folder | Tên |\n|---|---|---|\n| Màn mount vào `\u003CRoute>` | `pages\u002F{Name}\u002F` | `{Name}Page.tsx` + `index.ts` |\n| UI nội bộ feature (bảng, form, shell) | `components\u002F{Name}\u002F` | `{Name}.tsx` + `index.ts` |\n| Class Tailwind dùng chung trong feature | `components\u002F` | `fieldStyles.ts` (nội bộ) |\n| Hook form \u002F state | `hooks\u002F` | `use{Name}.ts` |\n| Gọi API | `services\u002F` | `req.ts` · `{domain}.ts` (`call*`) |\n| Zod schema + giá trị mặc định + map entity → form | `validation\u002F` | `{entity}.ts` |\n| DTO · payload · list params · hằng enum `as const` | `types\u002F` | `index.ts` |\n| Hằng số của feature | `constants\u002F` | `index.ts` |\n| Mock tạm — **chỉ nhánh tuỳ chọn** [api › add-mock](..\u002Fminipower-frontend-api-react\u002Fworkflows\u002Fadd-mock.md) (DOC-12 có, backend chưa chạy) | `mocks\u002F` · `constants\u002F` · `services\u002F` | `get-{feature}-list.json` · `fake{Entities}.ts` · `{feature}Mock.ts` |\n| Path + điều hướng | `routes\u002F` | `paths.ts` · `navigation.ts` |\n| Mục menu | `menu\u002F` | `items.ts` |\n| Khoá quyền + hàm kiểm | `permission\u002F` | `keys.ts` · `hasPermission.ts` |\n| Text UI vi \u002F en | `localization\u002F` | `vi.ts` · `en.ts` · `index.ts` |\n| Helper slot, unwrap response | `utils\u002F` | `resolveContent.ts` · `apiData.ts` (nội bộ) |\n| Public API của feature | gốc feature | `index.ts` — [templates\u002Findex.ts](templates\u002Findex.ts) |\n| Barrel tầng module | `src\u002Ffeatures\u002F` | `index.ts` — [templates\u002Ffeatures-index.ts](templates\u002Ffeatures-index.ts) |\n| Route, wrapper `useParams`, bridge, menu chính | host `src\u002Fapp\u002F` | `routes\u002F{feature}.tsx` · `NavigateBridge.tsx` · `navigation.ts` |\n\n## Tầng bên trong một feature\n\n| Tầng | Folder | Vai |\n|---|---|---|\n| Trình bày | `pages\u002F` | Điều phối: state, gọi API qua `handleAction`, ghép component, toast |\n| | `components\u002F` | Thuần: props vào, callback ra — **không** gọi API |\n| Ứng dụng | `hooks\u002F` · `routes\u002Fnavigation.ts` · `utils\u002FresolveContent.ts` | Form state, điều hướng tiêm từ host, slot |\n| Tích hợp | `services\u002F` | I\u002FO thuần qua `platformHttp` |\n| Lá | `types\u002F` · `validation\u002F` · `constants\u002F` · `mocks\u002F` · `routes\u002Fpaths.ts` · `menu\u002F` · `permission\u002F` · `localization\u002F` · `theme\u002F` · `utils\u002F` | Không import tầng trên |\n\n## Hai tầng luật — đừng lẫn\n\n| Tầng | Nội dung | Ai gác |\n|---|---|---|\n| **Cứng** — `npm run lint` FAIL | R1 feature không import `react-router` · R2 không import `axios` · R3 không deep-import kit · R4 không đâm ruột feature khác (host cũng vậy) · R5 `services\u002F` không import React\u002FUI\u002F`pages`·`components`·`hooks` · R6 `components\u002F` không gọi `services\u002F`, `hooks\u002F` không import `components\u002F` · R7 tầng lá không import tầng trên · **M1** `pages\u002F` import `mock*` — cảnh báo trên máy dev, **lỗi khi `CI=true`** (chặn merge) | [templates\u002Feslint.architecture.js](templates\u002Feslint.architecture.js) — [workflows\u002Fadd-arch-lint.md](workflows\u002Fadd-arch-lint.md) |\n| **Mềm** — advisory, người quyết | Page điều phối \u002F component trình bày · barrel export có chủ đích · kiểu API ở `types\u002F`, kiểu form là `z.infer` ở `validation\u002F` · không tạo folder rỗng · dùng chung giữa feature qua barrel | Agent nhắc khi viết · [review-react](..\u002Fminipower-frontend-review-react\u002FSKILL.md) khi review |\n\nRule máy kiểm được thì **đừng nhắc bằng lời** — để lint báo. Rule máy không kiểm được thì **đừng viết \"bắt buộc\"** — nêu lý do, người quyết.\n\n## Quy tắc cốt lõi (mềm)\n\n- **Page điều phối, component trình bày.** Component nhận dữ liệu + handler; thiếu handler thì ẩn thao tác (không tự gọi API để \"bù\").\n- **Barrel có chủ đích.** Export page + `*Props`\u002F`*ContentContext`, component dùng lại, `call*`, schema, hook, routes, menu, permission, `get*Messages`. **Không** export `apiData`, `fieldStyles`, `mock*`, `FAKE_*` — nội bộ, đổi tự do.\n- **Tên export có tiền tố feature** (`{Feature}…`, `{FEATURE}_…`, `{feature}…`) — barrel module dùng `export *`, hai feature trùng tên là `tsc` đỏ.\n- **Kiểu API ≠ kiểu form.** DTO\u002Fpayload ở `types\u002F` (khớp DOC-12); dữ liệu form là `z.infer` ở `validation\u002F`; map hai chiều tường minh (`to{Feature}FormValues`, map payload trong `defaultSubmit`).\n- **Feature dùng feature khác qua barrel**; phần thực sự dùng chung nhiều feature (UI, hạ tầng) → đề xuất đưa lên kit, không copy ruột feature này sang feature kia.\n\n## Placeholder trong template\n\nMọi `templates\u002F` của module `frontend` dùng chung bộ placeholder — thay trong **cả tên file lẫn nội dung**:\n\n| Placeholder | Ví dụ | Dùng ở |\n|---|---|---|\n| `{Feature}` | `Employee` | Type, component, hàm: `{Feature}ListPage`, `use{Feature}Form`, `callGet{Feature}List` |\n| `{feature}` | `employee` | Thư mục feature, biến: `{feature}MenuItems`, khoá quyền `{feature}.view` |\n| `{FEATURE}` | `EMPLOYEE` | Hằng: `{FEATURE}_ROUTES`, `{FEATURE}_PERMISSIONS` |\n| `{features}` | `employees` | Đoạn URL route: `\u002F{features}\u002F:id` |\n| `{apiPath}` | `v1\u002Fhrm\u002Femployees` | Path API tương đối, không `\u002F` đầu — lấy từ DOC-12 |\n| `{Label}` · `{label}` | `Nhân viên` · `nhân viên` | Text tiếng Việt |\n| `{LabelEn}` · `{labelEn}` | `Employee` · `employee` | Text tiếng Anh |\n| `{app}` · `{AppTitle}` · `{kitSpec}` | `acme-web` · `Acme` · `^0.1.0` | Chỉ ở scaffold |\n\nTên nhiều từ: `CraftPdf` · `craftPdf` · `CRAFT_PDF` · `craft-pdf`.\n\n## Output bắt buộc\n\n- File mới nằm đúng folder theo bảng *Đặt file ở đâu*; feature được export qua barrel `src\u002Ffeatures\u002Findex.ts`\n- `npm run typecheck` xanh — gồm cả trùng tên export giữa feature\n- `npm run lint` xanh — gồm R1–R7; khi merge `CI=true npm run lint` xanh — gồm M1 (không page nào còn gọi `mock*`)\n- Code theo [minipower-frontend-convention-react](..\u002Fminipower-frontend-convention-react\u002FSKILL.md)\n\n## Liên quan\n\n- Dựng app host (nơi lint kiến trúc được đặt vào repo mới): [minipower-frontend-scaffold-react](..\u002Fminipower-frontend-scaffold-react\u002FREADME.md)\n- Quy ước viết code: [minipower-frontend-convention-react](..\u002Fminipower-frontend-convention-react\u002FREADME.md)\n- Review PR: [minipower-frontend-review-react](..\u002Fminipower-frontend-review-react\u002FREADME.md)\n",{"name":5,"metadata":44,"description":7},{"workflow":45},"github","main","6a33a408b13c0b55ce2c7c5558e6f239e9c091b2","src\u002Ffrontend\u002Fskills\u002Fminipower-frontend-architecture-react",0,"https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower","https:\u002F\u002Fgithub.com\u002Fhoangnh2412","http:\u002F\u002Fhoangnh.com","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fhoangnh91\u002F","2026-11-09 04:22:29",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add hoangnh2412\u002Fminipower --skill minipower-frontend-architecture-react",{"tool":61,"command":62},"bunx","bunx skills add hoangnh2412\u002Fminipower --skill minipower-frontend-architecture-react",{"tool":64,"command":65},"pnpm","pnpm dlx skills add hoangnh2412\u002Fminipower --skill minipower-frontend-architecture-react","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Ffrontend\u002Fskills\u002Fminipower-frontend-architecture-react\u002FSKILL.md",true,[69,75,81,85,89,93,97],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"README.md","REFERENCE","参考文档",3197,"https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Ffrontend\u002Fskills\u002Fminipower-frontend-architecture-react\u002FREADME.md",{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"templates\u002Feslint.architecture.js","SCRIPT","脚本",4011,"https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Ffrontend\u002Fskills\u002Fminipower-frontend-architecture-react\u002Ftemplates\u002Feslint.architecture.js",{"path":82,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":83,"sourceHtmlUrl":84},"templates\u002Ffeature-tree.txt",3320,"https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Ffrontend\u002Fskills\u002Fminipower-frontend-architecture-react\u002Ftemplates\u002Ffeature-tree.txt",{"path":86,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":87,"sourceHtmlUrl":88},"templates\u002Ffeatures-index.ts",253,"https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Ffrontend\u002Fskills\u002Fminipower-frontend-architecture-react\u002Ftemplates\u002Ffeatures-index.ts",{"path":90,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":91,"sourceHtmlUrl":92},"templates\u002Findex.ts",2725,"https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Ffrontend\u002Fskills\u002Fminipower-frontend-architecture-react\u002Ftemplates\u002Findex.ts",{"path":94,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":95,"sourceHtmlUrl":96},"workflows\u002Fadd-arch-lint.md",4939,"https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Ffrontend\u002Fskills\u002Fminipower-frontend-architecture-react\u002Fworkflows\u002Fadd-arch-lint.md",{"path":98,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":99,"sourceHtmlUrl":100},"workflows\u002Fadd-feature.md",7001,"https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Ffrontend\u002Fskills\u002Fminipower-frontend-architecture-react\u002Fworkflows\u002Fadd-feature.md",[102,122,138,151,166,174],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":39},"01M6K2MXJSPKZ79031YX0HB546","minipower-vcs-gitlab","Tra GitLab (search, issue, pipeline, MR), soạn MR\u002Fcomment, tạo MR và commit\u002Fpush sau L2. Dùng khi merge request, GitLab MCP, code_provider gitlab — không scaffold .NET, không force-push.","https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Fvcs\u002Fskills\u002Fminipower-vcs-gitlab\u002FSKILL.md",[],[109,110,111,45,112,113,114,115,116,117,118,119,120,121,37],"gitlab","minipower vcs gitlab","MCP","commit","merge","scaffold","code","push","search","pipeline","issue","provider","l2",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":39},"01M6K2MQXWTZWXG7PKARYT0RNY","minipower-toolbox-skill-author","Viết và soát skill lá-rời Minipower (minipower-{module}-{capability}) — chọn module bằng 3 câu hỏi ADR-022, dựng cây SKILL.md\u002FREADME.md\u002Fworkflows\u002Fproviders, đặt description kích hoạt được, cập nhật hub và test canh. Hỏi người xác nhận trước mọi quyết định, không tự chốt. Dùng khi tạo skill mới, thêm provider\u002Fpattern\u002Fworkflow, mở module mới, hoặc soát skill có sẵn lệch chuẩn.","https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Ftoolbox\u002Fskills\u002Fminipower-toolbox-skill-author\u002FSKILL.md",[],[129,130,120,131,132,133,31,37,134,135,45,136,137],"minipower toolbox skill author","Providers","pattern","hub","README","adr","workflows","workflow","test",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":39},"01M6K2MJD0DJNJA538148044K6","minipower-tasks-lark","Đọc, lọc, tìm, soạn nháp và ghi task Lark (tasklist \u002F task) theo L1–L3. Dùng khi việc trên Lark, sprint, tasklist, \"tìm task\", \"tạo task\", tasks_provider lark — không dùng cho tin nhắn nhóm hay wiki.","https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Ftasks\u002Fskills\u002Fminipower-tasks-lark\u002FSKILL.md",[],[145,146,147,37,45,148,120,149,150],"tasks","lark","minipower tasks lark","wiki","task","sprint",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":39},"01M6K2ME2K0QBN64PQKSB2W3VX","minipower-support-registry","Rà registry DOC theo project_mode, nhắc owner thiếu ID hoặc chỗ lưu sai. Dùng khi doc-registry, thiếu DOC, rà soát tiêu chuẩn — không tự sửa FR, không init.","https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Fsupport\u002Fskills\u002Fminipower-support-registry\u002FSKILL.md",[],[158,159,160,161,45,162,163,164,37,165],"minipower support registry","registry","support","id","init","doc","project","mode",{"skillNo":167,"name":168,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":39},"01M6K2MB1B4C4AP9VCSRBAT83D","minipower-support-publish","https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Fsupport\u002Fskills\u002Fminipower-support-publish\u002FSKILL.md",[],[172,173,160],"publish","minipower support publish",{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":39},"01M6K2M4Q4N1QHA0VGD58WFJNF","minipower-router","Phân loại intent Minipower rồi gợi ý đúng một pack nghề hoặc kênh. Dùng khi làm gì tiếp, chọn skill, dispatcher, không biết mở pack nào — không tự gọi MCP L3, không spawn agent.","https:\u002F\u002Fgithub.com\u002Fhoangnh2412\u002Fminipower\u002Fblob\u002Fmain\u002Fsrc\u002Frouter\u002Fskills\u002Fminipower-router\u002FSKILL.md",[],[181,182,45,183,184,185,186,37,187,111],"minipower router","router","dispatcher","spawn","intent","spawn agent","pack"]