[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F2F9A605WXFM2PFXS99JD8":3,"skill-same:01M7F2F9A605WXFM2PFXS99JD8":66},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M7F2F9A605WXFM2PFXS99JD8","frontend-portal",null,"React\u002FTanStack Start frontend portal routes, API hooks, runtime configuration, and UI workflows for Open Wearables.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fopen-wearables\u002Fsub-skills\u002Ffrontend-portal\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: frontend-portal\ndescription: \"React\u002FTanStack Start frontend portal routes, API hooks, runtime\n  configuration, and UI workflows for Open Wearables.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# Frontend Portal\n\nUse this sub-skill for Open Wearables frontend work in the React\u002FTanStack Start portal: routes, protected pages, auth\u002Fsession behavior, dashboard\u002Fusers\u002Fdetail screens, device pairing, provider coverage, sync monitoring, outgoing webhooks, settings tabs, API hooks\u002Fservices\u002Fquery keys, runtime API URL configuration, styling\u002Fcomponents, and frontend test\u002Flint\u002Fbuild workflows.\n\n## Route the task\n\n- For page routing, layout, auth guards, sidebar navigation, settings tabs, user detail panels, coverage matrix, pairing flows, syncs, webhooks, and reusable UI components, read [routes-and-components.md](references\u002Froutes-and-components.md).\n- For service modules, `apiClient`, `API_ENDPOINTS`, runtime `VITE_API_URL` resolution, TanStack Query hooks, query-key invalidation, uploads, OAuth connection helpers, and SSE state, read [api-hooks-and-state.md](references\u002Fapi-hooks-and-state.md).\n- For local development commands, Node\u002Fpnpm requirements, environment variables, UI change checklists, and frontend verification commands, read [workflows.md](references\u002Fworkflows.md).\n- For symptoms and fixes around auth redirects, stale queries, runtime API URL drift, SSR hydration, provider icons, webhook enablement, sync streams, Tailwind v4, pnpm\u002FCorepack, lint, and build failures, read [troubleshooting.md](references\u002Ftroubleshooting.md).\n- Before or after frontend edits, run the safe metadata\u002Fsource checker when a checkout is available: `python skills\u002Fdisco\u002Fopen-wearables\u002Fsub-skills\u002Ffrontend-portal\u002Fscripts\u002Fcheck_frontend_metadata.py --repo-root .`. The script only reads package metadata and source text; it does not install packages, call the network, or write application files.\n\n## Boundaries\n\nThis sub-skill owns the portal-facing frontend contract. Route backend API implementation, database models, migrations, auth\u002Ftoken semantics, outgoing webhook delivery internals, and endpoint docs navigation to `backend-core`. Route provider OAuth strategy internals, coverage declarations, provider factory changes, import normalization, and provider webhook parsing to `provider-integrations`. Route MCP assistant tools and API-client behavior to `mcp-server`.\n\nWhen a UI task spans boundaries, keep the frontend changes here but hand off server-side endpoint shape, permissions, provider capability truth, and docs\u002FAPI-reference changes to the owning backend sub-skill.\n\n## Non-negotiable frontend rules\n\n- Use TanStack Router file routes and centralized route constants from `ROUTES` \u002F `DEFAULT_REDIRECTS`; do not add ad hoc path strings for new navigation.\n- Use the shared API layer: `API_ENDPOINTS`, service modules under `lib\u002Fapi\u002Fservices`, `apiClient`, and TanStack Query hooks under `hooks\u002Fapi`.\n- Do not read `import.meta.env.VITE_API_URL` directly in application code. Use `API_CONFIG.baseUrl`, which is resolved by `resolveApiUrl()` and the runtime config script.\n- Use the query-key factory in `queryKeys` for all server state and invalidate or update the exact affected keys after mutations.\n- Preserve SSR-safe auth guards: browser-only session checks must handle `typeof window === 'undefined'`.\n- Keep Tailwind CSS v4 CSS-first: design tokens live in `styles.css`; do not reintroduce a JavaScript Tailwind config.\n- Prefer existing shadcn\u002Fui primitives, common components, feature components, `sonner` toasts, and React Hook Form + Zod validation before adding one-off patterns.\n\n## Fast start for future agents\n\n1. Classify the request as a route\u002Fcomponent task, an API hook\u002Fstate task, a workflow\u002Ftooling task, or a troubleshooting task.\n2. Read the linked reference closest to that task; avoid reopening source files unless you are refreshing this generated skill or verifying drift.\n3. For new UI backed by an endpoint, define the endpoint constant, service method, query key, hook, route\u002Fcomponent usage, and mutation invalidation together.\n4. For user-facing navigation, update `ROUTES`, the TanStack route file, and sidebar\u002Fsettings tab wiring consistently.\n5. Verify with the safe metadata checker, then run `pnpm run test`, `pnpm run lint`, `pnpm run format:check`, and `pnpm run build` when dependencies are available and the task warrants it.\n","# Frontend Portal\n\nUse this sub-skill for Open Wearables frontend work in the React\u002FTanStack Start portal: routes, protected pages, auth\u002Fsession behavior, dashboard\u002Fusers\u002Fdetail screens, device pairing, provider coverage, sync monitoring, outgoing webhooks, settings tabs, API hooks\u002Fservices\u002Fquery keys, runtime API URL configuration, styling\u002Fcomponents, and frontend test\u002Flint\u002Fbuild workflows.\n\n## Route the task\n\n- For page routing, layout, auth guards, sidebar navigation, settings tabs, user detail panels, coverage matrix, pairing flows, syncs, webhooks, and reusable UI components, read [routes-and-components.md](references\u002Froutes-and-components.md).\n- For service modules, `apiClient`, `API_ENDPOINTS`, runtime `VITE_API_URL` resolution, TanStack Query hooks, query-key invalidation, uploads, OAuth connection helpers, and SSE state, read [api-hooks-and-state.md](references\u002Fapi-hooks-and-state.md).\n- For local development commands, Node\u002Fpnpm requirements, environment variables, UI change checklists, and frontend verification commands, read [workflows.md](references\u002Fworkflows.md).\n- For symptoms and fixes around auth redirects, stale queries, runtime API URL drift, SSR hydration, provider icons, webhook enablement, sync streams, Tailwind v4, pnpm\u002FCorepack, lint, and build failures, read [troubleshooting.md](references\u002Ftroubleshooting.md).\n- Before or after frontend edits, run the safe metadata\u002Fsource checker when a checkout is available: `python skills\u002Fdisco\u002Fopen-wearables\u002Fsub-skills\u002Ffrontend-portal\u002Fscripts\u002Fcheck_frontend_metadata.py --repo-root .`. The script only reads package metadata and source text; it does not install packages, call the network, or write application files.\n\n## Boundaries\n\nThis sub-skill owns the portal-facing frontend contract. Route backend API implementation, database models, migrations, auth\u002Ftoken semantics, outgoing webhook delivery internals, and endpoint docs navigation to `backend-core`. Route provider OAuth strategy internals, coverage declarations, provider factory changes, import normalization, and provider webhook parsing to `provider-integrations`. Route MCP assistant tools and API-client behavior to `mcp-server`.\n\nWhen a UI task spans boundaries, keep the frontend changes here but hand off server-side endpoint shape, permissions, provider capability truth, and docs\u002FAPI-reference changes to the owning backend sub-skill.\n\n## Non-negotiable frontend rules\n\n- Use TanStack Router file routes and centralized route constants from `ROUTES` \u002F `DEFAULT_REDIRECTS`; do not add ad hoc path strings for new navigation.\n- Use the shared API layer: `API_ENDPOINTS`, service modules under `lib\u002Fapi\u002Fservices`, `apiClient`, and TanStack Query hooks under `hooks\u002Fapi`.\n- Do not read `import.meta.env.VITE_API_URL` directly in application code. Use `API_CONFIG.baseUrl`, which is resolved by `resolveApiUrl()` and the runtime config script.\n- Use the query-key factory in `queryKeys` for all server state and invalidate or update the exact affected keys after mutations.\n- Preserve SSR-safe auth guards: browser-only session checks must handle `typeof window === 'undefined'`.\n- Keep Tailwind CSS v4 CSS-first: design tokens live in `styles.css`; do not reintroduce a JavaScript Tailwind config.\n- Prefer existing shadcn\u002Fui primitives, common components, feature components, `sonner` toasts, and React Hook Form + Zod validation before adding one-off patterns.\n\n## Fast start for future agents\n\n1. Classify the request as a route\u002Fcomponent task, an API hook\u002Fstate task, a workflow\u002Ftooling task, or a troubleshooting task.\n2. Read the linked reference closest to that task; avoid reopening source files unless you are refreshing this generated skill or verifying drift.\n3. For new UI backed by an endpoint, define the endpoint constant, service method, query key, hook, route\u002Fcomponent usage, and mutation invalidation together.\n4. For user-facing navigation, update `ROUTES`, the TanStack route file, and sidebar\u002Fsettings tab wiring consistently.\n5. Verify with the safe metadata checker, then run `pnpm run test`, `pnpm run lint`, `pnpm run format:check`, and `pnpm run build` when dependencies are available and the task warrants it.\n",{"name":5,"license":15,"metadata":24,"description":7,"disable-model-invocation":26},{"disco-role":25},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fopen-wearables\u002Fsub-skills\u002Ffrontend-portal",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":26},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill frontend-portal",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill frontend-portal",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill frontend-portal","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fopen-wearables\u002Fsub-skills\u002Ffrontend-portal\u002FSKILL.md",[48,54,58,62],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fapi-hooks-and-state.md","REFERENCE","参考文档",12548,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fopen-wearables\u002Fsub-skills\u002Ffrontend-portal\u002Freferences\u002Fapi-hooks-and-state.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Froutes-and-components.md",11516,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fopen-wearables\u002Fsub-skills\u002Ffrontend-portal\u002Freferences\u002Froutes-and-components.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Ftroubleshooting.md",11904,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fopen-wearables\u002Fsub-skills\u002Ffrontend-portal\u002Freferences\u002Ftroubleshooting.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fworkflows.md",10125,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fopen-wearables\u002Fsub-skills\u002Ffrontend-portal\u002Freferences\u002Fworkflows.md",[67,74,79,86,93,100],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":75,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]