[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DXK2RRB57C772ZD5WPY60V":3,"skill-same:01M6DXK2RRB57C772ZD5WPY60V":143},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":14,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6DXK2RRB57C772ZD5WPY60V","frontend-dev-guidelines",null,"Frontend development guidelines for React\u002FTypeScript applications. Modern patterns including Suspense, lazy loading, useSuspenseQuery, file organization with features directory, MUI v7 styling, TanStack Router, performance optimization, and TypeScript best practices. Use when creating components, pages, features, fetching data, styling, routing, or working with frontend code.","EthanSheehan\u002FGrid-Sentinel","EthanSheehan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F174215275?v=4","01M6DX9589ENESB2AYW9YK4Y50","Ethan Sheehan","01M6DX95P06JXASASFQZRFQ1NM",0,"MIT","https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Ffrontend-dev-guidelines\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000009","前端开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"guidelines","dev","frontend","frontend dev guidelines","file","pages","organization","tanstack router","router","use","performance optimization","applications","Optimization","best practices","code","routing","development","react","components","performance","2026-11-10 10:12:30",false,"---\nname: frontend-dev-guidelines\ndescription: Frontend development guidelines for React\u002FTypeScript applications. Modern patterns including Suspense, lazy loading, useSuspenseQuery, file organization with features directory, MUI v7 styling, TanStack Router, performance optimization, and TypeScript best practices. Use when creating components, pages, features, fetching data, styling, routing, or working with frontend code.\n---\n\n# Frontend Development Guidelines\n\n## Purpose\n\nComprehensive guide for modern React development, emphasizing Suspense-based data fetching, lazy loading, proper file organization, and performance optimization.\n\n## When to Use This Skill\n\n- Creating new components or pages\n- Building new features\n- Fetching data with TanStack Query\n- Setting up routing with TanStack Router\n- Styling components with MUI v7\n- Performance optimization\n- Organizing frontend code\n- TypeScript best practices\n\n---\n\n## Quick Start\n\n### New Component Checklist\n\nCreating a component? Follow this checklist:\n\n- [ ] Use `React.FC\u003CProps>` pattern with TypeScript\n- [ ] Lazy load if heavy component: `React.lazy(() => import())`\n- [ ] Wrap in `\u003CSuspenseLoader>` for loading states\n- [ ] Use `useSuspenseQuery` for data fetching\n- [ ] Import aliases: `@\u002F`, `~types`, `~components`, `~features`\n- [ ] Styles: Inline if \u003C100 lines, separate file if >100 lines\n- [ ] Use `useCallback` for event handlers passed to children\n- [ ] Default export at bottom\n- [ ] No early returns with loading spinners\n- [ ] Use `useMuiSnackbar` for user notifications\n\n### New Feature Checklist\n\nCreating a feature? Set up this structure:\n\n- [ ] Create `features\u002F{feature-name}\u002F` directory\n- [ ] Create subdirectories: `api\u002F`, `components\u002F`, `hooks\u002F`, `helpers\u002F`, `types\u002F`\n- [ ] Create API service file: `api\u002F{feature}Api.ts`\n- [ ] Set up TypeScript types in `types\u002F`\n- [ ] Create route in `routes\u002F{feature-name}\u002Findex.tsx`\n- [ ] Lazy load feature components\n- [ ] Use Suspense boundaries\n- [ ] Export public API from feature `index.ts`\n\n---\n\n## Import Aliases Quick Reference\n\n| Alias | Resolves To | Example |\n|-------|-------------|---------|\n| `@\u002F` | `src\u002F` | `import { apiClient } from '@\u002Flib\u002FapiClient'` |\n| `~types` | `src\u002Ftypes` | `import type { User } from '~types\u002Fuser'` |\n| `~components` | `src\u002Fcomponents` | `import { SuspenseLoader } from '~components\u002FSuspenseLoader'` |\n| `~features` | `src\u002Ffeatures` | `import { authApi } from '~features\u002Fauth'` |\n\nDefined in: [vite.config.ts](..\u002F..\u002Fvite.config.ts) lines 180-185\n\n---\n\n## Common Imports Cheatsheet\n\n```typescript\n\u002F\u002F React & Lazy Loading\nimport React, { useState, useCallback, useMemo } from 'react';\nconst Heavy = React.lazy(() => import('.\u002FHeavy'));\n\n\u002F\u002F MUI Components\nimport { Box, Paper, Typography, Button, Grid } from '@mui\u002Fmaterial';\nimport type { SxProps, Theme } from '@mui\u002Fmaterial';\n\n\u002F\u002F TanStack Query (Suspense)\nimport { useSuspenseQuery, useQueryClient } from '@tanstack\u002Freact-query';\n\n\u002F\u002F TanStack Router\nimport { createFileRoute } from '@tanstack\u002Freact-router';\n\n\u002F\u002F Project Components\nimport { SuspenseLoader } from '~components\u002FSuspenseLoader';\n\n\u002F\u002F Hooks\nimport { useAuth } from '@\u002Fhooks\u002FuseAuth';\nimport { useMuiSnackbar } from '@\u002Fhooks\u002FuseMuiSnackbar';\n\n\u002F\u002F Types\nimport type { Post } from '~types\u002Fpost';\n```\n\n---\n\n## Topic Guides\n\n### ? Component Patterns\n\n**Modern React components use:**\n- `React.FC\u003CProps>` for type safety\n- `React.lazy()` for code splitting\n- `SuspenseLoader` for loading states\n- Named const + default export pattern\n\n**Key Concepts:**\n- Lazy load heavy components (DataGrid, charts, editors)\n- Always wrap lazy components in Suspense\n- Use SuspenseLoader component (with fade animation)\n- Component structure: Props → Hooks → Handlers → Render → Export\n\n**[? Complete Guide: resources\u002Fcomponent-patterns.md](resources\u002Fcomponent-patterns.md)**\n\n---\n\n### ? Data Fetching\n\n**PRIMARY PATTERN: useSuspenseQuery**\n- Use with Suspense boundaries\n- Cache-first strategy (check grid cache before API)\n- Replaces `isLoading` checks\n- Type-safe with generics\n\n**API Service Layer:**\n- Create `features\u002F{feature}\u002Fapi\u002F{feature}Api.ts`\n- Use `apiClient` axios instance\n- Centralized methods per feature\n- Route format: `\u002Fform\u002Froute` (NOT `\u002Fapi\u002Fform\u002Froute`)\n\n**[? Complete Guide: resources\u002Fdata-fetching.md](resources\u002Fdata-fetching.md)**\n\n---\n\n### ? File Organization\n\n**features\u002F vs components\u002F:**\n- `features\u002F`: Domain-specific (posts, comments, auth)\n- `components\u002F`: Truly reusable (SuspenseLoader, CustomAppBar)\n\n**Feature Subdirectories:**\n```\nfeatures\u002F\n  my-feature\u002F\n    api\u002F          # API service layer\n    components\u002F   # Feature components\n    hooks\u002F        # Custom hooks\n    helpers\u002F      # Utility functions\n    types\u002F        # TypeScript types\n```\n\n**[? Complete Guide: resources\u002Ffile-organization.md](resources\u002Ffile-organization.md)**\n\n---\n\n### ? Styling\n\n**Inline vs Separate:**\n- \u003C100 lines: Inline `const styles: Record\u003Cstring, SxProps\u003CTheme>>`\n- >100 lines: Separate `.styles.ts` file\n\n**Primary Method:**\n- Use `sx` prop for MUI components\n- Type-safe with `SxProps\u003CTheme>`\n- Theme access: `(theme) => theme.palette.primary.main`\n\n**MUI v7 Grid:**\n```typescript\n\u003CGrid size={{ xs: 12, md: 6 }}>  \u002F\u002F ✅ v7 syntax\n\u003CGrid xs={12} md={6}>             \u002F\u002F ❌ Old syntax\n```\n\n**[? Complete Guide: resources\u002Fstyling-guide.md](resources\u002Fstyling-guide.md)**\n\n---\n\n### ?️ Routing\n\n**TanStack Router - Folder-Based:**\n- Directory: `routes\u002Fmy-route\u002Findex.tsx`\n- Lazy load components\n- Use `createFileRoute`\n- Breadcrumb data in loader\n\n**Example:**\n```typescript\nimport { createFileRoute } from '@tanstack\u002Freact-router';\nimport { lazy } from 'react';\n\nconst MyPage = lazy(() => import('@\u002Ffeatures\u002Fmy-feature\u002Fcomponents\u002FMyPage'));\n\nexport const Route = createFileRoute('\u002Fmy-route\u002F')({\n    component: MyPage,\n    loader: () => ({ crumb: 'My Route' }),\n});\n```\n\n**[? Complete Guide: resources\u002Frouting-guide.md](resources\u002Frouting-guide.md)**\n\n---\n\n### ⏳ Loading & Error States\n\n**CRITICAL RULE: No Early Returns**\n\n```typescript\n\u002F\u002F ❌ NEVER - Causes layout shift\nif (isLoading) {\n    return \u003CLoadingSpinner \u002F>;\n}\n\n\u002F\u002F ✅ ALWAYS - Consistent layout\n\u003CSuspenseLoader>\n    \u003CContent \u002F>\n\u003C\u002FSuspenseLoader>\n```\n\n**Why:** Prevents Cumulative Layout Shift (CLS), better UX\n\n**Error Handling:**\n- Use `useMuiSnackbar` for user feedback\n- NEVER `react-toastify`\n- TanStack Query `onError` callbacks\n\n**[? Complete Guide: resources\u002Floading-and-error-states.md](resources\u002Floading-and-error-states.md)**\n\n---\n\n### ⚡ Performance\n\n**Optimization Patterns:**\n- `useMemo`: Expensive computations (filter, sort, map)\n- `useCallback`: Event handlers passed to children\n- `React.memo`: Expensive components\n- Debounced search (300-500ms)\n- Memory leak prevention (cleanup in useEffect)\n\n**[? Complete Guide: resources\u002Fperformance.md](resources\u002Fperformance.md)**\n\n---\n\n### ? TypeScript\n\n**Standards:**\n- Strict mode, no `any` type\n- Explicit return types on functions\n- Type imports: `import type { User } from '~types\u002Fuser'`\n- Component prop interfaces with JSDoc\n\n**[? Complete Guide: resources\u002Ftypescript-standards.md](resources\u002Ftypescript-standards.md)**\n\n---\n\n### ? Common Patterns\n\n**Covered Topics:**\n- React Hook Form with Zod validation\n- DataGrid wrapper contracts\n- Dialog component standards\n- `useAuth` hook for current user\n- Mutation patterns with cache invalidation\n\n**[? Complete Guide: resources\u002Fcommon-patterns.md](resources\u002Fcommon-patterns.md)**\n\n---\n\n### ? Complete Examples\n\n**Full working examples:**\n- Modern component with all patterns\n- Complete feature structure\n- API service layer\n- Route with lazy loading\n- Suspense + useSuspenseQuery\n- Form with validation\n\n**[? Complete Guide: resources\u002Fcomplete-examples.md](resources\u002Fcomplete-examples.md)**\n\n---\n\n## Navigation Guide\n\n| Need to... | Read this resource |\n|------------|-------------------|\n| Create a component | [component-patterns.md](resources\u002Fcomponent-patterns.md) |\n| Fetch data | [data-fetching.md](resources\u002Fdata-fetching.md) |\n| Organize files\u002Ffolders | [file-organization.md](resources\u002Ffile-organization.md) |\n| Style components | [styling-guide.md](resources\u002Fstyling-guide.md) |\n| Set up routing | [routing-guide.md](resources\u002Frouting-guide.md) |\n| Handle loading\u002Ferrors | [loading-and-error-states.md](resources\u002Floading-and-error-states.md) |\n| Optimize performance | [performance.md](resources\u002Fperformance.md) |\n| TypeScript types | [typescript-standards.md](resources\u002Ftypescript-standards.md) |\n| Forms\u002FAuth\u002FDataGrid | [common-patterns.md](resources\u002Fcommon-patterns.md) |\n| See full examples | [complete-examples.md](resources\u002Fcomplete-examples.md) |\n\n---\n\n## Core Principles\n\n1. **Lazy Load Everything Heavy**: Routes, DataGrid, charts, editors\n2. **Suspense for Loading**: Use SuspenseLoader, not early returns\n3. **useSuspenseQuery**: Primary data fetching pattern for new code\n4. **Features are Organized**: api\u002F, components\u002F, hooks\u002F, helpers\u002F subdirs\n5. **Styles Based on Size**: \u003C100 inline, >100 separate\n6. **Import Aliases**: Use @\u002F, ~types, ~components, ~features\n7. **No Early Returns**: Prevents layout shift\n8. **useMuiSnackbar**: For all user notifications\n\n---\n\n## Quick Reference: File Structure\n\n```\nsrc\u002F\n  features\u002F\n    my-feature\u002F\n      api\u002F\n        myFeatureApi.ts       # API service\n      components\u002F\n        MyFeature.tsx         # Main component\n        SubComponent.tsx      # Related components\n      hooks\u002F\n        useMyFeature.ts       # Custom hooks\n        useSuspenseMyFeature.ts  # Suspense hooks\n      helpers\u002F\n        myFeatureHelpers.ts   # Utilities\n      types\u002F\n        index.ts              # TypeScript types\n      index.ts                # Public exports\n\n  components\u002F\n    SuspenseLoader\u002F\n      SuspenseLoader.tsx      # Reusable loader\n    CustomAppBar\u002F\n      CustomAppBar.tsx        # Reusable app bar\n\n  routes\u002F\n    my-route\u002F\n      index.tsx               # Route component\n      create\u002F\n        index.tsx             # Nested route\n```\n\n---\n\n## Modern Component Template (Quick Copy)\n\n```typescript\nimport React, { useState, useCallback } from 'react';\nimport { Box, Paper } from '@mui\u002Fmaterial';\nimport { useSuspenseQuery } from '@tanstack\u002Freact-query';\nimport { featureApi } from '..\u002Fapi\u002FfeatureApi';\nimport type { FeatureData } from '~types\u002Ffeature';\n\ninterface MyComponentProps {\n    id: number;\n    onAction?: () => void;\n}\n\nexport const MyComponent: React.FC\u003CMyComponentProps> = ({ id, onAction }) => {\n    const [state, setState] = useState\u003Cstring>('');\n\n    const { data } = useSuspenseQuery({\n        queryKey: ['feature', id],\n        queryFn: () => featureApi.getFeature(id),\n    });\n\n    const handleAction = useCallback(() => {\n        setState('updated');\n        onAction?.();\n    }, [onAction]);\n\n    return (\n        \u003CBox sx={{ p: 2 }}>\n            \u003CPaper sx={{ p: 3 }}>\n                {\u002F* Content *\u002F}\n            \u003C\u002FPaper>\n        \u003C\u002FBox>\n    );\n};\n\nexport default MyComponent;\n```\n\nFor complete examples, see [resources\u002Fcomplete-examples.md](resources\u002Fcomplete-examples.md)\n\n---\n\n## Related Skills\n\n- **error-tracking**: Error tracking with Sentry (applies to frontend too)\n- **backend-dev-guidelines**: Backend API patterns that frontend consumes\n\n---\n\n**Skill Status**: Modular structure with progressive loading for optimal context management","# Frontend Development Guidelines\n\n## Purpose\n\nComprehensive guide for modern React development, emphasizing Suspense-based data fetching, lazy loading, proper file organization, and performance optimization.\n\n## When to Use This Skill\n\n- Creating new components or pages\n- Building new features\n- Fetching data with TanStack Query\n- Setting up routing with TanStack Router\n- Styling components with MUI v7\n- Performance optimization\n- Organizing frontend code\n- TypeScript best practices\n\n---\n\n## Quick Start\n\n### New Component Checklist\n\nCreating a component? Follow this checklist:\n\n- [ ] Use `React.FC\u003CProps>` pattern with TypeScript\n- [ ] Lazy load if heavy component: `React.lazy(() => import())`\n- [ ] Wrap in `\u003CSuspenseLoader>` for loading states\n- [ ] Use `useSuspenseQuery` for data fetching\n- [ ] Import aliases: `@\u002F`, `~types`, `~components`, `~features`\n- [ ] Styles: Inline if \u003C100 lines, separate file if >100 lines\n- [ ] Use `useCallback` for event handlers passed to children\n- [ ] Default export at bottom\n- [ ] No early returns with loading spinners\n- [ ] Use `useMuiSnackbar` for user notifications\n\n### New Feature Checklist\n\nCreating a feature? Set up this structure:\n\n- [ ] Create `features\u002F{feature-name}\u002F` directory\n- [ ] Create subdirectories: `api\u002F`, `components\u002F`, `hooks\u002F`, `helpers\u002F`, `types\u002F`\n- [ ] Create API service file: `api\u002F{feature}Api.ts`\n- [ ] Set up TypeScript types in `types\u002F`\n- [ ] Create route in `routes\u002F{feature-name}\u002Findex.tsx`\n- [ ] Lazy load feature components\n- [ ] Use Suspense boundaries\n- [ ] Export public API from feature `index.ts`\n\n---\n\n## Import Aliases Quick Reference\n\n| Alias | Resolves To | Example |\n|-------|-------------|---------|\n| `@\u002F` | `src\u002F` | `import { apiClient } from '@\u002Flib\u002FapiClient'` |\n| `~types` | `src\u002Ftypes` | `import type { User } from '~types\u002Fuser'` |\n| `~components` | `src\u002Fcomponents` | `import { SuspenseLoader } from '~components\u002FSuspenseLoader'` |\n| `~features` | `src\u002Ffeatures` | `import { authApi } from '~features\u002Fauth'` |\n\nDefined in: [vite.config.ts](..\u002F..\u002Fvite.config.ts) lines 180-185\n\n---\n\n## Common Imports Cheatsheet\n\n```typescript\n\u002F\u002F React & Lazy Loading\nimport React, { useState, useCallback, useMemo } from 'react';\nconst Heavy = React.lazy(() => import('.\u002FHeavy'));\n\n\u002F\u002F MUI Components\nimport { Box, Paper, Typography, Button, Grid } from '@mui\u002Fmaterial';\nimport type { SxProps, Theme } from '@mui\u002Fmaterial';\n\n\u002F\u002F TanStack Query (Suspense)\nimport { useSuspenseQuery, useQueryClient } from '@tanstack\u002Freact-query';\n\n\u002F\u002F TanStack Router\nimport { createFileRoute } from '@tanstack\u002Freact-router';\n\n\u002F\u002F Project Components\nimport { SuspenseLoader } from '~components\u002FSuspenseLoader';\n\n\u002F\u002F Hooks\nimport { useAuth } from '@\u002Fhooks\u002FuseAuth';\nimport { useMuiSnackbar } from '@\u002Fhooks\u002FuseMuiSnackbar';\n\n\u002F\u002F Types\nimport type { Post } from '~types\u002Fpost';\n```\n\n---\n\n## Topic Guides\n\n### ? Component Patterns\n\n**Modern React components use:**\n- `React.FC\u003CProps>` for type safety\n- `React.lazy()` for code splitting\n- `SuspenseLoader` for loading states\n- Named const + default export pattern\n\n**Key Concepts:**\n- Lazy load heavy components (DataGrid, charts, editors)\n- Always wrap lazy components in Suspense\n- Use SuspenseLoader component (with fade animation)\n- Component structure: Props → Hooks → Handlers → Render → Export\n\n**[? Complete Guide: resources\u002Fcomponent-patterns.md](resources\u002Fcomponent-patterns.md)**\n\n---\n\n### ? Data Fetching\n\n**PRIMARY PATTERN: useSuspenseQuery**\n- Use with Suspense boundaries\n- Cache-first strategy (check grid cache before API)\n- Replaces `isLoading` checks\n- Type-safe with generics\n\n**API Service Layer:**\n- Create `features\u002F{feature}\u002Fapi\u002F{feature}Api.ts`\n- Use `apiClient` axios instance\n- Centralized methods per feature\n- Route format: `\u002Fform\u002Froute` (NOT `\u002Fapi\u002Fform\u002Froute`)\n\n**[? Complete Guide: resources\u002Fdata-fetching.md](resources\u002Fdata-fetching.md)**\n\n---\n\n### ? File Organization\n\n**features\u002F vs components\u002F:**\n- `features\u002F`: Domain-specific (posts, comments, auth)\n- `components\u002F`: Truly reusable (SuspenseLoader, CustomAppBar)\n\n**Feature Subdirectories:**\n```\nfeatures\u002F\n  my-feature\u002F\n    api\u002F          # API service layer\n    components\u002F   # Feature components\n    hooks\u002F        # Custom hooks\n    helpers\u002F      # Utility functions\n    types\u002F        # TypeScript types\n```\n\n**[? Complete Guide: resources\u002Ffile-organization.md](resources\u002Ffile-organization.md)**\n\n---\n\n### ? Styling\n\n**Inline vs Separate:**\n- \u003C100 lines: Inline `const styles: Record\u003Cstring, SxProps\u003CTheme>>`\n- >100 lines: Separate `.styles.ts` file\n\n**Primary Method:**\n- Use `sx` prop for MUI components\n- Type-safe with `SxProps\u003CTheme>`\n- Theme access: `(theme) => theme.palette.primary.main`\n\n**MUI v7 Grid:**\n```typescript\n\u003CGrid size={{ xs: 12, md: 6 }}>  \u002F\u002F ✅ v7 syntax\n\u003CGrid xs={12} md={6}>             \u002F\u002F ❌ Old syntax\n```\n\n**[? Complete Guide: resources\u002Fstyling-guide.md](resources\u002Fstyling-guide.md)**\n\n---\n\n### ?️ Routing\n\n**TanStack Router - Folder-Based:**\n- Directory: `routes\u002Fmy-route\u002Findex.tsx`\n- Lazy load components\n- Use `createFileRoute`\n- Breadcrumb data in loader\n\n**Example:**\n```typescript\nimport { createFileRoute } from '@tanstack\u002Freact-router';\nimport { lazy } from 'react';\n\nconst MyPage = lazy(() => import('@\u002Ffeatures\u002Fmy-feature\u002Fcomponents\u002FMyPage'));\n\nexport const Route = createFileRoute('\u002Fmy-route\u002F')({\n    component: MyPage,\n    loader: () => ({ crumb: 'My Route' }),\n});\n```\n\n**[? Complete Guide: resources\u002Frouting-guide.md](resources\u002Frouting-guide.md)**\n\n---\n\n### ⏳ Loading & Error States\n\n**CRITICAL RULE: No Early Returns**\n\n```typescript\n\u002F\u002F ❌ NEVER - Causes layout shift\nif (isLoading) {\n    return \u003CLoadingSpinner \u002F>;\n}\n\n\u002F\u002F ✅ ALWAYS - Consistent layout\n\u003CSuspenseLoader>\n    \u003CContent \u002F>\n\u003C\u002FSuspenseLoader>\n```\n\n**Why:** Prevents Cumulative Layout Shift (CLS), better UX\n\n**Error Handling:**\n- Use `useMuiSnackbar` for user feedback\n- NEVER `react-toastify`\n- TanStack Query `onError` callbacks\n\n**[? Complete Guide: resources\u002Floading-and-error-states.md](resources\u002Floading-and-error-states.md)**\n\n---\n\n### ⚡ Performance\n\n**Optimization Patterns:**\n- `useMemo`: Expensive computations (filter, sort, map)\n- `useCallback`: Event handlers passed to children\n- `React.memo`: Expensive components\n- Debounced search (300-500ms)\n- Memory leak prevention (cleanup in useEffect)\n\n**[? Complete Guide: resources\u002Fperformance.md](resources\u002Fperformance.md)**\n\n---\n\n### ? TypeScript\n\n**Standards:**\n- Strict mode, no `any` type\n- Explicit return types on functions\n- Type imports: `import type { User } from '~types\u002Fuser'`\n- Component prop interfaces with JSDoc\n\n**[? Complete Guide: resources\u002Ftypescript-standards.md](resources\u002Ftypescript-standards.md)**\n\n---\n\n### ? Common Patterns\n\n**Covered Topics:**\n- React Hook Form with Zod validation\n- DataGrid wrapper contracts\n- Dialog component standards\n- `useAuth` hook for current user\n- Mutation patterns with cache invalidation\n\n**[? Complete Guide: resources\u002Fcommon-patterns.md](resources\u002Fcommon-patterns.md)**\n\n---\n\n### ? Complete Examples\n\n**Full working examples:**\n- Modern component with all patterns\n- Complete feature structure\n- API service layer\n- Route with lazy loading\n- Suspense + useSuspenseQuery\n- Form with validation\n\n**[? Complete Guide: resources\u002Fcomplete-examples.md](resources\u002Fcomplete-examples.md)**\n\n---\n\n## Navigation Guide\n\n| Need to... | Read this resource |\n|------------|-------------------|\n| Create a component | [component-patterns.md](resources\u002Fcomponent-patterns.md) |\n| Fetch data | [data-fetching.md](resources\u002Fdata-fetching.md) |\n| Organize files\u002Ffolders | [file-organization.md](resources\u002Ffile-organization.md) |\n| Style components | [styling-guide.md](resources\u002Fstyling-guide.md) |\n| Set up routing | [routing-guide.md](resources\u002Frouting-guide.md) |\n| Handle loading\u002Ferrors | [loading-and-error-states.md](resources\u002Floading-and-error-states.md) |\n| Optimize performance | [performance.md](resources\u002Fperformance.md) |\n| TypeScript types | [typescript-standards.md](resources\u002Ftypescript-standards.md) |\n| Forms\u002FAuth\u002FDataGrid | [common-patterns.md](resources\u002Fcommon-patterns.md) |\n| See full examples | [complete-examples.md](resources\u002Fcomplete-examples.md) |\n\n---\n\n## Core Principles\n\n1. **Lazy Load Everything Heavy**: Routes, DataGrid, charts, editors\n2. **Suspense for Loading**: Use SuspenseLoader, not early returns\n3. **useSuspenseQuery**: Primary data fetching pattern for new code\n4. **Features are Organized**: api\u002F, components\u002F, hooks\u002F, helpers\u002F subdirs\n5. **Styles Based on Size**: \u003C100 inline, >100 separate\n6. **Import Aliases**: Use @\u002F, ~types, ~components, ~features\n7. **No Early Returns**: Prevents layout shift\n8. **useMuiSnackbar**: For all user notifications\n\n---\n\n## Quick Reference: File Structure\n\n```\nsrc\u002F\n  features\u002F\n    my-feature\u002F\n      api\u002F\n        myFeatureApi.ts       # API service\n      components\u002F\n        MyFeature.tsx         # Main component\n        SubComponent.tsx      # Related components\n      hooks\u002F\n        useMyFeature.ts       # Custom hooks\n        useSuspenseMyFeature.ts  # Suspense hooks\n      helpers\u002F\n        myFeatureHelpers.ts   # Utilities\n      types\u002F\n        index.ts              # TypeScript types\n      index.ts                # Public exports\n\n  components\u002F\n    SuspenseLoader\u002F\n      SuspenseLoader.tsx      # Reusable loader\n    CustomAppBar\u002F\n      CustomAppBar.tsx        # Reusable app bar\n\n  routes\u002F\n    my-route\u002F\n      index.tsx               # Route component\n      create\u002F\n        index.tsx             # Nested route\n```\n\n---\n\n## Modern Component Template (Quick Copy)\n\n```typescript\nimport React, { useState, useCallback } from 'react';\nimport { Box, Paper } from '@mui\u002Fmaterial';\nimport { useSuspenseQuery } from '@tanstack\u002Freact-query';\nimport { featureApi } from '..\u002Fapi\u002FfeatureApi';\nimport type { FeatureData } from '~types\u002Ffeature';\n\ninterface MyComponentProps {\n    id: number;\n    onAction?: () => void;\n}\n\nexport const MyComponent: React.FC\u003CMyComponentProps> = ({ id, onAction }) => {\n    const [state, setState] = useState\u003Cstring>('');\n\n    const { data } = useSuspenseQuery({\n        queryKey: ['feature', id],\n        queryFn: () => featureApi.getFeature(id),\n    });\n\n    const handleAction = useCallback(() => {\n        setState('updated');\n        onAction?.();\n    }, [onAction]);\n\n    return (\n        \u003CBox sx={{ p: 2 }}>\n            \u003CPaper sx={{ p: 3 }}>\n                {\u002F* Content *\u002F}\n            \u003C\u002FPaper>\n        \u003C\u002FBox>\n    );\n};\n\nexport default MyComponent;\n```\n\nFor complete examples, see [resources\u002Fcomplete-examples.md](resources\u002Fcomplete-examples.md)\n\n---\n\n## Related Skills\n\n- **error-tracking**: Error tracking with Sentry (applies to frontend too)\n- **backend-dev-guidelines**: Backend API patterns that frontend consumes\n\n---\n\n**Skill Status**: Modular structure with progressive loading for optimal context management",{"name":5,"description":7},"main","33d99efaac9ea5758fc27120b467eca96ad020d9",".agent\u002Fskills\u002Ffrontend-dev-guidelines","https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel","https:\u002F\u002Fgithub.com\u002FEthanSheehan","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fethan-sheehan\u002F","Aerospace Engineering Student at the University of Bristol \u002F\u002F Propulsion Lead at HyPower Bristol","2026-05-22 21:19:23",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add EthanSheehan\u002FGrid-Sentinel --skill frontend-dev-guidelines",{"tool":63,"command":64},"bunx","bunx skills add EthanSheehan\u002FGrid-Sentinel --skill frontend-dev-guidelines",{"tool":66,"command":67},"pnpm","pnpm dlx skills add EthanSheehan\u002FGrid-Sentinel --skill frontend-dev-guidelines","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Ffrontend-dev-guidelines\u002FSKILL.md",true,[71,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,139],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"agents\u002Fdistillate-compressor.md","REFERENCE","参考文档",4951,"https:\u002F\u002Fgithub.com\u002Fvladtara\u002Fhealthcabinet\u002Fblob\u002Fmaster\u002F_bmad\u002Fcore\u002Fbmad-distillator\u002Fagents\u002Fdistillate-compressor.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"agents\u002Fround-trip-reconstructor.md",2802,"https:\u002F\u002Fgithub.com\u002Fvladtara\u002Fhealthcabinet\u002Fblob\u002Fmaster\u002F_bmad\u002Fcore\u002Fbmad-distillator\u002Fagents\u002Fround-trip-reconstructor.md",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"resources\u002Fcommon-patterns.md",8369,"https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Ffrontend-dev-guidelines\u002Fresources\u002Fcommon-patterns.md",{"path":86,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":87,"sourceHtmlUrl":88},"resources\u002Fcomplete-examples.md",24524,"https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Ffrontend-dev-guidelines\u002Fresources\u002Fcomplete-examples.md",{"path":90,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":91,"sourceHtmlUrl":92},"resources\u002Fcomponent-patterns.md",10804,"https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Ffrontend-dev-guidelines\u002Fresources\u002Fcomponent-patterns.md",{"path":94,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":95,"sourceHtmlUrl":96},"resources\u002Fcompression-rules.md",2662,"https:\u002F\u002Fgithub.com\u002Fvladtara\u002Fhealthcabinet\u002Fblob\u002Fmaster\u002F_bmad\u002Fcore\u002Fbmad-distillator\u002Fresources\u002Fcompression-rules.md",{"path":98,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":99,"sourceHtmlUrl":100},"resources\u002Fdata-fetching.md",19817,"https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Ffrontend-dev-guidelines\u002Fresources\u002Fdata-fetching.md",{"path":102,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":103,"sourceHtmlUrl":104},"resources\u002Fdistillate-format-reference.md",11874,"https:\u002F\u002Fgithub.com\u002Fvladtara\u002Fhealthcabinet\u002Fblob\u002Fmaster\u002F_bmad\u002Fcore\u002Fbmad-distillator\u002Fresources\u002Fdistillate-format-reference.md",{"path":106,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":107,"sourceHtmlUrl":108},"resources\u002Ffile-organization.md",11871,"https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Ffrontend-dev-guidelines\u002Fresources\u002Ffile-organization.md",{"path":110,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":111,"sourceHtmlUrl":112},"resources\u002Floading-and-error-states.md",12036,"https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Ffrontend-dev-guidelines\u002Fresources\u002Floading-and-error-states.md",{"path":114,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":115,"sourceHtmlUrl":116},"resources\u002Fperformance.md",9639,"https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Ffrontend-dev-guidelines\u002Fresources\u002Fperformance.md",{"path":118,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":119,"sourceHtmlUrl":120},"resources\u002Frouting-guide.md",7193,"https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Ffrontend-dev-guidelines\u002Fresources\u002Frouting-guide.md",{"path":122,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":123,"sourceHtmlUrl":124},"resources\u002Fsplitting-strategy.md",3337,"https:\u002F\u002Fgithub.com\u002Fvladtara\u002Fhealthcabinet\u002Fblob\u002Fmaster\u002F_bmad\u002Fcore\u002Fbmad-distillator\u002Fresources\u002Fsplitting-strategy.md",{"path":126,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":127,"sourceHtmlUrl":128},"resources\u002Fstyling-guide.md",7905,"https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Ffrontend-dev-guidelines\u002Fresources\u002Fstyling-guide.md",{"path":130,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":131,"sourceHtmlUrl":132},"resources\u002Ftypescript-standards.md",8439,"https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Ffrontend-dev-guidelines\u002Fresources\u002Ftypescript-standards.md",{"path":134,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":137,"sourceHtmlUrl":138},"scripts\u002Fanalyze_sources.py","SCRIPT","脚本",9912,"https:\u002F\u002Fgithub.com\u002Fvladtara\u002Fhealthcabinet\u002Fblob\u002Fmaster\u002F_bmad\u002Fcore\u002Fbmad-distillator\u002Fscripts\u002Fanalyze_sources.py",{"path":140,"resourceType":135,"resourceTypeDesc":136,"sizeBytes":141,"sourceHtmlUrl":142},"scripts\u002Ftests\u002Ftest_analyze_sources.py",7723,"https:\u002F\u002Fgithub.com\u002Fvladtara\u002Fhealthcabinet\u002Fblob\u002Fmaster\u002F_bmad\u002Fcore\u002Fbmad-distillator\u002Fscripts\u002Ftests\u002Ftest_analyze_sources.py",[144,172,202,222,236,261],{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":153,"publishedAt":44},"01M6DY3X97YDSKHCCZG9KMASHA","zapier-make-patterns","No-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. But no-code doesn't mean no-complexity - these platforms have their own patterns, pitfalls, and breaking points.  This skill covers when to use which platform, how to build reliable automations, and when to graduate to code-based solutions. Key insight: Zapier optimizes for simplicity and integrations (7000+ apps), Make optimizes for power","https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fzapier-make-patterns\u002FSKILL.md",[150],{"categoryNo":151,"categoryName":152,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[154,155,156,157,158,159,160,161,162,163,164,165,33,166,167,168,169,38,170,171],"zapier make patterns","patterns","workflow","integrations","how to","apps","platform","but","build","complexity","power","simplicity","business","automate","how","apache","automation","writing",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":182,"publishedAt":44},"01M6DY3SVP128ZZPF2478H9JYZ","Cross-Site Scripting and HTML Injection Testing","This skill should be used when the user asks to \"test for XSS vulnerabilities\", \"perform cross-site scripting attacks\", \"identify HTML injection flaws\", \"exploit client-side injection vulnerabilities\", \"steal cookies via XSS\", or \"bypass content security policies\". It provides comprehensive techniques for detecting, exploiting, and understanding XSS and HTML injection attack vectors in web applications.","https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fxss-html-injection\u002FSKILL.md",[178,181],{"categoryNo":179,"categoryName":180,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[183,184,185,186,187,188,189,190,191,35,192,193,194,195,196,197,198,199,200,201],"html injection testing","Cross Site Scripting and HTML Injection Testing","injection","scripting","site","html","testing","exploit","user","xss","cookies","content","web","test","vectors","via","steal","security","vulnerabilities",{"skillNo":203,"name":204,"nameZh":6,"description":205,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":206,"categories":207,"keywords":217,"publishedAt":44},"01M6DY3D694G80Y5N79CD1J575","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[208,209,212],{"categoryNo":179,"categoryName":180,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":210,"categoryName":211,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":213,"categoryName":214,"taxonomyType":215,"taxonomyTypeDesc":216},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[171,218,219,33,220,221],"writing skills","deployment","editing","work",{"skillNo":223,"name":224,"nameZh":6,"description":225,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":226,"categories":227,"keywords":230,"publishedAt":44},"01M6DY3A7BM31W5Q2QARW00JHS","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[228,229],{"categoryNo":210,"categoryName":211,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":213,"categoryName":214,"taxonomyType":215,"taxonomyTypeDesc":216},[231,171,232,233,234,33,38,235],"writing plans","plans","requirements","task","spec",{"skillNo":237,"name":238,"nameZh":6,"description":239,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":240,"categories":241,"keywords":243,"publishedAt":44},"01M6DY36NSATM95HR7HMVZJYB3","workflow-automation","Workflow automation is the infrastructure that makes AI agents reliable. Without durable execution, a network hiccup during a 10-step payment flow means lost money and angry customers. With it, workflows resume exactly where they left off.  This skill covers the platforms (n8n, Temporal, Inngest) and patterns (sequential, parallel, orchestrator-worker) that turn brittle scripts into production-grade automation.  Key insight: The platforms make different tradeoffs. n8n optimizes for accessibility","https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fworkflow-automation\u002FSKILL.md",[242],{"categoryNo":151,"categoryName":152,"taxonomyType":21,"taxonomyTypeDesc":22},[244,170,156,245,246,247,169,248,249,250,251,252,253,254,255,256,257,258,259,260],"Workflow Automation","Production","flow","network","workflows","accessibility","ai agents","execution","scripts","worker","payment","n8n","money","resume","orchestrator","parallel","inngest",{"skillNo":262,"name":263,"nameZh":6,"description":264,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":265,"categories":266,"keywords":268,"publishedAt":44},"01M6DY32QTGD80MQHJ8TPDH53H","WordPress Penetration Testing","This skill should be used when the user asks to \"pentest WordPress sites\", \"scan WordPress for vulnerabilities\", \"enumerate WordPress users, themes, or plugins\", \"exploit WordPress vulnerabilities\", or \"use WPScan\". It provides comprehensive WordPress security assessment methodologies.","https:\u002F\u002Fgithub.com\u002FEthanSheehan\u002FGrid-Sentinel\u002Fblob\u002Fmain\u002F.agent\u002Fskills\u002Fwordpress-penetration-testing\u002FSKILL.md",[267],{"categoryNo":179,"categoryName":180,"taxonomyType":21,"taxonomyTypeDesc":22},[189,263,269,270,271,272,273,274,190,33,191,275,276,201,200],"penetration testing","wordpress","security assessment","sites","scan","pentest","plugins","assessment"]