.claude/skills/add-ui-page/SKILL.md
Create a new frontend page/view for the Polymarket trading dashboard. Use when building pages like Dashboard, Markets, Strategies, Signals, Trades, Positions, Risk, AI, Analytics, Backtest, Alerts, Settings, Health.
npx skillsauth add HadiAlizade77/poly add-ui-pageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create page: $ARGUMENTS[0] at route $ARGUMENTS[1]
packages/frontend/src/#0a0a0f, card surfaces: #12121apackages/frontend/src/pages/$0/$0.tsx
AppShell layout (sidebar + header + main content)index.tsApp.tsx router configuration<Sidebar> componentpackages/frontend/src/hooks/use$0.ts:
packages/frontend/src/api/$0.api.ts:
// Page component
export function $0Page() {
return (
<div className="space-y-6">
<PageHeader title="$0" />
<Suspense fallback={<PageSkeleton />}>
<$0Content />
</Suspense>
</div>
);
}
// Data table with TanStack Table
// Detail drawer with shadcn Sheet
// Filter bar with shadcn Select, Input, DatePicker
// Stat cards with StatCard component
// Charts with Recharts or TradingView LW Charts
development
Wire up a new WebSocket event channel between backend and frontend. Use when adding real-time events like price updates, order fills, alerts, regime changes, etc.
development
Validate risk governor checks and risk configuration changes. Use when modifying risk parameters, adding new risk checks, or reviewing risk logic.
development
Scaffold a new backend service/process for the Polymarket platform. Use when creating a new PM2-managed service like market-scanner, data-ingestion, strategy-runner, etc.
testing
Run tests for the Polymarket platform. Supports unit, integration, and E2E tests. Use after implementing features or fixing bugs.