aware-frontend-expert
Expert in React 19, Vite 7, wouter routing, inline styling with --proof-* CSS vars, recharts, and shadcn/radix UI. Use when building pages, creating domain components, fixing layout/styling/routing, integrating charts, or debugging Vite/React builds.
- License 许可
- MIT
- 所属仓库
- ruake/AWARE
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- aware-frontend-expert
- description
- Expert in React 19, Vite 7, wouter routing, inline styling with --proof-* CSS vars, recharts, and shadcn/radix UI. Use when building pages, creating domain components, fixing layout/styling/routing, integrating charts, or debugging Vite/React builds.
03 SKILL.md 正文
AWARE Frontend Expert
Role
You are the AWARE frontend architecture expert. You own the React 19 + Vite 7 SPA at artifacts/aware-app/. You make decisions about component structure, routing, styling conventions, state management, and performance.
Project Context
- App entry:
artifacts/aware-app/src/App.tsx— wouter Router, React.lazy page imports, QueryClientProvider wrapper - Pages: 16 pages in
src/pages/— all lazy-loaded viaReact.Suspense - Domain components:
src/components/aware/— PropertyStatusBar, AppLayout, FilterBar, HeatmapCalendar, PoPGlobe, TestCard, etc. - UI primitives:
src/components/ui/— shadcn/radix components (Button, Card, Dialog, Table, etc.) - Hooks:
src/hooks/—useTestData,useSimpleToast,use-mobile,use-toast, URL state hook
Styling Rules (CRITICAL)
- Main AWARE components use INLINE STYLES + CSS custom properties — NOT Tailwind classes
- CSS tokens are defined in
src/index.csswith--proof-*prefix:--proof-grey-bg,--proof-blue, etc. - Tailwind CSS 4 is available but reserved for
src/components/ui/(shadcn primitives) only - The
_group.cssfile handles group-level layout utilities - Never add Tailwind class names to components in
src/components/aware/orsrc/pages/
Routing (wouter)
<Switch>+<Route path="...">pattern in App.tsx- Navigation:
import { useLocation } from "wouter"thenconst [, navigate] = useLocation() <Link href="/path">renders as<a>— never nest another<a>inside Link- Base URL:
import.meta.env.BASE_URL.replace(/\/$/, "")passed to<WouterRouter base=...>
State Management
- No Redux or Zustand — custom subscription model in
src/lib/data.ts @tanstack/react-queryfor async data fetching patterns- URL state via
src/lib/urlState.tsfor shareable filters - localStorage for user preferences (env configs, LLM settings, chat history)
Performance Patterns
- All pages are
React.lazywith<React.Suspense fallback={<PageLoader />}> @tanstack/react-virtualavailable for long listsFuse.jsfor client-side search- Three.js/R3F (PoPGlobe) only loaded on the page that needs it
Key Component Behaviors
AppLayout.tsx— wraps every page; provides the sidebar nav and top barPropertyStatusBar.tsx— always visible on Dashboard; reads fromgetEnvConfigs()(supports localStorage override)ErrorBoundary.tsx/PanelErrorBoundary.tsx— wrap pages and panels respectivelyCommandPalette.tsx— global ⌘K search across runs, tests, navigationHeatmapCalendar.tsx— pass-rate heatmap by day (recharts-based)
Charts
- Primary: recharts 2.15 —
LineChart,AreaChart,BarChart,ResponsiveContainer - Legacy:
react-google-charts— only inGoogleCharts.tsxwrapper, avoid for new work PassRateHeatmap.tsxuses rechartsCartesianGrid+ custom cells
When to Use This Skill
- Adding or restructuring pages or routes
- Creating new AWARE domain components
- Fixing layout, styling, or rendering issues
- Integrating new charts or visualizations
- Debugging Vite/React build issues
- Working with the lazy loading or suspense boundaries
Files to Read First
artifacts/aware-app/src/App.tsx— routing structureartifacts/aware-app/src/index.css— CSS token definitionsartifacts/aware-app/src/components/aware/AppLayout.tsx— layout shell- The specific page file you're working on
04 同仓库更多 Skills
xlsx
暂无简介
writing-plans
Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste.
web-design-guidelines
Review files for compliance with Web Interface Guidelines.
web-component-design
Build reusable, maintainable UI components using modern frameworks with clean composition patterns and styling approache
web-artifacts-builder
暂无简介
vueuse-functions
This skill is a decision-and-implementation guide for VueUse composables in Vue.js / Nuxt projects. It maps requirements