Kortix Uiのロゴ

Kortix Ui

組織人気
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.

概要

公開者kortix-ai
リポジトリCompanyOS
スキル名kortix-ui
スター
20.8K
フォーク
3.5K
同梱ファイル
3
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    kortix-aiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Kortix Ui」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-ui
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでKortix Uiを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にKortix Uiを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Kortix Uiは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

@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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

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,...

TypingMindでKortix Uiを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Kortix Uiはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにKortix Uiをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-uiを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Kortix Uiを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Kortix Uiで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもKortix Uiを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Kortix Ui」は無料ですか?

kortix-aiがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇