[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CV05ADJXWDC35YJD2S3BVN":3,"skill-same:01M7CV05ADJXWDC35YJD2S3BVN":46},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7CV05ADJXWDC35YJD2S3BVN","dashboard-tab-ui",null,"Create or modify tabbed workflows in admin or vendor dashboards in the Mercur basic starter using stable tab structure, validation scope, and i18n-aware wizard conventions.","amoai-tech\u002Fmdeai","amoai-tech","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F320616881?v=4","01M7CTJYGWP82J2HHMQC5NN9JP","amo","01M7CTJYHE5YQRGQSDJES3Z0QE",2,"MIT","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fcommerce\u002Fmercur\u002F.claude\u002Fskills\u002Fdashboard-tab-ui\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dashboard-tab-ui\ndescription: Create or modify tabbed workflows in admin or vendor dashboards in the Mercur basic starter using stable tab structure, validation scope, and i18n-aware wizard conventions.\n---\n\n# Dashboard Tab UI\n\nUse this skill when:\n- adding a custom tab to a tabbed flow in admin or vendor\n- extending a multi-step wizard\n- reviewing tab layout, validation scope, or navigation behavior\n\nApplies equally to **admin** and **vendor** dashboards.\n\nBefore introducing custom interactive UI inside a tab, apply `medusa-ui-conformance`.\n\n## Required component\n\nAlways use `TabbedForm` from `@mercurjs\u002Fdashboard-shared` — do NOT build custom tab navigation with `ProgressTabs` from `@medusajs\u002Fui` directly.\n\n## TabbedForm API\n\n`TabbedForm` handles internally: `RouteFocusModal.Form`, `ProgressTabs` in the header navbar, `KeyboundForm`, and a default footer with Cancel\u002FContinue\u002FSave.\n\n### Props\n\n- `form` — `UseFormReturn` from `react-hook-form`\n- `onSubmit` — submit handler from `form.handleSubmit()`\n- `isLoading` (optional) — disables submit button\n- `footer` (optional) — custom footer render prop; omit to use the default\n\n### TabbedForm.Tab props\n\n- `id` (string, required) — unique tab identifier\n- `label` (string, required) — display label in the tab bar\n- `validationFields` (FieldPath[], optional) — fields to validate on this tab\n- `isVisible` ((form) => boolean, optional) — dynamic tab visibility\n\n## Page structure\n\nThe create page wraps `RouteFocusModal` around the form component:\n\n```tsx\nconst CreatePage = () => (\n  \u003CRouteFocusModal>\n    \u003CCreateForm \u002F>\n  \u003C\u002FRouteFocusModal>\n);\nexport default CreatePage;\n```\n\nThe form component renders `TabbedForm` directly — do NOT nest it inside another `RouteFocusModal.Form`:\n\n```tsx\nconst CreateForm = () => {\n  const { handleSuccess } = useRouteModal();\n  const form = useForm({ resolver: zodResolver(schema), defaultValues: { ... } });\n  const handleSubmit = form.handleSubmit(async (data) => {\n    handleSuccess(\"\u002Fentity-route\");\n  });\n\n  return (\n    \u003CTabbedForm form={form} onSubmit={handleSubmit}>\n      \u003CTabbedForm.Tab id=\"general\" label=\"General\">\n        \u003Cdiv className=\"flex flex-col gap-y-4 p-8\">\n          {\u002F* Form.Field components *\u002F}\n        \u003C\u002Fdiv>\n      \u003C\u002FTabbedForm.Tab>\n    \u003C\u002FTabbedForm>\n  );\n};\n```\n\n## Known issue: validation blocks Continue\n\n`TabbedForm`'s internal `onNext` calls `form.trigger()` without arguments, which validates the **entire** form — not just the active tab's fields. Required fields on later tabs will prevent Continue from working.\n\n**Workaround:** Only mark fields as required (`.min(1)`) if they are on the first tab. Use `.optional()` for fields on later tabs and validate at submit time if needed.\n\n## Hard rules\n\n1. Do not hardcode tab labels; use i18n-aware metadata.\n2. Do not put all fields into one flat tab without section structure.\n3. Do not build custom tab UI with `ProgressTabs` directly — use `TabbedForm`.\n4. Do not wrap `TabbedForm` in `RouteFocusModal.Form` — it does this internally.\n5. Do not provide a custom `footer` unless you need to change button labels — the default footer handles Cancel\u002FContinue\u002FSave correctly.\n6. Do not add required zod validation to fields on tabs beyond the first (see known issue above).\n7. Do not break keyboard or submit behavior when adding a tab.\n8. Do not assume tabs are static if visibility depends on form state.\n\n## Preferred patterns\n\n- Give each tab a single clear purpose.\n- Keep a visible header (`Heading level=\"h2\"`) and grouped sections inside each tab body.\n- Add `className=\"p-8\"` to the wrapping div inside each `TabbedForm.Tab` for consistent spacing.\n- Use `Form.Field` \u002F `Form.Item` \u002F `Form.Label` \u002F `Form.Control` \u002F `Form.ErrorMessage` from `@mercurjs\u002Fdashboard-shared`.\n- Use `zodResolver` with `react-hook-form` for schema validation.\n\n## When to switch skills\n\n- Page shell work -> `dashboard-page-ui`\n- Form field work without wizard concerns -> `dashboard-form-ui`\n\n## Verification\n\n- confirm Continue navigates to the next tab (check that later-tab fields are not required in zod schema)\n- confirm tab labels and content are translation-ready\n- confirm dynamic visibility does not leave the flow in an invalid state\n- run app build or lint after non-trivial tab work\n","# Dashboard Tab UI\n\nUse this skill when:\n- adding a custom tab to a tabbed flow in admin or vendor\n- extending a multi-step wizard\n- reviewing tab layout, validation scope, or navigation behavior\n\nApplies equally to **admin** and **vendor** dashboards.\n\nBefore introducing custom interactive UI inside a tab, apply `medusa-ui-conformance`.\n\n## Required component\n\nAlways use `TabbedForm` from `@mercurjs\u002Fdashboard-shared` — do NOT build custom tab navigation with `ProgressTabs` from `@medusajs\u002Fui` directly.\n\n## TabbedForm API\n\n`TabbedForm` handles internally: `RouteFocusModal.Form`, `ProgressTabs` in the header navbar, `KeyboundForm`, and a default footer with Cancel\u002FContinue\u002FSave.\n\n### Props\n\n- `form` — `UseFormReturn` from `react-hook-form`\n- `onSubmit` — submit handler from `form.handleSubmit()`\n- `isLoading` (optional) — disables submit button\n- `footer` (optional) — custom footer render prop; omit to use the default\n\n### TabbedForm.Tab props\n\n- `id` (string, required) — unique tab identifier\n- `label` (string, required) — display label in the tab bar\n- `validationFields` (FieldPath[], optional) — fields to validate on this tab\n- `isVisible` ((form) => boolean, optional) — dynamic tab visibility\n\n## Page structure\n\nThe create page wraps `RouteFocusModal` around the form component:\n\n```tsx\nconst CreatePage = () => (\n  \u003CRouteFocusModal>\n    \u003CCreateForm \u002F>\n  \u003C\u002FRouteFocusModal>\n);\nexport default CreatePage;\n```\n\nThe form component renders `TabbedForm` directly — do NOT nest it inside another `RouteFocusModal.Form`:\n\n```tsx\nconst CreateForm = () => {\n  const { handleSuccess } = useRouteModal();\n  const form = useForm({ resolver: zodResolver(schema), defaultValues: { ... } });\n  const handleSubmit = form.handleSubmit(async (data) => {\n    handleSuccess(\"\u002Fentity-route\");\n  });\n\n  return (\n    \u003CTabbedForm form={form} onSubmit={handleSubmit}>\n      \u003CTabbedForm.Tab id=\"general\" label=\"General\">\n        \u003Cdiv className=\"flex flex-col gap-y-4 p-8\">\n          {\u002F* Form.Field components *\u002F}\n        \u003C\u002Fdiv>\n      \u003C\u002FTabbedForm.Tab>\n    \u003C\u002FTabbedForm>\n  );\n};\n```\n\n## Known issue: validation blocks Continue\n\n`TabbedForm`'s internal `onNext` calls `form.trigger()` without arguments, which validates the **entire** form — not just the active tab's fields. Required fields on later tabs will prevent Continue from working.\n\n**Workaround:** Only mark fields as required (`.min(1)`) if they are on the first tab. Use `.optional()` for fields on later tabs and validate at submit time if needed.\n\n## Hard rules\n\n1. Do not hardcode tab labels; use i18n-aware metadata.\n2. Do not put all fields into one flat tab without section structure.\n3. Do not build custom tab UI with `ProgressTabs` directly — use `TabbedForm`.\n4. Do not wrap `TabbedForm` in `RouteFocusModal.Form` — it does this internally.\n5. Do not provide a custom `footer` unless you need to change button labels — the default footer handles Cancel\u002FContinue\u002FSave correctly.\n6. Do not add required zod validation to fields on tabs beyond the first (see known issue above).\n7. Do not break keyboard or submit behavior when adding a tab.\n8. Do not assume tabs are static if visibility depends on form state.\n\n## Preferred patterns\n\n- Give each tab a single clear purpose.\n- Keep a visible header (`Heading level=\"h2\"`) and grouped sections inside each tab body.\n- Add `className=\"p-8\"` to the wrapping div inside each `TabbedForm.Tab` for consistent spacing.\n- Use `Form.Field` \u002F `Form.Item` \u002F `Form.Label` \u002F `Form.Control` \u002F `Form.ErrorMessage` from `@mercurjs\u002Fdashboard-shared`.\n- Use `zodResolver` with `react-hook-form` for schema validation.\n\n## When to switch skills\n\n- Page shell work -> `dashboard-page-ui`\n- Form field work without wizard concerns -> `dashboard-form-ui`\n\n## Verification\n\n- confirm Continue navigates to the next tab (check that later-tab fields are not required in zod schema)\n- confirm tab labels and content are translation-ready\n- confirm dynamic visibility does not leave the flow in an invalid state\n- run app build or lint after non-trivial tab work\n",{"name":5,"description":7},"main","9955f6a8aa5de3c14fea562c7e6b72973366ba3c","commerce\u002Fmercur\u002F.claude\u002Fskills\u002Fdashboard-tab-ui",1,"https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai","https:\u002F\u002Fmdeai-psi.vercel.app","https:\u002F\u002Fgithub.com\u002Famoai-tech","2026-11-13 03:54:16",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add amoai-tech\u002Fmdeai --skill dashboard-tab-ui",{"tool":38,"command":39},"bunx","bunx skills add amoai-tech\u002Fmdeai --skill dashboard-tab-ui",{"tool":41,"command":42},"pnpm","pnpm dlx skills add amoai-tech\u002Fmdeai --skill dashboard-tab-ui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fcommerce\u002Fmercur\u002F.claude\u002Fskills\u002Fdashboard-tab-ui\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7CV3D59CQX8N178NN3W5DEQ","mde-pr-review-supabase","Use when reviewing MDE Supabase SQL, Auth and RLS changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fsupabase\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CV39XR1SPH7C4FNXAXMM36","mde-pr-review-stripe","Use when reviewing MDE Stripe payments and webhooks changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fstripe\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CV37HHNM5A144SEX2VE05N","mde-pr-review-nextjs","Use when reviewing MDE Next.js App Router changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fnextjs\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CV34C1M5STTKHX5CGVN3VS","mde-pr-review-mastra","Use when reviewing MDE Mastra agent, tool and workflow changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fmastra\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CV31A37VPRRASAVGE8K8SN","mde-pr-review-maps","Use when reviewing MDE Google Maps and Places changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fmaps\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CV2Y70DQJ1VXFHS732CSQ4","mde-pr-review-copilotkit","Use when reviewing MDE CopilotKit and AG-UI changes in a pull request.","https:\u002F\u002Fgithub.com\u002Famoai-tech\u002Fmdeai\u002Fblob\u002Fmain\u002Fscripts\u002Fpr-agent\u002Fskills\u002Fcopilotkit\u002FSKILL.md",[],[]]