Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

prowler-cloudот prowler-cloud★ 15 363 звезды на GitHub18 установок в других каталогах

Об этом скилле

Related Generic Skills

  • typescript - Const types, flat interfaces
  • react-19 - No useMemo/useCallback, compiler
  • no-use-effect - Derive state, handlers, server data; no direct useEffect
  • prowler-ui-browser-review - Browser sign-off for user-visible changes
  • nextjs-16 - App Router, Server Actions
  • tailwind-4 - cn() utility, styling rules
  • zod-4 - Schema validation
  • zustand-5 - State management
  • ai-sdk-5 - Chat/AI features (installed: AI SDK 6, @ai-sdk/react 3)
  • vitest - Unit (jsdom) and browser integration tests
  • playwright - E2E testing (see also prowler-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/tone props. Never add ad-hoc visual className (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 that globals.css does 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 to components/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/ or hooks/
  • Used by 1 feature
Полный SKILL.md на GitHub

Установить prowler-ui в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Edit
Write
Glob
Grep
Bash
WebFetch
WebSearch
Task

Вложенные файлы

references/ui-docs.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить prowler-ui с