Logo de Kortix Ui

Kortix Ui

OrganizaçãoPopular
kortix-ai
kortix-ui

Build React UI with @kortix/ui, the Kortix component library and the whole Kortix session experience as modules (session workspace, thread, composer, side panel, files, file viewer, terminal, workspace sidebar and home, customize pages): Kortix Apps, white-label hosts, custom dashboards on @kortix/sdk and apps/web. Load before you write a component, a page, a chat or session view, a custom dashboard or App, or a className in a React host that renders Kortix UI, or when you theme Kortix components for another brand. Covers setup, the module map, which component to compose, banned primitives, tokens, the dashboard guide, white-label theming and the verify steps.

Visão geral

Publicado porkortix-ai
RepositórioCompanyOS
Nome da habilidadekortix-ui
Estrelas
20.8K
Forks
3.5K
Arquivos incluídos
3
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 3

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por kortix-ai no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Kortix Ui no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-ui
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kortix-ai/CompanyOS.git /tmp/CompanyOS
mkdir -p .claude/skills
cp -r /tmp/CompanyOS/packages/starter/templates/managed/skills/kortix-ui .claude/skills/kortix-ui
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Kortix Ui em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Kortix Ui automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Kortix Ui não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

@kortix/ui

@kortix/ui is the one React component library for every Kortix surface: apps/web, Kortix Apps, the white-label demo and SDK customer apps. Components are Tailwind v4 class strings that read CSS variables. Docs: https://kortix.com/docs/developers#kortix-ui. Live catalog: https://kortix.com/design-system.

Install: npm i @kortix/ui @kortix/sdk, the same version of each (peers: references/custom-dashboard.md). Module entries and @kortix/ui/theme need 0.14.4+. Inside kortix-ai/CompanyOS: "workspace:*". Never copy component source.

1. Set up once

  1. Styles. A Tailwind v4 host: @import 'tailwindcss'; @import '@kortix/ui/tailwind.css'; in its main CSS, plus the optional peers tw-animate-css, tailwind-scrollbar, tailwind-scrollbar-hide. A host without Tailwind imports @kortix/ui/styles.css once: every class the package uses, none of yours.
  2. Fonts. @kortix/ui/fonts.css (Roobert) is for Kortix-owned surfaces only. A white-label host never imports it.
  3. Mount once at the root: QueryClientProvider, UiProvider (link, navigation: your router, observesHistory: true under Next.js; components: host slots, a missing slot hides its control; config: managedModelsEnabled, connectorsEnabled, terminalEnabled, cliConnectEnabled, publicSharesEnabled, commandPaletteShortcut, settingsShortcut, accountApiEnabled; resolvePreviewUrl; useBrand: your marks; i18n, strings, image, useViewerId: without it no sender name or "Stopped by" shows), IconProvider (@kortix/ui/icon-provider), one <Toaster /> (@kortix/ui/toast). setUiTelemetry (@kortix/ui) once at module load. Dark mode is dark on <html>. SDK billingEnabled stays off (Kortix's app only).
  4. Ids, never route params. SessionThread, SessionWorkspace and ProjectHome mount SessionIdsProvider and the SDK workspace scope themselves. A block outside them: KortixProjectProvider (@kortix/sdk/react) and SessionIdsProvider (projectId, sessionId) around it. Links follow setUiRoutes (@kortix/ui): map each page you do not serve to null.
  5. Import by subpath: import { Modal } from '@kortix/ui/modal'. The root @kortix/ui (section 7) needs no @kortix/sdk.

2. Compose before you create

JobComposeSubpath
Dialog or sheetModal, ModalContent, ModalHeader, ModalTitle, ModalBody, ModalFootermodal
Destructive actionConfirmDialog before the mutation, never a single clickconfirm-dialog
Tooltip on an icon buttonHint label="…"hint
Toast after a mutationsuccessToast, errorToast, infoToast, warningToast, loadingToasttoast
Status chip; count beside a labelBadge size="sm"; CountBadge (waiting, reminder, conflict, neutral)badge, count-badge
Inline alertAlert + AlertTitle + AlertDescriptionalert
Pending spinnerLoading (default export)loading
Expand and collapseDisclosure, DisclosureTrigger, DisclosureContentdisclosure
Form field; search fieldField, FieldLabel, FieldGroup, FieldDescription with Input, Textarea, Select; InputGroupSearchfield, input-group
Panel; buttons side by sideCard and its slots, or bg-popover rounded-md border px-4 py-5; ButtonGroupcard, button-group
A selection, unsaved edits or a pending paste needs actionsActionBar in an ActionBarDock at the bottom of the column; actions take kbd, tone, emphasisaction-bar
Tabs and filtersTabs, TabsList size="xs", TabsTriggertabs
Menu, picker, paletteDropdownMenu, Popover, Commanddropdown-menu, popover, command
Table and empty listTable; Empty with one muted linetable, empty

A new primitive is the last step: tokens only, a small API, and a section on /design-system.

3. Banned

NeverUse
Dialog / DialogContent in feature codeModal
Tooltip primitives in feature codeHint
toast() from sonner, toast.success()the toast helpers and <Toaster />, all from @kortix/ui/toast; a host needs no sonner import
An icon with animate-spin, CircleNotchIcon, SpinnerIconLoading
A hand-rolled chip <span> or a colored bannerBadge, Alert
SectionCard, List / ListRowCard, <ul className="space-y-2"> rows
lucide-react or another icon set@phosphor-icons/react, *Icon names, no weight prop (only weight="fill" for solid status glyphs)
A fork of a component, or @base-ui/react, @radix-ui/*, cmdk, vaul in a hostthe component as it ships, themed with tokens (section 6); asChild on its parts, Slot from @kortix/ui/slot

4. Tokens only

  • Colors are semantic utilities (bg-background, bg-card, bg-muted, text-muted-foreground, border-border, bg-primary, text-destructive). Never a hex, rgb(), oklch() or a palette class (text-emerald-600).
  • --spacing is 0.23rem, 8% tighter than stock Tailwind: a 16px mockup gap is gap-4, never gap-[16px].
  • rounded-md for panels and fields; elevation only on overlays. Hover is transition-colors duration-fast; no motion over 300 ms.

5. Status tones

One meaning per hue. StatusTone (@kortix/ui/status): success, warning, destructive, info, neutral, for StatusBadge and STATUS_DOT; Badge variants map the same, muted for neutral. Alert accepts only default, success, warning, and destructive. Map info and neutral notices to variant="default". Tinted icon tile: bg-kortix-green/15 (or -orange, -blue) with the icon in the full hue.

Example: <Alert variant="default"><AlertTitle>…</AlertTitle><AlertDescription>…</AlertDescription></Alert> from @kortix/ui/alert. Never pass title to Alert: it is a native tooltip attribute, not visible content.

6. White-label

Theme with @kortix/ui/theme, never by forking a component: themeToCss(theme) in a <style> for the app, <ThemeScope theme> for one subtree (its overlays portal into it). KortixTheme fields are all optional: light / dark colors (blue accent, ring focus, border, muted, foreground, background, primary, any --custom), radius, borderWidth, fonts.sans / fonts.mono, spacing, text, lineHeights, shadows, durations, easing, vars. Pass the organization's marks to UiProvider useBrand. Every key, default and limit: references/theming.md.

7. Components

Import fromNames
@kortix/ui (adapters)cn, UiProvider, defaultUiStrings, useUiStrings, useUiLink, useUiImage, useUiBrand, UiStrings, UiStringsInput, UiLinkProps, UiLinkComponent, UiImageProps, UiImageComponent, UiBrand, UseUiBrand, useIsDark, useUiRouter, useUiShallowNavigate, UiShallowNavigate, useUiPathname, useUiSearchParams, useUiParams, defaultUiNavigation, UiNavigation, UiRouter, UiRouteParams, UiSearchParams, useUiViewerId, useUiHostConfig, defaultUiHostConfig, UiHostConfig, UiSlashAction, SessionIdsProvider, useSessionIds, UiSessionIds
@kortix/ui (actions, display)Button, buttonVariants, ButtonProps, Badge, badgeVariants, Card, CardAction, CardButton, CardContent, CardDescription, CardEyebrow, CardFeature, CardFooter, CardGroup, CardHeader, CardImage, CardMedia, CardTitle, CardButtonProps, CardButtonSize, CardButtonVariant, CardGroupProps, CardLogo, CardProps, Separator, Skeleton
@kortix/ui (forms)Input, inputFocusClasses, inputInvalidClasses, inputSurfaceClasses, inputTransitionClasses, InputProps, useAutosizeTextArea, Textarea, AutosizeTextAreaRef, AutosizeTextAreaProps, Label, Checkbox, CheckboxProps, CheckboxVariant, Switch, SwitchProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectTriggerProps
@kortix/ui (overlays)Modal, ModalBody, ModalClose, ModalContent, ModalContentInner, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, Hint, HintProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger
@kortix/ui (primitives, not for feature code: section 3)Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger
@kortix/ui (navigation)FilterBar, FilterBarItem, Tabs, TabsContent, TabsList, TabsTrigger, tabsTriggerHeightVariants, tabsTriggerPaddingVariants, tabsTriggerTextVariants, TabsListType, TabsSize, TabsTriggerSize, TabsTriggerVariant, TabsUnderlineSize
@kortix/ui (conversation)Bubble, BubbleContent, BubbleGroup, BubbleReactions, bubbleVariants, Message, MessageAvatar, MessageContent, MessageFooter, MessageGroup, MessageHeader, Marker, MarkerContent, MarkerIcon, markerVariants
@kortix/ui (hooks, helpers)UiLink, UiImage, useUiViewer, UiViewer, UiHostComponents, UiPreviewUrlResolver, UiPreviewRequest, useDebounce, useIsMobile, useMediaQuery, useSlashFocus, lazyClient, spring, floatingZ, dialogContentZ, dialogOverlayZ, useDialogDepth, hasOpenFloatingLayer, hasOpenNestedDialog, DEFAULT_ICON_WEIGHT, ICON_WEIGHTS, SHIPPED_ICON_WEIGHTS, faviconUrlForHostname, setUiTelemetry, setUiHostEnv, setUiRoutes, uiRoutes, newSessionHref, isNewSessionRequested, defaultUiRoutes, decodeSpaceSegment, UiRoutes
@kortix/ui/themeKortixTheme, themeToCss, themeToCssVars, ThemeScope, ThemeScopeProps, THEME_COLOR_VARS, ThemeColor, ThemeColors, ThemeCssVars, ThemeTextStep, ThemeShadowStep, ThemeDurationStep, ThemeEasing, WALLPAPERS, DEFAULT_WALLPAPER_ID, getWallpaperById, Wallpaper, getSelectableWallpaper, PickerWallpaper, PickerWallpaperId, GRADIENT_PRESETS, GRADIENT_PATTERNS, GRADIENT_FINISHES, GRADIENT_MIN_COLORS, GRADIENT_MAX_COLORS, GradientConfig, GradientPattern, GradientFinish, GradientWallpaperId, gradientColors, CUSTOM_PALETTES, CUSTOM_COLOR_PRESETS, DEFAULT_CUSTOM_WALLPAPER, CustomWallpaperConfig, customGradientConfig, normalizeCustomWallpaper, nextCustomColor, randomCustomColors, randomCustomWallpaper, PresetOverride, PresetOverrides, normalizePresetOverrides, presetWithOverride, DEFAULT_WALLPAPER_OPACITY, OPACITY_LIMITS
@kortix/ui/session (whole thread)SessionThread, SessionThreadProps
@kortix/ui/session (blocks)UserMessage, ThrottledMarkdown, UnifiedMarkdown, UnifiedMarkdownProps, ToolPartRenderer, SessionChatInput, SessionChatInputProps, AgentSelector, ModelSelector, ModelSelectorProps, SessionPermissionPrompt, QuestionPrompt, QuestionPromptHandle, TurnErrorDisplay, SessionBusyIndicator, SessionStartingLoader
@kortix/ui/session (tool rows, pickers)ToolRegistry, ToolProps, ToolComponent, BasicTool, BasicToolProps, GenericTool; for a form outside a session: ModelSelector, AgentSelector

Every other primitive is one subpath per file: @kortix/ui/<file name> (@kortix/ui/dot-matrix/<name> for the dot matrices). Also: lib/telemetry (UiTelemetryRegister: declaration-merge event), error-boundary (ErrorBoundary, ErrorBoundaryFallback).

8. Modules

One entry per module. Its curated names are the public API (semver). Every name, prop and a compiling example: references/modules.md.

EntryWhat it isMinimal mount
@kortix/ui/workspaceWorkspace screens: SessionWorkspace (thread + side panel), ProjectHome, ProjectSessionList, ProjectFilesView<SessionWorkspace session={useSession(p, s)} />; the list inside SidebarProvider
@kortix/ui/sessionThe conversation: SessionThread, turns, ToolRegistry, prompts, pickers<SessionThread session={useSession(p, s)} />
@kortix/ui/composerThe composer, its chrome, the send pipeline<ComposerChatInput projectId onSend /> in the workspace scope
@kortix/ui/session-panelThe side panel: ActionPanel, SessionFiles, SessionChanges, SessionAuditSessionPanelProvider (runtime sessionId, projectId, projectSessionId)
@kortix/ui/filesWorkspace files (git repo), sandbox files, FilePreviewHostProjectFilesView (workspace); <FilePreviewHost /> once on a page without a side panel
@kortix/ui/file-viewerAny file kind: pdf, docx, xlsx, csv, pptx, zip, images, code<FileViewer content fileName />; FileContentRenderer in FileSourceProvider
@kortix/ui/terminal, @kortix/ui/browserThe session shell; the sandbox browserthe runtime ids of a mounted useSession
@kortix/ui/markdown, @kortix/ui/genuiMarkdown with code, math, links; GenUI blocks<UnifiedMarkdown content trust="agent" />; genui renders GenUI fences
@kortix/ui/diff, @kortix/ui/changesOne diff; a change list<DiffView before after />
@kortix/ui/apps, @kortix/ui/artifactsApp frames, the frame pool, the App view model; artifact frames and session cardsnone
@kortix/ui/access, @kortix/ui/customizeSharing and roles; workspace configuration pages<ConnectorsPage projectId />
@kortix/ui/theme, @kortix/ui/i18n, @kortix/ui/iconsTheme; useTranslations, useLocale (next-intl signatures); glyphsnone

Deep paths (@kortix/ui/internal/*, @kortix/ui/<module>/<path>) have no semver: only Kortix's own apps import them (scripts/deep-exports.json).

9. Recipes

tsx
import { useSession } from "@kortix/sdk/react";
import { SessionWorkspace } from "@kortix/ui/workspace";
export function Session({ projectId, sessionId }: { projectId: string; sessionId: string }) {
  return <SessionWorkspace session={useSession(projectId, sessionId)} />;
}
  • The parent sets the height (also of ProjectFilesView). Install @tanstack/react-query, @openuidev/lang-core@0.3.1 and zod with it. SessionThread (@kortix/ui/session) is the thread alone; with no side panel, file and preview opens show in a dialog.
  • A custom tool row: ToolRegistry.register('<tool name>', Row); Row gets ToolProps, draws BasicTool.
  • A whole dashboard or App (client, router adapters, sidebar, workspace home, session, files, theme, tool row, App sign-in): references/custom-dashboard.md. Never a raw fetch: the SDK has the call, or gets it.

10. Verify

  1. tsc --noEmit adds no error. Run the page in light and dark, at 720 × 480 and a phone width; click every control.
  2. Your diff has no hex, rgb(, -[ spacing bracket, lucide-react, toast( or animate-spin. Kortix-internal: .agents/skills/kortix-brand/scripts/audit.sh <paths> is clean. White-label: a new --kortix-blue reaches a checked Switch.

11. Kortix-internal work

In kortix-ai/CompanyOS, kortix-brand (values, voice) and kortix-design-system (which component) in .agents/skills/ win over this file. apps/web imports @kortix/ui like any host and keeps no re-export shims: edit the component in packages/ui/src/.

Copy and completion icons

  • Every copy action uses CopyButton from @kortix/ui/markdown/copy-button: text, links, code, tokens, and IDs.
  • It uses Copy from @kortix/ui/icons (packages/ui/src/icons/copy.tsx) and swaps in SolidCheckIcon from @kortix/ui/internal/icons/solid-check-icon after clipboard success. Keep one fixed icon box. Reduced motion swaps immediately.
  • Within packages/ui, custom copy controls reuse AnimatedCopyIcon with those same two icons. Hosts compose CopyButton. Preserve clipboard error handling and an accessible label. Never use Phosphor CopyIcon or a local copy timer.
  • Completion and success use SolidCheckIcon. Never use a square filled CheckIcon as a completion symbol. A checkbox is for an editable selection only.
  • Avoid crowded cards. Use one heading, short facts, and one primary action. Put secondary explanation in an info hover card. Keep space between header, body, and actions. Do not stack a description under every fact.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Kortix Ui faz?

Build React UI with @kortix/ui, the Kortix component library and the whole Kortix session experience as modules (session workspace, thread, composer, side panel, files, file viewer, terminal, workspace sidebar and home, customize pages): Kortix Apps, white-label hosts, custom dashboards on @kortix/sdk and apps/web. Load before you write a component, a page, a chat or session view, a custom dashboard or App, or a className in a React host that renders Kortix UI, or when you theme Kortix components for another brand. Covers setup, the module map, which component to compose, banned primitives,...

Por que usar Kortix Ui no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Kortix Ui é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Kortix Ui no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-ui. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Kortix Ui?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Kortix Ui?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Kortix Ui com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Kortix Ui é gratuita?

A habilidade é publicada no GitHub por kortix-ai. Consulte os termos de licenciamento no repositório. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇