prowler-ui
БесплатноБез исполняемых скриптовНе проверенProwler UI-specific patterns. For generic patterns, see: typescript, react-19, nextjs-16, tailwind-4. Trigger: When working inside ui/ on Prowler-specific…
Об этом скилле
Related Generic Skills
typescript- Const types, flat interfacesreact-19- No useMemo/useCallback, compilerno-use-effect- Derive state, handlers, server data; no direct useEffectprowler-ui-browser-review- Browser sign-off for user-visible changesnextjs-16- App Router, Server Actionstailwind-4- cn() utility, styling ruleszod-4- Schema validationzustand-5- State managementai-sdk-5- Chat/AI features (installed: AI SDK 6,@ai-sdk/react3)vitest- Unit (jsdom) and browser integration testsplaywright- E2E testing (see alsoprowler-test-ui)
Tech Stack (Versions)
Source of truth is ui/package.json (pinned exact versions). At 5.48:
Next.js 16.4 | React 19.2 (React Compiler on) | Tailwind 4.1 | shadcn/ui + Radix
Zod 4.4 | React Hook Form 7.62 | Zustand 5.0 | NextAuth 5.0.0-beta.32 | Recharts 2.15
AI SDK 6 (`ai`) + @ai-sdk/react 3 | LangChain/LangGraph (@langchain/*) for Lighthouse
Vitest 4.1 | Playwright 1.56 | TypeScript 5.5 | pnpm 11 | Node >= 22.13
CRITICAL: Component Library Rule
- ALWAYS: Use
shadcn/ui+ Tailwind (components/shadcn/) - NEVER: Add components to
components/ui/(temporary re-export shims for the prowler-cloud overlay only)
Design System Discipline (REQUIRED)
Applies to ALL UI work. The design system is the single source of truth — reuse it exactly, extend it deliberately.
- Reuse first, never reinvent. Before building anything, search
components/shadcn/and existing usages in the codebase for an equivalent. Do NOT create a custom component, modal wrapper, or primitive when one already exists. - Use exactly the defined variants/styles — no more, no less. At the call site, drive appearance through the component's
variant/size/toneprops. Never add ad-hoc visualclassName(color, opacity, hover/focus/disabled, spacing-for-looks) to shared controls (Button,SelectTrigger,SelectItem,Modal, badges…), and never skip the correct semantic variant. - Modals: only
@/components/shadcn/modal. Selects:components/shadcn/select. - Colors: reuse existing semantic tokens from
ui/styles/globals.css. No raw Tailwind color utilities (e.g.bg-blue-950/40), no hex. If no token fits, STOP and ask the design owner — do not invent or near-duplicate tokens. - Need a genuinely new variant/token? That is a design-system change: add it to the shared component API (with design sign-off), then consume it. It is never a call-site decision.
- Design-system-shaped patterns (callouts, hints, empty states) go into
components/shadcn/as compound components, even with one consumer. When a shadcn primitive carries stock tokens thatglobals.cssdoes not define (e.g.bg-popover), fix the primitive with house tokens instead of patching call sites. - Shared components serve many screens. Before changing one for a request about a single screen, grep its usages and check every render context. Nested finding rows have no header row and rely on per-cell labels; put the change at the call site.
Lint rejects raw palette classes, hex values, var() in className and imports from components/ui/. When reviewing UI PRs, also flag custom modals/primitives that duplicate shadcn, call-site visual className on shared controls, and new variants/tokens introduced without going through the shared component API.
DECISION TREES
Code Location
New features live with their route (reference: app/(prowler)/alerts/). Older features still live in the global folders; follow their layout unless the task is the migration.
Server action + adapter → app/(prowler)/<domain>/_actions/ (index.ts barrel)
Feature component → app/(prowler)/<domain>/_components/<sub>/ (index.ts per subfolder)
Pure helpers, schemas → app/(prowler)/<domain>/_lib/
Feature types → app/(prowler)/<domain>/_types/ (index.ts barrel)
Used by 2+ domains → components/shared/, lib/, types/, hooks/
UI primitive → components/shadcn/
API route handler → app/api/...
Needs state/handlers → "use client"; otherwise a Server Component (no directive)
Import across _ folders with @/app/(prowler)/<domain>/_lib/...; use relative paths inside one folder.
Deprecated:
components/ui/is a temporary re-export shim that maps legacy import paths tocomponents/shadcn/for the prowler-cloud overlay. HeroUI is fully removed. Never add or import components here — use@/components/shadcn(primitives) or@/components/{domain}instead. Delete the shim once the cloud repo migrates to@/components/shadcn.
Styling Decision
Tailwind class exists? → className
Dynamic value? → style prop
Conditional styles? → cn()
Static only? → className (no cn())
Recharts/library? → CHART_COLORS constant + var()
Scope Rule (ABSOLUTE)
- Used 2+ domains →
components/shared/,lib/,types/orhooks/ - Used by 1 feature
Установить prowler-ui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadEditWriteGlobGrepBashWebFetchWebSearchTaskВложенные файлы
FAQ
Что делает скилл prowler-ui?
Prowler UI-specific patterns. For generic patterns, see: typescript, react-19, nextjs-16, tailwind-4. Trigger: When working inside ui/ on Prowler-specific conventions (shadcn, folder placement, actions/adapters, shared types/hooks/lib).
Как установить скилл prowler-ui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prowler-ui запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic